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="."/>
35 <xsl:template match="url">
36 <pz:metadata type="electronic-url">
37 <xsl:value-of select="."/>
41 <xsl:template match="title">
42 <pz:metadata type="title">
43 <xsl:value-of select="."/>
47 <xsl:template match="author">
48 <pz:metadata type="author">
49 <xsl:value-of select="."/>
53 <xsl:template match="description">
54 <pz:metadata type="description">
55 <xsl:value-of select="."/>
59 <xsl:template match="publisher">
60 <pz:metadata type="publisher">
61 <xsl:value-of select="."/>
65 <xsl:template match="subject">
66 <pz:metadata type="subject">
67 <xsl:value-of select="."/>
71 <xsl:template match="item">
72 <pz:metadata type="locallocation">
74 <xsl:when test="string-length(location)">
75 <xsl:value-of select="location"/>
77 <xsl:otherwise>PAZPAR2_NULL_VALUE</xsl:otherwise>
80 <pz:metadata type="callnumber">
82 <xsl:when test="string-length(callno)">
83 <xsl:value-of select="callno"/>
85 <xsl:otherwise>PAZPAR2_NULL_VALUE</xsl:otherwise>
88 <pz:metadata type="available">
90 <xsl:when test="string-length(available)">
91 <xsl:value-of select="available"/>
93 <xsl:otherwise>PAZPAR2_NULL_VALUE</xsl:otherwise>
96 <pz:metadata type="publicnote">
98 <xsl:when test="string-length(publicnote)">
99 <xsl:value-of select="publicnote"/>
101 <xsl:otherwise>PAZPAR2_NULL_VALUE</xsl:otherwise>
106 <xsl:template match="due">
107 <pz:metadata type="due">
108 <xsl:value-of select="."/>
112 <xsl:template match="thumburl">
113 <pz:metadata type="thumburl">
114 <xsl:value-of select="."/>
118 <xsl:template match="score">
119 <pz:metadata type="score">
120 <xsl:value-of select="."/>
124 <xsl:template match="text()"/>