From: dbs Date: Fri, 30 May 2008 15:55:22 +0000 (+0000) Subject: Add some protection against broken cover art X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b4a992f469294eef12aaa3f50e74ec2d7c3558b9;p=Evergreen.git Add some protection against broken cover art git-svn-id: svn://svn.open-ils.org/ILS/trunk@9739 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/examples/apache/eg_vhost.conf b/Open-ILS/examples/apache/eg_vhost.conf index c693f862a0..63128e8da3 100644 --- a/Open-ILS/examples/apache/eg_vhost.conf +++ b/Open-ILS/examples/apache/eg_vhost.conf @@ -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 +# ---------------------------------------------------------------------------------- +# 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 index 0000000000..ce4a7c1fbe Binary files /dev/null and b/Open-ILS/web/opac/images/blank.png differ