Migrating from ContentDM™Resource TypesIf you are migrating single image files from ContentDM to SobekCM, you should be able to use the Spreadsheet importer to easily create the new resources within SobekCM. Then, you need only write a small script to move the images into folders named with the new BibID_VID and drop those into the SobekCM Builder. This gets somewhat more complicated when working with complex multi-page documents and supplementary materials. Migration NotesWhat follows are notes regarding a migration from ContentDM to SobekCM in October of 2013. These notes are posted in the hopes that this will make future migrations simpler. Having never had a collection in ContentDM, there is a very good chance that there may be a better way. If you know of anything to make this process easier, please do not hesitate to contact me at Mark.V.Sullivan at Gmail.com. Preparing the collection folders for import
All of this work listed above was done by hand, although it would be very simple to automate much of this with simple scripting. Preparing the collection-level metadata for processing
Process the files and metadata
C# CodeThe code below essentially follows the steps listed above for the final processing of the metadata and images. // Read the prepared Excel spreadsheet into a DataTable ExcelBibliographicReader xlsReader = new ExcelBibliographicReader(); xlsReader.Filename = "Complete.xls"; xlsReader.Sheet = xlsReader.GetExcelSheetNames("Complete.xlsx")[0]; DataTable importTbl = xlsReader.Check_Source(); // Check that all files exist ContentDM_Importer contentDm = new ContentDM_Importer(importTbl, @"\\ad.ufl.edu\....\College\source"); contentDm.Verify_Resource_Files_Exist(); Console.WriteLine(); // Since the text is in the spreadsheet, write out the text files for // indexing within Sobek int text_files_written = contentDm.Add_Text_Files(); Console.WriteLine("Wrote " + text_files_written + " text files"); Console.WriteLine(); // Process all the CPD files referenced int cpd_files_handled = contentDm.Process_CPD_Files(); Console.WriteLine(cpd_files_handled + " CPD files handled"); Console.WriteLine(); // Create the METS packages ready for SobekCM contentDm.Create_SobekCM_METS(@"\\ad.ufl.edu\....\College\ready\"); Console.WriteLine("COMPLETE"); Console.ReadLine(); This code uses the classes found in the ZIP file below, as well as the SobekCM_Resource_Object library, which is available in the SobekCM source code from our GitHub site. Download ContentDM_Importer C# class. TrademarksContentDM is trademarked by OCLC Online Computer Library Center, Inc. and its affiliates Photoshop is trademarked by Adobe Systems Incorporated. |