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