]> git.koha-community.org Git - koha.git/commit
Bug 7016 Followup: Add new GetItemnumberForBiblio subroutine
authorIan Walls <ian.walls@bywatersolutions.com>
Fri, 6 Jan 2012 14:53:49 +0000 (09:53 -0500)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Sat, 5 May 2012 12:16:07 +0000 (08:16 -0400)
commitbc79b5d000479e728838c3b03b351dd6ed43c390
tree989831da982b5e5fb504567e16f6a0926147a36e
parent8334e1a18e0fc0f39fec5aa65d85560cdf4952e2
Bug 7016 Followup: Add new GetItemnumberForBiblio subroutine

Adds a new subroutine in C4::Items, GetItemnumbersForBiblio, which takes a
single biblionumber, and returns an array of all the corresponding itemnumbers.

This patch also replaces the usage of get_itemnumbers_of in C4::Reserves::CanBookBeReserved
with this new subroutine, as the output is more consistent with what we were
lookng for (this is what fixes the bug issue).

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
C4/Items.pm
C4/Reserves.pm