]> git.evergreen-ils.org Git - working/Evergreen.git/commit
TPAC: Respect location visibility for result copies
authorDan Scott <dscott@laurentian.ca>
Thu, 11 Oct 2012 05:43:01 +0000 (01:43 -0400)
committerDan Scott <dscott@laurentian.ca>
Thu, 11 Oct 2012 23:16:58 +0000 (19:16 -0400)
commite8dcb2de62179fc924b340ba3230ce5bd4092c42
tree9f1475d80e083951e56ebbfe8827ae36ebf041d0
parentbab981833f88efb4a9f79c339696407ea41532b4
TPAC: Respect location visibility for result copies

Robert Soulliere noted in LP# 1062502 that copies in a location marked
"opac_visible = FALSE" were erroneously being displayed in search
results. This would occur if at least one copy on a record was in a
visible location, but other copies were in an invisible location.

This commit prevents copies in hidden locations from being displayed,
and also adds guards for the visibility of the copy status and the
circulation library.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Robert Soulliere <robert.soulliere@mohawkcollege.ca>
Open-ILS/src/templates/opac/parts/misc_util.tt2