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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt (+7 lines)
Lines 3-8 Link Here
3
[% USE KohaDates %]
3
[% USE KohaDates %]
4
[% USE Price %]
4
[% USE Price %]
5
[% USE ItemTypes %]
5
[% USE ItemTypes %]
6
[% USE AuthorisedValues %]
6
[% INCLUDE 'doc-head-open.inc' %]
7
[% INCLUDE 'doc-head-open.inc' %]
7
<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog &rsaquo; Placing a hold</title>
8
<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog &rsaquo; Placing a hold</title>
8
[% INCLUDE 'doc-head-close.inc' %]
9
[% INCLUDE 'doc-head-close.inc' %]
Lines 334-339 Link Here
334
                                                                    <th>Home library</th>
335
                                                                    <th>Home library</th>
335
                                                                    <th>Last location</th>
336
                                                                    <th>Last location</th>
336
                                                                [% END %]
337
                                                                [% END %]
338
                                                                [% IF ( itemdata_ccode ) %]
339
                                                                    <th>Collection</th>
340
                                                                [% END %]
337
                                                                <th>Call number</th>
341
                                                                <th>Call number</th>
338
                                                                [% IF ( itemdata_enumchron ) %]
342
                                                                [% IF ( itemdata_enumchron ) %]
339
                                                                    <th>Vol info</th>
343
                                                                    <th>Vol info</th>
Lines 373-378 Link Here
373
                                                                        <td class="homebranch">[% Branches.GetName( itemLoo.homeBranchName ) | html %]</td>
377
                                                                        <td class="homebranch">[% Branches.GetName( itemLoo.homeBranchName ) | html %]</td>
374
                                                                        <td class="holdingbranch">[% Branches.GetName( itemLoo.holdingBranchName ) | html %]</td>
378
                                                                        <td class="holdingbranch">[% Branches.GetName( itemLoo.holdingBranchName ) | html %]</td>
375
                                                                    [% END %]
379
                                                                    [% END %]
380
                                                                    [% IF ( itemdata_ccode ) %]
381
                                                                        <td class="ccode"> [% IF ( itemLoo.ccode ) %][% AuthorisedValues.GetByCode( 'CCODE', itemLoo.ccode ) %][% END %]</td>
382
                                                                    [% END %]
376
                                                                    <td class="call_no">[% itemLoo.callNumber | html %]</td>
383
                                                                    <td class="call_no">[% itemLoo.callNumber | html %]</td>
377
                                                                    [% IF ( itemdata_enumchron ) %]
384
                                                                    [% IF ( itemdata_enumchron ) %]
378
                                                                        <td class="vol_info">[% itemLoo.enumchron | html %]</td>
385
                                                                        <td class="vol_info">[% itemLoo.enumchron | html %]</td>
(-)a/opac/opac-reserve.pl (-2 / +10 lines)
Lines 382-387 unless ($noreserves) { Link Here
382
my $biblioLoop = [];
382
my $biblioLoop = [];
383
my $numBibsAvailable = 0;
383
my $numBibsAvailable = 0;
384
my $itemdata_enumchron = 0;
384
my $itemdata_enumchron = 0;
385
my $itemdata_ccode = 0;
385
my $anyholdable = 0;
386
my $anyholdable = 0;
386
my $itemLevelTypes = C4::Context->preference('item-level_itypes');
387
my $itemLevelTypes = C4::Context->preference('item-level_itypes');
387
$template->param('item_level_itypes' => $itemLevelTypes);
388
$template->param('item_level_itypes' => $itemLevelTypes);
Lines 442-447 foreach my $biblioNum (@biblionumbers) { Link Here
442
        $itemLoopIter->{homeBranchName} = $itemInfo->{homebranch};
443
        $itemLoopIter->{homeBranchName} = $itemInfo->{homebranch};
443
        $itemLoopIter->{callNumber} = $itemInfo->{itemcallnumber};
444
        $itemLoopIter->{callNumber} = $itemInfo->{itemcallnumber};
444
        $itemLoopIter->{enumchron} = $itemInfo->{enumchron};
445
        $itemLoopIter->{enumchron} = $itemInfo->{enumchron};
446
        $itemLoopIter->{ccode} = $itemInfo->{ccode};
445
        $itemLoopIter->{copynumber} = $itemInfo->{copynumber};
447
        $itemLoopIter->{copynumber} = $itemInfo->{copynumber};
446
        if ($itemLevelTypes) {
448
        if ($itemLevelTypes) {
447
            $itemLoopIter->{translated_description} = $itemInfo->{translated_description};
449
            $itemLoopIter->{translated_description} = $itemInfo->{translated_description};
Lines 546-555 foreach my $biblioNum (@biblionumbers) { Link Here
546
        if ($itemLoopIter->{enumchron}) {
548
        if ($itemLoopIter->{enumchron}) {
547
            $itemdata_enumchron = 1;
549
            $itemdata_enumchron = 1;
548
        }
550
        }
551
    # Show collection when needed
552
        if ($itemLoopIter->{ccode}) {
553
            $itemdata_ccode = 1;
554
        }
549
555
550
        push @{$biblioLoopIter{itemLoop}}, $itemLoopIter;
556
        push @{$biblioLoopIter{itemLoop}}, $itemLoopIter;
551
    }
557
    }
552
    $template->param( itemdata_enumchron => $itemdata_enumchron );
558
    $template->param(
559
        itemdata_enumchron => $itemdata_enumchron,
560
        itemdata_ccode     => $itemdata_ccode,
561
    );
553
562
554
    if ($numCopiesAvailable > 0) {
563
    if ($numCopiesAvailable > 0) {
555
        $numBibsAvailable++;
564
        $numBibsAvailable++;
556
- 

Return to bug 20450