Page tree
Skip to end of metadata
Go to start of metadata

Scripts for converting DublinCore to MARC

Export the items you want to convert the metadata for, using the DSpace export tool.
Download and unpack the dc2marc.tar\ .

The files in this package are as follows:
clean_linefeeds.pl - formats the dublin_core.xml files in a new files named dublin_core
parse_indicators.pl - converts DCq to MARC - the result is a dspace.mrc file, containing all records

Both Perl programs are run using the m_marc.sh.script
USAGE: m_marc.sh (DIRECTORY where the dspace items were exported)

clean-before-rerun.sh - removes dublin_core files created by clean_linefeeds.pl, if for whatever reason you want to rerun the scripts.
USAGE: clean-before-rerun.sh (DIRECTORY where the dspace items were exported)

The scripts may require the installation of some Perl modules.

Developed at University of Toronto. Licensed under Creative Commons Attribution 2.5 Canada License
Contact tspace_at_tspace.library.utoronto.ca if you have any questions about the scripts.

1 Comment

  1. The only Perl module I had to install was MARC.pm which is described here http://marcpm.sourceforge.net/ , and is available here http://www.cpan.org/modules/by-module/MARC/ . Being largely ignorant of Perl I followed the installion instructions blindly but without problem.