Improve OAI Server MARC21 and UNIMARC XSL
Dublin Core schema name space was repeated for each field as attribute rather than at <oai_dc:dc> level. This reduces significantly the size of OAI server responses. Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
This commit is contained in:
parent
816dbb2420
commit
04cafc1427
2 changed files with 10 additions and 2 deletions
|
@ -16,7 +16,11 @@
|
|||
</oai_dc:dcCollection>
|
||||
</xsl:if>
|
||||
<xsl:if test="marc:record">
|
||||
<oai_dc:dc xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
|
||||
<oai_dc:dc
|
||||
xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
|
||||
<xsl:apply-templates/>
|
||||
</oai_dc:dc>
|
||||
</xsl:if>
|
||||
|
|
|
@ -20,7 +20,11 @@
|
|||
</oai_dc:dcCollection>
|
||||
</xsl:if>
|
||||
<xsl:if test="marc:record">
|
||||
<oai_dc:dc xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
|
||||
<oai_dc:dc
|
||||
xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
|
||||
<xsl:apply-templates/>
|
||||
</oai_dc:dc>
|
||||
</xsl:if>
|
||||
|
|
Loading…
Reference in a new issue