SetEnvIf Request_URI "/fr-CA/" locale=fr-CA
SetEnvIf Request_URI ".*" OILS_OPAC_BASE=/opac/
- # This gives you the option to configure a different host to serve OPAC images from
- # Specify the hostname (withouth protocol) and path to the images. Protocol will
- # be determined at runtime
- #SetEnvIf Request_URI ".*" OILS_OPAC_IMAGES_HOST=static.example.org/opac/
+ # The following environment variables are optional. They specify
+ # alternate servers for various static data
+ # Added Content server
+ #SetEnvIf Request_URI ".*" OILS_OPAC_AC_HOST=static.example.org/opac/
+ # Static CSS files server
#SetEnvIf Request_URI ".*" OILS_OPAC_CSS_HOST=static.example.org/opac/
+ # Static JavaScript files server
#SetEnvIf Request_URI ".*" OILS_OPAC_JS_HOST=static.example.org/opac/
</LocationMatch>
function buildISBNSrc(isbn, size) {
size = (size) ? size : 'small';
- if(OILS_OPAC_IMAGES_HOST)
- return location.protocol + '//' + OILS_OPAC_IMAGES_HOST + size + '/' + isbn;
- return '../../../../extras/jacket/'+size+'/'+isbn;
+ if(OILS_OPAC_AC_HOST)
+ return location.protocol + '//' + OILS_OPAC_AC_HOST + 'jacket/' + size + '/' + isbn;
+ return '../../../../extras/ac/jacket/'+size+'/'+isbn;
}
function acMakeURL(type, key) {
+ if(OILS_OPAC_AC_HOST)
+ return location.protocol + '//' + OILS_OPAC_AC_HOST + type + '/html/' + key;
return '../../../../extras/ac/' + type + '/html/' + key;
}
<!-- set up some global JS config variables, read from the Apache config -->
- var OILS_OPAC_IMAGES_HOST = null;
- <!--#if expr="$OILS_OPAC_IMAGES_HOST"-->
- OILS_OPAC_IMAGES_HOST = '<!--#echo var="OILS_OPAC_IMAGES_HOST"-->extras/jacket/';
+ var OILS_OPAC_AC_HOST = null;
+ <!--#if expr="$OILS_OPAC_AC_HOST"-->
+ OILS_OPAC_AC_HOST = '<!--#echo var="OILS_OPAC_AC_HOST"-->extras/ac/';
<!--#endif -->
</script>