From a3f7a9058ed51097d12dd526167aba156826eb40 Mon Sep 17 00:00:00 2001 From: miker Date: Tue, 8 Dec 2009 20:35:06 +0000 Subject: [PATCH] Add global support for local added content files. If files exist under (by default) /openils/var/web/opac/extras/ac/{type}/{format}/{key} on the content server (the main server, unless a separate content server is configured), these will be served in preference to remote added content. The files here should contain the same type of data that would be expected from a remote added-content engine, such as images or html pages. * "type" is one of jacket, reviews, toc, excerpt or anotes * "format" is type dependent: - for jacket, one of small, medium or large - others, one of html, xml or json ... html is the default for non-image added content * "key" is the sanitized ISBN (any leading spaces are removed, then anything after the first space is removed) git-svn-id: svn://svn.open-ils.org/ILS/trunk@15105 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/OpenILS/WWW/AddedContent.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Open-ILS/src/perlmods/OpenILS/WWW/AddedContent.pm b/Open-ILS/src/perlmods/OpenILS/WWW/AddedContent.pm index 6cb5a5b84f..f4c816b2dc 100644 --- a/Open-ILS/src/perlmods/OpenILS/WWW/AddedContent.pm +++ b/Open-ILS/src/perlmods/OpenILS/WWW/AddedContent.pm @@ -77,6 +77,8 @@ sub child_init { sub handler { my $r = shift; + return Apache2::Const::DECLINED if (-e $r->filename); + my $cgi = CGI->new; my $path = $r->path_info; my $res; -- 2.11.0