|
Lines 111-118
sub filter_by_for_hold {
Link Here
|
| 111 |
-or => [ |
111 |
-or => [ |
| 112 |
{ is_closed_stack => 0 }, |
112 |
{ is_closed_stack => 0 }, |
| 113 |
{ |
113 |
{ |
| 114 |
is_closed_stack => 1, |
114 |
is_closed_stack => 1, |
| 115 |
'reserves.reserve_id' => { '!=', undef }, |
115 |
-or => [ |
|
|
116 |
{ 'reserves.reserve_id' => { '!=', undef } }, |
| 117 |
{ 'issue.issue_id' => { '!=', undef } }, |
| 118 |
], |
| 116 |
}, |
119 |
}, |
| 117 |
], |
120 |
], |
| 118 |
}; |
121 |
}; |
|
Lines 124-130
sub filter_by_for_hold {
Link Here
|
| 124 |
itype => { -not_in => \@hold_not_allowed_itypes }, |
127 |
itype => { -not_in => \@hold_not_allowed_itypes }, |
| 125 |
}, |
128 |
}, |
| 126 |
{ |
129 |
{ |
| 127 |
join => 'reserves', |
130 |
join => [ 'issue', 'reserves' ], |
| 128 |
} |
131 |
} |
| 129 |
); |
132 |
); |
| 130 |
} else { |
133 |
} else { |
|
Lines 134-140
sub filter_by_for_hold {
Link Here
|
| 134 |
'biblioitem.itemtype' => { -not_in => \@hold_not_allowed_itypes }, |
137 |
'biblioitem.itemtype' => { -not_in => \@hold_not_allowed_itypes }, |
| 135 |
}, |
138 |
}, |
| 136 |
{ |
139 |
{ |
| 137 |
join => [ 'biblioitem', 'reserves' ], |
140 |
join => [ 'biblioitem', 'issue', 'reserves' ], |
| 138 |
} |
141 |
} |
| 139 |
); |
142 |
); |
| 140 |
} |
143 |
} |
| 141 |
- |
|
|