[open-ils-commits] [GIT] Evergreen ILS branch master updated. e8dcb2de62179fc924b340ba3230ce5bd4092c42
Evergreen Git
git at git.evergreen-ils.org
Thu Oct 11 19:17:10 EDT 2012
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, master has been updated
via e8dcb2de62179fc924b340ba3230ce5bd4092c42 (commit)
from bab981833f88efb4a9f79c339696407ea41532b4 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit e8dcb2de62179fc924b340ba3230ce5bd4092c42
Author: Dan Scott <dscott at laurentian.ca>
Date: Thu Oct 11 01:43:01 2012 -0400
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 at laurentian.ca>
Signed-off-by: Robert Soulliere <robert.soulliere at mohawkcollege.ca>
diff --git a/Open-ILS/src/templates/opac/parts/misc_util.tt2 b/Open-ILS/src/templates/opac/parts/misc_util.tt2
index 45d3f54..c188e97 100644
--- a/Open-ILS/src/templates/opac/parts/misc_util.tt2
+++ b/Open-ILS/src/templates/opac/parts/misc_util.tt2
@@ -221,8 +221,13 @@
NEXT IF cp.visible == 'false';
loc = copy.findnodes('./*[local-name()="location"]');
+ NEXT IF loc.getAttribute('opac_visible') == 'false';
+
circlib = copy.findnodes('./*[local-name()="circlib"]');
+ NEXT IF circlib.getAttribute('opac_visible') == 'false';
+
status = copy.findnodes('./*[local-name()="status"]');
+ NEXT IF status.getAttribute('opac_visible') == 'false';
holding = {
label => vol.label,
-----------------------------------------------------------------------
Summary of changes:
Open-ILS/src/templates/opac/parts/misc_util.tt2 | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list