Obey pz:extra_args for each search
[pazpar2-moved-to-github.git] / etc / dc.xsl
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3
4     This stylesheet expects oai/dc records
5 -->
6 <xsl:stylesheet
7     version="1.0"
8     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
9     xmlns:pz="http://www.indexdata.com/pazpar2/1.0"
10     xmlns:dc="http://purl.org/dc/elements/1.1/"
11     xmlns:dcterms="http://purl.org/dc/terms/">
12
13  <xsl:output indent="yes"
14         method="xml"
15         version="1.0"
16         encoding="UTF-8"/>
17
18   <xsl:param name="medium" />
19
20   <xsl:template match="/*">
21     <pz:record>
22
23       <pz:metadata type="id">
24         <xsl:value-of select="dc:identifier"/>
25       </pz:metadata>
26
27       <xsl:for-each select="dc:title">
28         <pz:metadata type="title">
29           <xsl:value-of select="."/>
30         </pz:metadata>
31       </xsl:for-each>
32
33       <xsl:for-each select="dc:date">
34         <pz:metadata type="date">
35           <xsl:value-of select="."/>
36               </pz:metadata>
37       </xsl:for-each>
38
39       <xsl:for-each select="dc:subject">
40         <pz:metadata type="subject">
41                 <xsl:value-of select="."/>
42               </pz:metadata>
43       </xsl:for-each>
44
45       <xsl:for-each select="dc:creator">
46               <pz:metadata type="author">
47           <xsl:value-of select="."/>
48               </pz:metadata>
49       </xsl:for-each>
50
51       <xsl:for-each select="dc:description">
52         <pz:metadata type="description">
53                 <xsl:value-of select="."/>
54               </pz:metadata>
55       </xsl:for-each>
56
57       <xsl:for-each select="dc:identifier">
58         <pz:metadata type="electronic-url">
59                 <xsl:value-of select="."/>
60               </pz:metadata>
61       </xsl:for-each>
62
63       <xsl:for-each select="dc:type">
64         <pz:metadata type="medium">
65                 <xsl:value-of select="."/>
66               </pz:metadata>
67       </xsl:for-each>
68
69       <xsl:for-each select="dcterms:bibliographicCitation">
70         <pz:metadata type="citation">
71           <xsl:value-of select="."/>
72         </pz:metadata>
73       </xsl:for-each>
74
75       <pz:metadata type="medium">
76         <xsl:value-of select="$medium" />
77       </pz:metadata>
78
79     </pz:record>
80   </xsl:template>
81
82   <xsl:template match="text()"/>
83
84 </xsl:stylesheet>