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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt (-11 / +11 lines)
Lines 631-656 Link Here
631
                                [% END %]
631
                                [% END %]
632
                            </fieldset>
632
                            </fieldset>
633
633
634
                            [% biblio = biblioloop.0 %]
634
                            [% biblio_info = biblioloop.0 %]
635
635
636
                            <ol>
636
                            <ol>
637
                                [% UNLESS Koha.Preference('item-level_itypes') %]
637
                                [% UNLESS Koha.Preference('item-level_itypes') %]
638
                                    <li>
638
                                    <li>
639
                                        <span class="label">Item type:</span>
639
                                        <span class="label">Item type:</span>
640
                                        [% biblio.itemtype.translated_description | html %]
640
                                        [% biblio_info.itemtype.translated_description | html %]
641
                                    </li>
641
                                    </li>
642
                                [% END %]
642
                                [% END %]
643
643
644
                                [% IF ( biblio.biblioitem.publicationyear ) %]
644
                                [% IF ( biblio_info.biblioitem.publicationyear ) %]
645
                                    <li>
645
                                    <li>
646
                                        <span class="label">Publication year:</span>
646
                                        <span class="label">Publication year:</span>
647
                                        [% biblio.biblioitem.publicationyear | html %]
647
                                        [% biblio_info.biblioitem.publicationyear | html %]
648
                                    </li>
648
                                    </li>
649
                                [% END %]
649
                                [% END %]
650
                            </ol>
650
                            </ol>
651
651
652
                            <!-- ItemGroup level holds -->
652
                            <!-- ItemGroup level holds -->
653
                            [% IF Koha.Preference('EnableItemGroupHolds') && biblio.object.item_groups.count %]
653
                            [% IF Koha.Preference('EnableItemGroupHolds') && biblio_info.object.item_groups.count %]
654
                                <h2 style="padding: 0 1em;">
654
                                <h2 style="padding: 0 1em;">
655
                                    Hold next available item from an item group
655
                                    Hold next available item from an item group
656
                                    [% IF force_hold_level == 'item_group' %]
656
                                    [% IF force_hold_level == 'item_group' %]
Lines 677-683 Link Here
677
                                            </tr>
677
                                            </tr>
678
                                        </thead>
678
                                        </thead>
679
                                        <tbody>
679
                                        <tbody>
680
                                            [% FOREACH g IN biblio.object.item_groups.search({}, { order_by => ['display_order'] }) %]
680
                                            [% FOREACH g IN biblio_info.object.item_groups.search({}, { order_by => ['display_order'] }) %]
681
                                                [% IF g.items %]
681
                                                [% IF g.items %]
682
                                                    <tr>
682
                                                    <tr>
683
                                                        <td>
683
                                                        <td>
Lines 711-717 Link Here
711
                                            <th>Item type</th>
711
                                            <th>Item type</th>
712
                                        [% END %]
712
                                        [% END %]
713
                                        <th>Barcode</th>
713
                                        <th>Barcode</th>
714
                                        [% IF Koha.Preference('EnableItemGroupHolds') && biblio.object.item_groups.count %]
714
                                        [% IF Koha.Preference('EnableItemGroupHolds') && biblio_info.object.item_groups.count %]
715
                                            <th>Item group</th>
715
                                            <th>Item group</th>
716
                                        [% END %]
716
                                        [% END %]
717
                                        <th>Home library</th>
717
                                        <th>Home library</th>
Lines 729-735 Link Here
729
                                </thead>
729
                                </thead>
730
                                <tbody>
730
                                <tbody>
731
                                    [% SET selected = 0 %]
731
                                    [% SET selected = 0 %]
732
                                    [% FOREACH itemloo IN biblio.itemloop %]
732
                                    [% FOREACH itemloo IN biblio_info.itemloop %]
733
                                        [% UNLESS ( itemloo.hide ) %]
733
                                        [% UNLESS ( itemloo.hide ) %]
734
                                            <tr class="[% itemloo.backgroundcolor | html %]">
734
                                            <tr class="[% itemloo.backgroundcolor | html %]">
735
                                                <td>
735
                                                <td>
Lines 812-818 Link Here
812
                                                <td>
812
                                                <td>
813
                                                    [% itemloo.barcode | html %]
813
                                                    [% itemloo.barcode | html %]
814
                                                </td>
814
                                                </td>
815
                                                [% IF Koha.Preference('EnableItemGroupHolds') && biblio.object.item_groups.count %]
815
                                                [% IF Koha.Preference('EnableItemGroupHolds') && biblio_info.object.item_groups.count %]
816
                                                    <td>
816
                                                    <td>
817
                                                        [% itemloo.object.item_group.description | html %]
817
                                                        [% itemloo.object.item_group.description | html %]
818
                                                    </td>
818
                                                    </td>
Lines 912-918 Link Here
912
                            [% IF hiddencount %]
912
                            [% IF hiddencount %]
913
                                <form>
913
                                <form>
914
                                    <p class="hiddencount">
914
                                    <p class="hiddencount">
915
                                        <a href="request.pl?biblionumber=[% biblio.biblionumber | uri %]&amp;borrowernumber=[% borrowernumber | uri %]&amp;showallitems=1">Show all items ([% hiddencount | html %] hidden)</a>
915
                                        <a href="request.pl?biblionumber=[% biblio_info.biblionumber | uri %]&amp;borrowernumber=[% borrowernumber | uri %]&amp;showallitems=1">Show all items ([% hiddencount | html %] hidden)</a>
916
                                    </p>
916
                                    </p>
917
                                </form>
917
                                </form>
918
                            [% END # /IF hiddencount %]
918
                            [% END # /IF hiddencount %]
Lines 1312-1318 Link Here
1312
        var biblionumbers = [[% biblionumbers.join(', ') | $raw %]];
1312
        var biblionumbers = [[% biblionumbers.join(', ') | $raw %]];
1313
        var borrowernumber = "[% patron.borrowernumber | $raw %]";
1313
        var borrowernumber = "[% patron.borrowernumber | $raw %]";
1314
        var patron_homebranch = "[% To.json( Branches.GetName( patron.branchcode ) ) | $raw %]";
1314
        var patron_homebranch = "[% To.json( Branches.GetName( patron.branchcode ) ) | $raw %]";
1315
        var override_items = {[% FOREACH biblio IN biblioloop %][% FOREACH itemloo IN biblio.itemloop %][% IF ( itemloo.override ) %]
1315
        var override_items = {[% FOREACH biblio_info IN biblioloop %][% FOREACH itemloo IN biblio_info.itemloop %][% IF ( itemloo.override ) %]
1316
        [% itemloo.itemnumber | html %]: {
1316
        [% itemloo.itemnumber | html %]: {
1317
            homebranch: "[% To.json( Branches.GetName( itemloo.homebranch ) ) | $raw %]",
1317
            homebranch: "[% To.json( Branches.GetName( itemloo.homebranch ) ) | $raw %]",
1318
            holdallowed: "[% itemloo.holdallowed | html %]"
1318
            holdallowed: "[% itemloo.holdallowed | html %]"
(-)a/reserve/request.pl (-2 / +2 lines)
Lines 698-704 if ( ( $findborrower && $borrowernumber_hold || $findclub && $club_hold ) Link Here
698
    $template->param( exceeded_holds_per_record => $exceeded_holds_per_record );
698
    $template->param( exceeded_holds_per_record => $exceeded_holds_per_record );
699
    # FIXME: getting just the first bib's result doesn't seem right
699
    # FIXME: getting just the first bib's result doesn't seem right
700
    $template->param( subscriptionsnumber => CountSubscriptionFromBiblionumber($biblionumbers[0]));
700
    $template->param( subscriptionsnumber => CountSubscriptionFromBiblionumber($biblionumbers[0]));
701
} elsif ( ! $multi_hold ) {
701
}
702
unless ($multi_hold) {
702
    my $biblio = Koha::Biblios->find( $biblionumbers[0] );
703
    my $biblio = Koha::Biblios->find( $biblionumbers[0] );
703
    $template->param( biblio => $biblio );
704
    $template->param( biblio => $biblio );
704
}
705
}
705
- 

Return to bug 35782