From 2595f72d1ee59132b9ca5cf6098e1d2a542d41cb Mon Sep 17 00:00:00 2001 From: dbs Date: Tue, 8 Jul 2008 17:08:26 +0000 Subject: [PATCH] Backport r9739 from trunk: * 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 | 43 ++++++--------------------------- Open-ILS/web/opac/images/blank.png | Bin 0 -> 118 bytes 2 files changed, 7 insertions(+), 36 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 7c42acedf8..a9354f3fe6 100644 --- a/Open-ILS/examples/apache/eg_vhost.conf +++ b/Open-ILS/examples/apache/eg_vhost.conf @@ -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 # ---------------------------------------------------------------------------------- @@ -40,7 +26,13 @@ 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 # ---------------------------------------------------------------------------------- @@ -216,24 +208,3 @@ OSRFGatewayConfig /openils/conf/opensrf_core.xml PerlSendHeader On allow from all - - -# ---------------------------------------------------------------------------------- -# 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) -# ---------------------------------------------------------------------------------- -# -# 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 -# - - 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.11.0