1 <?xml version="1.0" encoding="UTF-8"?>
2 <xsl:stylesheet version="1.0"
3 xmlns="http://www.loc.gov/mods/v3"
4 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
5 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6 xmlns:id="http://indexdata.com/xml/modsExtension/"
7 xmlns:pz="http://www.indexdata.com/pazpar2/1.0"
8 x-exclude-result-prefixes="mods">
9 <xsl:output method="xml" indent="yes" />
10 <!-- <xsl:template match="text()"/> -->
12 <xsl:template match="/pz:record">
14 xsi:schemaLocation="http://www.loc.gov/mods/v3
15 http://www.loc.gov/standards/mods/v3/mods-3-4.xsd">
17 <dateIssued><xsl:value-of select="normalize-space(pz:metadata[@type='date'])"/></dateIssued>
18 <publisher><xsl:value-of select="pz:metadata[@type='publication-name']"/></publisher>
20 <placeTerm type="text">
21 <xsl:value-of select="pz:metadata[@type='publication-place']"/>
24 <xsl:if test="pz:metadata[@type='medium'] = 'book'">
25 <issuance>monographic</issuance>
29 <url usage="primary"><xsl:value-of select="pz:metadata[@type='electronic-url']"/></url>
30 <url access="preview">$THUMBURL</url>
33 <title><xsl:value-of select="pz:metadata[@type='title']"/></title>
35 <xsl:for-each select="pz:metadata[@type='author']">
36 <name type="personal">
37 <displayForm><xsl:value-of select="."/></displayForm>
39 <roleTerm type="text">author</roleTerm>
43 <xsl:for-each select="pz:metadata[@type='title-responsibility']">
44 <name type="personal">
45 <displayForm><xsl:value-of select="."/></displayForm>
48 <xsl:for-each select="pz:metadata[@type='description']">
49 <abstract type="description"><xsl:value-of select="."/></abstract>
51 <xsl:for-each select="pz:metadata[@type='subject']">
53 <topic><xsl:value-of select="."/></topic>
56 <id:relevance>$RELEVANCE</id:relevance>
57 <!-- <location> is repeatable for multiple holdings -->
62 <xsl:value-of select="pz:metadata[@type='locallocation']"/>
65 <xsl:value-of select="pz:metadata[@type='callnumber']"/>
68 <id:available><xsl:value-of select="normalize-space(pz:metadata[@type='available'])"/></id:available>
74 <relatedItem type="host">
76 <title><xsl:value-of select="pz:metadata[@type='journal-title']"/></title>
78 <title><xsl:value-of select="pz:metadata[@type='series-title']"/></title>
80 <title>$BOOKTITLE</title>
83 <detail type="volume">
84 <number><xsl:value-of select="pz:metadata[@type='volume']"/></number>
87 <number>$ISSUE</number>
90 <start>$STARTPAGE</start>
96 <form><xsl:value-of select="pz:metadata[@type='physical-format']"/></form>
97 <internetMediaType>$FORMAT</internetMediaType>
98 <extent><xsl:value-of select="pz:metadata[@type='physical-extent']"/></extent>
99 </physicalDescription>
100 <id:citation>$CITATION</id:citation>
101 <identifier type="issn">$ISSN</identifier>
102 <identifier type="isbn"><xsl:value-of select="pz:metadata[@type='isbn']"/></identifier>
103 <identifier><xsl:value-of select="pz:metadata[@type='id']"/></identifier>
104 <accessCondition type="copyright">$COPYRIGHT</accessCondition>
105 <accessCondition type="copyrightabstract">$COPYRIGHTABSTRACT</accessCondition>
106 <language usage="primary">
107 <languageTerm type="text">$LANGUAGEITEM</languageTerm>
109 <language objectPart="summary">
110 <languageTerm type="text">$LANGUAGEABSTRACT</languageTerm>