From 333cb93da8f6b2f8a05fd296a8af1e2f11f90b7a Mon Sep 17 00:00:00 2001 From: erickson Date: Wed, 29 Aug 2007 21:17:21 +0000 Subject: [PATCH] rolling back changeset 7744. added content cannot use an alternate servers since it is xmlhttpreqeust based git-svn-id: svn://svn.open-ils.org/ILS/trunk@7747 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/examples/apache/eg_vhost.conf | 10 ++++------ Open-ILS/web/opac/common/js/added_content.js | 8 +++----- Open-ILS/web/opac/skin/default/xml/common/js_common.xml | 6 +++--- 3 files changed, 10 insertions(+), 14 deletions(-) diff --git a/Open-ILS/examples/apache/eg_vhost.conf b/Open-ILS/examples/apache/eg_vhost.conf index 3cc5372197..e90a311d6d 100644 --- a/Open-ILS/examples/apache/eg_vhost.conf +++ b/Open-ILS/examples/apache/eg_vhost.conf @@ -73,13 +73,11 @@ OSRFGatewayConfig /openils/conf/opensrf_core.xml SetEnvIf Request_URI "/fr-CA/" locale=fr-CA SetEnvIf Request_URI ".*" OILS_OPAC_BASE=/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 + # 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/ #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/ diff --git a/Open-ILS/web/opac/common/js/added_content.js b/Open-ILS/web/opac/common/js/added_content.js index b575168e0a..f7be084239 100644 --- a/Open-ILS/web/opac/common/js/added_content.js +++ b/Open-ILS/web/opac/common/js/added_content.js @@ -6,16 +6,14 @@ function buildISBNSrc(isbn, size) { size = (size) ? size : 'small'; - if(OILS_OPAC_AC_HOST) - return location.protocol + '//' + OILS_OPAC_AC_HOST + 'jacket/' + size + '/' + isbn; - return '../../../../extras/ac/jacket/'+size+'/'+isbn; + if(OILS_OPAC_IMAGES_HOST) + return location.protocol + '//' + OILS_OPAC_IMAGES_HOST + size + '/' + isbn; + return '../../../../extras/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; } diff --git a/Open-ILS/web/opac/skin/default/xml/common/js_common.xml b/Open-ILS/web/opac/skin/default/xml/common/js_common.xml index 7e9953985e..8385e453ae 100644 --- a/Open-ILS/web/opac/skin/default/xml/common/js_common.xml +++ b/Open-ILS/web/opac/skin/default/xml/common/js_common.xml @@ -28,9 +28,9 @@ - var OILS_OPAC_AC_HOST = null; - - OILS_OPAC_AC_HOST = 'extras/ac/'; + var OILS_OPAC_IMAGES_HOST = null; + + OILS_OPAC_IMAGES_HOST = 'extras/jacket/'; -- 2.11.0