mik icon indicating copy to clipboard operation
mik copied to clipboard

Provide a utility script to generate a mappings file from a sample MODS XML file

Open mjordan opened this issue 8 years ago • 0 comments

Given a simple MODS XML file like:

<?xml version="1.0"?>
<mods xmlns="http://www.loc.gov/mods/v3" xmlns:mods="http://www.loc.gov/mods/v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
  <titleInfo>
    <title>Amsterdam waterfront</title>
  </titleInfo>
  <name type="personal">
    <namePart>Jordan, Mark</namePart>
    <role>
      <roleTerm type="text">photographer</roleTerm>
    </role>
  </name>
  <originInfo>
    <dateCreated encoding="w3cdtf" keyDate="yes">2013-01-17</dateCreated>
  </originInfo>
  <identifier type="local" displayLabel="Local identifier">image04</identifier>
  <note>Amsterdam waterfront on an overcast day.</note>
  <genre authority="marcgt">picture</genre>
  <typeOfResource>still image</typeOfResource>
  <physicalDescription>
    <digitalOrigin>born digital</digitalOrigin>
  </physicalDescriptio
</mods>

it should be possible to use an XSLT stylesheet, for example, to produce a mappings file.

mjordan avatar Sep 06 '16 14:09 mjordan