Lines 324-330
Link Here
|
324 |
</xsl:call-template> |
324 |
</xsl:call-template> |
325 |
</xsl:if> |
325 |
</xsl:if> |
326 |
|
326 |
|
327 |
<xsl:if test="marc:datafield[@tag=260]"> |
327 |
<!-- Publisher info and RDA related info from tags 260, 264 --> |
|
|
328 |
<xsl:choose> |
329 |
<xsl:when test="marc:datafield[@tag=260]"> |
328 |
<span class="results_summary publisher"><span class="label">Publisher: </span> |
330 |
<span class="results_summary publisher"><span class="label">Publisher: </span> |
329 |
<xsl:for-each select="marc:datafield[@tag=260]"> |
331 |
<xsl:for-each select="marc:datafield[@tag=260]"> |
330 |
<span property="publisher" typeof="Organization"> |
332 |
<span property="publisher" typeof="Organization"> |
Lines 358-365
Link Here
|
358 |
</xsl:if> |
360 |
</xsl:if> |
359 |
<xsl:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose> |
361 |
<xsl:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose> |
360 |
</xsl:for-each> |
362 |
</xsl:for-each> |
|
|
363 |
<xsl:if test="marc:datafield[@tag=264]"> |
364 |
<xsl:text>; </xsl:text> |
365 |
<xsl:call-template name="showRDAtag264"/> |
366 |
</xsl:if> |
361 |
</span> |
367 |
</span> |
362 |
</xsl:if> |
368 |
</xsl:when> |
|
|
369 |
<xsl:when test="marc:datafield[@tag=264]"> |
370 |
<span class="results_summary"> |
371 |
<xsl:call-template name="showRDAtag264"/> |
372 |
</span> |
373 |
</xsl:when> |
374 |
</xsl:choose> |
363 |
|
375 |
|
364 |
<!-- Edition Statement: Alternate Graphic Representation (MARC 880) --> |
376 |
<!-- Edition Statement: Alternate Graphic Representation (MARC 880) --> |
365 |
<xsl:if test="$display880"> |
377 |
<xsl:if test="$display880"> |
Lines 1058-1063
Link Here
|
1058 |
<xsl:text>.</xsl:text> |
1070 |
<xsl:text>.</xsl:text> |
1059 |
</xsl:template> |
1071 |
</xsl:template> |
1060 |
|
1072 |
|
|
|
1073 |
<xsl:template name="showRDAtag264"> |
1074 |
<!-- Depending on how many tags you have, we will pick by preference |
1075 |
Publisher-latest or Publisher or 'Other'-latest or 'Other' |
1076 |
The preferred tag is saved in the fav variable and passed to a |
1077 |
helper named-template --> |
1078 |
<xsl:choose> |
1079 |
<xsl:when test="marc:datafield[@tag=264 and @ind1=3 and @ind2=1]"> |
1080 |
<!-- ind1==3 means latest change --> |
1081 |
<!-- ind2==1 means Publisher --> |
1082 |
<xsl:variable name="fav" select="marc:datafield[@tag=264 and @ind1=3 and @ind2=1][1]"/> |
1083 |
<xsl:call-template name="showRDAtag264helper"> |
1084 |
<xsl:with-param name="field" select="$fav"/> |
1085 |
</xsl:call-template> |
1086 |
</xsl:when> |
1087 |
|
1088 |
<xsl:when test="marc:datafield[@tag=264 and @ind2=1]"> |
1089 |
<xsl:variable name="fav" select="marc:datafield[@tag=264 and @ind2=1][last()]"/> |
1090 |
<xsl:call-template name="showRDAtag264helper"> |
1091 |
<xsl:with-param name="field" select="$fav"/> |
1092 |
</xsl:call-template> |
1093 |
</xsl:when> |
1094 |
|
1095 |
<xsl:when test="marc:datafield[@tag=264 and @ind1=3]"> |
1096 |
<xsl:variable name="fav" select="marc:datafield[@tag=264 and @ind1=3][1]"/> |
1097 |
<xsl:call-template name="showRDAtag264helper"> |
1098 |
<xsl:with-param name="field" select="$fav"/> |
1099 |
</xsl:call-template> |
1100 |
</xsl:when> |
1101 |
|
1102 |
<xsl:otherwise> |
1103 |
<xsl:variable name="fav" select="marc:datafield[@tag=264][last()]"/> |
1104 |
<xsl:call-template name="showRDAtag264helper"> |
1105 |
<xsl:with-param name="field" select="$fav"/> |
1106 |
</xsl:call-template> |
1107 |
</xsl:otherwise> |
1108 |
</xsl:choose> |
1109 |
</xsl:template> |
1110 |
<xsl:template name="showRDAtag264helper"> |
1111 |
<xsl:param name="field"/> |
1112 |
<xsl:variable name="ind2" select="$field/@ind2"/> |
1113 |
<xsl:choose> |
1114 |
<xsl:when test="$ind2='0'"> |
1115 |
<span class="label">Producer: </span> |
1116 |
</xsl:when> |
1117 |
<xsl:when test="$ind2='1'"> |
1118 |
<span class="label">Publisher: </span> |
1119 |
</xsl:when> |
1120 |
<xsl:when test="$ind2='2'"> |
1121 |
<span class="label">Distributor: </span> |
1122 |
</xsl:when> |
1123 |
<xsl:when test="$ind2='3'"> |
1124 |
<span class="label">Manufacturer: </span> |
1125 |
</xsl:when> |
1126 |
</xsl:choose> |
1127 |
<xsl:value-of select="$field/marc:subfield[@code='a']"/> |
1128 |
<xsl:text> </xsl:text> |
1129 |
<xsl:value-of select="$field/marc:subfield[@code='b']"/> |
1130 |
<xsl:text> </xsl:text> |
1131 |
<xsl:value-of select="$field/marc:subfield[@code='c']"/> |
1132 |
</xsl:template> |
1133 |
|
1061 |
<xsl:template name="nameABCQ"> |
1134 |
<xsl:template name="nameABCQ"> |
1062 |
<xsl:call-template name="chopPunctuation"> |
1135 |
<xsl:call-template name="chopPunctuation"> |
1063 |
<xsl:with-param name="chopString"> |
1136 |
<xsl:with-param name="chopString"> |
1064 |
- |
|
|