[open-ils-commits] [GIT] Evergreen ILS branch rel_2_2 updated. bda6a467b549e103f87efbfab9c87e94170bf5ec

Evergreen Git git at git.evergreen-ils.org
Thu Oct 11 19:17:47 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_2 has been updated
       via  bda6a467b549e103f87efbfab9c87e94170bf5ec (commit)
      from  695745b457e8d89b070e9916986c0b3b34062bfe (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 bda6a467b549e103f87efbfab9c87e94170bf5ec
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 d0ec476..cfe4c4a 100644
--- a/Open-ILS/src/templates/opac/parts/misc_util.tt2
+++ b/Open-ILS/src/templates/opac/parts/misc_util.tt2
@@ -212,8 +212,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