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 %][% ELSE %]Koha online[% END %] catalog &rsaquo; Placing a hold</title>
8
<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% 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 ) %]</td>
377
                                                                        <td class="homebranch">[% Branches.GetName( itemLoo.homeBranchName ) %]</td>
374
                                                                        <td class="holdingbranch">[% Branches.GetName( itemLoo.holdingBranchName ) %]</td>
378
                                                                        <td class="holdingbranch">[% Branches.GetName( itemLoo.holdingBranchName ) %]</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 %]</td>
383
                                                                    <td class="call_no">[% itemLoo.callNumber %]</td>
377
                                                                    [% IF ( itemdata_enumchron ) %]
384
                                                                    [% IF ( itemdata_enumchron ) %]
378
                                                                        <td class="vol_info">[% itemLoo.enumchron %]</td>
385
                                                                        <td class="vol_info">[% itemLoo.enumchron %]</td>
(-)a/opac/opac-reserve.pl (-2 / +10 lines)
Lines 387-392 unless ($noreserves) { Link Here
387
my $biblioLoop = [];
387
my $biblioLoop = [];
388
my $numBibsAvailable = 0;
388
my $numBibsAvailable = 0;
389
my $itemdata_enumchron = 0;
389
my $itemdata_enumchron = 0;
390
my $itemdata_ccode = 0;
390
my $anyholdable = 0;
391
my $anyholdable = 0;
391
my $itemLevelTypes = C4::Context->preference('item-level_itypes');
392
my $itemLevelTypes = C4::Context->preference('item-level_itypes');
392
$template->param('item_level_itypes' => $itemLevelTypes);
393
$template->param('item_level_itypes' => $itemLevelTypes);
Lines 447-452 foreach my $biblioNum (@biblionumbers) { Link Here
447
        $itemLoopIter->{homeBranchName} = $itemInfo->{homebranch};
448
        $itemLoopIter->{homeBranchName} = $itemInfo->{homebranch};
448
        $itemLoopIter->{callNumber} = $itemInfo->{itemcallnumber};
449
        $itemLoopIter->{callNumber} = $itemInfo->{itemcallnumber};
449
        $itemLoopIter->{enumchron} = $itemInfo->{enumchron};
450
        $itemLoopIter->{enumchron} = $itemInfo->{enumchron};
451
        $itemLoopIter->{ccode} = $itemInfo->{ccode};
450
        $itemLoopIter->{copynumber} = $itemInfo->{copynumber};
452
        $itemLoopIter->{copynumber} = $itemInfo->{copynumber};
451
        if ($itemLevelTypes) {
453
        if ($itemLevelTypes) {
452
            $itemLoopIter->{translated_description} = $itemInfo->{translated_description};
454
            $itemLoopIter->{translated_description} = $itemInfo->{translated_description};
Lines 551-560 foreach my $biblioNum (@biblionumbers) { Link Here
551
        if ($itemLoopIter->{enumchron}) {
553
        if ($itemLoopIter->{enumchron}) {
552
            $itemdata_enumchron = 1;
554
            $itemdata_enumchron = 1;
553
        }
555
        }
556
    # Show collection when needed
557
        if ($itemLoopIter->{ccode}) {
558
            $itemdata_ccode = 1;
559
        }
554
560
555
        push @{$biblioLoopIter{itemLoop}}, $itemLoopIter;
561
        push @{$biblioLoopIter{itemLoop}}, $itemLoopIter;
556
    }
562
    }
557
    $template->param( itemdata_enumchron => $itemdata_enumchron );
563
    $template->param(
564
        itemdata_enumchron => $itemdata_enumchron,
565
        itemdata_ccode     => $itemdata_ccode,
566
    );
558
567
559
    if ($numCopiesAvailable > 0) {
568
    if ($numCopiesAvailable > 0) {
560
        $numBibsAvailable++;
569
        $numBibsAvailable++;
561
- 

Return to bug 20450