[open-ils-commits] [GIT] Evergreen ILS branch rel_2_3 updated. 239e70e2256b52bcb2d4dd32fa310c5e77b98e6e

Evergreen Git git at git.evergreen-ils.org
Thu Oct 11 19:17:31 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, rel_2_3 has been updated
       via  239e70e2256b52bcb2d4dd32fa310c5e77b98e6e (commit)
      from  b39ac1de1e4b1b598b7ada95872e012f643f8157 (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 239e70e2256b52bcb2d4dd32fa310c5e77b98e6e
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