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 1649-1655
sub _Findgroupreserve {
Link Here
|
1649 |
biblioitems.biblioitemnumber AS biblioitemnumber, |
1651 |
biblioitems.biblioitemnumber AS biblioitemnumber, |
1650 |
reserves.itemnumber AS itemnumber, |
1652 |
reserves.itemnumber AS itemnumber, |
1651 |
reserves.reserve_id AS reserve_id, |
1653 |
reserves.reserve_id AS reserve_id, |
1652 |
reserves.itemtype AS itemtype |
1654 |
reserves.itemtype AS itemtype, |
|
|
1655 |
reserves.non_priority AS non_priority |
1653 |
FROM reserves |
1656 |
FROM reserves |
1654 |
JOIN biblioitems USING (biblionumber) |
1657 |
JOIN biblioitems USING (biblionumber) |
1655 |
JOIN hold_fill_targets USING (biblionumber, borrowernumber, itemnumber) |
1658 |
JOIN hold_fill_targets USING (biblionumber, borrowernumber, itemnumber) |
Lines 1684-1690
sub _Findgroupreserve {
Link Here
|
1684 |
biblioitems.biblioitemnumber AS biblioitemnumber, |
1687 |
biblioitems.biblioitemnumber AS biblioitemnumber, |
1685 |
reserves.itemnumber AS itemnumber, |
1688 |
reserves.itemnumber AS itemnumber, |
1686 |
reserves.reserve_id AS reserve_id, |
1689 |
reserves.reserve_id AS reserve_id, |
1687 |
reserves.itemtype AS itemtype |
1690 |
reserves.itemtype AS itemtype, |
|
|
1691 |
reserves.non_priority AS non_priority |
1688 |
FROM reserves |
1692 |
FROM reserves |
1689 |
JOIN biblioitems USING (biblionumber) |
1693 |
JOIN biblioitems USING (biblionumber) |
1690 |
JOIN hold_fill_targets USING (biblionumber, borrowernumber) |
1694 |
JOIN hold_fill_targets USING (biblionumber, borrowernumber) |
Lines 1718-1724
sub _Findgroupreserve {
Link Here
|
1718 |
reserves.timestamp AS timestamp, |
1722 |
reserves.timestamp AS timestamp, |
1719 |
reserves.itemnumber AS itemnumber, |
1723 |
reserves.itemnumber AS itemnumber, |
1720 |
reserves.reserve_id AS reserve_id, |
1724 |
reserves.reserve_id AS reserve_id, |
1721 |
reserves.itemtype AS itemtype |
1725 |
reserves.itemtype AS itemtype, |
|
|
1726 |
reserves.non_priority AS non_priority |
1722 |
FROM reserves |
1727 |
FROM reserves |
1723 |
WHERE reserves.biblionumber = ? |
1728 |
WHERE reserves.biblionumber = ? |
1724 |
AND (reserves.itemnumber IS NULL OR reserves.itemnumber = ?) |
1729 |
AND (reserves.itemnumber IS NULL OR reserves.itemnumber = ?) |