1 <?xml version="1.0" encoding="UTF-8"?>
\r
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">
\r
3 <xsl:import href="MARC21slimUtils.xsl"/>
\r
4 <xsl:output method="xml" indent="yes"/>
\r
6 <xsl:template match="/">
\r
7 <xsl:apply-templates/>
\r
10 <xsl:template match="marc:record">
\r
11 <xsl:variable name="leader" select="marc:leader"/>
\r
12 <xsl:variable name="leader6" select="substring($leader,7,1)"/>
\r
13 <xsl:variable name="leader7" select="substring($leader,8,1)"/>
\r
14 <xsl:variable name="controlField008" select="marc:controlfield[@tag=008]"/>
\r
17 <xsl:for-each select="marc:datafield[@tag=245]">
\r
19 <xsl:call-template name="subfieldSelect">
\r
20 <xsl:with-param name="codes">abfghk</xsl:with-param>
\r
21 </xsl:call-template>
\r
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]">
\r
28 <xsl:value-of select="."/>
\r
33 <xsl:if test="$leader7='c'">
\r
34 <xsl:attribute name="collection">yes</xsl:attribute>
\r
37 <xsl:if test="$leader6='d' or $leader6='f' or $leader6='p' or $leader6='t'">
\r
38 <xsl:attribute name="manuscript">yes</xsl:attribute>
\r
42 <xsl:when test="$leader6='a' or $leader6='t'">text</xsl:when>
\r
43 <xsl:when test="$leader6='e' or $leader6='f'">cartographic</xsl:when>
\r
44 <xsl:when test="$leader6='c' or $leader6='d'">notated music</xsl:when>
\r
45 <xsl:when test="$leader6='i' or $leader6='j'">sound recording</xsl:when>
\r
46 <xsl:when test="$leader6='k'">still image</xsl:when>
\r
47 <xsl:when test="$leader6='g'">moving image</xsl:when>
\r
48 <xsl:when test="$leader6='r'">three dimensional object</xsl:when>
\r
49 <xsl:when test="$leader6='m'">software, multimedia</xsl:when>
\r
50 <xsl:when test="$leader6='p'">mixed material</xsl:when>
\r
54 <xsl:for-each select="marc:datafield[@tag=655]">
\r
56 <xsl:value-of select="."/>
\r
60 <xsl:for-each select="marc:datafield[@tag=260]">
\r
62 <xsl:call-template name="subfieldSelect">
\r
63 <xsl:with-param name="codes">ab</xsl:with-param>
\r
64 </xsl:call-template>
\r
68 <xsl:for-each select="marc:datafield[@tag=260]/marc:subfield[@code='c']">
\r
70 <xsl:value-of select="."/>
\r
75 <xsl:value-of select="substring($controlField008,36,3)"/>
\r
78 <xsl:for-each select="marc:datafield[@tag=856]/marc:subfield[@code='q']">
\r
80 <xsl:value-of select="."/>
\r
84 <xsl:for-each select="marc:datafield[@tag=520]">
\r
86 <xsl:value-of select="marc:subfield[@code='a']"/>
\r
90 <xsl:for-each select="marc:datafield[@tag=521]">
\r
92 <xsl:value-of select="marc:subfield[@code='a']"/>
\r
96 <xsl:for-each select="marc:datafield[500<@tag][@tag<=599][not(@tag=506 or @tag=530 or @tag=540 or @tag=546)]">
\r
98 <xsl:value-of select="marc:subfield[@code='a']"/>
\r
102 <xsl:for-each select="marc:datafield[@tag=600]">
\r
104 <xsl:call-template name="subfieldSelect">
\r
105 <xsl:with-param name="codes">abcdq</xsl:with-param>
\r
106 </xsl:call-template>
\r
110 <xsl:for-each select="marc:datafield[@tag=610]">
\r
112 <xsl:call-template name="subfieldSelect">
\r
113 <xsl:with-param name="codes">abcdq</xsl:with-param>
\r
114 </xsl:call-template>
\r
118 <xsl:for-each select="marc:datafield[@tag=611]">
\r
120 <xsl:call-template name="subfieldSelect">
\r
121 <xsl:with-param name="codes">abcdq</xsl:with-param>
\r
122 </xsl:call-template>
\r
126 <xsl:for-each select="marc:datafield[@tag=630]">
\r
128 <xsl:call-template name="subfieldSelect">
\r
129 <xsl:with-param name="codes">abcdq</xsl:with-param>
\r
130 </xsl:call-template>
\r
134 <xsl:for-each select="marc:datafield[@tag=650]">
\r
136 <xsl:call-template name="subfieldSelect">
\r
137 <xsl:with-param name="codes">abcdq</xsl:with-param>
\r
138 </xsl:call-template>
\r
142 <xsl:for-each select="marc:datafield[@tag=653]">
\r
144 <xsl:call-template name="subfieldSelect">
\r
145 <xsl:with-param name="codes">abcdq</xsl:with-param>
\r
146 </xsl:call-template>
\r
150 <xsl:for-each select="marc:datafield[@tag=752]">
\r
152 <xsl:call-template name="subfieldSelect">
\r
153 <xsl:with-param name="codes">abcd</xsl:with-param>
\r
154 </xsl:call-template>
\r
158 <xsl:for-each select="marc:datafield[@tag=530]">
\r
159 <dc:relation type="original">
\r
160 <xsl:call-template name="subfieldSelect">
\r
161 <xsl:with-param name="codes">abcdu</xsl:with-param>
\r
162 </xsl:call-template>
\r
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]">
\r
168 <xsl:call-template name="subfieldSelect">
\r
169 <xsl:with-param name="codes">ot</xsl:with-param>
\r
170 </xsl:call-template>
\r
174 <xsl:for-each select="marc:datafield[@tag=856]">
\r
176 <xsl:value-of select="marc:subfield[@code='u']"/>
\r
180 <xsl:for-each select="marc:datafield[@tag=506]">
\r
182 <xsl:value-of select="marc:subfield[@code='a']"/>
\r
186 <xsl:for-each select="marc:datafield[@tag=540]">
\r
188 <xsl:value-of select="marc:subfield[@code='a']"/>
\r
193 </xsl:stylesheet><!-- Stylus Studio meta-information - (c)1998-2002 eXcelon Corp.
\r
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"/>
\r