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>
my $bib_query = "SELECT DISTINCT biblionumber
FROM reserves
WHERE found IS NULL
- AND priority > 0";
+ AND priority > 0
+ AND reservedate <= CURRENT_DATE()";
my $sth = $dbh->prepare($bib_query);
$sth->execute();
WHERE biblionumber = ?
AND found IS NULL
AND priority > 0
+ AND reservedate <= CURRENT_DATE()
ORDER BY priority";
my $sth = $dbh->prepare($request_query);
$sth->execute($biblionumber);