Create minimal mods from book/vol directory names to allow quick ingests and later editing of MODS.
Does not overwrite existing metadata files.
Create minimal mods for images in a directory
Does not overwrite existing files.
Copy into /usr/local/bin and change name to minmods ( or in the image script case, minimgmods). Change permissions to 755.
For a book type directory, where the main directory is the collection name/namespace, with the items as separate directories beneath it:
- Use the name of each item to make the title and identifier and file name of a small MODS record to be placed the same directory as the item directory.
- This can then be used with bookprep to prepare for an islandora book batch ingest.
For the minimgmods script, a directory has a number of image files and this makes MODS records to match the image file names by using the base file name for the title, identifier and file name of the MODS.
For the book type objects, after the mods metadata for the main object has been edited, the pages do not reflect the main object's title. This script looks at all the main objects, saves the titles and admindb identifiers, then looks at each page, matches it up with an admindb number, does a replace of the admindb number in the titleInfo.title with the main title.
- export using islandora_datastream_exporter all mods for collection
- run fixlabel on the directory of exports
- copy the xxxxxx.done files to another directory
- using rename
rename xml.done xml *.done
- using islandora_datastream_replace, replace these into the collection
- using fedora_delete_datastreams delete previous version of metadata