Lines 1185-1243
Link Here
|
1185 |
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=au:"<xsl:value-of select="marc:subfield[@code='a']"/>"</xsl:attribute> |
1185 |
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=au:"<xsl:value-of select="marc:subfield[@code='a']"/>"</xsl:attribute> |
1186 |
</xsl:otherwise> |
1186 |
</xsl:otherwise> |
1187 |
</xsl:choose> |
1187 |
</xsl:choose> |
1188 |
<xsl:choose> |
1188 |
<xsl:choose> |
1189 |
<xsl:when test="@tag=100 or @tag=110 or @tag=111"> |
1189 |
<xsl:when test="@tag=100 or @tag=110 or @tag=111"> |
1190 |
<!-- #13383 --> |
1190 |
<!-- #13383 --> |
1191 |
<xsl:call-template name="chopPunctuation"> |
1191 |
<xsl:call-template name="chopPunctuation"> |
1192 |
<xsl:with-param name="chopString"> |
1192 |
<xsl:with-param name="chopString"> |
1193 |
<xsl:call-template name="subfieldSelect"> |
1193 |
<xsl:call-template name="subfieldSelect"> |
1194 |
<xsl:with-param name="codes"> |
1194 |
<xsl:with-param name="codes"> |
1195 |
<xsl:choose> |
1195 |
<xsl:choose> |
1196 |
<!-- #13383 include subfield e for field 111 --> |
1196 |
<!-- #13383 include subfield e for field 111, Display only name portion in 1XX --> |
1197 |
<xsl:when test="@tag=111">abceqt</xsl:when> |
1197 |
<xsl:when test="@tag=111">aeq</xsl:when> |
1198 |
<xsl:otherwise>abcjqt</xsl:otherwise> |
1198 |
<xsl:when test="@tag=110">ab</xsl:when> |
1199 |
</xsl:choose> |
1199 |
<xsl:otherwise>abcjq</xsl:otherwise> |
1200 |
</xsl:with-param> |
1200 |
</xsl:choose> |
1201 |
</xsl:call-template> |
1201 |
</xsl:with-param> |
1202 |
</xsl:with-param> |
1202 |
</xsl:call-template> |
1203 |
<xsl:with-param name="punctuation"> |
1203 |
</xsl:with-param> |
1204 |
<xsl:text>:,;/ </xsl:text> |
1204 |
<xsl:with-param name="punctuation"> |
1205 |
</xsl:with-param> |
1205 |
<xsl:text>:,;/ </xsl:text> |
1206 |
</xsl:call-template> |
1206 |
</xsl:with-param> |
1207 |
</xsl:when> |
1207 |
</xsl:call-template> |
1208 |
<!-- #13382 excludes 700$i and ind2=2, displayed as Related Works --> |
1208 |
<!-- Display only name and title portion in 110 field --> |
1209 |
<!--#13382 Added all relevant subfields 4, e, and d are handled separately --> |
1209 |
<xsl:if test="@tag=110 and boolean(marc:subfield[@code='c' or @code='d' or @code='n' or @code='t'])"> |
1210 |
<xsl:when test="@tag=700 or @tag=710 or @tag=711"> |
1210 |
<span class="titleportion"> |
1211 |
<xsl:variable name="str"> |
1211 |
<xsl:choose> |
1212 |
<xsl:call-template name="subfieldSelect"> |
1212 |
<xsl:when test="marc:subfield[@code='c' or @code='d' or @code='n'][not(marc:subfield[@code='t'])]"><xsl:text> </xsl:text></xsl:when> |
1213 |
<xsl:with-param name="codes">abcfghiklmnoprstux</xsl:with-param> |
1213 |
<xsl:otherwise><xsl:text>. </xsl:text></xsl:otherwise> |
1214 |
</xsl:call-template> |
1214 |
</xsl:choose> |
1215 |
</xsl:variable> |
1215 |
<xsl:call-template name="chopPunctuation"> |
1216 |
<xsl:call-template name="chopPunctuation"> |
1216 |
<xsl:with-param name="chopString"> |
1217 |
<xsl:with-param name="chopString"> |
1217 |
<xsl:call-template name="subfieldSelect"> |
1218 |
<xsl:value-of select="$str"/> |
1218 |
<xsl:with-param name="codes">cdnt</xsl:with-param> |
1219 |
</xsl:with-param> |
1219 |
</xsl:call-template> |
1220 |
<xsl:with-param name="punctuation"> |
1220 |
</xsl:with-param> |
1221 |
<xsl:text>:,;/. </xsl:text> |
1221 |
</xsl:call-template> |
1222 |
</xsl:with-param> |
1222 |
</span> |
1223 |
</xsl:call-template> |
1223 |
</xsl:if> |
1224 |
</xsl:when> |
1224 |
<!-- Display only name and title portion in 111 field --> |
1225 |
</xsl:choose> |
1225 |
<xsl:if test="@tag=111 and boolean(marc:subfield[@code='c' or @code='d' or @code='g' or @code='n' or @code='t'])"> |
1226 |
<xsl:if test="marc:subfield[@code='d']"> |
1226 |
<span class="titleportion"> |
1227 |
<span class="authordates"> |
1227 |
<xsl:choose> |
1228 |
<xsl:text> </xsl:text> |
1228 |
<xsl:when test="marc:subfield[@code='c' or @code='d' or @code='g' or @code='n'][not(marc:subfield[@code='t'])]"><xsl:text> </xsl:text></xsl:when> |
1229 |
<xsl:value-of select="marc:subfield[@code='d']"/> |
1229 |
<xsl:otherwise><xsl:text>. </xsl:text></xsl:otherwise> |
1230 |
</span> |
1230 |
</xsl:choose> |
1231 |
</xsl:if> |
1231 |
|
1232 |
<!-- add relator code too between brackets--> |
1232 |
<xsl:call-template name="chopPunctuation"> |
|
|
1233 |
<xsl:with-param name="chopString"> |
1234 |
<xsl:call-template name="subfieldSelect"> |
1235 |
<xsl:with-param name="codes">cdgnt</xsl:with-param> |
1236 |
</xsl:call-template> |
1237 |
</xsl:with-param> |
1238 |
</xsl:call-template> |
1239 |
</span> |
1240 |
</xsl:if> |
1241 |
<!-- Display only dates in 100 field --> |
1242 |
<xsl:if test="@tag=100 and marc:subfield[@code='d']"> |
1243 |
<span class="authordates"> |
1244 |
<xsl:text>, </xsl:text> |
1245 |
<xsl:call-template name="chopPunctuation"> |
1246 |
<xsl:with-param name="chopString"> |
1247 |
<xsl:call-template name="subfieldSelect"> |
1248 |
<xsl:with-param name="codes">d</xsl:with-param> |
1249 |
</xsl:call-template> |
1250 |
</xsl:with-param> |
1251 |
</xsl:call-template> |
1252 |
</span> |
1253 |
</xsl:if> |
1254 |
|
1255 |
</xsl:when> |
1256 |
<!-- #13382 excludes 700$i and ind2=2, displayed as Related Works --> |
1257 |
<!--#13382 Added all relevant subfields 4, e, and d are handled separately --> |
1258 |
<xsl:when test="@tag=700 or @tag=710 or @tag=711"> |
1259 |
<!-- Includes major changes for 7XX fields; display name portion in 710 and 711 fields --> |
1260 |
<xsl:if test="@tag=710 or @tag=711"> |
1261 |
<xsl:call-template name="chopPunctuation"> |
1262 |
<xsl:with-param name="chopString"> |
1263 |
<xsl:call-template name="subfieldSelect"> |
1264 |
<xsl:with-param name="codes"> |
1265 |
<xsl:choose> |
1266 |
<xsl:when test="@tag=711">aeq</xsl:when> |
1267 |
<xsl:otherwise>ab</xsl:otherwise> |
1268 |
</xsl:choose> |
1269 |
</xsl:with-param> |
1270 |
</xsl:call-template> |
1271 |
</xsl:with-param> |
1272 |
<xsl:with-param name="punctuation"> |
1273 |
<xsl:text>:,;/ </xsl:text> |
1274 |
</xsl:with-param> |
1275 |
</xsl:call-template> |
1276 |
<!-- Display only name and title portion in 711 field --> |
1277 |
<xsl:if test="@tag=711 and boolean(marc:subfield[@code='c' or @code='d' or @code='g' or @code='n' or @code='t'])"> |
1278 |
<span class="titleportion"> |
1279 |
<xsl:choose> |
1280 |
<xsl:when test="marc:subfield[@code='c' or @code='d' or @code='g' or @code='n'][not(marc:subfield[@code='t'])]"><xsl:text> </xsl:text></xsl:when> |
1281 |
<xsl:otherwise><xsl:text>. </xsl:text></xsl:otherwise> |
1282 |
</xsl:choose> |
1283 |
|
1284 |
<xsl:call-template name="chopPunctuation"> |
1285 |
<xsl:with-param name="chopString"> |
1286 |
<xsl:call-template name="subfieldSelect"> |
1287 |
<xsl:with-param name="codes">cdgnt</xsl:with-param> |
1288 |
</xsl:call-template> |
1289 |
</xsl:with-param> |
1290 |
</xsl:call-template> |
1291 |
</span> |
1292 |
</xsl:if> |
1293 |
<!-- Display only name and title portion in 710 field --> |
1294 |
<xsl:if test="@tag=710 and boolean(marc:subfield[@code='c' or @code='d' or @code='n' or @code='t'])"> |
1295 |
<span class="titleportion"> |
1296 |
<xsl:choose> |
1297 |
<xsl:when test="marc:subfield[@code='c' or @code='d' or @code='n'][not(marc:subfield[@code='t'])]"><xsl:text> </xsl:text></xsl:when> |
1298 |
<xsl:otherwise><xsl:text>. </xsl:text></xsl:otherwise> |
1299 |
</xsl:choose> |
1300 |
<xsl:call-template name="chopPunctuation"> |
1301 |
<xsl:with-param name="chopString"> |
1302 |
<xsl:call-template name="subfieldSelect"> |
1303 |
<xsl:with-param name="codes">cdnt</xsl:with-param> |
1304 |
</xsl:call-template> |
1305 |
</xsl:with-param> |
1306 |
</xsl:call-template> |
1307 |
</span> |
1308 |
</xsl:if> |
1309 |
|
1310 |
</xsl:if> |
1311 |
<!-- Display only name portion in 700 field --> |
1312 |
<xsl:if test="@tag=700"> |
1313 |
<xsl:call-template name="chopPunctuation"> |
1314 |
<xsl:with-param name="chopString"> |
1315 |
<xsl:call-template name="subfieldSelect"> |
1316 |
<xsl:with-param name="codes">abcq</xsl:with-param> |
1317 |
</xsl:call-template> |
1318 |
</xsl:with-param> |
1319 |
</xsl:call-template> |
1320 |
</xsl:if> |
1321 |
<!-- Display class "authordates" in 700 field --> |
1322 |
<xsl:if test="@tag=700 and marc:subfield[@code='d']"> |
1323 |
<span class="authordates"> |
1324 |
<xsl:text>, </xsl:text> |
1325 |
<xsl:call-template name="chopPunctuation"> |
1326 |
<xsl:with-param name="chopString"> |
1327 |
<xsl:call-template name="subfieldSelect"> |
1328 |
<xsl:with-param name="codes">d</xsl:with-param> |
1329 |
</xsl:call-template> |
1330 |
</xsl:with-param> |
1331 |
</xsl:call-template> |
1332 |
</span> |
1333 |
</xsl:if> |
1334 |
<!-- Display class "titleportion" in 700 field --> |
1335 |
<xsl:variable name="titleportionfields" select="boolean(marc:subfield[@code='t' or @code='j' or @code='k' or @code='u'])"/> |
1336 |
<xsl:if test="@tag=700 and $titleportionfields"> |
1337 |
<span class="titleportion"> |
1338 |
<xsl:text>. </xsl:text> |
1339 |
<xsl:call-template name="chopPunctuation"> |
1340 |
<xsl:with-param name="chopString"> |
1341 |
<xsl:call-template name="subfieldSelect"> |
1342 |
<xsl:with-param name="codes">fghjklmnoprstux</xsl:with-param> |
1343 |
</xsl:call-template> |
1344 |
</xsl:with-param> |
1345 |
</xsl:call-template> |
1346 |
</span> |
1347 |
</xsl:if> |
1348 |
|
1349 |
</xsl:when> |
1350 |
</xsl:choose> |
1351 |
|
1352 |
<!-- add relator code too between brackets--> |
1233 |
<!-- #13383 include relator code j for field 111 --> |
1353 |
<!-- #13383 include relator code j for field 111 --> |
1234 |
<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'][. != ''])"> |
1354 |
<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'][. != ''])"> |
1235 |
<span class="relatorcode"> |
1355 |
<span class="relatorcode"> |
1236 |
<xsl:text> [</xsl:text> |
1356 |
<xsl:text> [</xsl:text> |
1237 |
<xsl:choose> |
1357 |
<xsl:choose> |
1238 |
<xsl:when test="@tag=111"> |
1358 |
<xsl:when test="@tag=111 or @tag=711"> |
1239 |
<xsl:choose> |
1359 |
<xsl:choose> |
1240 |
<!-- Prefer j over 4 --> |
1360 |
<!-- Prefer j over 4 for fields 111 and 711--> |
1241 |
<xsl:when test="marc:subfield[@code='j']"> |
1361 |
<xsl:when test="marc:subfield[@code='j']"> |
1242 |
<xsl:for-each select="marc:subfield[@code='j']"> |
1362 |
<xsl:for-each select="marc:subfield[@code='j']"> |
1243 |
<xsl:value-of select="."/> |
1363 |
<xsl:value-of select="."/> |
Lines 1252-1259
Link Here
|
1252 |
</xsl:otherwise> |
1372 |
</xsl:otherwise> |
1253 |
</xsl:choose> |
1373 |
</xsl:choose> |
1254 |
</xsl:when> |
1374 |
</xsl:when> |
1255 |
<!-- Prefer e over 4 --> |
1375 |
<!-- Prefer e over 4 for fields 111 and 711--> |
1256 |
<xsl:when test="marc:subfield[@code='e']"> |
1376 |
<xsl:when test="marc:subfield[@code='e'][not(@tag=111) or not(@tag=711)]"> |
1257 |
<xsl:for-each select="marc:subfield[@code='e']"> |
1377 |
<xsl:for-each select="marc:subfield[@code='e']"> |
1258 |
<xsl:value-of select="."/> |
1378 |
<xsl:value-of select="."/> |
1259 |
<xsl:if test="position() != last()">, </xsl:if> |
1379 |
<xsl:if test="position() != last()">, </xsl:if> |
Lines 1269-1275
Link Here
|
1269 |
<xsl:text>]</xsl:text> |
1389 |
<xsl:text>]</xsl:text> |
1270 |
</span> |
1390 |
</span> |
1271 |
</xsl:if> |
1391 |
</xsl:if> |
1272 |
</a> |
1392 |
</a> |
1273 |
<xsl:choose> |
1393 |
<xsl:choose> |
1274 |
<xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><span class="separator"><xsl:text> | </xsl:text></span></xsl:otherwise> |
1394 |
<xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><span class="separator"><xsl:text> | </xsl:text></span></xsl:otherwise> |
1275 |
</xsl:choose> |
1395 |
</xsl:choose> |