TPAC: Respect location visibility for result copies user/rsoulliere/tpac_location_visibility_signoff
authorDan Scott <dscott@laurentian.ca>
Thu, 11 Oct 2012 05:43:01 +0000 (01:43 -0400)
committerRobert Soulliere <robert.soulliere@mohawkcollege.ca>
Thu, 11 Oct 2012 17:22:38 +0000 (13:22 -0400)
commit381e5e46c7505c99c80e539018dda4320a64f89a
tree3e822754511e21d1141fdb98ef9af7c6aacae625
parent7335cbf58a7941f77a1bba5ab071aeaeff36daf0
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