Backport r9739 from trunk:
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 8 Jul 2008 17:08:26 +0000 (17:08 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 8 Jul 2008 17:08:26 +0000 (17:08 +0000)
  * Add some protection against broken cover art

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_2_2@9989 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/examples/apache/eg_vhost.conf
Open-ILS/web/opac/images/blank.png [new file with mode: 0644]

index 7c42ace..a9354f3 100644 (file)
@@ -16,20 +16,6 @@ RedirectMatch 301 ^/$ /opac/en-US/skin/default/xml/index.xml
 OSRFGatewayConfig /openils/conf/opensrf_core.xml
 
 # ----------------------------------------------------------------------------------
-# Set up the book jackets URL
-# This is an example of how you can have bookjacket images via Apache redirect,
-# if there is no full-fledged added content plugin for the site you want to 
-# fetch images from.
-# ----------------------------------------------------------------------------------
-#RewriteEngine on
-#ProxyTimeout 2
-#RewriteRule /opac/extras/ac/jacket/small/(.*) \
-#    http://images.amazon.com/images/P/$1.01._SCMZZZZZZZ_.jpg [P,L]
-#RewriteRule /opac/extras/ac/jacket/large/(.*) \
-#    http://images.amazon.com/images/P/$1.01._SCLZZZZZZZ_.jpg [P,L]
-
-
-# ----------------------------------------------------------------------------------
 # Added content plugin
 # ----------------------------------------------------------------------------------
 <Location /opac/extras/ac/>
@@ -40,7 +26,13 @@ OSRFGatewayConfig /openils/conf/opensrf_core.xml
     allow from all
 </Location>
 
-       
+# ----------------------------------------------------------------------------------
+# Replace broken cover images with a transparent GIF by default
+# ----------------------------------------------------------------------------------
+RewriteEngine ON
+RewriteRule ^/opac/extras/ac/jacket/(small|medium|large)/$ \
+    /opac/images/blank.png [P,L]
+
 # ----------------------------------------------------------------------------------
 # Configure the OPAC
 # ----------------------------------------------------------------------------------
@@ -216,24 +208,3 @@ OSRFGatewayConfig /openils/conf/opensrf_core.xml
     PerlSendHeader On
     allow from all
 </Location>
-
-
-# ----------------------------------------------------------------------------------
-# Django admin interface (experimental)
-#  - requires mod_python and django
-#  - requires a symlink from WEBROOT/media to 
-#  /usr/lib/python2.4/site-packages/django/contrib/admin/media/ (or similar)
-# ----------------------------------------------------------------------------------
-#<Location /ils_setup/>
-#   Order deny,allow
-#   Deny from all
-#   Allow from 10.0.0.0/8
-#   SetHandler mod_python
-#   PythonHandler django.core.handlers.modpython
-#   SetEnv DJANGO_SETTINGS_MODULE ils_admin.settings
-#   PythonDebug On
-#   PythonPath "['/openils/var/admin/', '/usr/lib/python2.4/site-packages/'] +sys.path"
-#   PythonAutoReload On
-#</Location>
-
-
diff --git a/Open-ILS/web/opac/images/blank.png b/Open-ILS/web/opac/images/blank.png
new file mode 100644 (file)
index 0000000..ce4a7c1
Binary files /dev/null and b/Open-ILS/web/opac/images/blank.png differ