Working_BATCH_FILES__dlg_ARCHIVE_AIP_creation_workflowx DLG ARCHive AIP Creation Instructions

User Manual:

Open the PDF directly: View PDF PDF.
Page Count: 6

DLGAIPcreationworkflowforAIPstobeingestedbyARCHivesystem
usingAIPCreationHelperv2.0
Revised10/24/2018
NOTE:TheseinstructionsassumeyouareworkingonaWindowsPC(testedwithWindows7).Youmust
havethefollowingsoftwareapplicationsinstalledandavailableonyoursystempathsothattheycanbe
executedfromthecommandline:
Software Version
URL
JAVA8 (1.8)https://java.com/en/download/
Perl5.16 https://www.perl.org/
Python3.x https://www.python.org/
FITS (File
Information Tool
Set)
1.3xhttps://projects.iq.harvard.edu/fits/home
7zip17https://www.7zip.org/
Bzip2 for Windows1.0.2http://gnuwin32.sourceforge.net/packages/bzip2.htm
Grep for Windows2.5.4 http://gnuwin32.sourceforge.net/packages/grep.htm
1)IdentifyandstagedigitalobjectstobeincludedinAIP.Asageneralrule,DLGAIPSwillbe
createdatthedigitalobjectlevel,sousuallytherewillbeoneitemlevelrecordindlgadminper
AIP.GenerallyAIPswillbenamedusingrecordDLGadminslugsorrecordIDs,however
newspaperAIPswillbenamedusingthebatchname.NewspaperAIPswillbecreatedatthe
batchlevelandwillincludetheentirebatch,includingtiffiles.
Filesshouldbeunzipped.Iffileshavebeenbaggedpreviously,validatethebagbeforemoving
themintotheprescribedAIPsubfolderstructure.Deletethumbs.dbfiles.
Makesureyouareatalocationwithenoughspacetoaccommodateduplicationofthefiles
necessarytocreatetheAIP.
2)RenamefilescomprisingdigitalobjectsandassociatedmetadatatoincludeDLGrepository
andcollectioncodes([dlgrepo]_[dlgcoll]_item).
3)CreatethestubfilesystemthatwillbetransformedintotheAIP.Thefollowingprocesses
relyonafilesystemthatstrictlyfollowsthispattern:
[aipid]parentfolder
‐‐objectssubfolder
‐‐[digital_object_id]Subfoldercontainingfiles.Inmostcasesthisisthesameas
theAIPID.
Inmostsituations,thiscanbedoneusingoneofthefollowingWindowsbatch(.bat)files.Make
surethatfilesandfoldersarenamedcorrectlybeforeproceedingwithanyoftheAIPcreation
steps:
noadmin_directories_AIP_stub_filesystem.batUseforaseriesofsubfolderscontainingfiles
forindividualdigitalobjects
noadmin_ind_AIP_stub_filesystem.batUseforafolderoffilesthatcorrespondtoa
separateobject.
news_AIP_creation_make_stub_filesystem.bat Useforaseriesofnewspaperbatches
(folders)thatwilleachbearchivedasa
separateAIP.Thiswillresultinasetoffilesin
afoldernamed“rearranged”.Usethisasyour
workingdirectoryforallsubsequent
processes.
Allsubsequentstepswillbeexecutedinthedirectorycontainingthese[aipid]subfolders.In
theseinstructions,thiswillbecalledtheworkingdirectory.
4)CreateanXMLfilecontainingAIPlevelmetadata.Youcancreatethisfileusinga
spreadsheetandXMLBlueprinttoextracttheXMLfromthespreadsheet.Savethisfileinyour
workingdirectory.YoucanbeginthespreadsheetwithaTSVexportofitemlevelrecordsfrom
dlgadminandmodifyitsothatitfollowsthisexample:
ThenuseXMLBlueprintorExceltoextractthexmlfromthespreadsheet.
TheextractedXMLfileshouldhavethefollowingform:
<aip_level>
<item>
<aip_id>fake_aip01</aip_id>
<aip_version>1</aip_version>
<group_uri>http://archive.libs.uga.edu/dlg</group_uri>
<aip_title>ThisisatestAIP</aip_title>
<aip_rights>http://rightsstatements.org/vocab/CNE/1.0/</aip_rights>
<dlg_repo>testrepo</dlg_repo>
<dlg_coll>testcoll</dlg_coll>
</item>
<item>
<aip_id>fake_aip02</aip_id>
<aip_version>1</aip_version>
<group_uri>http://archive.libs.uga.edu/dlg</group_uri>
<aip_title>ThisisanothertestAIP</aip_title>
<aip_rights>http://rightsstatements.org/vocab/CNE/1.0/</aip_rights>
<dlg_repo>testrepo</dlg_repo>
<dlg_coll>testcoll</dlg_coll>
</item>
</aip_level>
5)MovetheAIP_creation_helper.zipfiletoyourworkingdirectoryandunpackit.Copythe
currentversionoftheAIP_creation_helper.zipfiletoyourworkingdirectory.Rightclickthisfile
anduse7zipto“unziphere”.Ifthisisnotanavailableoptiononyourcontextmenu,youcan
useanyotherunzipprogramforthisstep,butmakesureyouhave7zipcorrectlyinstalledon
yourmachineandalsomakesurethattheunzippedfilesaredirectlyinyourworkingfolder,not
inasubfolder.
UnzippingtheAIP_creation_helper_v2.0willresultinthefollowingfilesbeingaddedtoyour
workingdirectory:
NameType
make_stub_filesystemfoldercontainingbatchfilestocreatestubfilesystems
move_to_FITS_directoryfoldercontainingbatchfiletobecopiedtoFITSdirectory
1.0_move_fits_xmlWindowsBatchFile
2.3big_combine_xml.batWindowsBatchFile
3.3makemaster.batWindowsBatchFile
4.2prep_bags.batWindowsBatchFile
7zprepare_bag.plPLFile
bag_and_validate_all_folders_python.cmdWindowsCommandScript
bagit.pyPYFile
close.xmlXMLFile
dlgfitstomasterstylesheet.xslXSLStylesheet
fart.exeApplication
open.xmlXMLFile
README_SIP_Creation.txtTextDocument
saxon9he.jarExecutableJarFile
split_TSV_source.xslXSLStylesheet
6)Copytherunfits_external.batfiletothehomedirectoryofyourFITSinstallation(wherefits.batis
located).
YouonlyhavetodothisonetimeandthenyoucanreuseitwheneveryoucreateAIPsusingthis
system.Doubleclicktorunthebatchfile.Enterthepath(includingdriveletter)toyourworking
directorywhenprompted.
7)Runthefour.batfilestocreatetheAIP.
Doubleclickoneachofthe.batfilesinnumericalordertoexecutethem.Thesecond.batfile,2.3
big_combine_xml.bat,willaskyoutoinputthenameofthexmlfileyouextractedfromthespreadsheet.
Youmustenterthisexactlyasthefileisnamed(casesensitive),includingthe.xmlextension.Pleasebe
suretofollowanyinstructionsgiventhroughthecommandpromptwindow.Ifyounoticeanyerrorsyou
mustinvestigatethemandcorrectthembeforemovingonwiththenextsteportheprocesswillnot
completesuccessfully.
7a)Runthefirst.batfile,1.x_move_fits_xml.bat
Thisstepwillcreateametadataworkingdirectoryinthestubfilesystemandmovethefits.xmlfilesto
it.
7b)Runthesecond.batfile,2.xcombine_xml.bat.
YouwillbepromptedtoenterthenameofyourAIPlevelxmlfilethatyoucreatedinstep5.Besureto
includethe.xmlextension.Thisstepwillexecutethefollowingprocesses:
SplittheAIPlevelxml(extractedfromthespreadsheetinstep5)intoseparatefilesforeachAIP
andmovethemtotheappropriatemetadataworkingfolder.
Combinethe.fits.xmlfilesforeachAIPintoonexmlfile.
StripthexmldeclarationsfromthecombinedFITSxml.
RegularizethefilepathsintheFITSxmlsothatitisrelativetothe“objects”folderofthe
filesystem.
CombinetheAIPlevelxmlfragmentwiththecombinedFITSxml.
AddanXMLdeclaration,openingtag,andclosingtagsothattheresultingxmliswellformed.
Resultof2.x_combinexml.bat
7c)Runthethird.batfile,3.x_makemaster.battotransformeach*_wellformed.xmlfileto
*_master.xml
Thisstepwillcreatea“metadata”foldercontainingthe[aip_id]_master.xmlfileandcopythecontents
ofthemetadataworkingfolderstoasubfolderoftheworkingdirectorycalled“trash”.
Resultof3xmakemaster.bat
7d)Runthefourth.batfile,4.xprep_bags.bat.
Aftercompletingthisstep,youroriginalsubfolderswillhavethesuffix_bagappendedtothem.This
indicatesthatthebaggingstepwassuccessfullycompleted.Therewillalsobeasetoffilesendingina
stringofnumbersandtheextension.tar.bz2.ThesearethecompletedAIPsthatarereadyforuploadto
ARCHive.
Resultof4xprep_bags.bat
8)PrepareMD5manifestusingreportfromExactFileorotherprogramcapableofproducingan
MD5checksum.Thismanifestfileshouldbeatabdelimitedtextfilecontainingthechecksum
andthenameofthefinalzippedandtarredbag.IfyouaregoingtouploadmultipleAIPsina
batch,thereshouldbeonemanifestforallofthefilestobeuploaded.

Navigation menu