Metadata Collections & QA

XML schema & namespaces for ListMetadataFormat response

By default, the DLESE OAI software does not list the XML schema or namespace information on the ListMetadataFormat response. To add the XML schema and namespace information (needs to be there to be harvested by NSDL), do the following:

  1. Edit the file named ListMetadataFormats.jsp found in the .../webapps/oai/oai_requests directory of your installation (save a copy first before editing so you can revert back if you need to)
  2. Delete all text *between* the line that reads '<%-- End OAI head tag --%>' and the line that reads '<bean:write name="rf" property="rootCloseTag" filter="false"/>' and replace it with the desired response including the XML schema and namespace elements.

For example the DLESE Program Center (DPC) uses the snippet below in the ListMetadataFormats.jsp file. After editing, be sure to validate the response via the Provider explorer page. The XML returned must conform OAI's response format for the ListMetadataFormats request.

<%-- End OAI head tag --%>
<ListMetadataFormats>
<metadataFormat>
<metadataPrefix>briefmeta</metadataPrefix>
<schema>http://www.dlese.org/Metadata/briefmeta/0.1.01/brief-record.xsd</schema>
<metadataNamespace>http://adn.dlese.org</metadataNamespace>
</metadataFormat>

<metadataFormat>
<metadataPrefix>nsdl_dc</metadataPrefix>
<schema>http://ns.nsdl.org/schemas/nsdl_dc/nsdl_dc_v1.02.xsd</schema>
<metadataNamespace>http://ns.nsdl.org/nsdl_dc_v1.02/</metadataNamespace>
</metadataFormat>

<metadataFormat>
<metadataPrefix>adn</metadataPrefix>
<schema>http://www.dlese.org/Metadata/adn-item/0.6.50/record.xsd</schema>
<metadataNamespace>http://adn.dlese.org</metadataNamespace>
</metadataFormat>

<metadataFormat>
<metadataPrefix>oai_dc</metadataPrefix>
<schema>http://www.openarchives.org/OAI/2.0/oai_dc.xsd</schema>
<metadataNamespace>http://www.openarchives.org/OAI/2.0/oai_dc/</metadataNamespace>
</metadataFormat>
</ListMetadataFormats>

<bean:write name="rf" property="rootCloseTag" filter="false"/>

Top

Last updated: 01-31-05