Lines 170-175
if ($enddate_iso) {
Link Here
|
170 |
|
170 |
|
171 |
my $item_type = C4::Context->preference('item-level_itypes') ? "items.itype" : "biblioitems.itemtype"; |
171 |
my $item_type = C4::Context->preference('item-level_itypes') ? "items.itype" : "biblioitems.itemtype"; |
172 |
|
172 |
|
|
|
173 |
my $allow_damaged = C4::Context->preference('AllowHoldsOnDamagedItems') || 0; |
174 |
|
173 |
my $strsth = |
175 |
my $strsth = |
174 |
"SELECT min(reservedate) as l_reservedate, |
176 |
"SELECT min(reservedate) as l_reservedate, |
175 |
reserves.reserve_id, |
177 |
reserves.reserve_id, |
Lines 214-220
my $strsth =
Link Here
|
214 |
AND issues.itemnumber IS NULL |
216 |
AND issues.itemnumber IS NULL |
215 |
AND reserves.priority <> 0 |
217 |
AND reserves.priority <> 0 |
216 |
AND reserves.suspend = 0 |
218 |
AND reserves.suspend = 0 |
217 |
AND notforloan = 0 AND damaged = 0 AND itemlost = 0 AND withdrawn = 0 |
219 |
AND notforloan = 0 AND damaged = $allow_damaged AND itemlost = 0 AND withdrawn = 0 |
218 |
"; |
220 |
"; |
219 |
# GROUP BY reserves.biblionumber allows only items that are not checked out, else multiples occur when |
221 |
# GROUP BY reserves.biblionumber allows only items that are not checked out, else multiples occur when |
220 |
# multiple patrons have a hold on an item |
222 |
# multiple patrons have a hold on an item |
221 |
- |
|
|