0.7.1 How-To

From Archivematica
(Difference between revisions)
Jump to: navigation, search
Line 21: Line 21:
  
 
= Add/Remove Extensions from inPreservationFormat/inAccessFormat =
 
= Add/Remove Extensions from inPreservationFormat/inAccessFormat =
TODO
+
open for editing: /usr/lib/archivematica/transcoder/transcoderNormalizer.py
http://code.google.com/p/archivematica/issues/detail?id=635
+
<pre>sudo mousepad /usr/lib/archivematica/transcoder/transcoderNormalizer.py</pre>
 +
 
 +
Update these two functions:
 +
<pre>def inAccessFormat():
 +
    ex=["CSS", "CSV", "HTML", "TXT", "XML", "XSL", \
 +
        "MP3", "PDF", "JPG", "MPG"]
 +
    return transcoder.fileExtension.__str__().upper() in ex
 +
 
 +
def inPreservationFormat():
 +
    ex=["CSS", "CSV", "HTML", "TXT", "XML", "XSL", \
 +
        "JP2", "PNG", \
 +
        "SVG", "WAV", "TIF", "PDF", "ODP", "TIF", "MXF", "ODT", "ODS", "MBOX", "IMBOX", "AI" ]
 +
    return transcoder.fileExtension.__str__().upper() in ex</pre>
 +
Note: the "\" indicates the array continues on the next line.

Revision as of 13:36, 8 June 2011

This how to is provided in addition to the user manual.

Contents

Restore a SIP backup

TODO http://code.google.com/p/archivematica/issues/detail?id=546

Modify workflow, to not generate a DIP

TODO http://code.google.com/p/archivematica/issues/detail?id=608

Change the checksum type used in the AIP bagit

TODO http://code.google.com/p/archivematica/issues/detail?id=590

External Disk Transfers

TODO http://code.google.com/p/archivematica/issues/detail?id=132

Manual Normalization

TODO http://code.google.com/p/archivematica/issues/detail?id=464

Add/Remove Extensions from inPreservationFormat/inAccessFormat

open for editing: /usr/lib/archivematica/transcoder/transcoderNormalizer.py

sudo mousepad /usr/lib/archivematica/transcoder/transcoderNormalizer.py

Update these two functions:

def inAccessFormat():
    ex=["CSS", "CSV", "HTML", "TXT", "XML", "XSL", \
        "MP3", "PDF", "JPG", "MPG"]
    return transcoder.fileExtension.__str__().upper() in ex

def inPreservationFormat():
    ex=["CSS", "CSV", "HTML", "TXT", "XML", "XSL", \
        "JP2", "PNG", \
        "SVG", "WAV", "TIF", "PDF", "ODP", "TIF", "MXF", "ODT", "ODS", "MBOX", "IMBOX", "AI" ]
    return transcoder.fileExtension.__str__().upper() in ex

Note: the "\" indicates the array continues on the next line.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox