Skip to content

Instantly share code, notes, and snippets.

<!-- For Prefix -->
<?xml version="1.0" encoding="UTF-8"?>
<modsCollection xmlns="http://www.loc.gov/mods/v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-4.xsd">
<!-- For Row Template -->
<mods xmlns="http://www.loc.gov/mods/v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-4.xsd">
<name>
<namePart>{{jsonize(cells["author 1"].value).replace('"', '')}}</namePart>
@krebeck
krebeck / DCPLmodstemplate.xml
Last active October 1, 2018 17:34
A template for converting DCPL's DC into MODS for Islandora migration
<!-- For Prefix -->
<?xml version="1.0" encoding="UTF-8"?>
<modsCollection xmlns="http://www.loc.gov/mods/v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-4.xsd">
<!-- For Row Template -->
<mods xmlns="http://www.loc.gov/mods/v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-4.xsd">
<titleInfo>
<title>{{jsonize(cells["Title"].value).replace('"', '')}}</title>
@krebeck
krebeck / DPLAtemplate.xml
Last active March 1, 2022 19:38
template for outputting OpenRefine document in DPLA metadata
<!-- For Prefix -->
<?xml version="1.0" encoding="UTF-8"?>
<mapCollection xmlns="http://digital.library.wisc.edu/1711.dl/DC-DPLA" xmlns:dc_qual="http://digital.library.wisc.edu/1711.dl/DC-DPLA" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:dct="http://purl.org/dc/terms/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:edm="http://www.europeana.eu/schemas/edm/" xsi:schemaLocation="http://digital.library.wisc.edu/1711.dl/DC-DPLA http://digital.library.wisc.edu/1711.dl/DC-DPLA-Schema">
<!-- For Row Template -->
<metadata>
<dc_qual:qualifieddc xmlns="http://digital.library.wisc.edu/1711.dl/DC-DPLA" xmlns:dc_qual="http://digital.library.wisc.edu/1711.dl/DC-DPLA" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:dct="http://purl.org/dc/terms/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:edm="http://www.europeana.eu/schemas/edm/" xsi:schemaLocation="http://digital.library.wisc.edu/1711.dl/DC-
@krebeck
krebeck / modstemplate.xml
Last active March 1, 2022 19:38 — forked from sallain/modstemplate.xml
MODS Template for Open Refine
<!-- For Prefix -->
<?xml version="1.0" encoding="UTF-8"?>
<modsCollection xmlns="http://www.loc.gov/mods/v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-4.xsd">
<!-- For Row Template -->
<mods xmlns="http://www.loc.gov/mods/v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-4.xsd">
<titleInfo>
<title>{{jsonize(cells["name_of_title_column"].value).replace('"', '')}}</title>