<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (C) 1995-2006
+ Index Data ApS
+
+This file is part of the Zebra server.
+
+Zebra is free software; you can redistribute it and/or modify it under
+the terms of the GNU General Public License as published by the Free
+Software Foundation; either version 2, or (at your option) any later
+version.
+
+Zebra is distributed in the hope that it will be useful, but WITHOUT ANY
+WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+for more details.
+
+You should have received a copy of the GNU General Public License
+along with Zebra; see the file LICENSE.zebra. If not, write to the
+Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
+02111-1307, USA.
+-->
+
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:z="http://indexdata.dk/zebra/xslt/1"
+ xmlns:z="http://indexdata.com/zebra-2.0"
xmlns:marc="http://www.loc.gov/MARC21/slim"
version="1.0">
- <!-- <xsl:include href="MARC21slimUtils.xsl"/> -->
<xsl:output indent="yes" method="xml" version="1.0" encoding="UTF-8"/>
<!-- disable all default text node output -->
</xsl:choose>
</xsl:variable>
- <z:record id="{$controlField001}" type="update">
+ <z:record z:id="{$controlField001}" type="update">
+
+
<!-- <xsl:attribute name="id"></xsl:attribute> -->
<!-- <xsl:attribute name="type">update</xsl:attribute> -->
<!-- <xsl:attribute name="rank"></xsl:attribute> -->
+
<xsl:call-template name="bib1_rules"/>
</z:record>
</xsl:template>
-->
<xsl:template name="Abstract">
<xsl:for-each select="marc:datafield[@tag='520']">
- <z:index name="Abstract" type="w">
+ <z:index name="Abstract:w">
<xsl:value-of select="."/>
</z:index>
</xsl:for-each>
| marc:datafield[@tag='800']
| marc:datafield[@tag='810']
| marc:datafield[@tag='811']">
- <z:index name="Author" type="w">
+ <z:index name="Author:w">
<xsl:value-of select="."/>
</z:index>
</xsl:for-each>
<xsl:for-each select="marc:datafield[@tag='100']">
- <z:index name="Author" type="p">
+ <z:index name="Author:p">
<xsl:value-of select="marc:subfield[@code='a']"/>
<xsl:text> </xsl:text>
<xsl:value-of select="marc:subfield[@code='d']"/>
<xsl:template name="Author-title">
<xsl:if test="marc:datafield[@tag='100']
and marc:datafield[@tag='245']">
- <z:index name="Author-title" type="p">
+ <z:index name="Author-title:p">
<xsl:value-of
select="marc:datafield[@tag='100']/marc:subfield[@code='a']"/>
<xsl:text> </xsl:text>
-->
<xsl:template name="Author-name-corporate">
<xsl:for-each select="marc:datafield[@tag='110']">
- <z:index name="Author-name-corporate" type="w">
+ <z:index name="Author-name-corporate:w">
<xsl:value-of select="."/>
</z:index>
</xsl:for-each>
-->
<xsl:template name="Author-name-conference">
<xsl:for-each select="marc:datafield[@tag='111']">
- <z:index name="Author-name-conference" type="w">
+ <z:index name="Author-name-conference:w">
<xsl:value-of select="."/>
</z:index>
</xsl:for-each>
<xsl:template name="Author-name-personal">
<xsl:for-each select="marc:datafield[@tag='100']">
<xsl:for-each select="marc:subfield[@code='a']">
- <z:index name="Author-name-personal" type="w">
+ <z:index name="Author-name-personal:w">
<xsl:value-of select="."/>
</z:index>
</xsl:for-each>
</xsl:for-each>
<xsl:for-each select="marc:datafield[@tag='100']">
- <z:index name="Author-name-personal" type="p">
+ <z:index name="Author-name-personal:p">
<xsl:value-of select="marc:subfield[@code='a']"/>
<xsl:text> </xsl:text>
<xsl:value-of select="marc:subfield[@code='d']"/>
-->
<xsl:template name="ISBN">
<xsl:for-each select="marc:datafield[@tag='020']/marc:subfield[@code='a']">
- <z:index name="ISBN" type="n">
+ <z:index name="ISBN:n">
<xsl:value-of select="."/>
</z:index>
</xsl:for-each>
-->
<xsl:template name="ISSN">
<xsl:for-each select="marc:datafield[@tag='022']">
- <z:index name="ISSN" type="n">
+ <z:index name="ISSN:n">
<xsl:value-of select="."/>
</z:index>
</xsl:for-each>
|marc:datafield[@tag='655']
|marc:datafield[@tag='656']
|marc:datafield[@tag='657']">
- <z:index name="Subject-heading" type="w">
+ <z:index name="Subject-heading:w">
<xsl:value-of select="."/>
</z:index>
</xsl:for-each>
|marc:datafield[@tag='650']
|marc:datafield[@tag='651']
|marc:datafield[@tag='653']">
- <z:index name="Subject-heading" type="w">
+ <z:index name="Subject-heading:w">
<xsl:value-of select="."/>
</z:index>
</xsl:for-each>
-->
<xsl:template name="Title">
<xsl:for-each select="marc:datafield[@tag='245']/marc:subfield[@code='a']">
- <z:index name="Title" type="w">
+ <z:index name="Title:w">
<xsl:value-of select="."/>
</z:index>
</xsl:for-each>