Lines 1122-1128
Link Here
|
1122 |
<xsl:for-each select="$authorfield"> |
1122 |
<xsl:for-each select="$authorfield"> |
1123 |
<xsl:choose> |
1123 |
<xsl:choose> |
1124 |
<xsl:when test="position()>1"/> |
1124 |
<xsl:when test="position()>1"/> |
1125 |
<xsl:when test="@tag<700">Author(s): </xsl:when> |
1125 |
<!-- #13383 --> |
|
|
1126 |
<xsl:when test="@tag<700">By: </xsl:when> |
1126 |
<!--#13382 Changed Additional author to contributor --> |
1127 |
<!--#13382 Changed Additional author to contributor --> |
1127 |
<xsl:otherwise>Contributor(s): </xsl:otherwise> |
1128 |
<xsl:otherwise>Contributor(s): </xsl:otherwise> |
1128 |
</xsl:choose> |
1129 |
</xsl:choose> |
Lines 1136-1144
Link Here
|
1136 |
</xsl:otherwise> |
1137 |
</xsl:otherwise> |
1137 |
</xsl:choose> |
1138 |
</xsl:choose> |
1138 |
<xsl:choose> |
1139 |
<xsl:choose> |
1139 |
<xsl:when test="@tag=100"><xsl:call-template name="nameABCQ"/></xsl:when> |
1140 |
<xsl:when test="@tag=100 or @tag=110 or @tag=111"> |
1140 |
<xsl:when test="@tag=110"><xsl:call-template name="nameABCDN"/></xsl:when> |
1141 |
<!-- #13383 --> |
1141 |
<xsl:when test="@tag=111"><xsl:call-template name="nameACDEQ"/></xsl:when> |
1142 |
<xsl:call-template name="chopPunctuation"> |
|
|
1143 |
<xsl:with-param name="chopString"> |
1144 |
<xsl:call-template name="subfieldSelect"> |
1145 |
<xsl:with-param name="codes"> |
1146 |
<xsl:choose> |
1147 |
<!-- #13383 include subfield e for field 111 --> |
1148 |
<xsl:when test="@tag=111">abcdeqt</xsl:when> |
1149 |
<xsl:otherwise>abcdjqt</xsl:otherwise> |
1150 |
</xsl:choose> |
1151 |
</xsl:with-param> |
1152 |
</xsl:call-template> |
1153 |
</xsl:with-param> |
1154 |
<xsl:with-param name="punctuation"> |
1155 |
<xsl:text>:,;/ </xsl:text> |
1156 |
</xsl:with-param> |
1157 |
</xsl:call-template> |
1158 |
</xsl:when> |
1142 |
<!-- #13382 excludes 700$i and ind2=2, displayed as Related Works --> |
1159 |
<!-- #13382 excludes 700$i and ind2=2, displayed as Related Works --> |
1143 |
<!--#13382 Added all relevant subfields 4, e, are handled separately --> |
1160 |
<!--#13382 Added all relevant subfields 4, e, are handled separately --> |
1144 |
<xsl:when test="@tag=700 or @tag=710 or @tag=711"> |
1161 |
<xsl:when test="@tag=700 or @tag=710 or @tag=711"> |
Lines 1159-1184
Link Here
|
1159 |
</xsl:choose> |
1176 |
</xsl:choose> |
1160 |
|
1177 |
|
1161 |
<!-- add relator code too between brackets--> |
1178 |
<!-- add relator code too between brackets--> |
1162 |
<xsl:if test="marc:subfield[@code='4' or @code='e']"> |
1179 |
<!-- #13383 include relator code j for field 111 --> |
1163 |
<span class="relatorcode"> |
1180 |
<xsl:if test="marc:subfield[@code='4' or @code='e'][not(parent::*[@tag=111])] or (self::*[@tag=111] and marc:subfield[@code='4' or @code='j'][. != ''])"> |
1164 |
<xsl:text> [</xsl:text> |
1181 |
<span class="relatorcode"> |
1165 |
<xsl:choose> |
1182 |
<xsl:text> [</xsl:text> |
1166 |
<xsl:when test="marc:subfield[@code='e']"> |
1183 |
<xsl:choose> |
1167 |
<xsl:for-each select="marc:subfield[@code='e']"> |
1184 |
<xsl:when test="@tag=111"> |
1168 |
<xsl:value-of select="."/> |
1185 |
<xsl:choose> |
1169 |
<xsl:if test="position() != last()">, </xsl:if> |
1186 |
<!-- Prefer j over 4 --> |
1170 |
</xsl:for-each> |
1187 |
<xsl:when test="marc:subfield[@code='j']"> |
1171 |
</xsl:when> |
1188 |
<xsl:for-each select="marc:subfield[@code='j']"> |
1172 |
<xsl:otherwise> |
1189 |
<xsl:value-of select="."/> |
1173 |
<xsl:for-each select="marc:subfield[@code=4]"> |
1190 |
<xsl:if test="position() != last()">, </xsl:if> |
1174 |
<xsl:value-of select="."/> |
1191 |
</xsl:for-each> |
1175 |
<xsl:if test="position() != last()">, </xsl:if> |
1192 |
</xsl:when> |
1176 |
</xsl:for-each> |
1193 |
<xsl:otherwise> |
1177 |
</xsl:otherwise> |
1194 |
<xsl:for-each select="marc:subfield[@code=4]"> |
1178 |
</xsl:choose> |
1195 |
<xsl:value-of select="."/> |
1179 |
<xsl:text>]</xsl:text> |
1196 |
<xsl:if test="position() != last()">, </xsl:if> |
1180 |
</span> |
1197 |
</xsl:for-each> |
1181 |
</xsl:if> |
1198 |
</xsl:otherwise> |
|
|
1199 |
</xsl:choose> |
1200 |
</xsl:when> |
1201 |
<!-- Prefer e over 4 --> |
1202 |
<xsl:when test="marc:subfield[@code='e']"> |
1203 |
<xsl:for-each select="marc:subfield[@code='e']"> |
1204 |
<xsl:value-of select="."/> |
1205 |
<xsl:if test="position() != last()">, </xsl:if> |
1206 |
</xsl:for-each> |
1207 |
</xsl:when> |
1208 |
<xsl:otherwise> |
1209 |
<xsl:for-each select="marc:subfield[@code=4]"> |
1210 |
<xsl:value-of select="."/> |
1211 |
<xsl:if test="position() != last()">, </xsl:if> |
1212 |
</xsl:for-each> |
1213 |
</xsl:otherwise> |
1214 |
</xsl:choose> |
1215 |
<xsl:text>]</xsl:text> |
1216 |
</span> |
1217 |
</xsl:if> |
1182 |
</a> |
1218 |
</a> |
1183 |
<xsl:choose> |
1219 |
<xsl:choose> |
1184 |
<xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><span class="separator"><xsl:text> | </xsl:text></span></xsl:otherwise> |
1220 |
<xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><span class="separator"><xsl:text> | </xsl:text></span></xsl:otherwise> |