Lines 1-5
Link Here
|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
1 |
<?xml version="1.0" encoding="UTF-8"?> |
2 |
<!-- $Id: MARC21slim2DC.xsl,v 1.1 2003/01/06 08:20:27 adam Exp $ --> |
2 |
<!-- $Id: MARC21slim2DC.xsl,v 1.1 2003/01/06 08:20:27 adam Exp $ --> |
|
|
3 |
|
3 |
<!DOCTYPE stylesheet [<!ENTITY nbsp " " >]> |
4 |
<!DOCTYPE stylesheet [<!ENTITY nbsp " " >]> |
4 |
<xsl:stylesheet version="1.0" |
5 |
<xsl:stylesheet version="1.0" |
5 |
xmlns:marc="http://www.loc.gov/MARC21/slim" |
6 |
xmlns:marc="http://www.loc.gov/MARC21/slim" |
Lines 158-176
Link Here
|
158 |
</xsl:call-template> |
159 |
</xsl:call-template> |
159 |
</h5> |
160 |
</h5> |
160 |
</xsl:if> |
161 |
</xsl:if> |
161 |
<xsl:choose> |
162 |
|
162 |
<xsl:when test="marc:datafield[@tag=100] or marc:datafield[@tag=110] or marc:datafield[@tag=111] or marc:datafield[@tag=700] or marc:datafield[@tag=710] or marc:datafield[@tag=711]"> |
163 |
<!--#13382 Added Author Statement to seperate Authors and Contributors --> |
163 |
<h5 class="author">by |
164 |
<xsl:call-template name="showAuthor"> |
164 |
<xsl:call-template name="showAuthor"> |
165 |
<xsl:with-param name="authorfield" select="marc:datafield[@tag=100 or @tag=110 or @tag=111]"/> |
165 |
<xsl:with-param name="authorfield" select="marc:datafield[@tag=100 or @tag=110 or @tag=111 or @tag=700 or @tag=710 or @tag=711]"/> |
166 |
<xsl:with-param name="UseAuthoritiesForTracings" select="$UseAuthoritiesForTracings"/> |
166 |
<xsl:with-param name="UseAuthoritiesForTracings" select="$UseAuthoritiesForTracings"/> |
167 |
<xsl:with-param name="materialTypeLabel" select="$materialTypeLabel"/> |
167 |
<xsl:with-param name="materialTypeLabel" select="$materialTypeLabel"/> |
168 |
<xsl:with-param name="theme" select="$theme"/> |
168 |
<xsl:with-param name="theme" select="$theme"/> |
169 |
</xsl:call-template> |
169 |
</xsl:call-template> |
170 |
<xsl:call-template name="showAuthor"> |
170 |
</h5> |
171 |
<!-- #13382 suppress 700$i and 7xx/@ind2=2 --> |
171 |
</xsl:when> |
172 |
<xsl:with-param name="authorfield" select=" marc:datafield[(@tag=700 or @tag=710 or @tag=711) and not(@ind2=2) and not(marc:subfield[@code='i'])]"/> |
172 |
</xsl:choose> |
173 |
<xsl:with-param name="UseAuthoritiesForTracings" select="$UseAuthoritiesForTracings"/> |
173 |
|
174 |
</xsl:call-template> |
174 |
<xsl:if test="$DisplayOPACiconsXSLT!='0'"> |
175 |
<xsl:if test="$DisplayOPACiconsXSLT!='0'"> |
175 |
<xsl:if test="$materialTypeCode!=''"> |
176 |
<xsl:if test="$materialTypeCode!=''"> |
176 |
<span class="results_summary type"><span class="label">Material type: </span> |
177 |
<span class="results_summary type"><span class="label">Material type: </span> |
Lines 572-577
Link Here
|
572 |
</span> |
573 |
</span> |
573 |
</xsl:if> |
574 |
</xsl:if> |
574 |
|
575 |
|
|
|
576 |
|
577 |
<!-- #13382 Added Related works 700$i --> |
578 |
<xsl:if test="marc:datafield[@tag=700][marc:subfield[@code='i']] or marc:datafield[@tag=710][marc:subfield[@code='i']] or marc:datafield[@tag=711][marc:subfield[@code='i']]"> |
579 |
<span class="results_summary related_works"><span class="label">Related Works: </span> |
580 |
<xsl:for-each select="marc:datafield[@tag=700][marc:subfield[@code='i']] | marc:datafield[@tag=710][marc:subfield[@code='i']] | marc:datafield[@tag=711][marc:subfield[@code='i']]"> |
581 |
<xsl:variable name="str"> |
582 |
<xsl:call-template name="subfieldSelect"> |
583 |
<xsl:with-param name="codes">abcdfghiklmnporstux</xsl:with-param> |
584 |
</xsl:call-template> |
585 |
</xsl:variable> |
586 |
<xsl:call-template name="chopPunctuation"> |
587 |
<xsl:with-param name="chopString"> |
588 |
<xsl:value-of select="$str"/> |
589 |
</xsl:with-param> |
590 |
</xsl:call-template> |
591 |
<!-- add relator code too between brackets--> |
592 |
<xsl:if test="marc:subfield[@code='4' or @code='e']"> |
593 |
<span class="relatorcode"> |
594 |
<xsl:text> [</xsl:text> |
595 |
<xsl:choose> |
596 |
<xsl:when test="marc:subfield[@code='e']"> |
597 |
<xsl:for-each select="marc:subfield[@code='e']"> |
598 |
<xsl:value-of select="."/> |
599 |
<xsl:if test="position() != last()"><xsl:text>, </xsl:text></xsl:if> |
600 |
</xsl:for-each> |
601 |
</xsl:when> |
602 |
<xsl:otherwise> |
603 |
<xsl:for-each select="marc:subfield[@code='4']"> |
604 |
<xsl:value-of select="."/> |
605 |
<xsl:if test="position() != last()"><xsl:text>, </xsl:text></xsl:if> |
606 |
</xsl:for-each> |
607 |
</xsl:otherwise> |
608 |
</xsl:choose> |
609 |
<xsl:text>]</xsl:text> |
610 |
</span> |
611 |
</xsl:if> |
612 |
<xsl:choose> |
613 |
<xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><span class="separator"><xsl:text> | </xsl:text></span></xsl:otherwise> |
614 |
</xsl:choose> |
615 |
</xsl:for-each> |
616 |
</span> |
617 |
</xsl:if> |
618 |
|
619 |
<!-- #13382 Added Contained Works 7xx@ind2=2 --> |
620 |
<xsl:if test="marc:datafield[@tag=700][@ind2=2 and not(marc:subfield[@code='i'])] or marc:datafield[@tag=710][@ind2=2 and not(marc:subfield[@code='i'])] or marc:datafield[@tag=711][@ind2=2 and not(marc:subfield[@code='i'])]"> |
621 |
<span class="results_summary contained_works"><span class="label">Contained Works: </span> |
622 |
<xsl:for-each select="marc:datafield[@tag=700][@ind2=2][not(marc:subfield[@code='i'])] | marc:datafield[@tag=710][@ind2=2][not(marc:subfield[@code='i'])] | marc:datafield[@tag=711][@ind2=2][not(marc:subfield[@code='i'])]"> |
623 |
<xsl:variable name="str"> |
624 |
<xsl:call-template name="subfieldSelect"> |
625 |
<xsl:with-param name="codes">abcdfghiklmnporstux</xsl:with-param> |
626 |
</xsl:call-template> |
627 |
</xsl:variable> |
628 |
<xsl:call-template name="chopPunctuation"> |
629 |
<xsl:with-param name="chopString"> |
630 |
<xsl:value-of select="$str"/> |
631 |
</xsl:with-param> |
632 |
</xsl:call-template> |
633 |
<!-- add relator code too between brackets--> |
634 |
<xsl:if test="marc:subfield[@code='4' or @code='e']"> |
635 |
<span class="relatorcode"> |
636 |
<xsl:text> [</xsl:text> |
637 |
<xsl:choose> |
638 |
<xsl:when test="marc:subfield[@code='e']"> |
639 |
<xsl:for-each select="marc:subfield[@code='e']"> |
640 |
<xsl:value-of select="."/> |
641 |
<xsl:if test="position() != last()"><xsl:text>, </xsl:text></xsl:if> |
642 |
</xsl:for-each> |
643 |
</xsl:when> |
644 |
<xsl:otherwise> |
645 |
<xsl:for-each select="marc:subfield[@code='4']"> |
646 |
<xsl:value-of select="."/> |
647 |
<xsl:if test="position() != last()"><xsl:text>, </xsl:text></xsl:if> |
648 |
</xsl:for-each> |
649 |
</xsl:otherwise> |
650 |
</xsl:choose> |
651 |
<xsl:text>]</xsl:text> |
652 |
</span> |
653 |
</xsl:if> |
654 |
<xsl:choose> |
655 |
<xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><span class="separator"><xsl:text> | </xsl:text></span></xsl:otherwise> |
656 |
</xsl:choose> |
657 |
</xsl:for-each> |
658 |
</span> |
659 |
</xsl:if> |
660 |
|
575 |
<xsl:if test="marc:datafield[substring(@tag, 1, 1) = '6']"> |
661 |
<xsl:if test="marc:datafield[substring(@tag, 1, 1) = '6']"> |
576 |
<span class="results_summary subjects"><span class="label">Subject(s): </span> |
662 |
<span class="results_summary subjects"><span class="label">Subject(s): </span> |
577 |
<xsl:for-each select="marc:datafield[substring(@tag, 1, 1) = '6']"> |
663 |
<xsl:for-each select="marc:datafield[substring(@tag, 1, 1) = '6']"> |
Lines 625-647
Link Here
|
625 |
</span> |
711 |
</span> |
626 |
</xsl:if> |
712 |
</xsl:if> |
627 |
|
713 |
|
628 |
<!-- DDC classification --> |
|
|
629 |
<xsl:if test="marc:datafield[@tag=082]"> |
630 |
<span class="results_summary ddc"> |
631 |
<span class="label">DDC classification: </span> |
632 |
<xsl:for-each select="marc:datafield[@tag=082]"> |
633 |
<xsl:call-template name="subfieldSelect"> |
634 |
<xsl:with-param name="codes">a</xsl:with-param> |
635 |
</xsl:call-template> |
636 |
<xsl:choose> |
637 |
<xsl:when test="position()=last()"><xsl:text> </xsl:text></xsl:when> |
638 |
<xsl:otherwise> | </xsl:otherwise> |
639 |
</xsl:choose> |
640 |
</xsl:for-each> |
641 |
</span> |
642 |
</xsl:if> |
643 |
|
644 |
|
645 |
<!-- Image processing code added here, takes precedence over text links including y3z text --> |
714 |
<!-- Image processing code added here, takes precedence over text links including y3z text --> |
646 |
<xsl:if test="marc:datafield[@tag=856]"> |
715 |
<xsl:if test="marc:datafield[@tag=856]"> |
647 |
<span class="results_summary online_resources"><span class="label">Online resources: </span> |
716 |
<span class="results_summary online_resources"><span class="label">Online resources: </span> |
Lines 1042-1051
Link Here
|
1042 |
<xsl:param name="UseAuthoritiesForTracings" /> |
1111 |
<xsl:param name="UseAuthoritiesForTracings" /> |
1043 |
<xsl:param name="materialTypeLabel" /> |
1112 |
<xsl:param name="materialTypeLabel" /> |
1044 |
<xsl:param name="theme" /> |
1113 |
<xsl:param name="theme" /> |
|
|
1114 |
<xsl:if test="count($authorfield)>0"> |
1115 |
<!--#13382 Changed Additional author to contributor --> |
1116 |
<h5> |
1045 |
<xsl:for-each select="$authorfield"> |
1117 |
<xsl:for-each select="$authorfield"> |
1046 |
<xsl:choose><xsl:when test="position()!=1"><xsl:text>; </xsl:text></xsl:when></xsl:choose> |
|
|
1047 |
<xsl:choose> |
1118 |
<xsl:choose> |
1048 |
<xsl:when test="not(@tag=111 or @tag=711)" /> |
1119 |
<xsl:when test="position()>1"/> |
|
|
1120 |
<xsl:when test="@tag<700">by </xsl:when> |
1121 |
<!--#13382 Changed Additional author to contributor --> |
1122 |
<xsl:otherwise>Contributor(s): </xsl:otherwise> |
1123 |
</xsl:choose> |
1124 |
<xsl:choose> |
1125 |
<xsl:when test="not(@tag=111) or @tag=700 or @tag=710 or @tag=711" /> |
1049 |
<xsl:when test="marc:subfield[@code='n']"> |
1126 |
<xsl:when test="marc:subfield[@code='n']"> |
1050 |
<xsl:text> </xsl:text> |
1127 |
<xsl:text> </xsl:text> |
1051 |
<xsl:call-template name="subfieldSelect"> |
1128 |
<xsl:call-template name="subfieldSelect"> |
Lines 1084-1104
Link Here
|
1084 |
</xsl:choose> |
1161 |
</xsl:choose> |
1085 |
<span property="name"> |
1162 |
<span property="name"> |
1086 |
<xsl:choose> |
1163 |
<xsl:choose> |
1087 |
<xsl:when test="@tag=100 or @tag=700"><xsl:call-template name="nameABCQ"/></xsl:when> |
1164 |
<xsl:when test="@tag=100"><xsl:call-template name="nameABCQ"/></xsl:when> |
1088 |
<xsl:when test="@tag=110 or @tag=710"><xsl:call-template name="nameABCDN"/></xsl:when> |
1165 |
<xsl:when test="@tag=110"><xsl:call-template name="nameABCDN"/></xsl:when> |
1089 |
<xsl:when test="@tag=111 or @tag=711"><xsl:call-template name="nameACDEQ"/></xsl:when> |
1166 |
<xsl:when test="@tag=111"><xsl:call-template name="nameACDEQ"/></xsl:when> |
|
|
1167 |
<!-- #13382 excludes 700$i and ind2=2, displayed as Related Works --> |
1168 |
<!--#13382 Added all relevant subfields 4, e, are handled separately --> |
1169 |
<xsl:when test="@tag=700 or @tag=710 or @tag=711"> |
1170 |
<xsl:variable name="str"> |
1171 |
<xsl:call-template name="subfieldSelect"> |
1172 |
<xsl:with-param name="codes">abcdfghiklmnoprstux</xsl:with-param> |
1173 |
</xsl:call-template> |
1174 |
</xsl:variable> |
1175 |
<xsl:call-template name="chopPunctuation"> |
1176 |
<xsl:with-param name="chopString"> |
1177 |
<xsl:value-of select="$str"/> |
1178 |
</xsl:with-param> |
1179 |
<xsl:with-param name="punctuation"> |
1180 |
<xsl:text>:,;/. </xsl:text> |
1181 |
</xsl:with-param> |
1182 |
</xsl:call-template> |
1183 |
</xsl:when> |
1090 |
</xsl:choose> |
1184 |
</xsl:choose> |
1091 |
</span></span></span> |
1185 |
</span> |
1092 |
<!-- add relator code too between brackets--> |
1186 |
</span> |
|
|
1187 |
</span> |
1188 |
<!-- #13382 If both $e and $4 are present only display $e --> |
1093 |
<xsl:if test="marc:subfield[@code='4' or @code='e']"> |
1189 |
<xsl:if test="marc:subfield[@code='4' or @code='e']"> |
1094 |
<span class="relatorcode"> |
1190 |
<xsl:if test="not(@tag=111 or @tag=711)"> |
1095 |
<xsl:text> [</xsl:text> |
1191 |
<span class="relatorcode"> |
1096 |
<xsl:choose> |
1192 |
<xsl:text> [</xsl:text> |
1097 |
<xsl:when test="marc:subfield[@code=4]"><xsl:value-of select="marc:subfield[@code=4]"/></xsl:when> |
1193 |
<xsl:choose> |
1098 |
<xsl:otherwise><xsl:value-of select="marc:subfield[@code='e']"/></xsl:otherwise> |
1194 |
<xsl:when test="marc:subfield[@code='e']"> |
1099 |
</xsl:choose> |
1195 |
<xsl:for-each select="marc:subfield[@code='e']"> |
1100 |
<xsl:text>]</xsl:text> |
1196 |
<xsl:value-of select="."/> |
1101 |
</span> |
1197 |
<xsl:if test="position() != last()"><xsl:text>, </xsl:text></xsl:if> |
|
|
1198 |
</xsl:for-each> |
1199 |
</xsl:when> |
1200 |
<xsl:otherwise> |
1201 |
<xsl:for-each select="marc:subfield[@code='4']"> |
1202 |
<xsl:value-of select="."/> |
1203 |
<xsl:if test="position() != last()"><xsl:text>, </xsl:text></xsl:if> |
1204 |
</xsl:for-each> |
1205 |
</xsl:otherwise> |
1206 |
</xsl:choose> |
1207 |
<xsl:text>]</xsl:text> |
1208 |
</span> |
1209 |
</xsl:if> |
1102 |
</xsl:if> |
1210 |
</xsl:if> |
1103 |
</a> |
1211 |
</a> |
1104 |
<xsl:if test="marc:subfield[@code=9]"> |
1212 |
<xsl:if test="marc:subfield[@code=9]"> |
Lines 1112-1119
Link Here
|
1112 |
</xsl:element> |
1220 |
</xsl:element> |
1113 |
</a> |
1221 |
</a> |
1114 |
</xsl:if> |
1222 |
</xsl:if> |
|
|
1223 |
<!--#13382 Changed separator to | --> |
1224 |
<xsl:choose> |
1225 |
<xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><span class="separator"><xsl:text> | </xsl:text></span></xsl:otherwise> |
1226 |
</xsl:choose> |
1115 |
</xsl:for-each> |
1227 |
</xsl:for-each> |
1116 |
<xsl:text>.</xsl:text> |
1228 |
</h5> |
|
|
1229 |
</xsl:if> |
1117 |
</xsl:template> |
1230 |
</xsl:template> |
1118 |
|
1231 |
|
1119 |
<xsl:template name="nameABCQ"> |
1232 |
<xsl:template name="nameABCQ"> |
Lines 1190-1193
Link Here
|
1190 |
</xsl:variable> |
1303 |
</xsl:variable> |
1191 |
<xsl:value-of select="substring($str,1,string-length($str)-1)"/> |
1304 |
<xsl:value-of select="substring($str,1,string-length($str)-1)"/> |
1192 |
</xsl:template> |
1305 |
</xsl:template> |
1193 |
</xsl:stylesheet> |
1306 |
</xsl:stylesheet> |
1194 |
- |
|
|