ListMetadataFormats
Purpose
This function generates the identifier XML of the repository. The function can be called with a parameter (node identifier) or without.
In the case of no identifier, the module lists all the metadataformats available; lom_ieee, lom_ims and oai_dc (name reserved by OAI).
If an identifier is provided, the module lists only the metadata formats available for the specific record (the oai_dc is always provided, the the two depend on the record).
Error conditions
- badArgument -> The request includes illegal arguments or is missing required arguments.
- idDoesNotExist -> The value of the identifier argument is unknown or illegal in this repository.
- noMetadataFormats -> There are no metadata formats available for the specified item.
Sample calls
http://www.jem-thematic.net/lom_oai?verb=ListMetadataFormats http://www.jem-thematic.net/lom_oai?verb=ListMetadataFormats&identifier=oai:jem-thematic.net:node/700
Sample output
<?xml version="1.0" encoding="utf-8"?>
<OAI-PMH xmlns="http://www.openarchives.org/OAI/2.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/ http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd">
<responseDate>2008-07-15T03:04:31Z</responseDate>
<request verb="ListMetadataFormats" identifier="oai:jem-thematic.net:node/26230">http://www.jem-thematic.net/lom_oai</request>
<ListMetadataFormats>
<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>
<metadataFormat>
<metadataPrefix>lom_ims</metadataPrefix>
<schema>http://www.imsglobal.org/xsd/imsmd_v1p2p4.xsd</schema>
<metadataNamespace>http://www.imsglobal.org/xsd/imsmd_v1p2</metadataNamespace>
</metadataFormat>
</ListMetadataFormats>
</OAI-PMH>
- Version imprimable
- Ajouter un commentaire
- 756 lectures

