]> git.evergreen-ils.org Git - working/Evergreen.git/commit
Show local call number in TPAC My Lists display
authorBill Erickson <berick@esilibrary.com>
Thu, 13 Dec 2012 16:34:50 +0000 (11:34 -0500)
committerBen Shum <bshum@biblio.org>
Mon, 11 Mar 2013 21:42:49 +0000 (17:42 -0400)
commit1aa9a8a6755aa6dc43b9c24a7d975eaa8084b860
tree42675ca6f85c99b4d28a4c2176f23426575369bf
parentf83878aa3cd91ef35665b5dde0a0dfe86c1ae737
Show local call number in TPAC My Lists display

If an opac-visible call number exists that is owned by an org unit
relevant to the patron, show the (most relevant) call number label in
the My Lists display for each record in the list.  Call number is
displayed in both saved and temporary lists.

A call number is considered relevant if its owner is one of:

physical location library
preferred library (plib, home, etc.)
search library

This code leverages the new "exclude_invisible_acn" unapi filter to
ensure that we are only required to retrieve 1 call number in the unapi
output instead of an arbitrarily large set of call numbers, against
which we may have to filter non-visible call numbers.

This commit also addresses and outstanding TODO item in the tpac Perl:
Replace the last use of fetch_marc_xml_by_id with get_records_and_facets
and remove fetch_marc_xml_by_id

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Container.pm
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Util.pm
Open-ILS/src/templates/opac/myopac/lists.tt2
Open-ILS/src/templates/opac/parts/anon_list.tt2
Open-ILS/src/templates/opac/parts/misc_util.tt2