Bug 5990: Lists and Cart show LOC code not Location Authorized value
authorIan Walls <ian.walls@bywatersolutions.com>
Wed, 30 Mar 2011 17:39:53 +0000 (13:39 -0400)
committerChris Cormack <chrisc@catalyst.net.nz>
Thu, 31 Mar 2011 23:07:46 +0000 (12:07 +1300)
commit90392c19cc343ada611c1f06e4b5c20f3dd6dc93
tree49b5e2986e8ae07fdcca5ed9868ea48711629d9b
parentf1331722f116d7dce313bb37c100f235d468d3a6
Bug 5990: Lists and Cart show LOC code not Location Authorized value

Lists in the OPAC, and Cart on both sides, show the LOC code for items, rather
than the appropriate Description from Authorised Values.  This is because the
code uses GetItemInfo, which is a very heavy-weight call to only retrieve some
of the desired information.

This patch introduces a new subroutine in C4::Items, GetItemsLocationInfo, which
returns the branch names for both home- and holdingbranches, the location code,
both opac and intranet location descriptions, itemcallnumber and cn_sort. This
should be used instead of GetItemsInfo in any case where the locational
information is all that's required, as it's much more streamlined and efficient.

In the OPAC Lists, this only applies if OPACXSLTResultsDisplay is 'off' (set to
'normal').

Signed-off-by: Jared Camins-Esakov <jcamins@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
C4/Items.pm
C4/VirtualShelves/Page.pm
koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tmpl
koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tmpl
opac/opac-basket.pl