View | Details | Raw Unified | Return to bug 32695
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl (-30 / +75 lines)
Lines 1263-1278 Link Here
1263
        <xsl:if test="marc:datafield[@tag=775]">
1263
        <xsl:if test="marc:datafield[@tag=775]">
1264
        <span class="results_summary other_editions"><span class="label">Other editions: </span>
1264
        <span class="results_summary other_editions"><span class="label">Other editions: </span>
1265
        <xsl:for-each select="marc:datafield[@tag=775]">
1265
        <xsl:for-each select="marc:datafield[@tag=775]">
1266
            <xsl:variable name="f775">
1266
1267
                <xsl:call-template name="chopPunctuation"><xsl:with-param name="chopString"><xsl:call-template name="subfieldSelect">
1267
            <xsl:variable name="relation_query">
1268
                <xsl:with-param name="codes">t</xsl:with-param>
1268
                <xsl:text>ti,phr:(</xsl:text>
1269
                </xsl:call-template></xsl:with-param></xsl:call-template>
1269
                <xsl:call-template name="quote_search_term">
1270
                    <xsl:with-param name="term"><xsl:value-of select="marc:subfield[@code='t']"/></xsl:with-param>
1271
                </xsl:call-template>
1272
                <xsl:text>)</xsl:text>
1273
                <xsl:if test="marc:subfield[@code='a']">
1274
                    <xsl:text> AND au:(</xsl:text>
1275
                    <xsl:call-template name="quote_search_term">
1276
                        <xsl:with-param name="term">
1277
                            <xsl:value-of select="marc:subfield[@code='a']"/>
1278
                        </xsl:with-param>
1279
                    </xsl:call-template>
1280
                    <xsl:text>)</xsl:text>
1281
                </xsl:if>
1270
            </xsl:variable>
1282
            </xsl:variable>
1283
1271
            <xsl:if test="marc:subfield[@code='i']">
1284
            <xsl:if test="marc:subfield[@code='i']">
1272
                <xsl:call-template name="subfieldSelect">
1285
                <xsl:call-template name="subfieldSelect">
1273
                    <xsl:with-param name="codes">i</xsl:with-param>
1286
                    <xsl:with-param name="codes">i</xsl:with-param>
1274
                </xsl:call-template>
1287
                </xsl:call-template>
1275
                <xsl:text>: </xsl:text>
1288
                <xsl:text> </xsl:text>
1276
            </xsl:if>
1289
            </xsl:if>
1277
            <a>
1290
            <a>
1278
            <xsl:choose>
1291
            <xsl:choose>
Lines 1280-1286 Link Here
1280
                <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=Control-number:<xsl:call-template name="extractControlNumber"><xsl:with-param name="subfieldW" select="marc:subfield[@code='w']"/></xsl:call-template></xsl:attribute>
1293
                <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=Control-number:<xsl:call-template name="extractControlNumber"><xsl:with-param name="subfieldW" select="marc:subfield[@code='w']"/></xsl:call-template></xsl:attribute>
1281
            </xsl:when>
1294
            </xsl:when>
1282
            <xsl:otherwise>
1295
            <xsl:otherwise>
1283
                <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=ti,phr:<xsl:value-of select="str:encode-uri(translate($f775, '()', ''), true())"/></xsl:attribute>
1296
                <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=<xsl:value-of select="str:encode-uri($relation_query, true())" /></xsl:attribute>
1284
            </xsl:otherwise>
1297
            </xsl:otherwise>
1285
            </xsl:choose>
1298
            </xsl:choose>
1286
            <xsl:call-template name="subfieldSelect">
1299
            <xsl:call-template name="subfieldSelect">
Lines 1335-1354 Link Here
1335
                            </span>
1348
                            </span>
1336
                        </xsl:if>
1349
                        </xsl:if>
1337
1350
1338
                        <xsl:variable name="f780">
1351
                        <xsl:variable name="relation_query">
1339
                            <xsl:call-template name="subfieldSelect">
1352
                            <xsl:text>ti,phr:(</xsl:text>
1340
                                <xsl:with-param name="codes">a_t</xsl:with-param>
1353
                            <xsl:call-template name="quote_search_term">
1354
                                <xsl:with-param name="term"><xsl:value-of select="marc:subfield[@code='t']"/></xsl:with-param>
1341
                            </xsl:call-template>
1355
                            </xsl:call-template>
1356
                            <xsl:text>)</xsl:text>
1357
                            <xsl:if test="marc:subfield[@code='a']">
1358
                                <xsl:text> AND au:(</xsl:text>
1359
                                <xsl:call-template name="quote_search_term">
1360
                                    <xsl:with-param name="term">
1361
                                        <xsl:value-of select="marc:subfield[@code='a']"/>
1362
                                    </xsl:with-param>
1363
                                </xsl:call-template>
1364
                                <xsl:text>)</xsl:text>
1365
                            </xsl:if>
1342
                        </xsl:variable>
1366
                        </xsl:variable>
1367
1343
                        <xsl:choose>
1368
                        <xsl:choose>
1344
                            <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
1369
                            <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
1345
                                <a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=Control-number:<xsl:call-template name="extractControlNumber"><xsl:with-param name="subfieldW" select="marc:subfield[@code='w']"/></xsl:call-template></xsl:attribute>
1370
                                <a>
1346
                                    <xsl:value-of select="$f780"/>
1371
                                    <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=Control-number:<xsl:call-template name="extractControlNumber"><xsl:with-param name="subfieldW" select="marc:subfield[@code='w']"/></xsl:call-template></xsl:attribute>
1372
                                    <xsl:call-template name="subfieldSelect">
1373
                                        <xsl:with-param name="codes">a_t</xsl:with-param>
1374
                                    </xsl:call-template>
1347
                                </a>
1375
                                </a>
1348
                            </xsl:when>
1376
                            </xsl:when>
1349
                            <xsl:otherwise>
1377
                            <xsl:otherwise>
1350
                                <a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=ti,phr:<xsl:value-of select="str:encode-uri(translate($f780, '()', ''), true())"/></xsl:attribute>
1378
                                <a>
1351
                                    <xsl:value-of select="$f780"/>
1379
                                    <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=<xsl:value-of select="str:encode-uri($relation_query, true())" /></xsl:attribute>
1380
                                     <xsl:call-template name="subfieldSelect">
1381
                                        <xsl:with-param name="codes">a_t</xsl:with-param>
1382
                                    </xsl:call-template>
1352
                                </a>
1383
                                </a>
1353
                            </xsl:otherwise>
1384
                            </xsl:otherwise>
1354
                        </xsl:choose>
1385
                        </xsl:choose>
Lines 1405-1425 Link Here
1405
                            </span>
1436
                            </span>
1406
                        </xsl:if>
1437
                        </xsl:if>
1407
1438
1408
                        <xsl:variable name="f785">
1439
                        <xsl:variable name="relation_query">
1409
                            <xsl:call-template name="subfieldSelect">
1440
                            <xsl:text>ti,phr:(</xsl:text>
1410
                                <xsl:with-param name="codes">a_t</xsl:with-param>
1441
                            <xsl:call-template name="quote_search_term">
1442
                                <xsl:with-param name="term"><xsl:value-of select="marc:subfield[@code='t']"/></xsl:with-param>
1411
                            </xsl:call-template>
1443
                            </xsl:call-template>
1444
                            <xsl:text>)</xsl:text>
1445
                            <xsl:if test="marc:subfield[@code='a']">
1446
                                <xsl:text> AND au:(</xsl:text>
1447
                                <xsl:call-template name="quote_search_term">
1448
                                    <xsl:with-param name="term">
1449
                                        <xsl:value-of select="marc:subfield[@code='a']"/>
1450
                                    </xsl:with-param>
1451
                                </xsl:call-template>
1452
                                <xsl:text>)</xsl:text>
1453
                            </xsl:if>
1412
                        </xsl:variable>
1454
                        </xsl:variable>
1413
1455
1414
                        <xsl:choose>
1456
                        <xsl:choose>
1415
                            <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
1457
                            <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
1416
                                <a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=Control-number:<xsl:call-template name="extractControlNumber"><xsl:with-param name="subfieldW" select="marc:subfield[@code='w']"/></xsl:call-template></xsl:attribute>
1458
                                <a>
1417
                                    <xsl:value-of select="$f785"/>
1459
                                    <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=Control-number:<xsl:call-template name="extractControlNumber"><xsl:with-param name="subfieldW" select="marc:subfield[@code='w']"/></xsl:call-template></xsl:attribute>
1460
                                    <xsl:call-template name="subfieldSelect">
1461
                                        <xsl:with-param name="codes">a_t</xsl:with-param>
1462
                                    </xsl:call-template>
1418
                                </a>
1463
                                </a>
1419
                            </xsl:when>
1464
                            </xsl:when>
1420
                            <xsl:otherwise>
1465
                            <xsl:otherwise>
1421
                                <a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=ti,phr:<xsl:value-of select="str:encode-uri(translate($f785, '()', ''), true())"/></xsl:attribute>
1466
                                <a>
1422
                                    <xsl:value-of select="$f785"/>
1467
                                    <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=<xsl:value-of select="str:encode-uri($relation_query, true())" /></xsl:attribute>
1468
                                    <xsl:call-template name="subfieldSelect">
1469
                                        <xsl:with-param name="codes">a_t</xsl:with-param>
1470
                                    </xsl:call-template>
1423
                                </a>
1471
                                </a>
1424
                            </xsl:otherwise>
1472
                            </xsl:otherwise>
1425
                        </xsl:choose>
1473
                        </xsl:choose>
Lines 1434-1453 Link Here
1434
        <span class="results_summary other_relationship_entry"><span class="label">Other related works: </span>
1482
        <span class="results_summary other_relationship_entry"><span class="label">Other related works: </span>
1435
        <xsl:for-each select="marc:datafield[@tag=787]">
1483
        <xsl:for-each select="marc:datafield[@tag=787]">
1436
            <span class="other_relationship_entry">
1484
            <span class="other_relationship_entry">
1437
                <xsl:variable name="f787">
1438
                    <xsl:call-template name="chopPunctuation"><xsl:with-param name="chopString"><xsl:call-template name="subfieldSelect">
1439
                    <xsl:with-param name="codes">a_t</xsl:with-param>
1440
                    </xsl:call-template></xsl:with-param></xsl:call-template>
1441
                </xsl:variable>
1442
                <xsl:if test="marc:subfield[@code='i']">
1485
                <xsl:if test="marc:subfield[@code='i']">
1443
                    <xsl:call-template name="subfieldSelect">
1486
                    <xsl:call-template name="subfieldSelect">
1444
                        <xsl:with-param name="codes">i</xsl:with-param>
1487
                        <xsl:with-param name="codes">i</xsl:with-param>
1445
                    </xsl:call-template>
1488
                    </xsl:call-template>
1446
                    <xsl:text>: </xsl:text>
1489
                    <xsl:text> </xsl:text>
1447
                </xsl:if>
1490
                </xsl:if>
1448
                <xsl:choose>
1491
                <xsl:choose>
1449
                <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
1492
                <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
1450
                    <a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=Control-number:<xsl:call-template name="extractControlNumber"><xsl:with-param name="subfieldW" select="marc:subfield[@code='w']"/></xsl:call-template></xsl:attribute>
1493
                    <a>
1494
                        <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=Control-number:<xsl:call-template name="extractControlNumber"><xsl:with-param name="subfieldW" select="marc:subfield[@code='w']"/></xsl:call-template></xsl:attribute>
1451
                        <xsl:value-of select="$f787"/>
1495
                        <xsl:value-of select="$f787"/>
1452
                    </a>
1496
                    </a>
1453
                </xsl:when>
1497
                </xsl:when>
Lines 1469-1477 Link Here
1469
                        </xsl:if>
1513
                        </xsl:if>
1470
                    </xsl:variable>
1514
                    </xsl:variable>
1471
                    <a>
1515
                    <a>
1472
                    <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=<xsl:value-of select="str:encode-uri($relation_query, true())" />
1516
                        <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=<xsl:value-of select="str:encode-uri($relation_query, true())" /></xsl:attribute>
1473
                    </xsl:attribute>
1517
                        <xsl:call-template name="subfieldSelect">
1474
                        <xsl:value-of select="$f787"/>
1518
                            <xsl:with-param name="codes">a_t</xsl:with-param>
1519
                        </xsl:call-template>
1475
                    </a>
1520
                    </a>
1476
                </xsl:otherwise>
1521
                </xsl:otherwise>
1477
                </xsl:choose>
1522
                </xsl:choose>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl (-36 / +80 lines)
Lines 1086-1106 Link Here
1086
        <span class="results_summary other_relationship_entry"><span class="label">Other related works: </span>
1086
        <span class="results_summary other_relationship_entry"><span class="label">Other related works: </span>
1087
        <xsl:for-each select="marc:datafield[@tag=787]">
1087
        <xsl:for-each select="marc:datafield[@tag=787]">
1088
            <span class="other_relationship_entry">
1088
            <span class="other_relationship_entry">
1089
                <xsl:variable name="f787">
1090
                    <xsl:call-template name="chopPunctuation"><xsl:with-param name="chopString"><xsl:call-template name="subfieldSelect">
1091
                    <xsl:with-param name="codes">a_t</xsl:with-param>
1092
                    </xsl:call-template></xsl:with-param></xsl:call-template>
1093
                </xsl:variable>
1094
                <xsl:if test="marc:subfield[@code='i']">
1089
                <xsl:if test="marc:subfield[@code='i']">
1095
                    <xsl:call-template name="subfieldSelect">
1090
                    <xsl:call-template name="subfieldSelect">
1096
                        <xsl:with-param name="codes">i</xsl:with-param>
1091
                        <xsl:with-param name="codes">i</xsl:with-param>
1097
                    </xsl:call-template>
1092
                    </xsl:call-template>
1098
                    <xsl:text>: </xsl:text>
1093
                    <xsl:text> </xsl:text>
1099
                </xsl:if>
1094
                </xsl:if>
1100
                <xsl:choose>
1095
                <xsl:choose>
1101
                <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
1096
                <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
1102
                    <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=Control-number:<xsl:call-template name="extractControlNumber"><xsl:with-param name="subfieldW" select="marc:subfield[@code='w']"/></xsl:call-template></xsl:attribute>
1097
                    <a>
1103
                        <xsl:value-of select="$f787"/>
1098
                        <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=Control-number:<xsl:call-template name="extractControlNumber"><xsl:with-param name="subfieldW" select="marc:subfield[@code='w']"/></xsl:call-template></xsl:attribute>
1099
                        <xsl:call-template name="subfieldSelect">
1100
                            <xsl:with-param name="codes">a_t</xsl:with-param>
1101
                        </xsl:call-template>
1104
                    </a>
1102
                    </a>
1105
                </xsl:when>
1103
                </xsl:when>
1106
                <xsl:otherwise>
1104
                <xsl:otherwise>
Lines 1121-1129 Link Here
1121
                        </xsl:if>
1119
                        </xsl:if>
1122
                    </xsl:variable>
1120
                    </xsl:variable>
1123
                    <a>
1121
                    <a>
1124
                    <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=<xsl:value-of select="str:encode-uri($relation_query, true())" />
1122
                    <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=<xsl:value-of select="str:encode-uri($relation_query, true())" /></xsl:attribute>
1125
                    </xsl:attribute>
1123
                    <xsl:call-template name="subfieldSelect">
1126
                        <xsl:value-of select="$f787"/>
1124
                        <xsl:with-param name="codes">a_t</xsl:with-param>
1125
                    </xsl:call-template>
1127
                    </a>
1126
                    </a>
1128
                </xsl:otherwise>
1127
                </xsl:otherwise>
1129
                </xsl:choose>
1128
                </xsl:choose>
Lines 1504-1528 Link Here
1504
        <xsl:if test="marc:datafield[@tag=775]">
1503
        <xsl:if test="marc:datafield[@tag=775]">
1505
        <span class="results_summary other_editions"><span class="label">Other editions: </span>
1504
        <span class="results_summary other_editions"><span class="label">Other editions: </span>
1506
        <xsl:for-each select="marc:datafield[@tag=775]">
1505
        <xsl:for-each select="marc:datafield[@tag=775]">
1507
            <xsl:variable name="f775">
1506
1508
                <xsl:call-template name="chopPunctuation"><xsl:with-param name="chopString"><xsl:call-template name="subfieldSelect">
1507
            <xsl:variable name="relation_query">
1509
                <xsl:with-param name="codes">t</xsl:with-param>
1508
                <xsl:text>ti,phr:(</xsl:text>
1510
                </xsl:call-template></xsl:with-param></xsl:call-template>
1509
                <xsl:call-template name="quote_search_term">
1510
                    <xsl:with-param name="term"><xsl:value-of select="marc:subfield[@code='t']"/></xsl:with-param>
1511
                </xsl:call-template>
1512
                <xsl:text>)</xsl:text>
1513
                <xsl:if test="marc:subfield[@code='a']">
1514
                    <xsl:text> AND au:(</xsl:text>
1515
                    <xsl:call-template name="quote_search_term">
1516
                        <xsl:with-param name="term">
1517
                            <xsl:value-of select="marc:subfield[@code='a']"/>
1518
                        </xsl:with-param>
1519
                    </xsl:call-template>
1520
                    <xsl:text>)</xsl:text>
1521
                </xsl:if>
1511
            </xsl:variable>
1522
            </xsl:variable>
1523
1512
            <xsl:if test="marc:subfield[@code='i']">
1524
            <xsl:if test="marc:subfield[@code='i']">
1513
                <xsl:call-template name="subfieldSelect">
1525
                <xsl:call-template name="subfieldSelect">
1514
                    <xsl:with-param name="codes">i</xsl:with-param>
1526
                    <xsl:with-param name="codes">i</xsl:with-param>
1515
                </xsl:call-template>
1527
                </xsl:call-template>
1516
                <xsl:text>: </xsl:text>
1528
                <xsl:text> </xsl:text>
1517
            </xsl:if>
1529
            </xsl:if>
1518
            <a>
1530
            <a>
1519
            <xsl:choose>
1531
            <xsl:choose>
1520
            <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
1532
                <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
1521
                <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=Control-number:<xsl:call-template name="extractControlNumber"><xsl:with-param name="subfieldW" select="marc:subfield[@code='w']"/></xsl:call-template></xsl:attribute>
1533
                    <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=Control-number:<xsl:call-template name="extractControlNumber"><xsl:with-param name="subfieldW" select="marc:subfield[@code='w']"/></xsl:call-template></xsl:attribute>
1522
            </xsl:when>
1534
                </xsl:when>
1523
            <xsl:otherwise>
1535
                <xsl:otherwise>
1524
                <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=ti,phr:<xsl:value-of select="str:encode-uri(translate($f775, '()', ''), true())"/></xsl:attribute>
1536
                    <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=<xsl:value-of select="str:encode-uri($relation_query, true())" /></xsl:attribute>
1525
            </xsl:otherwise>
1537
                </xsl:otherwise>
1526
            </xsl:choose>
1538
            </xsl:choose>
1527
            <xsl:call-template name="subfieldSelect">
1539
            <xsl:call-template name="subfieldSelect">
1528
                <xsl:with-param name="codes">a_t</xsl:with-param>
1540
                <xsl:with-param name="codes">a_t</xsl:with-param>
Lines 1576-1596 Link Here
1576
                            </span>
1588
                            </span>
1577
                        </xsl:if>
1589
                        </xsl:if>
1578
1590
1579
                        <xsl:variable name="f780">
1591
                        <xsl:variable name="relation_query">
1580
                            <xsl:call-template name="subfieldSelect">
1592
                            <xsl:text>ti,phr:(</xsl:text>
1581
                                <xsl:with-param name="codes">a_t</xsl:with-param>
1593
                            <xsl:call-template name="quote_search_term">
1594
                                <xsl:with-param name="term"><xsl:value-of select="marc:subfield[@code='t']"/></xsl:with-param>
1582
                            </xsl:call-template>
1595
                            </xsl:call-template>
1596
                            <xsl:text>)</xsl:text>
1597
                            <xsl:if test="marc:subfield[@code='a']">
1598
                                <xsl:text> AND au:(</xsl:text>
1599
                                <xsl:call-template name="quote_search_term">
1600
                                    <xsl:with-param name="term">
1601
                                        <xsl:value-of select="marc:subfield[@code='a']"/>
1602
                                    </xsl:with-param>
1603
                                </xsl:call-template>
1604
                                <xsl:text>)</xsl:text>
1605
                            </xsl:if>
1583
                        </xsl:variable>
1606
                        </xsl:variable>
1584
1607
1585
                        <xsl:choose>
1608
                        <xsl:choose>
1586
                            <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
1609
                            <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
1587
                                <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=Control-number:<xsl:call-template name="extractControlNumber"><xsl:with-param name="subfieldW" select="marc:subfield[@code='w']"/></xsl:call-template></xsl:attribute>
1610
                                <a>
1588
                                    <xsl:value-of select="$f780"/>
1611
                                    <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=Control-number:<xsl:call-template name="extractControlNumber"><xsl:with-param name="subfieldW" select="marc:subfield[@code='w']"/></xsl:call-template></xsl:attribute>
1612
                                    <xsl:call-template name="subfieldSelect">
1613
                                        <xsl:with-param name="codes">a_t</xsl:with-param>
1614
                                    </xsl:call-template>
1589
                                </a>
1615
                                </a>
1590
                            </xsl:when>
1616
                            </xsl:when>
1591
                            <xsl:otherwise>
1617
                            <xsl:otherwise>
1592
                                <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=ti,phr:<xsl:value-of select="str:encode-uri(translate($f780, '()', ''), true())"/></xsl:attribute>
1618
                                <a>
1593
                                    <xsl:value-of select="$f780"/>
1619
                                    <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=<xsl:value-of select="str:encode-uri($relation_query, true())" /></xsl:attribute>
1620
                                    <xsl:call-template name="subfieldSelect">
1621
                                        <xsl:with-param name="codes">a_t</xsl:with-param>
1622
                                    </xsl:call-template>
1594
                                </a>
1623
                                </a>
1595
                            </xsl:otherwise>
1624
                            </xsl:otherwise>
1596
                        </xsl:choose>
1625
                        </xsl:choose>
Lines 1647-1667 Link Here
1647
                            </span>
1676
                            </span>
1648
                        </xsl:if>
1677
                        </xsl:if>
1649
1678
1650
                        <xsl:variable name="f785">
1679
                        <xsl:variable name="relation_query">
1651
                            <xsl:call-template name="subfieldSelect">
1680
                            <xsl:text>ti,phr:(</xsl:text>
1652
                                <xsl:with-param name="codes">a_t</xsl:with-param>
1681
                            <xsl:call-template name="quote_search_term">
1682
                                <xsl:with-param name="term"><xsl:value-of select="marc:subfield[@code='t']"/></xsl:with-param>
1653
                            </xsl:call-template>
1683
                            </xsl:call-template>
1684
                            <xsl:text>)</xsl:text>
1685
                            <xsl:if test="marc:subfield[@code='a']">
1686
                                <xsl:text> AND au:(</xsl:text>
1687
                                <xsl:call-template name="quote_search_term">
1688
                                    <xsl:with-param name="term">
1689
                                        <xsl:value-of select="marc:subfield[@code='a']"/>
1690
                                    </xsl:with-param>
1691
                                </xsl:call-template>
1692
                                <xsl:text>)</xsl:text>
1693
                            </xsl:if>
1654
                        </xsl:variable>
1694
                        </xsl:variable>
1655
1695
1656
                        <xsl:choose>
1696
                        <xsl:choose>
1657
                            <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
1697
                            <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
1658
                                <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=Control-number:<xsl:call-template name="extractControlNumber"><xsl:with-param name="subfieldW" select="marc:subfield[@code='w']"/></xsl:call-template></xsl:attribute>
1698
                                <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=Control-number:<xsl:call-template name="extractControlNumber"><xsl:with-param name="subfieldW" select="marc:subfield[@code='w']"/></xsl:call-template></xsl:attribute>
1659
                                    <xsl:value-of select="$f785"/>
1699
                                    <xsl:call-template name="subfieldSelect">
1700
                                        <xsl:with-param name="codes">a_t</xsl:with-param>
1701
                                    </xsl:call-template>
1660
                                </a>
1702
                                </a>
1661
                            </xsl:when>
1703
                            </xsl:when>
1662
                            <xsl:otherwise>
1704
                            <xsl:otherwise>
1663
                                <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=ti,phr:<xsl:value-of select="str:encode-uri(translate($f785, '()', ''), true())"/></xsl:attribute>
1705
                                <a>
1664
                                    <xsl:value-of select="$f785"/>
1706
                                    <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=<xsl:value-of select="str:encode-uri($relation_query, true())" /></xsl:attribute>
1707
                                    <xsl:call-template name="subfieldSelect">
1708
                                        <xsl:with-param name="codes">a_t</xsl:with-param>
1709
                                    </xsl:call-template>
1665
                                </a>
1710
                                </a>
1666
                            </xsl:otherwise>
1711
                            </xsl:otherwise>
1667
                        </xsl:choose>
1712
                        </xsl:choose>
1668
- 

Return to bug 32695