Lines 185-190
sub AddReserve {
Link Here
|
185 |
my $checkitem = $params->{itemnumber}; |
185 |
my $checkitem = $params->{itemnumber}; |
186 |
my $found = $params->{found}; |
186 |
my $found = $params->{found}; |
187 |
my $itemtype = $params->{itemtype}; |
187 |
my $itemtype = $params->{itemtype}; |
|
|
188 |
my $non_priority = $params->{non_priority}; |
188 |
|
189 |
|
189 |
$resdate = output_pref( { str => dt_from_string( $resdate ), dateonly => 1, dateformat => 'iso' }) |
190 |
$resdate = output_pref( { str => dt_from_string( $resdate ), dateonly => 1, dateformat => 'iso' }) |
190 |
or output_pref({ dt => dt_from_string, dateonly => 1, dateformat => 'iso' }); |
191 |
or output_pref({ dt => dt_from_string, dateonly => 1, dateformat => 'iso' }); |
Lines 248-253
sub AddReserve {
Link Here
|
248 |
expirationdate => $expdate, |
249 |
expirationdate => $expdate, |
249 |
itemtype => $itemtype, |
250 |
itemtype => $itemtype, |
250 |
item_level_hold => $checkitem ? 1 : 0, |
251 |
item_level_hold => $checkitem ? 1 : 0, |
|
|
252 |
non_priority => $non_priority ? 1 : 0, |
251 |
} |
253 |
} |
252 |
)->store(); |
254 |
)->store(); |
253 |
$hold->set_waiting() if $found && $found eq 'W'; |
255 |
$hold->set_waiting() if $found && $found eq 'W'; |
Lines 1656-1662
sub _Findgroupreserve {
Link Here
|
1656 |
biblioitems.biblioitemnumber AS biblioitemnumber, |
1658 |
biblioitems.biblioitemnumber AS biblioitemnumber, |
1657 |
reserves.itemnumber AS itemnumber, |
1659 |
reserves.itemnumber AS itemnumber, |
1658 |
reserves.reserve_id AS reserve_id, |
1660 |
reserves.reserve_id AS reserve_id, |
1659 |
reserves.itemtype AS itemtype |
1661 |
reserves.itemtype AS itemtype, |
|
|
1662 |
reserves.non_priority AS non_priority |
1660 |
FROM reserves |
1663 |
FROM reserves |
1661 |
JOIN biblioitems USING (biblionumber) |
1664 |
JOIN biblioitems USING (biblionumber) |
1662 |
JOIN hold_fill_targets USING (biblionumber, borrowernumber, itemnumber) |
1665 |
JOIN hold_fill_targets USING (biblionumber, borrowernumber, itemnumber) |
Lines 1691-1697
sub _Findgroupreserve {
Link Here
|
1691 |
biblioitems.biblioitemnumber AS biblioitemnumber, |
1694 |
biblioitems.biblioitemnumber AS biblioitemnumber, |
1692 |
reserves.itemnumber AS itemnumber, |
1695 |
reserves.itemnumber AS itemnumber, |
1693 |
reserves.reserve_id AS reserve_id, |
1696 |
reserves.reserve_id AS reserve_id, |
1694 |
reserves.itemtype AS itemtype |
1697 |
reserves.itemtype AS itemtype, |
|
|
1698 |
reserves.non_priority AS non_priority |
1695 |
FROM reserves |
1699 |
FROM reserves |
1696 |
JOIN biblioitems USING (biblionumber) |
1700 |
JOIN biblioitems USING (biblionumber) |
1697 |
JOIN hold_fill_targets USING (biblionumber, borrowernumber) |
1701 |
JOIN hold_fill_targets USING (biblionumber, borrowernumber) |
Lines 1725-1731
sub _Findgroupreserve {
Link Here
|
1725 |
reserves.timestamp AS timestamp, |
1729 |
reserves.timestamp AS timestamp, |
1726 |
reserves.itemnumber AS itemnumber, |
1730 |
reserves.itemnumber AS itemnumber, |
1727 |
reserves.reserve_id AS reserve_id, |
1731 |
reserves.reserve_id AS reserve_id, |
1728 |
reserves.itemtype AS itemtype |
1732 |
reserves.itemtype AS itemtype, |
|
|
1733 |
reserves.non_priority AS non_priority |
1729 |
FROM reserves |
1734 |
FROM reserves |
1730 |
WHERE reserves.biblionumber = ? |
1735 |
WHERE reserves.biblionumber = ? |
1731 |
AND (reserves.itemnumber IS NULL OR reserves.itemnumber = ?) |
1736 |
AND (reserves.itemnumber IS NULL OR reserves.itemnumber = ?) |