Add some protection against broken cover art
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 30 May 2008 15:55:22 +0000 (15:55 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 30 May 2008 15:55:22 +0000 (15:55 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@9739 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 c693f86..63128e8 100644 (file)
@@ -15,28 +15,11 @@ RedirectMatch 301 ^/$ /opac/en-US/skin/default/xml/index.xml
 RedirectMatch 301 ^/opac/extras/slimpac/start.html$ /opac/en-US/extras/slimpac/start.html
 RedirectMatch 301 ^/opac/extras/slimpac/advanced.html$ /opac/en-US/extras/slimpac/advanced.html
 
-
-
 # ----------------------------------------------------------------------------------
 # Configure the gateway
 # ----------------------------------------------------------------------------------
 OSRFGatewayConfig /openils/conf/opensrf_core.xml
 
-
-# ----------------------------------------------------------------------------------
-# Set up the book jackets URL
-# XXX This pulls images from Amazon, don't use this in a production environment
-# 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
 # ----------------------------------------------------------------------------------
@@ -48,6 +31,12 @@ 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
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