[open-ils-commits] r9989 - in branches/rel_1_2_2/Open-ILS: examples/apache web/opac/images

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Jul 8 13:08:28 EDT 2008


Author: dbs
Date: 2008-07-08 13:08:26 -0400 (Tue, 08 Jul 2008)
New Revision: 9989

Added:
   branches/rel_1_2_2/Open-ILS/web/opac/images/blank.png
Modified:
   branches/rel_1_2_2/Open-ILS/examples/apache/eg_vhost.conf
Log:
Backport r9739 from trunk:
  * Add some protection against broken cover art


Modified: branches/rel_1_2_2/Open-ILS/examples/apache/eg_vhost.conf
===================================================================
--- branches/rel_1_2_2/Open-ILS/examples/apache/eg_vhost.conf	2008-07-08 16:32:52 UTC (rev 9988)
+++ branches/rel_1_2_2/Open-ILS/examples/apache/eg_vhost.conf	2008-07-08 17:08:26 UTC (rev 9989)
@@ -16,20 +16,6 @@
 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,8 +26,14 @@
     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
 # ----------------------------------------------------------------------------------
 <LocationMatch /opac/>
@@ -216,24 +208,3 @@
     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>
-
-

Copied: branches/rel_1_2_2/Open-ILS/web/opac/images/blank.png (from rev 9739, trunk/Open-ILS/web/opac/images/blank.png)
===================================================================
(Binary files differ)


Property changes on: branches/rel_1_2_2/Open-ILS/web/opac/images/blank.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream



More information about the open-ils-commits mailing list