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 1072-1078 Link Here
1072
                                        [% SET itemtypes = [] %]
1072
                                        [% SET itemtypes = [] %]
1073
1073
1074
                                        [% FOREACH h IN biblioloo.reserveloop %]
1074
                                        [% FOREACH h IN biblioloo.reserveloop %]
1075
                                            [% SET hold_itemtype = h.object.item.effective_itemtype || h.itemtype %]
1075
                                            [% SET hold_itemtype = h.item.effective_itemtype || h.itemtype %]
1076
                                            [% itemtypes.push( hold_itemtype ) %]
1076
                                            [% itemtypes.push( hold_itemtype ) %]
1077
                                        [% END %]
1077
                                        [% END %]
1078
                                        [% itemtypes = itemtypes.unique %]
1078
                                        [% itemtypes = itemtypes.unique %]
Lines 1085-1091 Link Here
1085
                                            [% FOREACH i IN itemtypes.sort %]
1085
                                            [% FOREACH i IN itemtypes.sort %]
1086
                                                [% SET holds_by_itemtype = [] %]
1086
                                                [% SET holds_by_itemtype = [] %]
1087
                                                [% FOREACH h IN biblioloo.reserveloop %]
1087
                                                [% FOREACH h IN biblioloo.reserveloop %]
1088
                                                    [% SET hold_itemtype = h.object.item.effective_itemtype || h.itemtype %]
1088
                                                    [% SET hold_itemtype = h.item.effective_itemtype || h.itemtype %]
1089
                                                    [% IF hold_itemtype == i %]
1089
                                                    [% IF hold_itemtype == i %]
1090
                                                        [% holds_by_itemtype.push( h ) %]
1090
                                                        [% holds_by_itemtype.push( h ) %]
1091
                                                    [% END %]
1091
                                                    [% END %]
Lines 1127-1133 Link Here
1127
1127
1128
                                                    [% SET itemtypes = [] %]
1128
                                                    [% SET itemtypes = [] %]
1129
                                                    [% FOREACH h IN holds_by_branch %]
1129
                                                    [% FOREACH h IN holds_by_branch %]
1130
                                                        [% SET hold_itemtype = h.object.item.effective_itemtype || h.itemtype %]
1130
                                                        [% SET hold_itemtype = h.item.effective_itemtype || h.itemtype %]
1131
                                                        [% itemtypes.push( hold_itemtype ) %]
1131
                                                        [% itemtypes.push( hold_itemtype ) %]
1132
                                                    [% END %]
1132
                                                    [% END %]
1133
                                                    [% itemtypes = itemtypes.unique %]
1133
                                                    [% itemtypes = itemtypes.unique %]
Lines 1144-1150 Link Here
1144
1144
1145
                                                            [% SET holds_by_itemtype = [] %]
1145
                                                            [% SET holds_by_itemtype = [] %]
1146
                                                            [% FOREACH h IN holds_by_branch %]
1146
                                                            [% FOREACH h IN holds_by_branch %]
1147
                                                                [% SET hold_itemtype = h.object.item.effective_itemtype || h.itemtype %]
1147
                                                                [% SET hold_itemtype = h.item.effective_itemtype || h.itemtype %]
1148
                                                                [% IF hold_itemtype == i %]
1148
                                                                [% IF hold_itemtype == i %]
1149
                                                                    [% holds_by_itemtype.push( h ) %]
1149
                                                                    [% holds_by_itemtype.push( h ) %]
1150
                                                                [% END %]
1150
                                                                [% END %]
1151
- 

Return to bug 30269