From: miker Date: Tue, 24 Jul 2007 12:36:57 +0000 (+0000) Subject: Patch from Dan Scott to make the slimpac I18N friendly(-ish): X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=53328599b065b605843542fd60b5f88aa450151b;p=Evergreen.git Patch from Dan Scott to make the slimpac I18N friendly(-ish): The attached patch enables the slimpac (the accessible, basic HTML version of the OPAC), to support various translations of the search forms by reusing the existing opac.dtd. There are a few extra strings that we'll have to translate for complete fr-CA support, but it's mostly there. Note that the search _results_ are not yet i18n-ized; there's a fair bit of work remaining there (thanks unAPI!). Also note that the method used here changes the slimpac path from /opac/extras/slimpac/ to /opac/ll-LL/extras/slimpac/ - although I do, of course, include a redirect from the old /opac/extras/slimpac/ to /opac/en-US/extras/slimpac/. Finally, also note that the locale passing method may be subject to change, or at least become more flexible, when OpenSRF sessions learn about locales. git-svn-id: svn://svn.open-ils.org/ILS/trunk@7575 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/examples/apache/eg.conf b/Open-ILS/examples/apache/eg.conf index 79afa6b332..6547c53de4 100644 --- a/Open-ILS/examples/apache/eg.conf +++ b/Open-ILS/examples/apache/eg.conf @@ -45,6 +45,8 @@ PerlChildInitHandler OpenILS::WWW::AddedContent::child_init; # Remove the language portion from the URL # ---------------------------------------------------------------------------------- AliasMatch ^/opac/.*/skin/(.*)/(.*)/(.*) /openils/var/web/opac/skin/$1/$2/$3 +AliasMatch ^/opac/.*/extras/slimpac/(.*) /openils/var/web/opac/extras/slimpac/$1 + # ---------------------------------------------------------------------------------- diff --git a/Open-ILS/examples/apache/eg_vhost.conf b/Open-ILS/examples/apache/eg_vhost.conf index f29c90abb0..cd36f50ea6 100644 --- a/Open-ILS/examples/apache/eg_vhost.conf +++ b/Open-ILS/examples/apache/eg_vhost.conf @@ -9,6 +9,13 @@ # ---------------------------------------------------------------------------------- RedirectMatch 301 ^/$ /opac/en-US/skin/default/xml/index.xml +# ---------------------------------------------------------------------------------- +# Assign a default locale to the accessible OPAC +# ---------------------------------------------------------------------------------- +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 @@ -86,8 +93,8 @@ RewriteRule /opac/extras/jacket/large/(.*) \ AddType application/xhtml+xml .xml - - AddOutputFilter INCLUDES .html + + AddOutputFilter INCLUDES;XMLENT .html # ---------------------------------------------------------------------------------- diff --git a/Open-ILS/web/opac/extras/slimpac/advanced.html b/Open-ILS/web/opac/extras/slimpac/advanced.html index c3f54e0537..2a4b55ba31 100644 --- a/Open-ILS/web/opac/extras/slimpac/advanced.html +++ b/Open-ILS/web/opac/extras/slimpac/advanced.html @@ -1,6 +1,14 @@ + + + +]> + - Advanced Search + &opac.navigate.advanced;