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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-detail-sidebar.inc (-7 / +7 lines)
Lines 4-10 Link Here
4
        [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
4
        [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
5
            [% IF Koha.Preference( 'RequestOnOpac' ) == 1 %]
5
            [% IF Koha.Preference( 'RequestOnOpac' ) == 1 %]
6
                [% IF ( AllowOnShelfHolds OR ItemsIssued ) %]
6
                [% IF ( AllowOnShelfHolds OR ItemsIssued ) %]
7
                    <li><a class="reserve" href="/cgi-bin/koha/opac-reserve.pl?biblionumber=[% biblionumber | html %]">Place hold</a></li>
7
                    <li><a class="reserve" href="/cgi-bin/koha/opac-reserve.pl?biblionumber=[% biblio.biblionumber %]">Place hold</a></li>
8
                [% END %]
8
                [% END %]
9
            [% END %]
9
            [% END %]
10
        [% END %]
10
        [% END %]
Lines 14-34 Link Here
14
14
15
    [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
15
    [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
16
        [% IF Koha.Preference('ArticleRequests') %]
16
        [% IF Koha.Preference('ArticleRequests') %]
17
            <li><a class="article_request" href="/cgi-bin/koha/opac-request-article.pl?biblionumber=[% biblionumber | html %]">Request article</a></li>
17
            <li><a class="article_request" href="/cgi-bin/koha/opac-request-article.pl?biblionumber=[% biblio.biblionumber %]">Request article</a></li>
18
        [% END %]
18
        [% END %]
19
    [% END %]
19
    [% END %]
20
20
21
    [% IF Koha.Preference( 'virtualshelves' ) == 1 %]
21
    [% IF Koha.Preference( 'virtualshelves' ) == 1 %]
22
        [% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && loggedinusername ) %]
22
        [% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && loggedinusername ) %]
23
            <li><a class="addtoshelf" href="/cgi-bin/koha/opac-addbybiblionumber.pl?biblionumber=[% biblionumber | html %]">Save to your lists</a></li>
23
            <li><a class="addtoshelf" href="/cgi-bin/koha/opac-addbybiblionumber.pl?biblionumber=[% biblio.biblionumber %]">Save to your lists</a></li>
24
        [% END %]
24
        [% END %]
25
    [% END %]
25
    [% END %]
26
26
27
    [% IF Koha.Preference( 'opacbookbag' ) == 1 %]
27
    [% IF Koha.Preference( 'opacbookbag' ) == 1 %]
28
        [% IF ( incart ) %]
28
        [% IF ( incart ) %]
29
            <li><a class="incart cart[% biblionumber | html %] addrecord" href="#">In your cart</a> <a class="cartRemove cartR[% biblionumber | html %]" href="#">(remove)</a></li>
29
            <li><a class="incart cart[% biblio.biblionumber %] addrecord" href="#">In your cart</a> <a class="cartRemove cartR[% biblio.biblionumber %]" href="#">(remove)</a></li>
30
        [% ELSE %]
30
        [% ELSE %]
31
            <li><a class="addtocart cart[% biblionumber | html %] addrecord" href="#">Add to your cart</a>  <a style="display:none;" class="cartRemove cartR[% biblionumber | html %]" href="#">(remove)</a></li>
31
            <li><a class="addtocart cart[% biblio.biblionumber %] addrecord" href="#">Add to your cart</a>  <a style="display:none;" class="cartRemove cartR[% biblio.biblionumber %]" href="#">(remove)</a></li>
32
        [% END %]
32
        [% END %]
33
    [% END %]
33
    [% END %]
34
34
Lines 51-57 Link Here
51
                                    <li><a role="menuitem" href="#" data-toggle="modal" data-target="#exportModal_">Dublin Core</a></li>
51
                                    <li><a role="menuitem" href="#" data-toggle="modal" data-target="#exportModal_">Dublin Core</a></li>
52
                                [% ELSE %]
52
                                [% ELSE %]
53
                                <li>
53
                                <li>
54
                                    <a role="menuitem" href="/cgi-bin/koha/opac-export.pl?op=export&amp;bib=[% biblionumber | html %]&amp;format=[% option %]">
54
                                    <a role="menuitem" href="/cgi-bin/koha/opac-export.pl?op=export&amp;bib=[% biblio.biblionumber %]&amp;format=[% option %]">
55
                                        [% SWITCH option %]
55
                                        [% SWITCH option %]
56
                                            [% CASE 'bibtex' %]BIBTEX
56
                                            [% CASE 'bibtex' %]BIBTEX
57
                                            [% CASE 'endnote' %]EndNote
57
                                            [% CASE 'endnote' %]EndNote
Lines 107-113 Link Here
107
                <label class="label_dc" for="input-srw">SRW-DC</label>
107
                <label class="label_dc" for="input-srw">SRW-DC</label>
108
                <br>
108
                <br>
109
        <input type="hidden" name="op" value="export">
109
        <input type="hidden" name="op" value="export">
110
        <input type="hidden" name="bib" value="[% biblionumber | html %]">
110
        <input type="hidden" name="bib" value="[% biblio.biblionumber %]">
111
        </fieldset>
111
        </fieldset>
112
    </div>
112
    </div>
113
    <div class="modal-footer">
113
    <div class="modal-footer">
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-ISBDdetail.tt (-1 / +1 lines)
Lines 19-25 Link Here
19
                    <div id="usermarcdetail">
19
                    <div id="usermarcdetail">
20
                        <div id="catalogue_detail_biblio">
20
                        <div id="catalogue_detail_biblio">
21
                            <div id="views">
21
                            <div id="views">
22
                                <span class="view"><a id="Normalview" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber | html %]">Normal view</a></span> <span class="view"><a id="MARCview" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% biblionumber | html %]">MARC view</a></span> <span class="view current-view"><span id="ISBDview">ISBD view</span></span></div>
22
                                <span class="view"><a id="Normalview" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber %]">Normal view</a></span> <span class="view"><a id="MARCview" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% biblio.biblionumber %]">MARC view</a></span> <span class="view current-view"><span id="ISBDview">ISBD view</span></span></div>
23
23
24
                                <div id="isbdcontents">[% ISBD %]</div>
24
                                <div id="isbdcontents">[% ISBD %]</div>
25
25
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-MARCdetail.tt (-6 / +6 lines)
Lines 1-6 Link Here
1
[% USE Koha %]
1
[% USE Koha %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
3
<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog &rsaquo;  MARC details for record no. [% biblionumber | html %]</title>
3
<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog &rsaquo;  MARC details for record no. [% biblio.biblionumber %]</title>
4
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
5
[% BLOCK cssinclude %][% END %]
5
[% BLOCK cssinclude %][% END %]
6
</head>
6
</head>
Lines 20-33 Link Here
20
                        <div id="catalogue_detail_biblio">
20
                        <div id="catalogue_detail_biblio">
21
21
22
                            <div id="views">
22
                            <div id="views">
23
                                <span class="view"><a id="Normalview" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber | html %]">Normal view</a></span>
23
                                <span class="view"><a id="Normalview" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber %]">Normal view</a></span>
24
                                <span class="view current-view"><span id="MARCview">MARC view</span></span>
24
                                <span class="view current-view"><span id="MARCview">MARC view</span></span>
25
                                [% IF ( ISBD ) %]<span class="view"><a id="ISBDview"  href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% biblionumber | html %]">ISBD view</a></span>[% END %]
25
                                [% IF ( ISBD ) %]<span class="view"><a id="ISBDview"  href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% biblio.biblionumber %]">ISBD view</a></span>[% END %]
26
                            </div>
26
                            </div>
27
                            <h1 class="title">[% bibliotitle %] (Record no. [% biblionumber | html %])</h1>
27
                            <h1 class="title">[% bibliotitle %] (Record no. [% biblio.biblionumber %])</h1>
28
28
29
                            [% IF ( OPACXSLTDetailsDisplay ) %]
29
                            [% IF ( OPACXSLTDetailsDisplay ) %]
30
                                <div id="switchview_div">[ <a id="switchview" href="/cgi-bin/koha/opac-showmarc.pl?id=[% biblionumber | html %]&amp;viewas=html">view plain</a> ]</div>
30
                                <div id="switchview_div">[ <a id="switchview" href="/cgi-bin/koha/opac-showmarc.pl?id=[% biblio.biblionumber %]&amp;viewas=html">view plain</a> ]</div>
31
                                <div id="plainmarc"></div>
31
                                <div id="plainmarc"></div>
32
                            [% END %]
32
                            [% END %]
33
33
Lines 194-200 $(document).ready(function(){ Link Here
194
            $(this).text(_("view labeled"));
194
            $(this).text(_("view labeled"));
195
            $("#labeledmarc").hide();
195
            $("#labeledmarc").hide();
196
            if(!loaded){
196
            if(!loaded){
197
                $("#plainmarc").show().html("<div style=\"margin:1em;padding:1em;border:1px solid #EEE;font-size:150%;\"><img src=\"[% interface %]/[% theme %]/images/loading.gif\" /> "+_("Loading")+"...</div>").load("/cgi-bin/koha/opac-showmarc.pl","id=[% biblionumber | html %]&viewas=html");
197
                $("#plainmarc").show().html("<div style=\"margin:1em;padding:1em;border:1px solid #EEE;font-size:150%;\"><img src=\"[% interface %]/[% theme %]/images/loading.gif\" /> "+_("Loading")+"...</div>").load("/cgi-bin/koha/opac-showmarc.pl","id=[% biblio.biblionumber %]&viewas=html");
198
                loaded = 1;
198
                loaded = 1;
199
            } else {
199
            } else {
200
                $("#plainmarc").show();
200
                $("#plainmarc").show();
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt (-17 / +17 lines)
Lines 57-63 Link Here
57
57
58
                    <div id="bookcover">
58
                    <div id="bookcover">
59
                    [% IF ( OPACLocalCoverImages ) %]
59
                    [% IF ( OPACLocalCoverImages ) %]
60
                        <div title="[% biblionumber |url %]" class="[% biblionumber | html %]" id="local-thumbnail-preview"></div>
60
                        <div title="[% biblionumber |url %]" class="[% biblio.biblionumber %]" id="local-thumbnail-preview"></div>
61
                    [% END %]
61
                    [% END %]
62
                    [% IF ( OPACAmazonCoverImages ) %]
62
                    [% IF ( OPACAmazonCoverImages ) %]
63
                        [% IF ( OPACURLOpenInNewWindow ) %]
63
                        [% IF ( OPACURLOpenInNewWindow ) %]
Lines 105-119 Link Here
105
                    [% END %]
105
                    [% END %]
106
                    </div><!-- / #bookcover -->
106
                    </div><!-- / #bookcover -->
107
107
108
                    <abbr class="unapi-id" title="koha:biblionumber:[% biblionumber | html %]"><!-- unAPI --></abbr>
108
                    <abbr class="unapi-id" title="koha:biblionumber:[% biblio.biblionumber %]"><!-- unAPI --></abbr>
109
                    [% IF ( ocoins ) # COinS / Openurl %]
109
                    [% IF ( ocoins ) # COinS / Openurl %]
110
                        <span class="Z3988" title="[% ocoins %]"></span>
110
                        <span class="Z3988" title="[% ocoins %]"></span>
111
                    [% END %]
111
                    [% END %]
112
112
113
                    <div id="views">
113
                    <div id="views">
114
                        <span class="view current-view"><span id="Normalview">Normal view</span></span>
114
                        <span class="view current-view"><span id="Normalview">Normal view</span></span>
115
                        <span class="view"><a id="MARCview" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% biblionumber | html %]">MARC view</a></span>
115
                        <span class="view"><a id="MARCview" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% biblio.biblionumber %]">MARC view</a></span>
116
                        [% IF ( ISBD ) %]<span class="view"><a id="ISBDview" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% biblionumber | html %]">ISBD view</a></span>[% END %]
116
                        [% IF ( ISBD ) %]<span class="view"><a id="ISBDview" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% biblio.biblionumber %]">ISBD view</a></span>[% END %]
117
                    </div>
117
                    </div>
118
                    [% IF ( OPACXSLTDetailsDisplay ) %]
118
                    [% IF ( OPACXSLTDetailsDisplay ) %]
119
                        [% XSLTBloc %]
119
                        [% XSLTBloc %]
Lines 409-424 Link Here
409
                            [% END %]
409
                            [% END %]
410
                            [% IF ( TagsInputEnabled ) %]
410
                            [% IF ( TagsInputEnabled ) %]
411
                                [% IF ( loggedinusername ) %]
411
                                [% IF ( loggedinusername ) %]
412
                                    <form id="tagform[% biblionumber | html %]" method="post" action="/cgi-bin/koha/opac-tags.pl" style="display:none;">
412
                                    <form id="tagform[% biblio.biblionumber %]" method="post" action="/cgi-bin/koha/opac-tags.pl" style="display:none;">
413
                                        <label for="newtag[% biblionumber | html %]">New tag(s), separated by a comma:</label>
413
                                        <label for="newtag[% biblio.biblionumber %]">New tag(s), separated by a comma:</label>
414
                                        <input name="newtag[% biblionumber | html %]" id="newtag[% biblionumber | html %]" maxlength="100" type="text"/>
414
                                        <input name="newtag[% biblio.biblionumber %]" id="newtag[% biblio.biblionumber %]" maxlength="100" type="text"/>
415
                                        <input name="tagbutton" class="btn btn-small tagbutton" title="[% biblionumber | html %]" type="submit" value="Add" />
415
                                        <input name="tagbutton" class="btn btn-small tagbutton" title="[% biblio.biblionumber %]" type="submit" value="Add" />
416
                                        <a class="cancel_tag_add" id="cancel[% biblionumber | html %]" href="#">(done)</a>
416
                                        <a class="cancel_tag_add" id="cancel[% biblio.biblionumber %]" href="#">(done)</a>
417
                                    </form>
417
                                    </form>
418
                                    <span id="newtag[% biblionumber | html %]_status" class="tagstatus" style="display:none;">
418
                                    <span id="newtag[% biblio.biblionumber %]_status" class="tagstatus" style="display:none;">
419
                                        Tag status here.
419
                                        Tag status here.
420
                                    </span>
420
                                    </span>
421
                                    <a class="tag_add" id="tag_add[% biblionumber | html %]" href="#">Add tag(s)</a>
421
                                    <a class="tag_add" id="tag_add[% biblio.biblionumber %]" href="#">Add tag(s)</a>
422
                                [% ELSE %]
422
                                [% ELSE %]
423
                                    <span id="login4tags">
423
                                    <span id="login4tags">
424
                                        [% IF Koha.Preference('casAuthentication') %]
424
                                        [% IF Koha.Preference('casAuthentication') %]
Lines 498-504 Link Here
498
498
499
                                <!-- define some hidden vars for ratings -->
499
                                <!-- define some hidden vars for ratings -->
500
500
501
                                <input  type="hidden" name='biblionumber'  value="[% biblionumber | html %]" />
501
                                <input  type="hidden" name='biblionumber'  value="[% biblio.biblionumber %]" />
502
                                <input  type="hidden" name='rating_value' id='rating_value' value="[% my_rating.rating_value %]" />
502
                                <input  type="hidden" name='rating_value' id='rating_value' value="[% my_rating.rating_value %]" />
503
503
504
                                [% UNLESS ( rating_readonly ) %]&nbsp;  <input name="rate_button" type="submit" value="Rate me" />[% END %]&nbsp;
504
                                [% UNLESS ( rating_readonly ) %]&nbsp;  <input name="rate_button" type="submit" value="Rate me" />[% END %]&nbsp;
Lines 652-658 Link Here
652
652
653
                    <div id="holdings">
653
                    <div id="holdings">
654
                        [% IF too_many_items %]
654
                        [% IF too_many_items %]
655
                            <p>This record has many physical items ([% items_count %]). <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber | html %]&amp;viewallitems=1">Click here to view them all.</a></p>
655
                            <p>This record has many physical items ([% items_count %]). <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber %]&amp;viewallitems=1">Click here to view them all.</a></p>
656
                        [% ELSIF ( itemloop.size ) %]
656
                        [% ELSIF ( itemloop.size ) %]
657
                            [% INCLUDE items_table items=itemloop tab="holdings" table_id="holdingst" %]
657
                            [% INCLUDE items_table items=itemloop tab="holdings" table_id="holdingst" %]
658
                            [% IF Koha.Preference('OPACAcquisitionDetails') and acquisition_details.total_quantity > 0 %]
658
                            [% IF Koha.Preference('OPACAcquisitionDetails') and acquisition_details.total_quantity > 0 %]
Lines 875-881 Link Here
875
                                    </table>
875
                                    </table>
876
                                [% END # / IF subscription.latestserials %]
876
                                [% END # / IF subscription.latestserials %]
877
                            [% END # / FOREACH subscriptions %]
877
                            [% END # / FOREACH subscriptions %]
878
                            <p class="subscription_moredetails"><a href="opac-serial-issues.pl?biblionumber=[% biblionumber | html %]">More details</a></p>
878
                            <p class="subscription_moredetails"><a href="opac-serial-issues.pl?biblionumber=[% biblio.biblionumber %]">More details</a></p>
879
                        </div> <!-- / #subscriptions -->
879
                        </div> <!-- / #subscriptions -->
880
                    [% END # IF subscriptionsnumber %]
880
                    [% END # IF subscriptionsnumber %]
881
881
Lines 959-965 Link Here
959
959
960
                                [% IF ( loggedinusername ) %]
960
                                [% IF ( loggedinusername ) %]
961
                                    [% UNLESS ( loggedincommenter ) %]
961
                                    [% UNLESS ( loggedincommenter ) %]
962
                                       <div id="addcomment"> <a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% biblionumber | html %]'); return false;">
962
                                       <div id="addcomment"> <a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% biblio.biblionumber %]'); return false;">
963
                                            Post your comments on this item.
963
                                            Post your comments on this item.
964
                                        </a></div>
964
                                        </a></div>
965
                                    [% END %]
965
                                    [% END %]
Lines 1032-1038 Link Here
1032
                                <p>Click on an image to view it in the image viewer</p>
1032
                                <p>Click on an image to view it in the image viewer</p>
1033
                                [% FOREACH image IN localimages %]
1033
                                [% FOREACH image IN localimages %]
1034
                                    [% IF image %]
1034
                                    [% IF image %]
1035
                                        <a class="localimage" href="/cgi-bin/koha/opac-imageviewer.pl?biblionumber=[% biblionumber | html %]&amp;imagenumber=[% image %]"><img alt="" src="/cgi-bin/koha/opac-image.pl?thumbnail=1&amp;imagenumber=[% image %]" /></a>
1035
                                        <a class="localimage" href="/cgi-bin/koha/opac-imageviewer.pl?biblionumber=[% biblio.biblionumber %]&amp;imagenumber=[% image %]"><img alt="" src="/cgi-bin/koha/opac-image.pl?thumbnail=1&amp;imagenumber=[% image %]" /></a>
1036
                                    [% END %]
1036
                                    [% END %]
1037
                                [% END %]
1037
                                [% END %]
1038
                            </div><!-- / #images -->
1038
                            </div><!-- / #images -->
Lines 1648-1654 Link Here
1648
              $.post("/cgi-bin/koha/opac-ratings-ajax.pl", {
1648
              $.post("/cgi-bin/koha/opac-ratings-ajax.pl", {
1649
                rating_old_value: $("#rating_value").attr("value"),
1649
                rating_old_value: $("#rating_value").attr("value"),
1650
                borrowernumber: "[% borrowernumber %]",
1650
                borrowernumber: "[% borrowernumber %]",
1651
                biblionumber: "[% biblionumber | html %]",
1651
                biblionumber: "[% biblio.biblionumber %]",
1652
                rating_value: value,
1652
                rating_value: value,
1653
                auth_error: value
1653
                auth_error: value
1654
              }, function (data) {
1654
              }, function (data) {
(-)a/opac/opac-ISBDdetail.pl (-2 / +4 lines)
Lines 55-61 use C4::Koha; Link Here
55
use Koha::ItemTypes;
55
use Koha::ItemTypes;
56
use Koha::Patrons;
56
use Koha::Patrons;
57
use Koha::RecordProcessor;
57
use Koha::RecordProcessor;
58
58
use Koha::Biblios;
59
59
60
my $query = CGI->new();
60
my $query = CGI->new();
61
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
61
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
Lines 71-76 my ( $template, $loggedinuser, $cookie ) = get_template_and_user( Link Here
71
my $biblionumber = $query->param('biblionumber');
71
my $biblionumber = $query->param('biblionumber');
72
$biblionumber = int($biblionumber);
72
$biblionumber = int($biblionumber);
73
73
74
my $biblio = Koha::Biblios->find( $biblionumber );
75
74
# get biblionumbers stored in the cart
76
# get biblionumbers stored in the cart
75
if(my $cart_list = $query->cookie("bib_list")){
77
if(my $cart_list = $query->cookie("bib_list")){
76
    my @cart_list = split(/\//, $cart_list);
78
    my @cart_list = split(/\//, $cart_list);
Lines 185-191 $template->param( Link Here
185
    AllowOnShelfHolds   => $allow_onshelf_holds,
187
    AllowOnShelfHolds   => $allow_onshelf_holds,
186
    norequests   => $norequests,
188
    norequests   => $norequests,
187
    ISBD         => $res,
189
    ISBD         => $res,
188
    biblionumber => $biblionumber,
190
    biblio       => $biblio,
189
);
191
);
190
192
191
#Search for title in links
193
#Search for title in links
(-)a/opac/opac-MARCdetail.pl (-1 / +1 lines)
Lines 349-355 $template->param( Link Here
349
    item_loop           => \@item_loop,
349
    item_loop           => \@item_loop,
350
    item_header_loop    => \@item_header_loop,
350
    item_header_loop    => \@item_header_loop,
351
    item_subfield_codes => \@item_subfield_codes,
351
    item_subfield_codes => \@item_subfield_codes,
352
    biblionumber        => $biblionumber,
352
    biblio              => $biblio,
353
);
353
);
354
354
355
output_html_with_http_headers $query, $cookie, $template->output;
355
output_html_with_http_headers $query, $cookie, $template->output;
(-)a/opac/opac-detail.pl (-3 / +2 lines)
Lines 78-83 my ( $template, $borrowernumber, $cookie ) = get_template_and_user( Link Here
78
78
79
my $biblionumber = $query->param('biblionumber') || $query->param('bib') || 0;
79
my $biblionumber = $query->param('biblionumber') || $query->param('bib') || 0;
80
$biblionumber = int($biblionumber);
80
$biblionumber = int($biblionumber);
81
my $biblio = Koha::Biblios->find( $biblionumber );
81
82
82
my @all_items = GetItemsInfo($biblionumber);
83
my @all_items = GetItemsInfo($biblionumber);
83
my @hiddenitems;
84
my @hiddenitems;
Lines 136-142 if (C4::Context->preference('OpacSuppression')) { Link Here
136
    }
137
    }
137
}
138
}
138
139
139
$template->param( biblionumber => $biblionumber );
140
$template->param( biblio => $biblio );
140
141
141
# get biblionumbers stored in the cart
142
# get biblionumbers stored in the cart
142
my @cart_list;
143
my @cart_list;
Lines 603-609 for ( C4::Context->preference("OPACShowHoldQueueDetails") ) { Link Here
603
}
604
}
604
my $has_hold;
605
my $has_hold;
605
if ( $show_holds_count || $show_priority) {
606
if ( $show_holds_count || $show_priority) {
606
    my $biblio = Koha::Biblios->find( $biblionumber );
607
    my $holds = $biblio->holds;
607
    my $holds = $biblio->holds;
608
    $template->param( holds_count  => $holds->count );
608
    $template->param( holds_count  => $holds->count );
609
    while ( my $hold = $holds->next ) {
609
    while ( my $hold = $holds->next ) {
610
- 

Return to bug 19319