[open-ils-commits] [GIT] Evergreen ILS branch rel_2_4 updated. 52f893edbec7b71a2e9c40afb1cd5a7c2cc1cc9b

Evergreen Git git at git.evergreen-ils.org
Fri Jun 21 16:20:22 EDT 2013


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_4 has been updated
       via  52f893edbec7b71a2e9c40afb1cd5a7c2cc1cc9b (commit)
      from  d9e09087fdd318739c4ff34fadb154139e90aecd (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 52f893edbec7b71a2e9c40afb1cd5a7c2cc1cc9b
Author: Dan Scott <dscott at laurentian.ca>
Date:   Fri Jun 21 14:49:27 2013 -0400

    Prevent JavaScript error on non-Novelist sites
    
    Unless the Evergreen site in question is signed up and configured to
    support Novelist added content, every details page will generate a
    JavaScript error due to the reference to an undefined JavaScript
    function. Guard against that by testing for the presence of the Novelist
    URL.
    
    Signed-off-by: Dan Scott <dscott at laurentian.ca>
    Signed-off-by: Ben Shum <bshum at biblio.org>

diff --git a/Open-ILS/src/templates/opac/parts/acjs.tt2 b/Open-ILS/src/templates/opac/parts/acjs.tt2
index 9cf83ec..3b057dc 100644
--- a/Open-ILS/src/templates/opac/parts/acjs.tt2
+++ b/Open-ILS/src/templates/opac/parts/acjs.tt2
@@ -50,6 +50,7 @@
                 [% END; # IF status unknown
             END  %] 
 
+[%- IF ENV.OILS_NOVELIST_URL -%]
             /* Load novelist content */
             novSelect.loadContentForQuery(
                 {
@@ -65,6 +66,7 @@
                     dojo.byId('novelist-loading').innerHTML = '';
                 }
             );
+[%- END; # Novelist -%]
 
         [% END; # IF ident
     %]

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

Summary of changes:
 Open-ILS/src/templates/opac/parts/acjs.tt2 |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list