Skip to content

Metadata manipulator: AddCdmMigratedFromUrl

Marcus Emmanuel Barnes edited this page May 18, 2016 · 3 revisions

Overview

This metadata manipulator adds the CONTENTdm URL for the object to an <identifier> element with a type attribute with the value 'uri' and an invalid attribute with the value 'yes'.

Toolchains

This metadata manipulator applies to all CONTENTdm toolchains that output MODS documents.

Configuration

To register this manipulator in your toolchain, add the following line to the "[MANIPULATORS]" section of your .ini file:

metadatamanipulators[] = "AddCdmMigratedFromUrl|http://content.lib.sfu.ca"

Also note that the mappings file must contain a row that adds the following element to your MODS: <identifier type='uri' invalid='yes'/>, e.g.,

null5,<identifier type='uri' invalid='yes'/>

Parameters

This manipulator takes one parameter, the URL of your CONTENTdm server, including the leading 'http://' or 'https://' and including (if necessary) a port number:

metadatamanipulators[] = "AddCdmMigratedFromUrl|http://content.lib.sfu.ca:8000"

Functionality

The purpose of this metadata manipulator is to add the CONTENTdm URL for the object to an <identifier> element with a type attribute with the value 'uri' and an invalid attribute with the value 'yes'.

Clone this wiki locally