Skip to content

Latest commit

 

History

History
57 lines (38 loc) · 2.54 KB

README.md

File metadata and controls

57 lines (38 loc) · 2.54 KB

Processing Scripts

Overview

Scripts used for processing born-digital archives at the UGA Special Collections Libraries. Workflow documentation can be found in the born-digital-processing repo.

See sample-output for examples of the outputs generated by these scripts.

Getting Started

Dependencies

None so far. Just use standard Python libraries.

Installation

No special instructions so far.

Using the Scripts

accession-aip-comparison

Script usage: python path/to/script path/to/collection_folder path/to/aips_directory

  • collection_folder (required): path to the folder with the accession(s)
  • aips_directory (required): path to the folder with the bagged, unzipped version of the AIP(s)

Compares the filename and MD5 from the AIP bag manifest(s) to the accession manifest(s) for a processed collection to find any files in the AIP(s) that were altered during processing.

Script output is a report named aip_fixity_changes.csv with the MD5, path, and filename of any AIP file that didn't match an accession, saved to the parent folder of aips_directory (usually PreservationCopy). Or if there were no mismatches, the script prints "AIP fixity is unchanged" instead.

dip-numbering

Script usage: python /path/to/script /path/to/access_directory collection_id [id_start]

  • access_directory (required): path to the folder with the folders that need to be renamed
  • collection_id (required): collection id, formatted dept-coll#
  • id_start (optional): the first sequential number in that folder, if not 1

Adds the DIP access number to the start of every folder title in a directory, formatted dept-coll#-access-######_folder title

The default is to start the 6-digit sequential number at 1, but a different number can be included as an optional third argument if there are other access copies.

metadata-csv

Script usage: python /path/to/script /path/to/aips_directory collection_id [er_number]

  • aips_directory (required): path to the directory that contains the folders to be made into AIPs
  • collection_id (required): collection identifier
  • er_number (optional): first sequential number to use for the AIP ID, if not 1

Creates the metadata.csv with one row for each aip folder in a directory. This CSV is used as input for the general_aip.py script.

Script output is the metadata.csv, saved in the aips_directory. To complete the metadata.csv, add the AIP titles and edit the version number if not 1.