[open-ils-commits] r9739 - in trunk: . Open-ILS/examples/apache Open-ILS/web/opac/images

svn at svn.open-ils.org svn at svn.open-ils.org
Fri May 30 11:55:24 EDT 2008


Author: dbs
Date: 2008-05-30 11:55:22 -0400 (Fri, 30 May 2008)
New Revision: 9739

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


Property changes on: trunk
___________________________________________________________________
Name: bzr:revision-info
   - timestamp: 2008-05-26 14:17:45.812000036 -0400
committer: Dan Scott <dscott at laurentian.ca>
properties: 
	branch-nick: mainline

   + timestamp: 2008-05-30 11:55:21.507999897 -0400
committer: Dan Scott <dscott at laurentian.ca>
properties: 
	branch-nick: mainline

Name: bzr:file-ids
   - 
   + Open-ILS/web/opac/images/blank.png	blank.png-20080530151745-rchwq3pbn6ru35ib-1

Name: bzr:revision-id:v3-trunk0
   - 8490 dscott at laurentian.ca-20080526181745-56agjebce7qcrvs4

   + 8490 dscott at laurentian.ca-20080526181745-56agjebce7qcrvs4
8501 dscott at laurentian.ca-20080530155521-vmwijtzzkx057jbb

Name: bzr:ancestry:v3-trunk0
   + dscott at laurentian.ca-20080530155126-5u2nd7xr0bt9029m


Modified: trunk/Open-ILS/examples/apache/eg_vhost.conf
===================================================================
--- trunk/Open-ILS/examples/apache/eg_vhost.conf	2008-05-30 13:13:51 UTC (rev 9738)
+++ trunk/Open-ILS/examples/apache/eg_vhost.conf	2008-05-30 15:55:22 UTC (rev 9739)
@@ -15,29 +15,12 @@
 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
 # ----------------------------------------------------------------------------------
 <Location /opac/extras/ac/>
@@ -48,6 +31,12 @@
     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

Added: trunk/Open-ILS/web/opac/images/blank.png
===================================================================
--- trunk/Open-ILS/web/opac/images/blank.png	                        (rev 0)
+++ trunk/Open-ILS/web/opac/images/blank.png	2008-05-30 15:55:22 UTC (rev 9739)
@@ -0,0 +1,4 @@
+‰PNG
+
+   
+IHDR         wSÞ   sRGB ®Îé   tEXtComment Evergreen rocks!¾8ÙY   IDAT×cøÿÿ? þþÜÌYç    IEND®B`‚
\ No newline at end of file



More information about the open-ils-commits mailing list