Koha/reserve
Jonathan Druart 8b685c1e80 Bug 9823: Refactor return from GetReservesFromBiblionumber
The return from GetReservesFromBiblionumber contains an unnecessary
extra variable. In scalar context an array returns its element count.
Maintaining a separate count can lead to unforeseen bugs
and imposes ugly constructions on the subroutine's users.

Remove the useless count variable from the return

This patch also changes the parameters: now the routine takes a hashref.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Placed biblio holds, future holds and item holds. Works as expected.
Tested Holds.t and Reserves.t. Pass.
Tested /cgi-bin/koha/ilsdi.pl?service=GetRecords&id=999 with two holds on
one item. Fine.
C4/SIP/ILS/Item.pm: Looked for "whatever" and "arrayref" and could not find
them anymore. Looks good.
Handled a few unneeded calls in QA follow-up.
Left only one point to-do for serials/routing-preview.pl. See Bugzilla.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
2014-01-30 16:19:55 +00:00
..
modrequest.pl Bug 9394: Use reserve_id where possible 2013-07-24 05:04:55 +00:00
modrequest_suspendall.pl Bug 7641: Suspend Reserves 2012-03-29 14:37:49 +02:00
placerequest.pl
renewscript.pl Bug 10663: QA Followup: Typo in comment in renewscript 2013-08-16 01:39:16 +00:00
request.pl Bug 9823: Refactor return from GetReservesFromBiblionumber 2014-01-30 16:19:55 +00:00