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@laurentian.ca>
[% END; # IF status unknown
END %]
+[%- IF ENV.OILS_NOVELIST_URL -%]
/* Load novelist content */
novSelect.loadContentForQuery(
{
dojo.byId('novelist-loading').innerHTML = '';
}
);
+[%- END; # Novelist -%]
[% END; # IF ident
%]