lots of small changes to support using mod_xmlent with vandelay. added new apache...
[Evergreen.git] / Open-ILS / examples / apache / eg_vhost.conf
index 007e6fb..ac9a99d 100644 (file)
@@ -304,6 +304,19 @@ RewriteRule ^/conify/.*/global/(.*)$ /conify/global/$1
 # ----------------------------------------------------------------------------------
 # Vandelay importers / exporters (your Web interface to bibliographic travel)
 # ----------------------------------------------------------------------------------
+# capture the locale from the URL
+AliasMatch ^/vandelay/.*/vandelay.xml(.*) /openils/var/web/vandelay/vandelay.xml$1
+<Location /vandelay>
+    RewriteEngine on
+    SetEnvIf Request_URI "/en-US/" locale=en-US
+    SetEnvIf Request_URI "/fr-CA/" locale=fr-CA
+    XMLEntStripPI "yes"
+    XMLEntEscapeScript "no"
+    XMLEntStripComments "yes"
+    XMLEntContentType "text/html; charset=utf-8"
+    XMLEntStripDoctype "yes"
+    AddOutputFilter INCLUDES;XMLENT .xml
+</Location>
 <Location /vandelay-upload>
     SetHandler perl-script
     PerlHandler OpenILS::WWW::Vandelay::spool_marc
@@ -311,6 +324,8 @@ RewriteRule ^/conify/.*/global/(.*)$ /conify/global/$1
     allow from all
 </Location>
 
+
+
 # OpenURL 0.1 searching based on OpenSearch
 RewriteEngine on
 RewriteMap openurl prg:/openils/bin/openurl_map.pl