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:17:40 +0000 (19:17 -0400)
commitbda6a467b549e103f87efbfab9c87e94170bf5ec
treefdfc09d3fa24ac14ae5c643484304726d97ba378
parent695745b457e8d89b070e9916986c0b3b34062bfe
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