Koha-clms/C4/SIP/ILS
Jonathan Druart 82d6e097f5 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>
(cherry picked from commit 8b685c1e80)

Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2014-05-27 12:17:44 +02:00
..
Transaction Bug 10550: Fix database typo wthdrawn 2013-09-08 01:58:41 +00:00
Item.pm Bug 9823: Refactor return from GetReservesFromBiblionumber 2014-05-27 12:17:44 +02:00
Item.pod bug 3435: SIP Checkin extension for 3M SmartChute - partial 2009-07-30 11:06:47 -04:00
Patron.pm Bug 11783: ensure CD field in SIP patron information response is populated 2014-05-19 17:09:43 +02:00
Patron.pod adding openncip / opensip SIP2 service 2007-11-06 06:32:53 -06:00
Transaction.pm Abstraction layer implementation for Transactions. 2008-06-05 22:43:35 -05:00