Koha/catalogue
Marcel de Rooy 92be11bbcf Bug 9788: (follow-up) removing the alldates parameter from GetReservesFromItemnumber
Before bug 9788 the alldates parameter of GetReservesFromItemnumber was
actually not used in the codebase.
The first patch of bug 9788 did change that and passed true by default.

But a closer look revealed that we do not really need it.

The parameter is removed by this patch; the SQL statement is slightly
adjusted: if reservedate<=now or a waitingdate is filled for the
requested itemnumber, GetReservesFromItemnumber will return the reserve.

This includes so-called future waits: a future hold that has been confirmed
ahead of time with pref ConfirmFutureHolds > 0 days.

Note that future item-level holds are not really interesting to return; this
just corresponds to original behavior. Future next-available holds are not
in view at all; they do not contain an item number.

Test plan:
Actually, the test plan of the first patch is valid. But for completeness I
repeat it here:

[1] Enable future holds and set ConfirmFutureHolds to 2 days.
[2] Place a future next-available hold for 2 days ahead.
[3] Check item status on catalogue detail. Available? That is fine.
[4] Confirm the future hold by checking it in. ('future wait')
[5] Look at item status again on catalogue detail. Must be Waiting now.
[6] Switch to OPAC and login as another opac user. Goto Place a hold.
[7] Check item status with item level hold info. Is it waiting?
[8] Try to place hold in staff, check item level status again. Waiting?
[9] Make a transfer for the item. Switch branch. Check hold status on
    Transfers to receive.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
2014-01-17 05:07:32 +00:00
..
cardview.pl
detail.pl Bug 9788: (follow-up) removing the alldates parameter from GetReservesFromItemnumber 2014-01-17 05:07:32 +00:00
export.pl Bug 9665: QA follow up fixing tabs 2013-06-17 11:25:40 -07:00
getitem-ajax.pl Bug 7175: Allow to choose which items to receive 2012-05-21 17:46:07 +02:00
image.pl Bug 8255: allow local cover images to be cached 2012-06-25 18:12:29 +02:00
imageviewer.pl Bug 5790 - Prevent deletion of records with holds 2013-02-07 07:29:45 -05:00
ISBDdetail.pl Bug 10404: add previous/next browsing to staff client 2013-08-09 15:07:39 +00:00
issuehistory.pl Bug 10868 - Use new DataTables include in catalog templates 2013-09-21 19:27:08 +00:00
labeledMARCdetail.pl Bug 10404: add previous/next browsing to staff client 2013-08-09 15:07:39 +00:00
MARCdetail.pl Bug 10404: add previous/next browsing to staff client 2013-08-09 15:07:39 +00:00
moredetail.pl Bug 7002: fix some invalid superlibrarian permission checks 2014-01-06 05:32:22 +00:00
search.pl Bug 5645: improve converting simple search to Z39.50 search 2013-10-02 14:58:54 +00:00
showmarc.pl Bug 9684 : Correct path to compact.xsl 2013-04-27 07:08:13 -04:00
updateitem.pl Bug 7639: add option to forgive overdue fines when declaring items lost 2013-09-17 15:10:46 +00:00