version="1.0"
encoding="UTF-8"/>
+ <xsl:param name="medium" />
+
<xsl:template match="/record">
<pz:record>
+ <pz:metadata type="medium">
+ <xsl:value-of select="$medium" />
+ </pz:metadata>
<xsl:apply-templates/>
</pz:record>
</xsl:template>
<pz:metadata type="publication-date">
<xsl:value-of select="."/>
</pz:metadata>
+ <pz:metadata type="date">
+ <xsl:value-of select="."/>
+ </pz:metadata>
</xsl:template>
<xsl:template match="url">
<pz:metadata type="title">
<xsl:value-of select="."/>
</pz:metadata>
+ <pz:metadata type="title-complete">
+ <xsl:value-of select="." />
+ </pz:metadata>
</xsl:template>
<xsl:template match="author">
</pz:metadata>
</xsl:template>
- <xsl:template match="available">
- <pz:metadata type="available">
+ <xsl:template match="isbn">
+ <pz:metadata type="isbn">
+ <xsl:value-of select="."/>
+ </pz:metadata>
+ </xsl:template>
+
+ <xsl:template match="issn">
+ <pz:metadata type="issn">
+ <xsl:value-of select="."/>
+ </pz:metadata>
+ </xsl:template>
+
+ <xsl:template match="journaltitle">
+ <pz:metadata type="journal-title">
+ <xsl:value-of select="."/>
+ </pz:metadata>
+ </xsl:template>
+
+ <xsl:template match="volume">
+ <pz:metadata type="volume">
+ <xsl:value-of select="."/>
+ </pz:metadata>
+ </xsl:template>
+
+ <xsl:template match="issue">
+ <pz:metadata type="issue">
<xsl:value-of select="."/>
</pz:metadata>
</xsl:template>
+ <xsl:template match="page">
+ <pz:metadata type="page">
+ <xsl:value-of select="."/>
+ </pz:metadata>
+ </xsl:template>
+
+ <xsl:template match="endpage">
+ <pz:metadata type="endpage">
+ <xsl:value-of select="."/>
+ </pz:metadata>
+ </xsl:template>
+
+ <xsl:template match="item">
+ <pz:metadata type="locallocation">
+ <xsl:choose>
+ <xsl:when test="string-length(location)">
+ <xsl:value-of select="location"/>
+ </xsl:when>
+ <xsl:otherwise>PAZPAR2_NULL_VALUE</xsl:otherwise>
+ </xsl:choose>
+ </pz:metadata>
+ <pz:metadata type="callnumber">
+ <xsl:choose>
+ <xsl:when test="string-length(callno)">
+ <xsl:value-of select="callno"/>
+ </xsl:when>
+ <xsl:otherwise>PAZPAR2_NULL_VALUE</xsl:otherwise>
+ </xsl:choose>
+ </pz:metadata>
+ <pz:metadata type="available">
+ <xsl:choose>
+ <xsl:when test="string-length(available)">
+ <xsl:value-of select="available"/>
+ </xsl:when>
+ <xsl:otherwise>PAZPAR2_NULL_VALUE</xsl:otherwise>
+ </xsl:choose>
+ </pz:metadata>
+ <pz:metadata type="publicnote">
+ <xsl:choose>
+ <xsl:when test="string-length(publicnote)">
+ <xsl:value-of select="publicnote"/>
+ </xsl:when>
+ <xsl:otherwise>PAZPAR2_NULL_VALUE</xsl:otherwise>
+ </xsl:choose>
+ </pz:metadata>
+ </xsl:template>
+
<xsl:template match="due">
<pz:metadata type="due">
<xsl:value-of select="."/>
</xsl:template>
<xsl:template match="location">
- <pz:metadata type="location">
+ <pz:metadata type="locallocation">
<xsl:value-of select="."/>
</pz:metadata>
</xsl:template>
<xsl:template match="callno">
- <pz:metadata type="callno">
+ <pz:metadata type="callnumber">
<xsl:value-of select="."/>
</pz:metadata>
</xsl:template>
</pz:metadata>
</xsl:template>
+ <xsl:template match="id">
+ <pz:metadata type="id">
+ <xsl:value-of select="."/>
+ </pz:metadata>
+ </xsl:template>
+
+ <!-- Fields produced by Connectors but not yet supported here:
+ ### available
+ ### citation
+ ### medium (overlooked in favour of XSLT parameter)
+ ### relevance
+ ### holding (but isn't that a container like "item"?
+ ### booktitle
+ ### copyright
+ ### copyrightabstract
+ ### pubtype
+ ### doctype
+ ### extent
+ ### format
+ ### languageitem
+ ### languageabstract
+ ### permalink
+ -->
+
<xsl:template match="text()"/>
</xsl:stylesheet>