1 <?xml version="1.0" encoding="UTF-8"?>
3 This stylesheet expects Connector Frameworks records
7 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
8 xmlns:pz="http://www.indexdata.com/pazpar2/1.0"
9 xmlns:dc="http://purl.org/dc/elements/1.1/"
10 xmlns:siebel="http://loc.gov/siebel/elements/1.0/" >
12 <xsl:output indent="yes"
17 <xsl:param name="medium" />
19 <xsl:template match="/record">
21 <pz:metadata type="medium">
22 <xsl:value-of select="$medium" />
24 <xsl:apply-templates/>
29 The elements mapped in the following clauses should be kept more
30 or less in sync with those named in builder/templates/search.cft
31 in the "cf" git module.
34 <xsl:template match="date">
35 <pz:metadata type="publication-date">
36 <xsl:value-of select="."/>
38 <pz:metadata type="date">
39 <xsl:value-of select="."/>
43 <xsl:template match="url">
44 <pz:metadata type="electronic-url">
45 <xsl:value-of select="."/>
49 <xsl:template match="title">
50 <pz:metadata type="title">
51 <xsl:value-of select="."/>
53 <pz:metadata type="title-complete">
54 <xsl:value-of select="." />
58 <xsl:template match="author">
59 <pz:metadata type="author">
60 <xsl:value-of select="."/>
64 <xsl:template match="description">
65 <pz:metadata type="description">
66 <xsl:value-of select="."/>
70 <xsl:template match="publisher">
71 <pz:metadata type="publisher">
72 <xsl:value-of select="."/>
76 <xsl:template match="subject">
77 <pz:metadata type="subject">
78 <xsl:value-of select="."/>
82 <xsl:template match="isbn">
83 <pz:metadata type="isbn">
84 <xsl:value-of select="."/>
88 <xsl:template match="issn">
89 <pz:metadata type="issn">
90 <xsl:value-of select="."/>
94 <xsl:template match="journaltitle">
95 <pz:metadata type="journal-title">
96 <xsl:value-of select="."/>
100 <xsl:template match="volume">
101 <pz:metadata type="volume">
102 <xsl:value-of select="."/>
106 <xsl:template match="issue">
107 <pz:metadata type="issue">
108 <xsl:value-of select="."/>
112 <xsl:template match="item">
113 <pz:metadata type="locallocation">
115 <xsl:when test="string-length(location)">
116 <xsl:value-of select="location"/>
118 <xsl:otherwise>PAZPAR2_NULL_VALUE</xsl:otherwise>
121 <pz:metadata type="callnumber">
123 <xsl:when test="string-length(callno)">
124 <xsl:value-of select="callno"/>
126 <xsl:otherwise>PAZPAR2_NULL_VALUE</xsl:otherwise>
129 <pz:metadata type="available">
131 <xsl:when test="string-length(available)">
132 <xsl:value-of select="available"/>
134 <xsl:otherwise>PAZPAR2_NULL_VALUE</xsl:otherwise>
137 <pz:metadata type="publicnote">
139 <xsl:when test="string-length(publicnote)">
140 <xsl:value-of select="publicnote"/>
142 <xsl:otherwise>PAZPAR2_NULL_VALUE</xsl:otherwise>
147 <xsl:template match="due">
148 <pz:metadata type="due">
149 <xsl:value-of select="."/>
153 <xsl:template match="location">
154 <pz:metadata type="locallocation">
155 <xsl:value-of select="."/>
159 <xsl:template match="callno">
160 <pz:metadata type="callnumber">
161 <xsl:value-of select="."/>
165 <xsl:template match="thumburl">
166 <pz:metadata type="thumburl">
167 <xsl:value-of select="."/>
171 <xsl:template match="score">
172 <pz:metadata type="score">
173 <xsl:value-of select="."/>
177 <xsl:template match="text()"/>