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="item">
83 <pz:metadata type="locallocation">
85 <xsl:when test="string-length(location)">
86 <xsl:value-of select="location"/>
88 <xsl:otherwise>PAZPAR2_NULL_VALUE</xsl:otherwise>
91 <pz:metadata type="callnumber">
93 <xsl:when test="string-length(callno)">
94 <xsl:value-of select="callno"/>
96 <xsl:otherwise>PAZPAR2_NULL_VALUE</xsl:otherwise>
99 <pz:metadata type="available">
101 <xsl:when test="string-length(available)">
102 <xsl:value-of select="available"/>
104 <xsl:otherwise>PAZPAR2_NULL_VALUE</xsl:otherwise>
107 <pz:metadata type="publicnote">
109 <xsl:when test="string-length(publicnote)">
110 <xsl:value-of select="publicnote"/>
112 <xsl:otherwise>PAZPAR2_NULL_VALUE</xsl:otherwise>
117 <xsl:template match="due">
118 <pz:metadata type="due">
119 <xsl:value-of select="."/>
123 <xsl:template match="location">
124 <pz:metadata type="locallocation">
125 <xsl:value-of select="."/>
129 <xsl:template match="callno">
130 <pz:metadata type="callnumber">
131 <xsl:value-of select="."/>
135 <xsl:template match="thumburl">
136 <pz:metadata type="thumburl">
137 <xsl:value-of select="."/>
141 <xsl:template match="score">
142 <pz:metadata type="score">
143 <xsl:value-of select="."/>
147 <xsl:template match="text()"/>