Bug 2341: items marked 'on order' not reserveable from search results
authorIan Walls <ian.walls@bywatersolutions.com>
Mon, 31 Jan 2011 02:43:55 +0000 (21:43 -0500)
committerChris Nighswonger <chris.nighswonger@gmail.com>
Thu, 3 Feb 2011 13:02:46 +0000 (08:02 -0500)
commitf60ec1e18f2668f870231bffc9b424b413fe3c91
treec82d9f3467079b62748111593bf0ca4f47a1d819
parentddaf8ac1470dbcca7a1a81f25e45a635fb4cae95
Bug 2341: items marked 'on order' not reserveable from search results

Items created as part of the acquisitions process, and assigned the temporary notforloan value of -1,
cannot be placed on hold from the search results in either the OPAC or staff client (the link is missing).

This patch changes the evaluation of items->notforloan from a Boolean (if $items->{notforloan}) to a comparison
(if $items->{notforloan} > 0).  Any notforloan status with a negative value can therefore be reserved.

Signed-off-by: Nicole Engard <nengard@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit f692123bf1b2b843d348a897852018caa04de76f)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
C4/Search.pm