projects
/
pazpar2-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed target_timeout from parameters
[pazpar2-moved-to-github.git]
/
etc
/
marc21.xsl
diff --git
a/etc/marc21.xsl
b/etc/marc21.xsl
index
fa57d4d
..
72e7c01
100644
(file)
--- a/
etc/marc21.xsl
+++ b/
etc/marc21.xsl
@@
-1,16
+1,18
@@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
-<!-- $Id: marc21.xsl,v 1.15 2007-07-16 15:21:29 adam Exp $ -->
+<!-- $Id: marc21.xsl,v 1.21 2007-08-28 16:47:30 quinn Exp $ -->
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:pz="http://www.indexdata.com/pazpar2/1.0"
xmlns:marc="http://www.loc.gov/MARC21/slim">
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:pz="http://www.indexdata.com/pazpar2/1.0"
xmlns:marc="http://www.loc.gov/MARC21/slim">
+
<xsl:output indent="yes" method="xml" version="1.0" encoding="UTF-8"/>
<!-- Extract metadata from MARC21/USMARC
http://www.loc.gov/marc/bibliographic/ecbdhome.html
-->
<xsl:output indent="yes" method="xml" version="1.0" encoding="UTF-8"/>
<!-- Extract metadata from MARC21/USMARC
http://www.loc.gov/marc/bibliographic/ecbdhome.html
-->
+ <xsl:include href="pz2-ourl-marc21.xsl" />
<xsl:template match="/marc:record">
<xsl:variable name="title_medium" select="marc:datafield[@tag='245']/marc:subfield[@code='h']"/>
<xsl:template match="/marc:record">
<xsl:variable name="title_medium" select="marc:datafield[@tag='245']/marc:subfield[@code='h']"/>
@@
-51,6
+53,7
@@
<xsl:value-of select="$medium"/>
</xsl:attribute>
<xsl:value-of select="$medium"/>
</xsl:attribute>
+
<xsl:for-each select="marc:controlfield[@tag='001']">
<pz:metadata type="id">
<xsl:value-of select="."/>
<xsl:for-each select="marc:controlfield[@tag='001']">
<pz:metadata type="id">
<xsl:value-of select="."/>
@@
-199,9
+202,17
@@
</xsl:for-each>
<xsl:for-each select="marc:datafield[@tag='650' or @tag='653']">
</xsl:for-each>
<xsl:for-each select="marc:datafield[@tag='650' or @tag='653']">
- <pz:metadata type="subject">
+ <pz:metadata type="subject">
<xsl:value-of select="marc:subfield[@code='a']"/>
</pz:metadata>
<xsl:value-of select="marc:subfield[@code='a']"/>
</pz:metadata>
+ <pz:metadata type="subject-long">
+ <xsl:for-each select="marc:subfield">
+ <xsl:if test="position() > 1">
+ <xsl:text>, </xsl:text>
+ </xsl:if>
+ <xsl:value-of select="."/>
+ </xsl:for-each>
+ </pz:metadata>
</xsl:for-each>
<xsl:for-each select="marc:datafield[@tag='856']">
</xsl:for-each>
<xsl:for-each select="marc:datafield[@tag='856']">
@@
-240,7
+251,15
@@
<xsl:value-of select="$fulltext_b"/>
</pz:metadata>
</xsl:if>
<xsl:value-of select="$fulltext_b"/>
</pz:metadata>
</xsl:if>
+
+ <xsl:if test="$open_url_resolver">
+ <pz:metadata type="open-url">
+ <xsl:call-template name="insert-md-openurl" />
+ </pz:metadata>
+ </xsl:if>
+
</pz:record>
</pz:record>
+
</xsl:template>
</xsl:stylesheet>
</xsl:template>
</xsl:stylesheet>