Merge pull request #1205 from helix84/DS-2934-add-local-metadata-namespace

DS-2934 Add an empty "local" metadata namespace
This commit is contained in:
Mark H. Wood
2016-01-20 14:46:41 -05:00
2 changed files with 36 additions and 0 deletions

View File

@@ -62,6 +62,7 @@ public class DatabaseRegistryUpdater implements FlywayCallback
log.info("Updating Metadata Registries based on metadata type configs in " + base);
MetadataImporter.loadRegistry(base + "dublin-core-types.xml", true);
MetadataImporter.loadRegistry(base + "dcterms-types.xml", true);
MetadataImporter.loadRegistry(base + "local-types.xml", true);
MetadataImporter.loadRegistry(base + "eperson-types.xml", true);
MetadataImporter.loadRegistry(base + "sword-metadata.xml", true);

View File

@@ -0,0 +1,35 @@
<?xml version="1.0"?>
<!--
- local-types.xml
-
- An empty registry for instance-specific, local metadata. Any non-standard
- metadata fields should be added here to avoid polluting the standard
- namespaces.
-
-->
<dspace-dc-types>
<dspace-header>
<title>Registry of instance-specific metadata fields</title>
<contributor.author>Ivan Mas&#xE1;r</contributor.author>
<contributor.editor>$Author$</contributor.editor>
<date.created>$Date$</date.created>
<description>$Log$</description>
<description.version>$Revision$</description.version>
</dspace-header>
<dc-schema>
<name>local</name>
<namespace>http://dspace.org/namespace/local/</namespace>
</dc-schema>
<!--
<dc-type>
<schema>local</schema>
<element></element>
<qualifier></qualifier>
<scope_note>Description of example metadata field.</scope_note>
</dc-type>
-->
</dspace-dc-types>