]> git.koha-community.org Git - koha.git/commit
Bug 7016: CanBookBeReserved uses GetItemsInfo unnecessarily
authorIan Walls <ian.walls@bywatersolutions.com>
Wed, 12 Oct 2011 19:35:31 +0000 (15:35 -0400)
committerChris Cormack <chrisc@catalyst.net.nz>
Wed, 19 Oct 2011 22:55:10 +0000 (11:55 +1300)
commit823b807ac9e20706bdd3931962e126affc72cbeb
tree08c46ba7fc1b6f2a8f9a9bc8765e56069b094c66
parenta46cbc03ee60b8894e5f37f830d2deea4629aa05
Bug 7016: CanBookBeReserved uses GetItemsInfo unnecessarily

CanBookBeReserved uses the very heavy-weight function GetItemsInfo to simply retrieve
the itemnumbers attached to a given biblio.  The function get_itemnumbers_of() is much
lighter-weight and returns the required information; switching to it will reduce the overall
system resource cost of placing a hold.

Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
C4/Reserves.pm