]> git.koha-community.org Git - koha.git/commit
Bug 5834: Holds link missing when 942$c is not for loan
authorKatrin Fischer <Katrin.Fischer.83@web.de>
Sat, 19 Mar 2011 21:14:33 +0000 (17:14 -0400)
committerChris Nighswonger <chris.nighswonger@gmail.com>
Tue, 22 Mar 2011 22:07:04 +0000 (18:07 -0400)
commit2124dc88ef51d4e3f23fceab3e302500c93a0a72
tree71c6822f1dc04ed0659e3337bc4d2792814fbdd0
parentb97494fdee066adc0a08afa8ea0b31a497348a7a
Bug 5834: Holds link missing when 942$c is not for loan

Adds a check for item-level_itypes system preference. Note that this only
applies to the search results screens.

To test:
1) Set item-level_itypes to 'specific item'
2) Create record and set 942$c to an itype that is marked not for loan
3) Create item with itype not marked 'not for loan'
Current behaviour: Holds link is not shown, sys pref setting doesn't matter

After patch: Holds link is shown
- when item-level_itype is 'specific item'
- when item-level_itype is 'biblio record' and 942$c itype is for loan

Holds link is not shown
- when item-level_itype is 'biblio record' and 942$c is not for loan

Signed-off-by: Jared Camins-Esakov <jcamins@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit e1654e1aa148303fde0d30360f533be26b3029d3)

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