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

(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl (-31 / +78 lines)
Lines 1321-1336 Link Here
1321
        <xsl:if test="marc:datafield[@tag=775]">
1321
        <xsl:if test="marc:datafield[@tag=775]">
1322
        <span class="results_summary other_editions"><span class="label">Other editions: </span>
1322
        <span class="results_summary other_editions"><span class="label">Other editions: </span>
1323
        <xsl:for-each select="marc:datafield[@tag=775]">
1323
        <xsl:for-each select="marc:datafield[@tag=775]">
1324
            <xsl:variable name="f775">
1324
1325
                <xsl:call-template name="chopPunctuation"><xsl:with-param name="chopString"><xsl:call-template name="subfieldSelect">
1325
            <xsl:variable name="relation_query">
1326
                <xsl:with-param name="codes">a_t</xsl:with-param>
1326
                <xsl:text>ti,phr:(</xsl:text>
1327
                </xsl:call-template></xsl:with-param></xsl:call-template>
1327
                <xsl:call-template name="quote_search_term">
1328
                    <xsl:with-param name="term"><xsl:value-of select="marc:subfield[@code='t']"/></xsl:with-param>
1329
                </xsl:call-template>
1330
                <xsl:text>)</xsl:text>
1331
                <xsl:if test="marc:subfield[@code='a']">
1332
                    <xsl:text> AND au:(</xsl:text>
1333
                    <xsl:call-template name="quote_search_term">
1334
                        <xsl:with-param name="term">
1335
                            <xsl:value-of select="marc:subfield[@code='a']"/>
1336
                        </xsl:with-param>
1337
                    </xsl:call-template>
1338
                    <xsl:text>)</xsl:text>
1339
                </xsl:if>
1328
            </xsl:variable>
1340
            </xsl:variable>
1341
1329
            <xsl:if test="marc:subfield[@code='i']">
1342
            <xsl:if test="marc:subfield[@code='i']">
1330
                <xsl:call-template name="subfieldSelect">
1343
                <xsl:call-template name="subfieldSelect">
1331
                    <xsl:with-param name="codes">i</xsl:with-param>
1344
                    <xsl:with-param name="codes">i</xsl:with-param>
1332
                </xsl:call-template>
1345
                </xsl:call-template>
1333
                <xsl:text>: </xsl:text>
1346
                <xsl:text> </xsl:text>
1334
            </xsl:if>
1347
            </xsl:if>
1335
            <a>
1348
            <a>
1336
            <xsl:choose>
1349
            <xsl:choose>
Lines 1338-1344 Link Here
1338
                <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>
1351
                <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>
1339
            </xsl:when>
1352
            </xsl:when>
1340
            <xsl:otherwise>
1353
            <xsl:otherwise>
1341
                <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>
1354
                <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=<xsl:value-of select="str:encode-uri($relation_query, true())" /></xsl:attribute>
1342
            </xsl:otherwise>
1355
            </xsl:otherwise>
1343
            </xsl:choose>
1356
            </xsl:choose>
1344
            <xsl:call-template name="subfieldSelect">
1357
            <xsl:call-template name="subfieldSelect">
Lines 1393-1412 Link Here
1393
                            </span>
1406
                            </span>
1394
                        </xsl:if>
1407
                        </xsl:if>
1395
1408
1396
                        <xsl:variable name="f780">
1409
                        <xsl:variable name="relation_query">
1397
                            <xsl:call-template name="subfieldSelect">
1410
                            <xsl:text>ti,phr:(</xsl:text>
1398
                                <xsl:with-param name="codes">a_t</xsl:with-param>
1411
                            <xsl:call-template name="quote_search_term">
1412
                                <xsl:with-param name="term"><xsl:value-of select="marc:subfield[@code='t']"/></xsl:with-param>
1399
                            </xsl:call-template>
1413
                            </xsl:call-template>
1414
                            <xsl:text>)</xsl:text>
1415
                            <xsl:if test="marc:subfield[@code='a']">
1416
                                <xsl:text> AND au:(</xsl:text>
1417
                                <xsl:call-template name="quote_search_term">
1418
                                    <xsl:with-param name="term">
1419
                                        <xsl:value-of select="marc:subfield[@code='a']"/>
1420
                                    </xsl:with-param>
1421
                                </xsl:call-template>
1422
                                <xsl:text>)</xsl:text>
1423
                            </xsl:if>
1400
                        </xsl:variable>
1424
                        </xsl:variable>
1425
1401
                        <xsl:choose>
1426
                        <xsl:choose>
1402
                            <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
1427
                            <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
1403
                                <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>
1428
                                <a>
1404
                                    <xsl:value-of select="$f780"/>
1429
                                    <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>
1430
                                    <xsl:call-template name="subfieldSelect">
1431
                                        <xsl:with-param name="codes">a_t</xsl:with-param>
1432
                                    </xsl:call-template>
1405
                                </a>
1433
                                </a>
1406
                            </xsl:when>
1434
                            </xsl:when>
1407
                            <xsl:otherwise>
1435
                            <xsl:otherwise>
1408
                                <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>
1436
                                <a>
1409
                                    <xsl:value-of select="$f780"/>
1437
                                    <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=<xsl:value-of select="str:encode-uri($relation_query, true())" /></xsl:attribute>
1438
                                     <xsl:call-template name="subfieldSelect">
1439
                                        <xsl:with-param name="codes">a_t</xsl:with-param>
1440
                                    </xsl:call-template>
1410
                                </a>
1441
                                </a>
1411
                            </xsl:otherwise>
1442
                            </xsl:otherwise>
1412
                        </xsl:choose>
1443
                        </xsl:choose>
Lines 1463-1483 Link Here
1463
                            </span>
1494
                            </span>
1464
                        </xsl:if>
1495
                        </xsl:if>
1465
1496
1466
                        <xsl:variable name="f785">
1497
                        <xsl:variable name="relation_query">
1467
                            <xsl:call-template name="subfieldSelect">
1498
                            <xsl:text>ti,phr:(</xsl:text>
1468
                                <xsl:with-param name="codes">a_t</xsl:with-param>
1499
                            <xsl:call-template name="quote_search_term">
1500
                                <xsl:with-param name="term"><xsl:value-of select="marc:subfield[@code='t']"/></xsl:with-param>
1469
                            </xsl:call-template>
1501
                            </xsl:call-template>
1502
                            <xsl:text>)</xsl:text>
1503
                            <xsl:if test="marc:subfield[@code='a']">
1504
                                <xsl:text> AND au:(</xsl:text>
1505
                                <xsl:call-template name="quote_search_term">
1506
                                    <xsl:with-param name="term">
1507
                                        <xsl:value-of select="marc:subfield[@code='a']"/>
1508
                                    </xsl:with-param>
1509
                                </xsl:call-template>
1510
                                <xsl:text>)</xsl:text>
1511
                            </xsl:if>
1470
                        </xsl:variable>
1512
                        </xsl:variable>
1471
1513
1472
                        <xsl:choose>
1514
                        <xsl:choose>
1473
                            <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
1515
                            <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
1474
                                <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>
1516
                                <a>
1475
                                    <xsl:value-of select="$f785"/>
1517
                                    <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>
1518
                                    <xsl:call-template name="subfieldSelect">
1519
                                        <xsl:with-param name="codes">a_t</xsl:with-param>
1520
                                    </xsl:call-template>
1476
                                </a>
1521
                                </a>
1477
                            </xsl:when>
1522
                            </xsl:when>
1478
                            <xsl:otherwise>
1523
                            <xsl:otherwise>
1479
                                <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>
1524
                                <a>
1480
                                    <xsl:value-of select="$f785"/>
1525
                                    <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=<xsl:value-of select="str:encode-uri($relation_query, true())" /></xsl:attribute>
1526
                                    <xsl:call-template name="subfieldSelect">
1527
                                        <xsl:with-param name="codes">a_t</xsl:with-param>
1528
                                    </xsl:call-template>
1481
                                </a>
1529
                                </a>
1482
                            </xsl:otherwise>
1530
                            </xsl:otherwise>
1483
                        </xsl:choose>
1531
                        </xsl:choose>
Lines 1492-1512 Link Here
1492
        <span class="results_summary other_relationship_entry"><span class="label">Other related works: </span>
1540
        <span class="results_summary other_relationship_entry"><span class="label">Other related works: </span>
1493
        <xsl:for-each select="marc:datafield[@tag=787]">
1541
        <xsl:for-each select="marc:datafield[@tag=787]">
1494
            <span class="other_relationship_entry">
1542
            <span class="other_relationship_entry">
1495
                <xsl:variable name="f787">
1496
                    <xsl:call-template name="chopPunctuation"><xsl:with-param name="chopString"><xsl:call-template name="subfieldSelect">
1497
                    <xsl:with-param name="codes">a_t</xsl:with-param>
1498
                    </xsl:call-template></xsl:with-param></xsl:call-template>
1499
                </xsl:variable>
1500
                <xsl:if test="marc:subfield[@code='i']">
1543
                <xsl:if test="marc:subfield[@code='i']">
1501
                    <xsl:call-template name="subfieldSelect">
1544
                    <xsl:call-template name="subfieldSelect">
1502
                        <xsl:with-param name="codes">i</xsl:with-param>
1545
                        <xsl:with-param name="codes">i</xsl:with-param>
1503
                    </xsl:call-template>
1546
                    </xsl:call-template>
1504
                    <xsl:text>: </xsl:text>
1547
                    <xsl:text> </xsl:text>
1505
                </xsl:if>
1548
                </xsl:if>
1506
                <xsl:choose>
1549
                <xsl:choose>
1507
                <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
1550
                <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
1508
                    <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>
1551
                    <a>
1509
                        <xsl:value-of select="$f787"/>
1552
                        <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>
1553
                        <xsl:call-template name="subfieldSelect">
1554
                            <xsl:with-param name="codes">a_t</xsl:with-param>
1555
                        </xsl:call-template>
1510
                    </a>
1556
                    </a>
1511
                </xsl:when>
1557
                </xsl:when>
1512
                <xsl:otherwise>
1558
                <xsl:otherwise>
Lines 1527-1535 Link Here
1527
                        </xsl:if>
1573
                        </xsl:if>
1528
                    </xsl:variable>
1574
                    </xsl:variable>
1529
                    <a>
1575
                    <a>
1530
                    <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=<xsl:value-of select="str:encode-uri($relation_query, true())" />
1576
                        <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=<xsl:value-of select="str:encode-uri($relation_query, true())" /></xsl:attribute>
1531
                    </xsl:attribute>
1577
                        <xsl:call-template name="subfieldSelect">
1532
                        <xsl:value-of select="$f787"/>
1578
                            <xsl:with-param name="codes">a_t</xsl:with-param>
1579
                        </xsl:call-template>
1533
                    </a>
1580
                    </a>
1534
                </xsl:otherwise>
1581
                </xsl:otherwise>
1535
                </xsl:choose>
1582
                </xsl:choose>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl (-36 / +80 lines)
Lines 1094-1114 Link Here
1094
        <span class="results_summary other_relationship_entry"><span class="label">Other related works: </span>
1094
        <span class="results_summary other_relationship_entry"><span class="label">Other related works: </span>
1095
        <xsl:for-each select="marc:datafield[@tag=787]">
1095
        <xsl:for-each select="marc:datafield[@tag=787]">
1096
            <span class="other_relationship_entry">
1096
            <span class="other_relationship_entry">
1097
                <xsl:variable name="f787">
1098
                    <xsl:call-template name="chopPunctuation"><xsl:with-param name="chopString"><xsl:call-template name="subfieldSelect">
1099
                    <xsl:with-param name="codes">a_t</xsl:with-param>
1100
                    </xsl:call-template></xsl:with-param></xsl:call-template>
1101
                </xsl:variable>
1102
                <xsl:if test="marc:subfield[@code='i']">
1097
                <xsl:if test="marc:subfield[@code='i']">
1103
                    <xsl:call-template name="subfieldSelect">
1098
                    <xsl:call-template name="subfieldSelect">
1104
                        <xsl:with-param name="codes">i</xsl:with-param>
1099
                        <xsl:with-param name="codes">i</xsl:with-param>
1105
                    </xsl:call-template>
1100
                    </xsl:call-template>
1106
                    <xsl:text>: </xsl:text>
1101
                    <xsl:text> </xsl:text>
1107
                </xsl:if>
1102
                </xsl:if>
1108
                <xsl:choose>
1103
                <xsl:choose>
1109
                <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
1104
                <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
1110
                    <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>
1105
                    <a>
1111
                        <xsl:value-of select="$f787"/>
1106
                        <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>
1107
                        <xsl:call-template name="subfieldSelect">
1108
                            <xsl:with-param name="codes">a_t</xsl:with-param>
1109
                        </xsl:call-template>
1112
                    </a>
1110
                    </a>
1113
                </xsl:when>
1111
                </xsl:when>
1114
                <xsl:otherwise>
1112
                <xsl:otherwise>
Lines 1129-1137 Link Here
1129
                        </xsl:if>
1127
                        </xsl:if>
1130
                    </xsl:variable>
1128
                    </xsl:variable>
1131
                    <a>
1129
                    <a>
1132
                    <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=<xsl:value-of select="str:encode-uri($relation_query, true())" />
1130
                    <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=<xsl:value-of select="str:encode-uri($relation_query, true())" /></xsl:attribute>
1133
                    </xsl:attribute>
1131
                    <xsl:call-template name="subfieldSelect">
1134
                        <xsl:value-of select="$f787"/>
1132
                        <xsl:with-param name="codes">a_t</xsl:with-param>
1133
                    </xsl:call-template>
1135
                    </a>
1134
                    </a>
1136
                </xsl:otherwise>
1135
                </xsl:otherwise>
1137
                </xsl:choose>
1136
                </xsl:choose>
Lines 1532-1556 Link Here
1532
        <xsl:if test="marc:datafield[@tag=775]">
1531
        <xsl:if test="marc:datafield[@tag=775]">
1533
        <span class="results_summary other_editions"><span class="label">Other editions: </span>
1532
        <span class="results_summary other_editions"><span class="label">Other editions: </span>
1534
        <xsl:for-each select="marc:datafield[@tag=775]">
1533
        <xsl:for-each select="marc:datafield[@tag=775]">
1535
            <xsl:variable name="f775">
1534
1536
                <xsl:call-template name="chopPunctuation"><xsl:with-param name="chopString"><xsl:call-template name="subfieldSelect">
1535
            <xsl:variable name="relation_query">
1537
                <xsl:with-param name="codes">a_t</xsl:with-param>
1536
                <xsl:text>ti,phr:(</xsl:text>
1538
                </xsl:call-template></xsl:with-param></xsl:call-template>
1537
                <xsl:call-template name="quote_search_term">
1538
                    <xsl:with-param name="term"><xsl:value-of select="marc:subfield[@code='t']"/></xsl:with-param>
1539
                </xsl:call-template>
1540
                <xsl:text>)</xsl:text>
1541
                <xsl:if test="marc:subfield[@code='a']">
1542
                    <xsl:text> AND au:(</xsl:text>
1543
                    <xsl:call-template name="quote_search_term">
1544
                        <xsl:with-param name="term">
1545
                            <xsl:value-of select="marc:subfield[@code='a']"/>
1546
                        </xsl:with-param>
1547
                    </xsl:call-template>
1548
                    <xsl:text>)</xsl:text>
1549
                </xsl:if>
1539
            </xsl:variable>
1550
            </xsl:variable>
1551
1540
            <xsl:if test="marc:subfield[@code='i']">
1552
            <xsl:if test="marc:subfield[@code='i']">
1541
                <xsl:call-template name="subfieldSelect">
1553
                <xsl:call-template name="subfieldSelect">
1542
                    <xsl:with-param name="codes">i</xsl:with-param>
1554
                    <xsl:with-param name="codes">i</xsl:with-param>
1543
                </xsl:call-template>
1555
                </xsl:call-template>
1544
                <xsl:text>: </xsl:text>
1556
                <xsl:text> </xsl:text>
1545
            </xsl:if>
1557
            </xsl:if>
1546
            <a>
1558
            <a>
1547
            <xsl:choose>
1559
            <xsl:choose>
1548
            <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
1560
                <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
1549
                <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>
1561
                    <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>
1550
            </xsl:when>
1562
                </xsl:when>
1551
            <xsl:otherwise>
1563
                <xsl:otherwise>
1552
                <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>
1564
                    <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=<xsl:value-of select="str:encode-uri($relation_query, true())" /></xsl:attribute>
1553
            </xsl:otherwise>
1565
                </xsl:otherwise>
1554
            </xsl:choose>
1566
            </xsl:choose>
1555
            <xsl:call-template name="subfieldSelect">
1567
            <xsl:call-template name="subfieldSelect">
1556
                <xsl:with-param name="codes">a_t</xsl:with-param>
1568
                <xsl:with-param name="codes">a_t</xsl:with-param>
Lines 1604-1624 Link Here
1604
                            </span>
1616
                            </span>
1605
                        </xsl:if>
1617
                        </xsl:if>
1606
1618
1607
                        <xsl:variable name="f780">
1619
                        <xsl:variable name="relation_query">
1608
                            <xsl:call-template name="subfieldSelect">
1620
                            <xsl:text>ti,phr:(</xsl:text>
1609
                                <xsl:with-param name="codes">a_t</xsl:with-param>
1621
                            <xsl:call-template name="quote_search_term">
1622
                                <xsl:with-param name="term"><xsl:value-of select="marc:subfield[@code='t']"/></xsl:with-param>
1610
                            </xsl:call-template>
1623
                            </xsl:call-template>
1624
                            <xsl:text>)</xsl:text>
1625
                            <xsl:if test="marc:subfield[@code='a']">
1626
                                <xsl:text> AND au:(</xsl:text>
1627
                                <xsl:call-template name="quote_search_term">
1628
                                    <xsl:with-param name="term">
1629
                                        <xsl:value-of select="marc:subfield[@code='a']"/>
1630
                                    </xsl:with-param>
1631
                                </xsl:call-template>
1632
                                <xsl:text>)</xsl:text>
1633
                            </xsl:if>
1611
                        </xsl:variable>
1634
                        </xsl:variable>
1612
1635
1613
                        <xsl:choose>
1636
                        <xsl:choose>
1614
                            <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
1637
                            <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
1615
                                <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>
1638
                                <a>
1616
                                    <xsl:value-of select="$f780"/>
1639
                                    <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>
1640
                                    <xsl:call-template name="subfieldSelect">
1641
                                        <xsl:with-param name="codes">a_t</xsl:with-param>
1642
                                    </xsl:call-template>
1617
                                </a>
1643
                                </a>
1618
                            </xsl:when>
1644
                            </xsl:when>
1619
                            <xsl:otherwise>
1645
                            <xsl:otherwise>
1620
                                <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>
1646
                                <a>
1621
                                    <xsl:value-of select="$f780"/>
1647
                                    <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=<xsl:value-of select="str:encode-uri($relation_query, true())" /></xsl:attribute>
1648
                                    <xsl:call-template name="subfieldSelect">
1649
                                        <xsl:with-param name="codes">a_t</xsl:with-param>
1650
                                    </xsl:call-template>
1622
                                </a>
1651
                                </a>
1623
                            </xsl:otherwise>
1652
                            </xsl:otherwise>
1624
                        </xsl:choose>
1653
                        </xsl:choose>
Lines 1675-1695 Link Here
1675
                            </span>
1704
                            </span>
1676
                        </xsl:if>
1705
                        </xsl:if>
1677
1706
1678
                        <xsl:variable name="f785">
1707
                        <xsl:variable name="relation_query">
1679
                            <xsl:call-template name="subfieldSelect">
1708
                            <xsl:text>ti,phr:(</xsl:text>
1680
                                <xsl:with-param name="codes">a_t</xsl:with-param>
1709
                            <xsl:call-template name="quote_search_term">
1710
                                <xsl:with-param name="term"><xsl:value-of select="marc:subfield[@code='t']"/></xsl:with-param>
1681
                            </xsl:call-template>
1711
                            </xsl:call-template>
1712
                            <xsl:text>)</xsl:text>
1713
                            <xsl:if test="marc:subfield[@code='a']">
1714
                                <xsl:text> AND au:(</xsl:text>
1715
                                <xsl:call-template name="quote_search_term">
1716
                                    <xsl:with-param name="term">
1717
                                        <xsl:value-of select="marc:subfield[@code='a']"/>
1718
                                    </xsl:with-param>
1719
                                </xsl:call-template>
1720
                                <xsl:text>)</xsl:text>
1721
                            </xsl:if>
1682
                        </xsl:variable>
1722
                        </xsl:variable>
1683
1723
1684
                        <xsl:choose>
1724
                        <xsl:choose>
1685
                            <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
1725
                            <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
1686
                                <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>
1726
                                <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>
1687
                                    <xsl:value-of select="$f785"/>
1727
                                    <xsl:call-template name="subfieldSelect">
1728
                                        <xsl:with-param name="codes">a_t</xsl:with-param>
1729
                                    </xsl:call-template>
1688
                                </a>
1730
                                </a>
1689
                            </xsl:when>
1731
                            </xsl:when>
1690
                            <xsl:otherwise>
1732
                            <xsl:otherwise>
1691
                                <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>
1733
                                <a>
1692
                                    <xsl:value-of select="$f785"/>
1734
                                    <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=<xsl:value-of select="str:encode-uri($relation_query, true())" /></xsl:attribute>
1735
                                    <xsl:call-template name="subfieldSelect">
1736
                                        <xsl:with-param name="codes">a_t</xsl:with-param>
1737
                                    </xsl:call-template>
1693
                                </a>
1738
                                </a>
1694
                            </xsl:otherwise>
1739
                            </xsl:otherwise>
1695
                        </xsl:choose>
1740
                        </xsl:choose>
1696
- 

Return to bug 32695