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

(-)a/koha-tmpl/opac-tmpl/bootstrap/css/src/_responsive.scss (-2 / +9 lines)
Lines 492-508 Link Here
492
}
492
}
493
493
494
@media only screen and ( max-width: 1040px ) {
494
@media only screen and ( max-width: 1040px ) {
495
    #a_listResults,
496
    #close_pagination {
497
        padding: 5px;
498
    }
499
495
    .pg_menu {
500
    .pg_menu {
496
        li {
501
        li {
497
            a {
502
            a {
503
                display: block;
498
                float: none;
504
                float: none;
499
                text-align: left;
505
                text-align: left;
500
            }
506
            }
501
507
502
            &.back_results {
508
            &.back_results {
503
                a {
509
                a {
504
                    border: 1px solid #D0D0D0;
510
                    border: 0;
505
                    border-width: 1px 0 1px 0;
511
                    border-bottom: 1px solid #DDD;
512
                    border-top: 1px solid #DDD;
506
                }
513
                }
507
            }
514
            }
508
        }
515
        }
(-)a/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss (-56 / +56 lines)
Lines 1458-1474 div { Link Here
1458
/* pagination */
1458
/* pagination */
1459
.results-pagination {
1459
.results-pagination {
1460
    background-color: #F3F3F3;
1460
    background-color: #F3F3F3;
1461
    border: 1px solid #D0D0D0;
1462
    display: none;
1461
    display: none;
1463
    height: auto;
1464
    left: -1px;
1465
    padding-bottom: 10px;
1462
    padding-bottom: 10px;
1466
    position: absolute;
1467
    top: 32px;
1468
    width: 100%;
1469
    z-index: 100;
1470
}
1463
}
1471
1464
1465
.close_pagination {
1466
    display: none;
1467
}
1472
1468
1473
.back {
1469
.back {
1474
    float: right;
1470
    float: right;
Lines 1481-1500 div { Link Here
1481
1477
1482
.pagination_list {
1478
.pagination_list {
1483
    ul {
1479
    ul {
1484
        padding-left: 0;
1480
        margin: 0;
1485
        padding-top: 40px;
1481
        padding: 0;
1486
    }
1482
    }
1487
1483
1488
    li {
1484
    li {
1485
        border-top: 1px solid #DDDDDD;
1489
        color: #999;
1486
        color: #999;
1490
        float: bottom;
1487
        float: bottom;
1491
        list-style: none;
1488
        list-style: none;
1492
        padding: 4px;
1489
        padding: 4px;
1493
1490
1494
        &.highlight {
1491
        &.highlight {
1495
            background-color: #F3F3F3;
1492
            background-color: #DDDDDD;
1496
            border-bottom: 1px solid #DDDDDD;
1497
            border-top: 1px solid #DDDDDD;
1498
        }
1493
        }
1499
1494
1500
        a {
1495
        a {
Lines 1503-1511 div { Link Here
1503
    }
1498
    }
1504
1499
1505
    .li_pag_index {
1500
    .li_pag_index {
1506
        color: #999999;
1501
        color: #636363;
1507
        float: left;
1502
        font-size: 90%;
1508
        font-size: 15px;
1509
        font-weight: bold;
1503
        font-weight: bold;
1510
        padding-right: 10px;
1504
        padding-right: 10px;
1511
        text-align: right;
1505
        text-align: right;
Lines 1513-1549 div { Link Here
1513
    }
1507
    }
1514
}
1508
}
1515
1509
1510
.pagination_footer {
1511
    background-color: #E1E1E1;
1512
    text-align: center;
1513
1514
    .close_pagination {
1515
        display: none;
1516
    }
1517
}
1518
1519
.l_Results {
1520
    background-color: #E1E1E1;
1521
1522
    .close_pagination {
1523
        float: right;
1524
        padding: 8px 12px;
1525
    }
1526
}
1527
1516
.nav_results {
1528
.nav_results {
1517
    background-color: #F3F3F3;
1518
    border: 1px solid #D0D0D0;
1529
    border: 1px solid #D0D0D0;
1519
    font-size: 95%;
1530
    font-size: 95%;
1520
    font-weight: bold;
1531
    font-weight: bold;
1521
    margin-top: .5em;
1532
    margin-top: .5em;
1522
    position: relative;
1533
    position: relative;
1534
}
1523
1535
1524
    .l_Results {
1536
#a_listResults {
1525
        a {
1537
    color: #006699;
1526
            background: #E1E1E1 url( "../images/sprite.png" ) no-repeat 0 -504px; /* Browse results menu */
1538
    display: inline-block;
1527
            color: #006699;
1539
    padding: 8px 28px;
1528
            display: block;
1540
    text-decoration: none;
1529
            padding: 8px 28px;
1530
            text-decoration: none;
1531
        }
1532
1533
        &:hover {
1534
            background-color: #D9D9D9;
1535
        }
1536
    }
1537
}
1541
}
1538
1542
1539
.pg_menu {
1543
.pg_menu {
1544
    background-color: #F3F3F3;
1540
    border-top: 1px solid #D0D0D0;
1545
    border-top: 1px solid #D0D0D0;
1541
    margin: 0;
1546
    margin: 0;
1542
    white-space: nowrap;
1547
    white-space: nowrap;
1543
1548
1544
    li {
1549
    li {
1545
        color: #B2B2B2;
1550
        color: #B2B2B2;
1546
        display: inline;
1551
        display: inline-block;
1552
        float: left;
1547
        list-style: none;
1553
        list-style: none;
1548
        margin: 0;
1554
        margin: 0;
1549
1555
Lines 1573-1633 div { Link Here
1573
1579
1574
#listResults {
1580
#listResults {
1575
    li {
1581
    li {
1576
        background-color: #999999;
1577
        color: #C5C5C5;
1582
        color: #C5C5C5;
1578
        display: block;
1583
        display: inline-block;
1579
        font-size: 80%;
1584
        font-size: 80%;
1580
        font-weight: normal;
1585
        font-weight: normal;
1581
        margin-right: 1px;
1582
        min-width: 18px;
1583
        padding: 0;
1586
        padding: 0;
1584
        text-align: center;
1587
        text-align: center;
1585
1588
1586
        &:hover {
1587
            background-color: #006699;
1588
        }
1589
1590
        a {
1589
        a {
1590
            background-color: #999999;
1591
            color: #FFFFFF;
1591
            color: #FFFFFF;
1592
            display: block;
1592
            font-weight: normal;
1593
            font-weight: normal;
1594
            min-width: 18px;
1595
            text-decoration: none;
1596
1597
            &:hover {
1598
                background-color: #006699;
1599
            }
1600
        }
1601
1602
        .highlight {
1603
            a {
1604
                background-color: #616161;
1605
            }
1593
        }
1606
        }
1594
    }
1607
    }
1595
}
1608
}
1596
1609
1597
/* nav */
1610
/* nav */
1598
.nav_pages {
1611
.nav_pages {
1599
    .close_pagination {
1612
    border-top: 1px solid #DDD;
1600
        padding-right: 10px;
1613
    padding: .6em;
1601
        position: absolute;
1602
        right: 3px;
1603
        top: -25px;
1604
1605
        a {
1606
            text-decoration: none !important;
1607
        }
1608
    }
1609
1614
1610
    ul {
1615
    ul {
1611
        padding-top: 10px;
1616
        display: inline-block;
1617
        margin: 0;
1618
        padding: 0;
1612
    }
1619
    }
1613
1620
1614
    li {
1621
    li {
1615
        color: #999;
1622
        color: #999;
1616
        float: left;
1617
        list-style: none;
1623
        list-style: none;
1618
        padding: 4px;
1624
        padding: 4px;
1619
1625
1620
        a {
1626
        a {
1621
            text-decoration: none !important;
1622
1623
            &:hover {
1627
            &:hover {
1624
                text-decoration: underline;
1628
                text-decoration: underline;
1625
            }
1629
            }
1626
        }
1630
        }
1627
1628
        ul {
1629
            float: left;
1630
        }
1631
    }
1631
    }
1632
}
1632
}
1633
1633
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt (-166 / +43 lines)
Lines 1061-1079 Link Here
1061
        <div class="span3">
1061
        <div class="span3">
1062
            <div id="ulactioncontainer">
1062
            <div id="ulactioncontainer">
1063
1063
1064
                [% IF ( OpacBrowseResults && busc ) %]
1064
                [% IF ( Koha.Preference('OpacBrowseResults') && busc ) %]
1065
                    <div class="nav_results">
1065
                    <div class="nav_results">
1066
                        <div class="l_Results">
1066
                        <div class="l_Results" style="display:none;">
1067
                            [% IF ( listResults ) %]
1067
                            [% IF ( listResults ) %]
1068
                                <a href="#" id="a_listResults">Browse results</a>
1068
                                <a href="#" id="a_listResults"><i class="fa fa-bars"></i> Browse results</a>
1069
                            [% ELSE %]
1069
                            [% ELSE %]
1070
                                <span>Browse results</span>
1070
                                <span><i class="fa fa-bars"></i> Browse results</span>
1071
                            [% END %]
1071
                            [% END %]
1072
                            <a href="#" class="close_pagination"><i class="fa fa-remove"></i> Close</a>
1072
                        </div>
1073
                        </div>
1073
                        <ul class="pg_menu clearfix">
1074
                        <ul class="pg_menu clearfix">
1074
                            <li class="left_results">
1075
                            <li class="left_results">
1075
                                [% IF ( previousBiblionumber ) %]
1076
                                [% IF ( previousBiblionumber ) %]
1076
                                    <a href="opac-detail.pl?biblionumber=[% previousBiblionumber %][% IF ( query_desc && OpacHighlightedWords ) %]&query_desc=[% query_desc |uri %][% END %]" title="See: [% IF ( previousTitle ) %][% previousTitle |html %][% ELSE %]previous biblio[% END %]">&laquo; Previous</a>
1077
                                    <a href="opac-detail.pl?biblionumber=[% previousBiblionumber %][% IF ( query_desc && OpacHighlightedWords ) %]&query_desc=[% query_desc |uri %][% END %]" title="See: [% IF ( previousTitle ) %][% previousTitle |html %][% ELSE %]previous biblio[% END %]"><i class="fa fa-angle-double-left"></i> Previous</a>
1077
                                [% ELSE %]
1078
                                [% ELSE %]
1078
                                    <span>Previous</span>
1079
                                    <span>Previous</span>
1079
                                [% END %]
1080
                                [% END %]
Lines 1082-1088 Link Here
1082
                            <li class="back_results"><a href="opac-search.pl?[% busc %]" title="Back to the results search list">Back to results</a></li>
1083
                            <li class="back_results"><a href="opac-search.pl?[% busc %]" title="Back to the results search list">Back to results</a></li>
1083
                            <li class="right_results">
1084
                            <li class="right_results">
1084
                                [% IF ( nextBiblionumber ) %]
1085
                                [% IF ( nextBiblionumber ) %]
1085
                                    <a href="opac-detail.pl?biblionumber=[% nextBiblionumber %][% IF ( query_desc && OpacHighlightedWords ) %]&query_desc=[% query_desc |uri %][% END %]" title="See: [% IF ( nextTitle ) %][% nextTitle |html %][% ELSE %]next biblio[% END %]">Next &raquo;</a>
1086
                                    <a href="opac-detail.pl?biblionumber=[% nextBiblionumber %][% IF ( query_desc && OpacHighlightedWords ) %]&query_desc=[% query_desc |uri %][% END %]" title="See: [% IF ( nextTitle ) %][% nextTitle |html %][% ELSE %]next biblio[% END %]">Next <i class="fa fa-angle-double-right"></i></a>
1086
                                [% ELSE %]
1087
                                [% ELSE %]
1087
                                    <span>Next</span>
1088
                                    <span>Next</span>
1088
                                [% END %]
1089
                                [% END %]
Lines 1091-1104 Link Here
1091
                        [% IF ( listResults ) %]
1092
                        [% IF ( listResults ) %]
1092
                        <div class="results-pagination">
1093
                        <div class="results-pagination">
1093
                            <div class="nav_pages">
1094
                            <div class="nav_pages">
1094
                                <span class="close_pagination"><a href="#" id="close_pagination">Close</a></span>
1095
                                <ul id="listResults">
1095
                                <ul id="listResults"></ul>
1096
                                    [% FOREACH listitem IN listResults %]
1097
                                        [% IF ( listitem.biblionumber == biblionumber ) %]
1098
                                            <li class="li_pag_[% loop.count %] highlight">
1099
                                        [% ELSE %]
1100
                                            <li class="li_pag_[% loop.count %]">
1101
                                        [% END %]
1102
                                        <a href="opac-detail.pl?biblionumber=[% listitem.biblionumber %]&amp;query_desc=[% query_desc |uri %]" title="View record &quot;[% listitem.title %]&quot;" class="a_pag" id="a_pag_[% loop.count %]">[% loop.count + offset %]</a></li>
1103
                                    [% END %]
1104
                                </ul>
1096
                            </div>
1105
                            </div>
1097
                            <div class="pagination_list">
1106
                            <div class="pagination_list">
1098
                                <ul id="ul_pagination_list"></ul>
1107
                                <ul id="ul_pagination_lists">
1108
                                    [% FOREACH listitem IN listResults %]
1109
                                        [% IF ( listitem.biblionumber == biblionumber ) %]
1110
                                            <li id="li_pag_[% loop.count %]" class="highlight" title="Go to detail"><span class="li_pag_index"><i class="fa fa-arrow-left"></i> [% loop.count  + offset %]</span><a href="opac-detail.pl?biblionumber=[% biblionumber %]&amp;query_desc=[% query_desc |uri %]">[% title %]</a><br> [% IF ( author ) %]by [% author %][% END %]</li>
1111
                                        [% ELSE %]
1112
                                            <li id="li_pag_[% loop.count %]" title="Go to detail"><span class="li_pag_index">[% loop.count + offset %]</span><a href="opac-detail.pl?biblionumber=[% listitem.biblionumber %]&amp;query_desc=[% query_desc |uri %]">[% listitem.title %]</a><br> [% IF ( listitem.author ) %]by [% listitem.author %][% END %]</li>
1113
                                        [% END %]
1114
                                    [% END %]
1115
                                </ul>
1099
                            </div>
1116
                            </div>
1100
                        </div>
1117
                        </div>
1101
                        [% END %]
1118
                        [% END %]
1119
                        <div class="pagination_footer">
1120
                            <a href="#" class="close_pagination"><i class="fa fa-remove"></i> Close</a>
1121
                        </div>
1102
                    </div>
1122
                    </div>
1103
                [% END # / IF OpacBrowseResults && busc %]
1123
                [% END # / IF OpacBrowseResults && busc %]
1104
1124
Lines 1353-1359 Link Here
1353
[% INCLUDE 'datatables.inc' %]
1373
[% INCLUDE 'datatables.inc' %]
1354
[% INCLUDE 'columns_settings.inc' %]
1374
[% INCLUDE 'columns_settings.inc' %]
1355
[% IF ( SocialNetworks ) %]
1375
[% IF ( SocialNetworks ) %]
1356
    <script src="https://apis.google.com/js/plusone.js"></script>
1376
    <script src="https://apis.google.com/js/plusone.js">
1357
    //<![CDATA[
1377
    //<![CDATA[
1358
      {lang: '[% lang %]'}
1378
      {lang: '[% lang %]'}
1359
    //]]>
1379
    //]]>
Lines 1365-1386 Link Here
1365
[% IF ( OpacHighlightedWords ) %][% Asset.js("lib/jquery/plugins/jquery.highlight-3.js") %][% END %]
1385
[% IF ( OpacHighlightedWords ) %][% Asset.js("lib/jquery/plugins/jquery.highlight-3.js") %][% END %]
1366
1386
1367
<script>
1387
<script>
1368
//<![CDATA[
1369
1370
    [% IF ( OpacBrowseResults && busc ) %]
1371
        var arrPagination = new Array();
1372
        var pag_index_ini = [% indexPag %];
1373
        [% IF ( listResults ) %]
1374
            [% FOREACH listResult IN listResults %]
1375
                arrPagination[[% listResult.index %]] = {
1376
                    url:"[% listResult.url %][% IF ( listResult.url && query_desc && OpacHighlightedWords ) %]&query_desc=[% query_desc |uri %][% END %]",
1377
                    title:"[% listResult.title|remove('\n')|html %]",
1378
                    author:"[% listResult.author|html %]",
1379
                    biblionumber:[% listResult.biblionumber %]
1380
                };
1381
           [% END %]
1382
        [% END %]
1383
    [% END %]
1384
1388
1385
    [% IF ( OpacHighlightedWords ) %]
1389
    [% IF ( OpacHighlightedWords ) %]
1386
        var q_array = new Array();  // holds search terms if available
1390
        var q_array = new Array();  // holds search terms if available
Lines 1419-1424 Link Here
1419
            }
1423
            }
1420
        });
1424
        });
1421
1425
1426
        [% IF ( Koha.Preference('OpacBrowseResults') && busc ) %]
1427
            $(".l_Results").show();
1428
            $("#a_listResults").on("click", function(e){
1429
                e.preventDefault();
1430
                $(".results-pagination, .close_pagination, .pg_menu").toggle();
1431
            });
1432
1433
            $(".close_pagination").on("click", function(e){
1434
                e.preventDefault();
1435
                $(".results-pagination, .close_pagination, .pg_menu").toggle();
1436
            });
1437
        [% END %]
1438
1422
        var columns_settings = [% ColumnsSettings.GetColumns( 'opac', 'biblio-detail', 'holdingst', 'json' ) %];
1439
        var columns_settings = [% ColumnsSettings.GetColumns( 'opac', 'biblio-detail', 'holdingst', 'json' ) %];
1423
1440
1424
        KohaTable("#holdingst", {
1441
        KohaTable("#holdingst", {
Lines 1527-1560 Link Here
1527
            });
1544
            });
1528
    [% END %]
1545
    [% END %]
1529
1546
1530
    [% IF ( OpacBrowseResults && busc ) %]
1531
        var list_title_showmsg = _("Show pagination list (%s-%s / %s)").format([% indexPag %], [% indexPagEnd %], [% totalPag %]);
1532
        var list_title_hidemsg = _("Hide pagination list (%s-%s / %s)").format([% indexPag %], [% indexPagEnd %], [% totalPag %]);
1533
        if (arrPagination.length > 0) {
1534
            renderPagIndexList(pag_index_ini, $("#listResults"));
1535
            var reslist = $("#a_listResults");
1536
            reslist.attr('title', list_title_showmsg);
1537
        }
1538
        $("#a_listResults").click(function(e) {
1539
            if (arrPagination.length > 0) {
1540
                e.preventDefault();
1541
                var navigation = $(".results-pagination");
1542
                if (navigation.css("display") == 'none') {
1543
                    navigation.show();
1544
                    $(this).attr('title',list_title_hidemsg);
1545
                    renderPagination(pag_index_ini, arrPagination.length - 1, $("#ul_pagination_list"), false);
1546
                } else {
1547
                    navigation.hide();
1548
                    $(this).attr('title',list_title_showmsg);
1549
                }
1550
            }
1551
        });
1552
        $("#close_pagination").click(function(e) {
1553
            e.preventDefault();
1554
            var navigation = $(".results-pagination");
1555
            navigation.hide();
1556
        });
1557
    [% END %]
1558
[% IF ( OPACShelfBrowser ) %]
1547
[% IF ( OPACShelfBrowser ) %]
1559
1548
1560
    (function prepareShelfBrowser(){
1549
    (function prepareShelfBrowser(){
Lines 1720-1837 Link Here
1720
        }
1709
        }
1721
    [% END # / IF IDreamBooksReviews || IDreamBooksReadometer %]
1710
    [% END # / IF IDreamBooksReviews || IDreamBooksReadometer %]
1722
1711
1723
    [% IF ( OpacBrowseResults && busc ) %]
1724
        var timeoutRFW;
1725
        var totalPagItemList = 10;
1726
1727
        function rewindList()
1728
        {
1729
            var ul = $("#listResults");
1730
            var li_ini = ul.children(':first').next();
1731
            var index_ini = pag_index_ini;
1732
            if (li_ini) {
1733
                index_ini = parseInt(li_ini.attr("class").substring(7), 10);
1734
            }
1735
            var li_end = ul.children(':last').prev();
1736
            var index_end = arrPagination.length - 1;
1737
            if (li_end) {
1738
                index_end = parseInt(li_end.attr("class").substring(7), 10);
1739
            }
1740
            if (index_ini > pag_index_ini) {
1741
                renderPagIndexList(index_ini - 1, ul, false);
1742
                renderPagination(index_ini - 1, arrPagination.length - 1, $("#ul_pagination_list"), true);
1743
            }
1744
        }//rewindList
1745
1746
        function forwardList()
1747
        {
1748
            var ul = $("#listResults");
1749
            var li_ini = ul.children(':first').next();
1750
            var index_ini = pag_index_ini;
1751
            if (li_ini) {
1752
                index_ini = parseInt(li_ini.attr("class").substring(7), 10);
1753
            }
1754
            var li_end = ul.children(':last').prev();
1755
            var index_end = arrPagination.length - 1;
1756
            if (li_end) {
1757
                index_end = parseInt(li_end.attr("class").substring(7), 10);
1758
            }
1759
            if (index_end < arrPagination.length - 1) {
1760
                renderPagIndexList(index_ini + 1, ul, false);
1761
                renderPagination(index_ini + 1, arrPagination.length - 1, $("#ul_pagination_list"), true);
1762
            }
1763
        }//forwardList
1764
1765
        function renderPagIndexList(index, ul)
1766
        {
1767
            var $kids = ul.children("li");
1768
            if ($kids.length > 0) {
1769
                $kids.each(function() {
1770
                    $(this).remove();
1771
                });
1772
            }
1773
            var li;
1774
            var html = "";
1775
            var ini = index - 1;
1776
            var end = ini + totalPagItemList - 1;
1777
            li = $("<li />");
1778
            html = (index > pag_index_ini)?"<a href='#' id='rew_list_index' onclick='rewindList()' title='" + _("Click to rewind the list to") + " " + ini + " - " + end + "'>&laquo;</a>":"&laquo;";
1779
            li.html(html);
1780
            ul.append(li);
1781
            var title = "";
1782
            for (var i=index; i < arrPagination.length && i < index + totalPagItemList; i++) {
1783
                if (arrPagination[i] == undefined) continue;
1784
                var li = $("<li />");
1785
                if (arrPagination[i].url != "") {
1786
                    title = _("See biblio") + " &quot;" + arrPagination[i].title + "&quot; ";
1787
                    if (arrPagination[i].author != "") title += " " + _("by") + "&quot;" + arrPagination[i].author + "&quot;";
1788
                    title += " " + _("with biblionumber") + " " + arrPagination[i].biblionumber;
1789
                    html = "<a href='" + arrPagination[i].url + "' title='" + title + "' class='a_pag' id='a_pag_" + i + "'";
1790
                    html += " onmouseover='renderPagination(" + i + ", " + (arrPagination.length - 1) + ", $(\"#ul_pagination_list\"), true)'";
1791
                    html += ">" + i + "</a>";
1792
                } else html = i;
1793
                li.html(html);
1794
                li.attr("class", "li_pag_" + i);
1795
                ul.append(li);
1796
            }
1797
            li = $("<li />");
1798
            ini = index + 1;
1799
            end = (arrPagination.length > index + totalPagItemList)?index + totalPagItemList:arrPagination.length - 1;
1800
            html = (end <= arrPagination.length - 1 && (end - index) >= totalPagItemList)?"<a href='#' id='fw_list_index' onclick='forwardList()' title='" + _("Click to forward the list to") + " " + ini + " - " + end + "'>&raquo;</a>":"&raquo;";
1801
            li.html(html);
1802
            ul.append(li);
1803
        }//renderPagIndexList
1804
1805
1806
        function renderPagination(index, total, ul, highlIndex)
1807
        {
1808
            for (var i = pag_index_ini; i <= total; i++) {
1809
                if (arrPagination[i] == undefined || arrPagination[i].url == "") continue;
1810
                $("#li_pag_" + i).remove();
1811
            }
1812
            var j = 0;
1813
            for (var i = index; i <= total && j < totalPagItemList; i++) {
1814
                if (arrPagination[i] == undefined || arrPagination[i].url == "") continue;
1815
                var li = $("<li id='li_pag_" + i + "' " + ((j % 2 == 0)?"class='highlight'":"")  + " title='" + _("Go to detail") + "' />");
1816
                var html = "<span class='li_pag_index'>" + i + "</span><a href='" + arrPagination[i].url + "'>" + arrPagination[i].title + "</a>";
1817
                if (arrPagination[i].author) html += "<br /> " + _("by") + " " + arrPagination[i].author;
1818
                li.html(html);
1819
                if (highlIndex && i == index) li.css("backgroundColor", "#DDDDDD");
1820
                ul.append(li);
1821
                j++;
1822
            }
1823
            for (i = pag_index_ini; i < index && j < totalPagItemList; i++) {
1824
                if (arrPagination[i] == undefined || arrPagination[i].url == "") continue;
1825
                $("#li_pag_" + i).remove();
1826
                var li = $("<li id='li_pag_" + i + "' " + ((j % 2 == 0)?"class='highlight'":"")  + " title='" + _("Go to detail") + "' />");
1827
                var html = "<span class='li_pag_index'>" + i + "</span><a href='" + arrPagination[i].url + "'>" + arrPagination[i].title + "</a>";
1828
                if (arrPagination[i].author) html += "<br /> " + _("by") + " " + arrPagination[i].author;
1829
                li.html(html);
1830
                ul.append(li);
1831
                j++;
1832
            }
1833
        }//renderPagination
1834
    [% END # / IF ( OpacBrowseResults && busc ) %]
1835
//]]>
1712
//]]>
1836
</script>
1713
</script>
1837
1714
(-)a/opac/opac-detail.pl (-2 / +1 lines)
Lines 173-179 if ( $xslfile ) { Link Here
173
}
173
}
174
174
175
my $OpacBrowseResults = C4::Context->preference("OpacBrowseResults");
175
my $OpacBrowseResults = C4::Context->preference("OpacBrowseResults");
176
$template->{VARS}->{'OpacBrowseResults'} = $OpacBrowseResults;
177
176
178
# We look for the busc param to build the simple paging from the search
177
# We look for the busc param to build the simple paging from the search
179
if ($OpacBrowseResults) {
178
if ($OpacBrowseResults) {
Lines 460-465 if ($session->param('busc')) { Link Here
460
    }
459
    }
461
    $template->param('listResults' => \@listResults) if (@listResults);
460
    $template->param('listResults' => \@listResults) if (@listResults);
462
    $template->param('indexPag' => 1 + $offset, 'totalPag' => $arrParamsBusc{'total'}, 'indexPagEnd' => scalar(@arrBiblios) + $offset);
461
    $template->param('indexPag' => 1 + $offset, 'totalPag' => $arrParamsBusc{'total'}, 'indexPagEnd' => scalar(@arrBiblios) + $offset);
462
    $template->param( 'offset' => $offset );
463
}
463
}
464
}
464
}
465
465
466
- 

Return to bug 20898