Maintenance message: avoid Unicode corruption, support KPAC user/dbs/maintenance_message_utf8_cleanliness_no_apache_reload_required
authorDan Scott <dscott@laurentian.ca>
Thu, 11 Jul 2013 14:41:32 +0000 (10:41 -0400)
committerDan Scott <dscott@laurentian.ca>
Thu, 11 Jul 2013 14:41:32 +0000 (10:41 -0400)
commit0737dedc2ac9a4013b55a1e4a589fe5b72cc4a11
tree6fef64cbd81879a74df4babff762a4add17cc472
parent70d25de2bdd7837f3740769495655b9922e6397c
Maintenance message: avoid Unicode corruption, support KPAC

By shifting from an Apache config environment variable to a config.tt2
variable, we gain the advantage of more robust Unicode support as well
as the ability to turn maintenance messages on or off without requiring
a reload of Apache.

However, we do lose the convenience of per-vhost maintenance messages;
sites requiring this functionality can use the ctx.hostname variable to
provide conditional per-host messages.

This also adds support for displaying the maintenance message in the
KPAC.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/examples/apache/eg.conf.in
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm
Open-ILS/src/templates/kpac/parts/base.tt2
Open-ILS/src/templates/opac/parts/config.tt2
Open-ILS/src/templates/opac/parts/topnav.tt2
Open-ILS/web/css/skin/default/kpac/style.css