-
-<!-- Set up the chilifresh account information and load the JS -->
-
-[% IF ENV.OILS_CHILIFRESH_URL AND ENV.OILS_CHILIFRESH_ACCOUNT
+[%- IF ENV.OILS_CHILIFRESH_URL AND ENV.OILS_CHILIFRESH_ACCOUNT
AND (ctx.page == 'rresult' OR ctx.page == 'record');
chili_url = ENV.OILS_CHILIFRESH_URL;
IF CGI.https AND ENV.OILS_CHILIFRESH_HTTPS_URL;
chili_url = ENV.OILS_CHILIFRESH_HTTPS_URL;
END;
%]
+ <!-- Set up the chilifresh account information and load the JS -->
<input type="hidden" id="chilifresh_account" name="chilifresh_account" value="[% ENV.OILS_CHILIFRESH_ACCOUNT %]"/>
<!--
<input type="hidden" id="chilifresh_profile" name="chilifresh_profile" value="[% ENV.OILS_CHILIFRESH_PROFILE %]"/>
<input type="hidden" id="chilifresh_type" name="chilifresh_type" value="search" />
<script type="text/javascript" src="[% chili_url %]"></script>
<script>try { setTimeout(chili_init, 0); } catch(E) {}</script>
-[% END %]
-
+[%- END %]
# RefWorks configuration
##############################################################################
# RefWorks is a Web-based citation manager
-ctx.refworks.enable = 'false';
+ctx.refworks.enabled = 'false';
# Base URL for RefWorks
ctx.refworks.url = 'http://www.refworks.com';
openurl.enabled = 'false';
openurl.baseurl = 'http://sfx.example.com/instance';
+##############################################################################
+# Google Analytics support
+##############################################################################
+# You can enable Google Analytics support in Evergreen by entering a
+# valid Google Analytics code and changing 'false' to 'true'
+##############################################################################
+google_analytics.enabled = 'false';
+google_analytics.code = 'UA-9999999-99';
+
%]
<!-- JS imports, etc. -->
-
<script type="text/javascript" src="[% ctx.media_prefix %]/js/ui/default/opac/simple.js"></script>
-[% IF ctx.is_staff %]
+[%- PROCESS "default/opac/parts/config.tt2"; %]
+
+[%- IF ctx.is_staff %]
<script type="text/javascript" src="[% ctx.media_prefix %]/js/ui/default/opac/staff.js"></script>
-[% END %]
+[%- END %]
-[% IF ENV.OILS_NOVELIST_URL AND ctx.page == 'record';
+[%- IF ENV.OILS_NOVELIST_URL AND ctx.page == 'record';
url = ENV.OILS_NOVELIST_URL;
IF CGI.https; url = url.replace('^http:', 'https:'); END; %]
<script type='text/javascript' id='EIT' src='[% url %]'></script>
-[% END %]
+[%- END %]
+[%- IF google_analytics.enabled == 'true' %]
<!-- Google Analytics -->
<script type="text/javascript">
/* uncomment when ready */ /*
var _gaq = _gaq || [];
- _gaq.push(['_setAccount', 'UA-3018520-10']);
+ _gaq.push(['_setAccount', '[% google_analytics.code %]']);
_gaq.push(['_trackPageview']);
(function() {
*/
</script>
<!-- End Google Analytics -->
-
+[%- END %]
<!-- ****************** rdetail_summary.xml ***************************** -->
<abbr class="unapi-id" title='tag:[% ctx.hostname %],[% date.format(date.now, '%Y') %]:biblio-record_entry/[% ctx.bre_id %]'></abbr>
-[% IF ctx.refworks.enable == 'true' %]
+[%- IF ctx.refworks.enabled == 'true' %]
[% INCLUDE 'default/opac/parts/record/refworks.tt2' %]
-[% END %]
+[%- END %]
<!-- This holds the record summary information -->
</td>
<td valign="top" id='rdetail_physical_desc'>[% attrs.phys_desc | html %]</td>
</tr>
- [% IF openurl.enabled == 'true';
+ [%- IF openurl.enabled == 'true';
FOR issn IN args.issns;
sfx = ResolverResolver.resolve_issn(issn, openurl.baseurl);
FOR res IN sfx;
<td>[% attrs.isbns.0 | html %]</td>
</tr>
[% END %]
- [% IF openurl.enabled == 'true';
+ [%- IF openurl.enabled == 'true';
FOR issn IN args.issns;
sfx = ResolverResolver.resolve_issn(issn, openurl.baseurl);
FOR res IN sfx;