Prevent JavaScript error on non-Novelist sites
[working/Evergreen.git] / Open-ILS / src / templates / opac / parts / acjs.tt2
index 9cf83ec..3b057dc 100644 (file)
@@ -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
     %]