Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Location of the BagIt library: BagItPHP
  • Temporary directory for unserialized Bags: /tmp
  • Delete unserialized (zipped) Bags: Check this box to automatically delete the version of the bag that isn't zipped, after the zipped version is created.
  • Output directory for serialized Bags: sites/default/files (Note: "Provide link to download Bag" will only work if this is a web-accessible directory.)
  • Create Bag on object ingest: unchecked by default
  • Create Bag on object modification: unchecked by default
  • Provide link to download Bag: checked by default (See note under "Output directory for serialized Bags")
  • Collection batch type:
    • one Bag per object - creates a separate Bag for each object in the collection
    • one Bag per Collection - creates a single Bag that contains all objects in the collection
  • Serialize collection Bags: unchecked by default
  • Bag name: Bag- (the object's PID is appended to this value)
  • Display messages: checked by default
  • Log the creation of Bags: checked by default
  • Compression type: choose tgz or zip
  • Object plugins: You must select at least one object plugin to add content to a Bag.
    • plugin_object_archivematica_transfers - creates an Archivematica (http://archivematica.org) 'transfer' Bag
    • plugin_object_ds_add_file - creates an arbitrary file to add to the Bag
    • plugin_object_ds_add_filebasic - copies all the datastreams in an Islandora object to the top level of the Bag's 'data' directory
    • plugin_object_foxml - includes the FOXML for an Islandora object
    • plugin_object_premis - ncludes a PREMIS preservation metadata file generated by the Islandora PREMIS module (https://github.com/ruebot/islandora_premis).
  • Collection plugins: select one
    • plugin_collection_basic - creates a subdirectory for each object in the Bag's 'data' directory. This is the default.
    • plugin_collection_oddeven - creates an 'odd' and 'even' subdirectory in the Bag's 'data' directory, and then organizes object-level Bags within those two subdirectories
  • Bag metadata - expand this to fill out information for the Bag's bag-info.txt file.

...

  1. Log in and go to an object's Manage tab.
  2. Click Create Bag(s). Bag creation will start automatically and use the settings as configured in admin/islandora/tools/bagit.
  3. A page will appear after successful Bag creation. Click the "Download the Bag" link on that page to download the object bag. The bag will also be saved to the Output directory for serialized Bags set in the Islandora BagIt configurations.

...

Object Bag Structure

...

Files included in

...

a

...

Bag will vary based on what object plugins you enable in the configurations. See below for an example of the output from a Basic Object content model with plugin_object_ds_basic and plugin_object_foxml enabled. All of the Fedora datastreams are included in the /data directory. The content object datastream and DC record are also included in /data/objects. The files in the top-level directory are administrative files required by the BagIt format.

Bag Directory Structure

  • bag-info.txt
  • bagit.txt
  • manifest-sha1.txt
  • tagmanifest-sha1.txt
  • /data

    • /objects

      • OBJ.jpg

      • DC.bin

    • DC.bin

    • foxml.xml

    • MEDIUM_SIZE.jp

    • MODS.xml

    • OBJ.jpg

    • PREMIS.xml

    • RELS-EXT.rdf

    • TECHMD.xml

    • TN.jpg

...

Extending and customizing the BagIt module with plugins

...