PerlAddVar OILSWebTemplatePath "/openils/var/templates"
#PerlAddVar OILSWebTemplatePath "/openils/var/templates_localskin"
+ #-------------------------------------------------
+ # Added Content Configuration
+ #-------------------------------------------------
+ # Content Cafe
+ #SetEnv OILS_CONTENT_CAFE_USER MYUSER
+ #SetEnv OILS_CONTENT_CAFE_PASS MYPASS
+
+ # LibraryThing
+ #SetEnv OILS_LIBRARYTHING_URL http://ltfl.librarything.com/forlibraries/widget.js?id=MYID
+ #SetEnv OILS_LIBRARYTHING_HTTPS_URL https://ltfl.librarything.com/forlibraries/widget.js?id=MYID
+
+ # ChiliFresh
+ #SetEnv OILS_CHILIFRESH_ACCOUNT
+ #SetEnv OILS_CHILIFRESH_URL http://chilifresh.com/on-site/js/evergreen.js
+ #SetEnv OILS_CHILIFRESH_HTTPS_URL https://secure.chilifresh.com/on-site/js/evergreen.js
+ #-------------------------------------------------
+
<IfModule mod_deflate.c>
SetOutputFilter DEFLATE
BrowserMatch ^Mozilla/4 gzip-only-text/html
ExpiresActive On
ExpiresByType text/html "access plus 5 seconds"
PerlSetVar KPacConfigFile "/openils/conf/kpac.xml.example"
-
- # For use with embedded Content Cafe content
- #SetEnv OILS_CONTENT_CAFE_USER 123
- #SetEnv OILS_CONTENT_CAFE_PASS 456
- # Consider copying/moving other added content configs
- # (e.g. NOVELIST) into here or to an outer container shared by
- # both /opac and /eg/opac since some are used in both places
</Location>
<Location /eg/kpac>
PerlSetVar OILSWebContextLoader "OpenILS::WWW::EGKPacLoader"
- # Expire the HTML quickly since we're loading dynamic data for each page
ExpiresActive On
ExpiresByType text/html "access plus 5 seconds"
-
- # For use with embedded Content Cafe content
- #SetEnv OILS_CONTENT_CAFE_USER 123
- #SetEnv OILS_CONTENT_CAFE_PASS 456
- # Consider copying/moving other added content configs
- # (e.g. NOVELIST) into here or to an outer container shared by
- # both /opac and /eg/opac since some are used in both places
</Location>
-
-
# Note: the template processor will decline handling anything it does not
# have an explicit configuration for, which means it will fall back to
# Apache to serve the file. However, in the interest of speed, go ahead
--- /dev/null
+[%
+ # added content only shows on record detail page
+ IF ctx.page == 'record';
+
+ # chilifresh
+ IF ENV.OILS_CHILIFRESH_URL AND ENV.OILS_CHILIFRESH_ACCOUNT;
+ 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_version" name="chilifresh_version" value="onsite_v1" />
+ <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;
+
+ # LibraryThing
+ IF ENV.OILS_LIBRARYTHING_URL;
+ lt_url = ENV.OILS_LIBRARYTHING_URL;
+ IF CGI.https AND ENV.OILS_LIBRARYTHING_HTTPS_URL;
+ lt_url = ENV.OILS_LIBRARYTHING_HTTPS_URL;
+ END %]
+
+ <script src="[% lt_url %]" type="text/javascript"></script>
+ [% END %]
+[%- END %]
+++ /dev/null
-[%- IF ENV.OILS_CHILIFRESH_URL AND ENV.OILS_CHILIFRESH_ACCOUNT AND 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_version" name="chilifresh_version" value="onsite_v1" />
- <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 %]