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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt (-5 / +4 lines)
Lines 980-986 Link Here
980
                                        [% SET itemtypes = [] %]
980
                                        [% SET itemtypes = [] %]
981
981
982
                                        [% FOREACH h IN biblioloo.reserveloop %]
982
                                        [% FOREACH h IN biblioloo.reserveloop %]
983
                                            [% SET hold_itemtype = h.object.item.effective_itemtype || h.itemtype %]
983
                                            [% SET hold_itemtype = h.item.effective_itemtype || h.itemtype %]
984
                                            [% itemtypes.push( hold_itemtype ) %]
984
                                            [% itemtypes.push( hold_itemtype ) %]
985
                                        [% END %]
985
                                        [% END %]
986
                                        [% itemtypes = itemtypes.unique %]
986
                                        [% itemtypes = itemtypes.unique %]
Lines 993-999 Link Here
993
                                            [% FOREACH i IN itemtypes.sort %]
993
                                            [% FOREACH i IN itemtypes.sort %]
994
                                                [% SET holds_by_itemtype = [] %]
994
                                                [% SET holds_by_itemtype = [] %]
995
                                                [% FOREACH h IN biblioloo.reserveloop %]
995
                                                [% FOREACH h IN biblioloo.reserveloop %]
996
                                                    [% SET hold_itemtype = h.object.item.effective_itemtype || h.itemtype %]
996
                                                    [% SET hold_itemtype = h.item.effective_itemtype || h.itemtype %]
997
                                                    [% IF hold_itemtype == i %]
997
                                                    [% IF hold_itemtype == i %]
998
                                                        [% holds_by_itemtype.push( h ) %]
998
                                                        [% holds_by_itemtype.push( h ) %]
999
                                                    [% END %]
999
                                                    [% END %]
Lines 1035-1041 Link Here
1035
1035
1036
                                                    [% SET itemtypes = [] %]
1036
                                                    [% SET itemtypes = [] %]
1037
                                                    [% FOREACH h IN holds_by_branch %]
1037
                                                    [% FOREACH h IN holds_by_branch %]
1038
                                                        [% SET hold_itemtype = h.object.item.effective_itemtype || h.itemtype %]
1038
                                                        [% SET hold_itemtype = h.item.effective_itemtype || h.itemtype %]
1039
                                                        [% itemtypes.push( hold_itemtype ) %]
1039
                                                        [% itemtypes.push( hold_itemtype ) %]
1040
                                                    [% END %]
1040
                                                    [% END %]
1041
                                                    [% itemtypes = itemtypes.unique %]
1041
                                                    [% itemtypes = itemtypes.unique %]
Lines 1052-1058 Link Here
1052
1052
1053
                                                            [% SET holds_by_itemtype = [] %]
1053
                                                            [% SET holds_by_itemtype = [] %]
1054
                                                            [% FOREACH h IN holds_by_branch %]
1054
                                                            [% FOREACH h IN holds_by_branch %]
1055
                                                                [% SET hold_itemtype = h.object.item.effective_itemtype || h.itemtype %]
1055
                                                                [% SET hold_itemtype = h.item.effective_itemtype || h.itemtype %]
1056
                                                                [% IF hold_itemtype == i %]
1056
                                                                [% IF hold_itemtype == i %]
1057
                                                                    [% holds_by_itemtype.push( h ) %]
1057
                                                                    [% holds_by_itemtype.push( h ) %]
1058
                                                                [% END %]
1058
                                                                [% END %]
1059
- 

Return to bug 30269