Skip to content

Commit d54e7c7

Browse files
committed
#1149 Use mode="oai-pmh" in main XSLT
1 parent 2cb1b40 commit d54e7c7

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

modules/oai/views/scripts/index/oai-pmh.xslt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@
241241
<xsl:template match="Documents" mode="ListIdentifiers">
242242
<xsl:if test="count(Opus_Document) > 0">
243243
<ListIdentifiers>
244-
<xsl:apply-templates select="Opus_Document" />
244+
<xsl:apply-templates select="Opus_Document" mode="oai-pmh"/>
245245
<xsl:choose>
246246
<xsl:when test="$totalIds > 0 and $res != ''">
247247
<resumptionToken>
@@ -269,7 +269,7 @@
269269
<xsl:template match="Documents" mode="ListRecords">
270270
<xsl:if test="count(Opus_Document) > 0">
271271
<ListRecords>
272-
<xsl:apply-templates select="Opus_Document" />
272+
<xsl:apply-templates select="Opus_Document" mode="oai-pmh"/>
273273
<xsl:choose>
274274
<xsl:when test="$totalIds > 0 and $res != ''">
275275
<resumptionToken>
@@ -290,7 +290,7 @@
290290

291291
<xsl:template match="Documents" mode="GetRecord">
292292
<GetRecord>
293-
<xsl:apply-templates select="Opus_Document" />
293+
<xsl:apply-templates select="Opus_Document" mode="oai-pmh"/>
294294
</GetRecord>
295295
</xsl:template>
296296

@@ -301,14 +301,14 @@
301301
</set>
302302
</xsl:template>
303303

304-
<xsl:template match="Opus_Document">
304+
<xsl:template match="Opus_Document" mode="oai-pmh">
305305
<xsl:choose>
306306
<xsl:when test="$oai_verb='ListIdentifiers'">
307307
<xsl:call-template name="Opus_Document_Data"/>
308308
</xsl:when>
309309
<xsl:otherwise>
310310
<record>
311-
<xsl:call-template name="Opus_Document_Data"/>
311+
<xsl:call-template name="Opus_Document_Data" />
312312
</record>
313313
</xsl:otherwise>
314314
</xsl:choose>

modules/oai/views/scripts/index/prefixes/XMetaDissPlus.xslt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959

6060
<xsl:output method="xml" indent="yes" />
6161

62-
<xsl:template match="Opus_Document" mode="metadata_prefix_mode">
62+
<xsl:template match="Opus_Document">
6363
<xMetaDiss:xMetaDiss
6464
xmlns:xMetaDiss="http://www.d-nb.de/standards/xmetadissplus/"
6565
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

modules/oai/views/scripts/index/prefixes/copy_xml.xslt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,8 @@
4343

4444
<xsl:output method="xml" indent="yes" />
4545

46-
<xsl:template match="Opus_Document" >
47-
<xsl:copy-of select="."/>
46+
<xsl:template match="Opus_Document">
47+
<xsl:copy-of select="." />
4848
</xsl:template>
4949

50-
5150
</xsl:stylesheet>
52-

0 commit comments

Comments
 (0)