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:template match="/record">
19 <xsl:apply-templates/>
24 The elements mapped in the following clauses should be kept more
25 or less in sync with those named in builder/templates/search.cft
26 in the "cf" git module.
29 <xsl:template match="date">
30 <pz:metadata type="publication-date">
31 <xsl:value-of select="."/>
33 <pz:metadata type="date">
34 <xsl:value-of select="."/>
38 <xsl:template match="url">
39 <pz:metadata type="electronic-url">
40 <xsl:value-of select="."/>
44 <xsl:template match="title">
45 <pz:metadata type="title">
46 <xsl:value-of select="."/>
50 <xsl:template match="author">
51 <pz:metadata type="author">
52 <xsl:value-of select="."/>
56 <xsl:template match="description">
57 <pz:metadata type="description">
58 <xsl:value-of select="."/>
62 <xsl:template match="publisher">
63 <pz:metadata type="publisher">
64 <xsl:value-of select="."/>
68 <xsl:template match="subject">
69 <pz:metadata type="subject">
70 <xsl:value-of select="."/>
74 <xsl:template match="item">
75 <pz:metadata type="locallocation">
77 <xsl:when test="string-length(location)">
78 <xsl:value-of select="location"/>
80 <xsl:otherwise>PAZPAR2_NULL_VALUE</xsl:otherwise>
83 <pz:metadata type="callnumber">
85 <xsl:when test="string-length(callno)">
86 <xsl:value-of select="callno"/>
88 <xsl:otherwise>PAZPAR2_NULL_VALUE</xsl:otherwise>
91 <pz:metadata type="available">
93 <xsl:when test="string-length(available)">
94 <xsl:value-of select="available"/>
96 <xsl:otherwise>PAZPAR2_NULL_VALUE</xsl:otherwise>
99 <pz:metadata type="publicnote">
101 <xsl:when test="string-length(publicnote)">
102 <xsl:value-of select="publicnote"/>
104 <xsl:otherwise>PAZPAR2_NULL_VALUE</xsl:otherwise>
109 <xsl:template match="due">
110 <pz:metadata type="due">
111 <xsl:value-of select="."/>
115 <xsl:template match="location">
116 <pz:metadata type="locallocation">
117 <xsl:value-of select="."/>
121 <xsl:template match="callno">
122 <pz:metadata type="callnumber">
123 <xsl:value-of select="."/>
127 <xsl:template match="thumburl">
128 <pz:metadata type="thumburl">
129 <xsl:value-of select="."/>
133 <xsl:template match="score">
134 <pz:metadata type="score">
135 <xsl:value-of select="."/>
139 <xsl:template match="text()"/>