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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt (-3 / +3 lines)
Lines 1045-1051 Link Here
1045
                                                [% ELSE %]
1045
                                                [% ELSE %]
1046
                                                    <li class="li_pag_[% loop.count | html %]">
1046
                                                    <li class="li_pag_[% loop.count | html %]">
1047
                                                [% END %]
1047
                                                [% END %]
1048
                                                    <a href="opac-detail.pl?biblionumber=[% listitem.biblionumber | uri %]&amp;query_desc=[% query_desc |uri %]" title="View record &quot;[% listitem.title | html %]&quot;" class="a_pag" id="a_pag_[% loop.count | html %]">[% loop.count + offset | html %]</a>
1048
                                                    <a href="opac-detail.pl?biblionumber=[% listitem.biblionumber | uri %]&amp;query_desc=[% query_desc |uri %]" title="View record &quot;[% listitem.title | html %] [% listitem.part_number | html %] [% listitem.part_name | html %]&quot;" class="a_pag" id="a_pag_[% loop.count | html %]">[% loop.count + offset | html %]</a>
1049
                                                </li>
1049
                                                </li>
1050
                                            [% END # /FOREACH listitem %]
1050
                                            [% END # /FOREACH listitem %]
1051
                                        </ul> <!-- /#listResults -->
1051
                                        </ul> <!-- /#listResults -->
Lines 1056-1067 Link Here
1056
                                                [% IF ( listitem.biblionumber == biblionumber ) %]
1056
                                                [% IF ( listitem.biblionumber == biblionumber ) %]
1057
                                                    <li id="li_pag_[% loop.count | html %]" class="highlight" title="Go to detail">
1057
                                                    <li id="li_pag_[% loop.count | html %]" class="highlight" title="Go to detail">
1058
                                                        <span class="li_pag_index"><i class="fa fa-arrow-left" aria-hidden="true"></i> [% loop.count  + offset | html %]</span>
1058
                                                        <span class="li_pag_index"><i class="fa fa-arrow-left" aria-hidden="true"></i> [% loop.count  + offset | html %]</span>
1059
                                                        <a href="opac-detail.pl?biblionumber=[% biblionumber | uri %]&amp;query_desc=[% query_desc |uri %]">[% title | html %]</a><br> [% IF ( author ) %]<span>by</span> [% author | html %][% END %]
1059
                                                        <a href="opac-detail.pl?biblionumber=[% biblionumber | uri %]&amp;query_desc=[% query_desc |uri %]">[% title | html %] [% part_number | html %] [% part_name | html %]</a><br> [% IF ( author ) %]<span>by</span> [% author | html %][% END %]
1060
                                                    </li>
1060
                                                    </li>
1061
                                                [% ELSE %]
1061
                                                [% ELSE %]
1062
                                                    <li id="li_pag_[% loop.count | html %]" title="Go to detail">
1062
                                                    <li id="li_pag_[% loop.count | html %]" title="Go to detail">
1063
                                                        <span class="li_pag_index">[% loop.count + offset | html %]</span>
1063
                                                        <span class="li_pag_index">[% loop.count + offset | html %]</span>
1064
                                                        <a href="opac-detail.pl?biblionumber=[% listitem.biblionumber | uri %]&amp;query_desc=[% query_desc |uri %]">[% listitem.title | html %]</a><br> [% IF ( listitem.author ) %]<span>by</span> [% listitem.author | html %][% END %]
1064
                                                        <a href="opac-detail.pl?biblionumber=[% listitem.biblionumber | uri %]&amp;query_desc=[% query_desc |uri %]">[% listitem.title | html %] [% listitem.part_number | html %] [% listitem.part_name | html %]</a><br> [% IF ( listitem.author ) %]<span>by</span> [% listitem.author | html %][% END %]
1065
                                                    </li>
1065
                                                    </li>
1066
                                                [% END # /IF listitem.biblionumber %]
1066
                                                [% END # /IF listitem.biblionumber %]
1067
                                            [% END # /FOREACH listitem %]
1067
                                            [% END # /FOREACH listitem %]
(-)a/opac/opac-detail.pl (-2 / +1 lines)
Lines 480-486 if ($session->param('busc')) { Link Here
480
        next unless ($arrBiblios[$j]);
480
        next unless ($arrBiblios[$j]);
481
        $dataBiblioPaging = Koha::Biblios->find( $arrBiblios[$j] ) if ($arrBiblios[$j] != $biblionumber);
481
        $dataBiblioPaging = Koha::Biblios->find( $arrBiblios[$j] ) if ($arrBiblios[$j] != $biblionumber);
482
        next unless $dataBiblioPaging;
482
        next unless $dataBiblioPaging;
483
        push @listResults, {index => $j + 1 + $offset, biblionumber => $arrBiblios[$j], title => ($arrBiblios[$j] == $biblionumber)?'':$dataBiblioPaging->title, author => ($arrBiblios[$j] != $biblionumber && $dataBiblioPaging->author)?$dataBiblioPaging->author:'', url => ($arrBiblios[$j] == $biblionumber)?'':'opac-detail.pl?biblionumber=' . $arrBiblios[$j]};
483
        push @listResults, {index => $j + 1 + $offset, biblionumber => $arrBiblios[$j], title => ($arrBiblios[$j] == $biblionumber)?'':$dataBiblioPaging->title, author => ($arrBiblios[$j] != $biblionumber && $dataBiblioPaging->author)?$dataBiblioPaging->author:'', part_number => ($arrBiblios[$j] == $biblionumber)?'':$dataBiblioPaging->part_number, part_name => ($arrBiblios[$j] == $biblionumber)?'':$dataBiblioPaging->part_name, url => ($arrBiblios[$j] == $biblionumber)?'':'opac-detail.pl?biblionumber=' . $arrBiblios[$j]};
484
    }
484
    }
485
    $template->param('listResults' => \@listResults) if (@listResults);
485
    $template->param('listResults' => \@listResults) if (@listResults);
486
    $template->param('indexPag' => 1 + $offset, 'totalPag' => $arrParamsBusc{'total'}, 'indexPagEnd' => scalar(@arrBiblios) + $offset);
486
    $template->param('indexPag' => 1 + $offset, 'totalPag' => $arrParamsBusc{'total'}, 'indexPagEnd' => scalar(@arrBiblios) + $offset);
487
- 

Return to bug 31634