From: Bill Erickson Date: Mon, 6 May 2013 13:59:22 +0000 (-0400) Subject: LP1171875 Support locale CGI param for fm_IDL.xml X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=8229e8f97bfc5f7ed4eb1ea486d2625a5d51e3fd;p=evergreen%2Fequinox.git LP1171875 Support locale CGI param for fm_IDL.xml Adds support for passing the locale string directly to /reports/fm_IDL.xml via locale= CGI parameter. Signed-off-by: Bill Erickson Signed-off-by: Pasi Kallinen Signed-off-by: Mike Rylander --- diff --git a/Open-ILS/examples/apache/eg_vhost.conf.in b/Open-ILS/examples/apache/eg_vhost.conf.in index 60605b3c93..bf58315a12 100644 --- a/Open-ILS/examples/apache/eg_vhost.conf.in +++ b/Open-ILS/examples/apache/eg_vhost.conf.in @@ -527,6 +527,11 @@ RewriteRule .? - [E=locale:%{HTTP:Accept-Language}] AddOutputFilter INCLUDES;XMLENT .xhtml +# capture locale CGI param for /reports/fm_IDL.xml +RewriteCond %{REQUEST_URI} ^/reports/fm_IDL.xml +RewriteCond %{QUERY_STRING} locale=([^&;]*) +RewriteRule . - [E=locale:%1] + IDLChunkStripPI "yes" IDLChunkEscapeScript "no" diff --git a/Open-ILS/examples/apache_24/eg_vhost.conf.in b/Open-ILS/examples/apache_24/eg_vhost.conf.in index b606c0201f..f8537d4cf4 100644 --- a/Open-ILS/examples/apache_24/eg_vhost.conf.in +++ b/Open-ILS/examples/apache_24/eg_vhost.conf.in @@ -532,6 +532,11 @@ RewriteRule .? - [E=locale:%{HTTP:Accept-Language}] AddOutputFilter INCLUDES;XMLENT .xhtml +# capture locale CGI param for /reports/fm_IDL.xml +RewriteCond %{REQUEST_URI} ^/reports/fm_IDL.xml +RewriteCond %{QUERY_STRING} locale=([^&;]*) +RewriteRule . - [E=locale:%1] + IDLChunkStripPI "yes" IDLChunkEscapeScript "no"