From b4a992f469294eef12aaa3f50e74ec2d7c3558b9 Mon Sep 17 00:00:00 2001 From: dbs Date: Fri, 30 May 2008 15:55:22 +0000 Subject: [PATCH] Add some protection against broken cover art git-svn-id: svn://svn.open-ils.org/ILS/trunk@9739 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/examples/apache/eg_vhost.conf | 23 ++++++----------------- Open-ILS/web/opac/images/blank.png | Bin 0 -> 118 bytes 2 files changed, 6 insertions(+), 17 deletions(-) create mode 100644 Open-ILS/web/opac/images/blank.png 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 0000000000000000000000000000000000000000..ce4a7c1fbede12ba9fc8f57e17b83862d887c106 GIT binary patch literal 118 zcmeAS@N?(olHy`uVBq!ia0vp^j3CUx1SBVv2j2s6ii6yp7}lMWc?sl5l(Eal|aXtCR|Nr(3tpAw)-8mEa94OA< M>FVdQ&MBb@0Ht^%5&!@I literal 0 HcmV?d00001 -- 2.43.2