[open-ils-commits] [GIT] Evergreen ILS branch master updated. 6af8d867625bb5eb3b144c0e4db008360697c518

Evergreen Git git at git.evergreen-ils.org
Fri Sep 16 22:15:48 EDT 2011


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  6af8d867625bb5eb3b144c0e4db008360697c518 (commit)
      from  b4c93a00a526b215b70bbd8c857314d63740adcf (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 6af8d867625bb5eb3b144c0e4db008360697c518
Author: Bill Erickson <berick at esilibrary.com>
Date:   Wed Jul 6 10:12:00 2011 -0400

    Set refworks default org to match org tree root
    
    Signed-off-by: Bill Erickson <berick at esilibrary.com>
    Signed-off-by: Dan Scott <dscott at laurentian.ca>

diff --git a/Open-ILS/src/templates/opac/parts/record/refworks.tt2 b/Open-ILS/src/templates/opac/parts/record/refworks.tt2
index 23af9a3..928ce90 100644
--- a/Open-ILS/src/templates/opac/parts/record/refworks.tt2
+++ b/Open-ILS/src/templates/opac/parts/record/refworks.tt2
@@ -1,6 +1,6 @@
 [%
-    # Default to aou.id = 1 in the absence of a specific library
-    loc = 1;
+    # Default to the root of the org unit tree in the absence of a specific library
+    loc = ctx.aou_tree.id;
     IF CGI.param('loc');
         loc = CGI.param('loc');
     END;

-----------------------------------------------------------------------

Summary of changes:
 .../src/templates/opac/parts/record/refworks.tt2   |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list