|
Lines 1070-1136
Link Here
|
| 1070 |
<xsl:text>.</xsl:text> |
1070 |
<xsl:text>.</xsl:text> |
| 1071 |
</xsl:template> |
1071 |
</xsl:template> |
| 1072 |
|
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 |
|
| 1134 |
<xsl:template name="nameABCQ"> |
1073 |
<xsl:template name="nameABCQ"> |
| 1135 |
<xsl:call-template name="chopPunctuation"> |
1074 |
<xsl:call-template name="chopPunctuation"> |
| 1136 |
<xsl:with-param name="chopString"> |
1075 |
<xsl:with-param name="chopString"> |