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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt (-8 / +8 lines)
Lines 542-548 Link Here
542
                            [% SET branchcodes = [] %]
542
                            [% SET branchcodes = [] %]
543
543
544
                            [% FOREACH h IN biblioloo.reserveloop %]
544
                            [% FOREACH h IN biblioloo.reserveloop %]
545
                                [% branchcodes.push( h.branchcode ) | $raw %]
545
                                [% branchcodes.push( h.branchcode ) %]
546
                            [% END %]
546
                            [% END %]
547
                            [% branchcodes = branchcodes.unique %]
547
                            [% branchcodes = branchcodes.unique %]
548
548
Lines 550-556 Link Here
550
                                [% SET holds_by_branch = [] %]
550
                                [% SET holds_by_branch = [] %]
551
                                [% FOREACH h IN biblioloo.reserveloop %]
551
                                [% FOREACH h IN biblioloo.reserveloop %]
552
                                    [% IF h.branchcode == b %]
552
                                    [% IF h.branchcode == b %]
553
                                        [% holds_by_branch.push( h ) | $raw %]
553
                                        [% holds_by_branch.push( h ) %]
554
                                    [% END %]
554
                                    [% END %]
555
                                [% END %]
555
                                [% END %]
556
                                <fieldset>
556
                                <fieldset>
Lines 563-569 Link Here
563
563
564
                            [% FOREACH h IN biblioloo.reserveloop %]
564
                            [% FOREACH h IN biblioloo.reserveloop %]
565
                                [% SET hold_itemtype = h.object.item.effective_itemtype || h.itemtype %]
565
                                [% SET hold_itemtype = h.object.item.effective_itemtype || h.itemtype %]
566
                                [% itemtypes.push( hold_itemtype ) | $raw %]
566
                                [% itemtypes.push( hold_itemtype ) %]
567
                            [% END %]
567
                            [% END %]
568
                            [% itemtypes = itemtypes.unique %]
568
                            [% itemtypes = itemtypes.unique %]
569
569
Lines 572-578 Link Here
572
                                [% FOREACH h IN biblioloo.reserveloop %]
572
                                [% FOREACH h IN biblioloo.reserveloop %]
573
                                    [% SET hold_itemtype = h.object.item.effective_itemtype || h.itemtype %]
573
                                    [% SET hold_itemtype = h.object.item.effective_itemtype || h.itemtype %]
574
                                    [% IF hold_itemtype == i %]
574
                                    [% IF hold_itemtype == i %]
575
                                        [% holds_by_itemtype.push( h ) | $raw %]
575
                                        [% holds_by_itemtype.push( h ) %]
576
                                    [% END %]
576
                                    [% END %]
577
                                [% END %]
577
                                [% END %]
578
578
Lines 589-595 Link Here
589
                            [% SET branchcodes = [] %]
589
                            [% SET branchcodes = [] %]
590
590
591
                            [% FOREACH h IN biblioloo.reserveloop %]
591
                            [% FOREACH h IN biblioloo.reserveloop %]
592
                                [% branchcodes.push( h.branchcode ) | $raw %]
592
                                [% branchcodes.push( h.branchcode ) %]
593
                            [% END %]
593
                            [% END %]
594
                            [% branchcodes = branchcodes.unique %]
594
                            [% branchcodes = branchcodes.unique %]
595
595
Lines 599-612 Link Here
599
                                    [% SET holds_by_branch = [] %]
599
                                    [% SET holds_by_branch = [] %]
600
                                    [% FOREACH h IN biblioloo.reserveloop %]
600
                                    [% FOREACH h IN biblioloo.reserveloop %]
601
                                        [% IF h.branchcode == b %]
601
                                        [% IF h.branchcode == b %]
602
                                            [% holds_by_branch.push( h ) | $raw %]
602
                                            [% holds_by_branch.push( h ) %]
603
                                        [% END %]
603
                                        [% END %]
604
                                    [% END %]
604
                                    [% END %]
605
605
606
                                    [% SET itemtypes = [] %]
606
                                    [% SET itemtypes = [] %]
607
                                    [% FOREACH h IN holds_by_branch %]
607
                                    [% FOREACH h IN holds_by_branch %]
608
                                        [% SET hold_itemtype = h.object.item.effective_itemtype || h.itemtype %]
608
                                        [% SET hold_itemtype = h.object.item.effective_itemtype || h.itemtype %]
609
                                        [% itemtypes.push( hold_itemtype ) | $raw %]
609
                                        [% itemtypes.push( hold_itemtype ) %]
610
                                    [% END %]
610
                                    [% END %]
611
                                    [% itemtypes = itemtypes.unique %]
611
                                    [% itemtypes = itemtypes.unique %]
612
612
Lines 622-628 Link Here
622
                                            [% FOREACH h IN holds_by_branch %]
622
                                            [% FOREACH h IN holds_by_branch %]
623
                                                [% SET hold_itemtype = h.object.item.effective_itemtype || h.itemtype %]
623
                                                [% SET hold_itemtype = h.object.item.effective_itemtype || h.itemtype %]
624
                                                [% IF hold_itemtype == i %]
624
                                                [% IF hold_itemtype == i %]
625
                                                    [% holds_by_itemtype.push( h ) | $raw %]
625
                                                    [% holds_by_itemtype.push( h ) %]
626
                                                [% END %]
626
                                                [% END %]
627
                                            [% END %]
627
                                            [% END %]
628
                                            [% INCLUDE holds_table.inc holds=holds_by_itemtype %]
628
                                            [% INCLUDE holds_table.inc holds=holds_by_itemtype %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-search.tt (-1 / +1 lines)
Lines 21-27 Link Here
21
[% url_params = [] %]
21
[% url_params = [] %]
22
[% FOREACH param IN CGI.params.pairs %]
22
[% FOREACH param IN CGI.params.pairs %]
23
    [% escaped_value = BLOCK %][% param.value | uri %][% END %]
23
    [% escaped_value = BLOCK %][% param.value | uri %][% END %]
24
    [% url_params.push(param.key _ '=' _ escaped_value) | html %]
24
    [% url_params.push(param.key _ '=' _ escaped_value) %]
25
[% END %]
25
[% END %]
26
[% SET referrer = '/cgi-bin/koha/serials/serials-search.pl?' %]
26
[% SET referrer = '/cgi-bin/koha/serials/serials-search.pl?' %]
27
[% referrer = BLOCK %][% referrer | url %][% url_params.join("&amp;") |uri %][% END %]
27
[% referrer = BLOCK %][% referrer | url %][% url_params.join("&amp;") |uri %][% END %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt (-2 / +1 lines)
Lines 279-285 Link Here
279
                                                        [% IF Koha.Preference('AllowHoldItemTypeSelection') %]
279
                                                        [% IF Koha.Preference('AllowHoldItemTypeSelection') %]
280
                                                            [% itemtypes = [] %]
280
                                                            [% itemtypes = [] %]
281
                                                            [% FOREACH item IN bibitemloo.itemLoop %]
281
                                                            [% FOREACH item IN bibitemloo.itemLoop %]
282
                                                                [% itemtypes.push( item.itype ) | html %]
282
                                                                [% itemtypes.push( item.itype ) %]
283
                                                            [%- END %]
283
                                                            [%- END %]
284
                                                            <li>
284
                                                            <li>
285
                                                                <label for="itemtype">Request specific item type:</label>
285
                                                                <label for="itemtype">Request specific item type:</label>
286
- 

Return to bug 22466