1 <?xml version=
"1.0" encoding=
"UTF-8"?>
4 xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform"
5 xmlns:
pz=
"http://www.indexdata.com/pazpar2/1.0"
6 xmlns:
marc=
"http://www.loc.gov/MARC21/slim"
7 xmlns:
str=
"http://exslt.org/strings"
8 extension-element-prefixes=
"str">
10 <xsl:import href=
"pz2-ourl-base.xsl"/>
12 <xsl:template name=
"ou-author" >
13 <!-- what to do with multiple authors??-->
14 <xsl:for-each select=
"marc:datafield[@tag='100' or @tag='700']">
15 <xsl:value-of select=
"marc:subfield[@code='a']"/>
19 <xsl:template name=
"ou-title" >
20 <!-- if 773 exists its a journal/article -->
23 <xsl:when test=
"marc:datafield[@tag='773']/marc:subfield[@code='t']">
24 <xsl:value-of select=
"marc:datafield[@tag='773']/marc:subfield[@code='t']"/>
27 <xsl:when test=
"marc:datafield[@tag='245']/marc:subfield[@code='a']">
28 <xsl:value-of select=
"marc:datafield[@tag='245']/marc:subfield[@code='a']"/>
35 <xsl:template name=
"ou-atitle" >
36 <!-- return value only if article or journal -->
37 <xsl:if test=
"marc:datafield[@tag='773']">
38 <xsl:value-of select=
"marc:datafield[@tag='245']/marc:subfield[@code='a']"/>
43 <xsl:template name=
"ou-date" >
44 <xsl:for-each select=
"marc:datafield[@tag='260']">
45 <xsl:value-of select=
"marc:subfield[@code='c']"/>
50 <xsl:template name=
"ou-isbn" >
51 <!-- if 773 exists its a journal/article -->
54 <xsl:when test=
"marc:datafield[@tag='773']/marc:subfield[@code='z']">
55 <xsl:value-of select=
"marc:datafield[@tag='773']/marc:subfield[@code='z']"/>
58 <xsl:when test=
"marc:datafield[@tag='020']/marc:subfield[@code='a']">
59 <xsl:value-of select=
"marc:datafield[@tag='020']/marc:subfield[@code='a']"/>
66 <xsl:template name=
"ou-issn" >
67 <!-- if 773 exists its a journal/article -->
70 <xsl:when test=
"marc:datafield[@tag='773']/marc:subfield[@code='x']">
71 <xsl:value-of select=
"marc:datafield[@tag='773']/marc:subfield[@code='x']"/>
74 <xsl:when test=
"marc:datafield[@tag='022']/marc:subfield[@code='a']">
75 <xsl:value-of select=
"marc:datafield[@tag='022']/marc:subfield[@code='a']"/>
82 <xsl:template name=
"ou-volume" >
83 <xsl:if test=
"marc:datafield[@tag='773']">
84 <xsl:value-of select=
"marc:datafield[@tag='773']/marc:subfield[@code='g']"/>
93 * indent-tabs-mode: nil
95 * vim: shiftwidth=2 tabstop=4 expandtab