future hold request followup 3 - build_holdsqueue
Fixed the holds queue job so that it correctly ignores hold requests that are not yet scheduled to be filled. Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
This commit is contained in:
parent
4ecaa1f9bd
commit
7242939cf4
1 changed files with 3 additions and 1 deletions
|
@ -83,7 +83,8 @@ sub GetBibsWithPendingHoldRequests {
|
||||||
my $bib_query = "SELECT DISTINCT biblionumber
|
my $bib_query = "SELECT DISTINCT biblionumber
|
||||||
FROM reserves
|
FROM reserves
|
||||||
WHERE found IS NULL
|
WHERE found IS NULL
|
||||||
AND priority > 0";
|
AND priority > 0
|
||||||
|
AND reservedate <= CURRENT_DATE()";
|
||||||
my $sth = $dbh->prepare($bib_query);
|
my $sth = $dbh->prepare($bib_query);
|
||||||
|
|
||||||
$sth->execute();
|
$sth->execute();
|
||||||
|
@ -129,6 +130,7 @@ sub GetPendingHoldRequestsForBib {
|
||||||
WHERE biblionumber = ?
|
WHERE biblionumber = ?
|
||||||
AND found IS NULL
|
AND found IS NULL
|
||||||
AND priority > 0
|
AND priority > 0
|
||||||
|
AND reservedate <= CURRENT_DATE()
|
||||||
ORDER BY priority";
|
ORDER BY priority";
|
||||||
my $sth = $dbh->prepare($request_query);
|
my $sth = $dbh->prepare($request_query);
|
||||||
$sth->execute($biblionumber);
|
$sth->execute($biblionumber);
|
||||||
|
|
Loading…
Reference in a new issue