1 <?xml version="1.0" encoding="UTF-8"?>
2 <xsl:stylesheet version="1.0" xmlns:marc="http://www.loc.gov/MARC21/slim" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="marc">
3 <xsl:import href="MARC21slimUtils.xsl"/>
4 <xsl:output method="xml" indent="yes"/>
6 <xsl:template match="/">
10 <xsl:template match="marc:record">
11 <xsl:variable name="leader" select="marc:leader"/>
12 <xsl:variable name="leader6" select="substring($leader,7,1)"/>
13 <xsl:variable name="leader7" select="substring($leader,8,1)"/>
14 <xsl:variable name="controlField008" select="marc:controlfield[@tag=008]"/>
17 <xsl:for-each select="marc:datafield[@tag=245]">
19 <xsl:call-template name="subfieldSelect">
20 <xsl:with-param name="codes">abfghk</xsl:with-param>
26 <xsl:for-each select="marc:datafield[@tag=100]|marc:datafield[@tag=110]|marc:datafield[@tag=111]|marc:datafield[@tag=700]|marc:datafield[@tag=710]|marc:datafield[@tag=711]|marc:datafield[@tag=720]">
28 <xsl:value-of select="."/>
33 <xsl:if test="$leader7='c'">
34 <xsl:attribute name="collection">yes</xsl:attribute>
37 <xsl:if test="$leader6='d' or $leader6='f' or $leader6='p' or $leader6='t'">
38 <xsl:attribute name="manuscript">yes</xsl:attribute>
42 <xsl:when test="$leader6='a' or $leader6='t'">text</xsl:when>
43 <xsl:when test="$leader6='e' or $leader6='f'">cartographic</xsl:when>
44 <xsl:when test="$leader6='c' or $leader6='d'">notated music</xsl:when>
45 <xsl:when test="$leader6='i' or $leader6='j'">sound recording</xsl:when>
46 <xsl:when test="$leader6='k'">still image</xsl:when>
47 <xsl:when test="$leader6='g'">moving image</xsl:when>
48 <xsl:when test="$leader6='r'">three dimensional object</xsl:when>
49 <xsl:when test="$leader6='m'">software, multimedia</xsl:when>
50 <xsl:when test="$leader6='p'">mixed material</xsl:when>
54 <xsl:for-each select="marc:datafield[@tag=655]">
56 <xsl:value-of select="."/>
60 <xsl:for-each select="marc:datafield[@tag=260]">
62 <xsl:call-template name="subfieldSelect">
63 <xsl:with-param name="codes">ab</xsl:with-param>
68 <xsl:for-each select="marc:datafield[@tag=260]/marc:subfield[@code='c']">
70 <xsl:value-of select="."/>
75 <xsl:value-of select="substring($controlField008,36,3)"/>
78 <xsl:for-each select="marc:datafield[@tag=856]/marc:subfield[@code='q']">
80 <xsl:value-of select="."/>
84 <xsl:for-each select="marc:datafield[@tag=520]">
86 <xsl:value-of select="marc:subfield[@code='a']"/>
90 <xsl:for-each select="marc:datafield[@tag=521]">
92 <xsl:value-of select="marc:subfield[@code='a']"/>
96 <xsl:for-each select="marc:datafield[500<@tag][@tag<=599][not(@tag=506 or @tag=530 or @tag=540 or @tag=546)]">
98 <xsl:value-of select="marc:subfield[@code='a']"/>
102 <xsl:for-each select="marc:datafield[@tag=600]">
104 <xsl:call-template name="subfieldSelect">
105 <xsl:with-param name="codes">abcdq</xsl:with-param>
110 <xsl:for-each select="marc:datafield[@tag=610]">
112 <xsl:call-template name="subfieldSelect">
113 <xsl:with-param name="codes">abcdq</xsl:with-param>
118 <xsl:for-each select="marc:datafield[@tag=611]">
120 <xsl:call-template name="subfieldSelect">
121 <xsl:with-param name="codes">abcdq</xsl:with-param>
126 <xsl:for-each select="marc:datafield[@tag=630]">
128 <xsl:call-template name="subfieldSelect">
129 <xsl:with-param name="codes">abcdq</xsl:with-param>
134 <xsl:for-each select="marc:datafield[@tag=650]">
136 <xsl:call-template name="subfieldSelect">
137 <xsl:with-param name="codes">abcdq</xsl:with-param>
142 <xsl:for-each select="marc:datafield[@tag=653]">
144 <xsl:call-template name="subfieldSelect">
145 <xsl:with-param name="codes">abcdq</xsl:with-param>
150 <xsl:for-each select="marc:datafield[@tag=752]">
152 <xsl:call-template name="subfieldSelect">
153 <xsl:with-param name="codes">abcd</xsl:with-param>
158 <xsl:for-each select="marc:datafield[@tag=530]">
159 <dc:relation type="original">
160 <xsl:call-template name="subfieldSelect">
161 <xsl:with-param name="codes">abcdu</xsl:with-param>
166 <xsl:for-each select="marc:datafield[@tag=760]|marc:datafield[@tag=762]|marc:datafield[@tag=765]|marc:datafield[@tag=767]|marc:datafield[@tag=770]|marc:datafield[@tag=772]|marc:datafield[@tag=773]|marc:datafield[@tag=774]|marc:datafield[@tag=775]|marc:datafield[@tag=776]|marc:datafield[@tag=777]|marc:datafield[@tag=780]|marc:datafield[@tag=785]|marc:datafield[@tag=786]|marc:datafield[@tag=787]">
168 <xsl:call-template name="subfieldSelect">
169 <xsl:with-param name="codes">ot</xsl:with-param>
174 <xsl:for-each select="marc:datafield[@tag=856]">
176 <xsl:value-of select="marc:subfield[@code='u']"/>
180 <xsl:for-each select="marc:datafield[@tag=506]">
182 <xsl:value-of select="marc:subfield[@code='a']"/>
186 <xsl:for-each select="marc:datafield[@tag=540]">
188 <xsl:value-of select="marc:subfield[@code='a']"/>
193 </xsl:stylesheet><!-- Stylus Studio meta-information - (c)1998-2002 eXcelon Corp.
195 <scenarios ><scenario default="no" name="MODS Website Samples" userelativepaths="yes" externalpreview="no" url="..\xml\MARC21slim\modswebsitesamples.xml" htmlbaseurl="" processortype="internal" commandline="" additionalpath="" additionalclasspath="" postprocessortype="none" postprocesscommandline="" postprocessadditionalpath="" postprocessgeneratedext=""/><scenario default="no" name="Ray Charles" userelativepaths="yes" externalpreview="no" url="..\xml\MARC21slim\raycharles.xml" htmlbaseurl="" processortype="internal" commandline="" additionalpath="" additionalclasspath="" postprocessortype="none" postprocesscommandline="" postprocessadditionalpath="" postprocessgeneratedext=""/><scenario default="yes" name="s6" userelativepaths="yes" externalpreview="no" url="..\ifla\sally6.xml" htmlbaseurl="" processortype="internal" commandline="" additionalpath="" additionalclasspath="" postprocessortype="none" postprocesscommandline="" postprocessadditionalpath="" postprocessgeneratedext=""/><scenario default="no" name="s7" userelativepaths="yes" externalpreview="no" url="..\ifla\sally7.xml" htmlbaseurl="" processortype="internal" commandline="" additionalpath="" additionalclasspath="" postprocessortype="none" postprocesscommandline="" postprocessadditionalpath="" postprocessgeneratedext=""/><scenario default="no" name="s12" userelativepaths="yes" externalpreview="no" url="..\ifla\sally12.xml" htmlbaseurl="" processortype="internal" commandline="" additionalpath="" additionalclasspath="" postprocessortype="none" postprocesscommandline="" postprocessadditionalpath="" postprocessgeneratedext=""/></scenarios><MapperInfo srcSchemaPath="" srcSchemaRoot="" srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="" destSchemaRoot="" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no"/>