Lines 859-864
sub CheckReserves {
Link Here
|
859 |
# See if this item is more important than what we've got so far |
859 |
# See if this item is more important than what we've got so far |
860 |
if ( ( $res->{'priority'} && $res->{'priority'} < $priority ) || $local_hold_match ) { |
860 |
if ( ( $res->{'priority'} && $res->{'priority'} < $priority ) || $local_hold_match ) { |
861 |
$item ||= Koha::Items->find($itemnumber); |
861 |
$item ||= Koha::Items->find($itemnumber); |
|
|
862 |
next if $res->{volume_id} && ( !$item->volume || $item->volume->id != $res->{volume_id} ); |
862 |
next if $res->{itemtype} && $res->{itemtype} ne $item->effective_itemtype; |
863 |
next if $res->{itemtype} && $res->{itemtype} ne $item->effective_itemtype; |
863 |
$patron ||= Koha::Patrons->find( $res->{borrowernumber} ); |
864 |
$patron ||= Koha::Patrons->find( $res->{borrowernumber} ); |
864 |
my $branch = GetReservesControlBranch( $item->unblessed, $patron->unblessed ); |
865 |
my $branch = GetReservesControlBranch( $item->unblessed, $patron->unblessed ); |
Lines 1658-1664
sub _Findgroupreserve {
Link Here
|
1658 |
biblioitems.biblioitemnumber AS biblioitemnumber, |
1659 |
biblioitems.biblioitemnumber AS biblioitemnumber, |
1659 |
reserves.itemnumber AS itemnumber, |
1660 |
reserves.itemnumber AS itemnumber, |
1660 |
reserves.reserve_id AS reserve_id, |
1661 |
reserves.reserve_id AS reserve_id, |
1661 |
reserves.itemtype AS itemtype |
1662 |
reserves.itemtype AS itemtype, |
|
|
1663 |
reserves.volume_id AS volume_id |
1662 |
FROM reserves |
1664 |
FROM reserves |
1663 |
JOIN biblioitems USING (biblionumber) |
1665 |
JOIN biblioitems USING (biblionumber) |
1664 |
JOIN hold_fill_targets USING (biblionumber, borrowernumber, itemnumber) |
1666 |
JOIN hold_fill_targets USING (biblionumber, borrowernumber, itemnumber) |
Lines 1693-1699
sub _Findgroupreserve {
Link Here
|
1693 |
biblioitems.biblioitemnumber AS biblioitemnumber, |
1695 |
biblioitems.biblioitemnumber AS biblioitemnumber, |
1694 |
reserves.itemnumber AS itemnumber, |
1696 |
reserves.itemnumber AS itemnumber, |
1695 |
reserves.reserve_id AS reserve_id, |
1697 |
reserves.reserve_id AS reserve_id, |
1696 |
reserves.itemtype AS itemtype |
1698 |
reserves.itemtype AS itemtype, |
|
|
1699 |
reserves.volume_id AS volume_id |
1697 |
FROM reserves |
1700 |
FROM reserves |
1698 |
JOIN biblioitems USING (biblionumber) |
1701 |
JOIN biblioitems USING (biblionumber) |
1699 |
JOIN hold_fill_targets USING (biblionumber, borrowernumber) |
1702 |
JOIN hold_fill_targets USING (biblionumber, borrowernumber) |
Lines 1727-1733
sub _Findgroupreserve {
Link Here
|
1727 |
reserves.timestamp AS timestamp, |
1730 |
reserves.timestamp AS timestamp, |
1728 |
reserves.itemnumber AS itemnumber, |
1731 |
reserves.itemnumber AS itemnumber, |
1729 |
reserves.reserve_id AS reserve_id, |
1732 |
reserves.reserve_id AS reserve_id, |
1730 |
reserves.itemtype AS itemtype |
1733 |
reserves.itemtype AS itemtype, |
|
|
1734 |
reserves.volume_id AS volume_id |
1731 |
FROM reserves |
1735 |
FROM reserves |
1732 |
WHERE reserves.biblionumber = ? |
1736 |
WHERE reserves.biblionumber = ? |
1733 |
AND (reserves.itemnumber IS NULL OR reserves.itemnumber = ?) |
1737 |
AND (reserves.itemnumber IS NULL OR reserves.itemnumber = ?) |
1734 |
- |
|
|