[open-ils-commits] [GIT] Evergreen ILS branch master updated. 31d0f9ef53fcb57faff46a2c7ad471040b432a72

Evergreen Git git at git.evergreen-ils.org
Fri Jun 21 16:20:29 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, master has been updated
       via  31d0f9ef53fcb57faff46a2c7ad471040b432a72 (commit)
      from  cb7fb21c45329fd3b4f17dc4721e7f1e28ce0aab (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 31d0f9ef53fcb57faff46a2c7ad471040b432a72
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