[Koha-bugs] [Bug 15565] Place multiple item-level holds at once for the same record

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu May 27 08:51:58 CEST 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15565

--- Comment #266 from David Cook <dcook at prosentient.com.au> ---
I need to finish up for the day, but... I reckon we need something like this:

Koha::Holds->remaining_reserves_total({ patron => $patron, });
maxreserves (global system preference)
"Holds allowed (total)" (circ rule: reservesallowed)

Koha::Holds->remaining_reserves_record({ patron => $patron, record => $biblio,
});
"Holds per record (count)" (circ rule: holds_per_record)

Koha::Holds->remaining_reserves_today({ patron => $patron, record => $biblio,
});
"Holds allowed (daily)" (circ rule: holds_per_day)

And each needs to consider an unlimited number (although in theory maxreserves
should always be a positive integer).

Then when you're checking boxes you check each of those totals in turn. (The
reason for having separate functions is so that you can tell the user what
limit they've exceeded...). 

An unlimited rule should probably return a null response, so that you only
consider counts that are digits.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list