From 4976e596e20482d277cb8e70c9057654114d0596 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Thu, 26 Apr 2012 12:58:14 -0400 Subject: [PATCH] almost there Signed-off-by: Bill Erickson --- eg2012_tpac.txt | 65 +++++++++++++++++++++++++++++++-------------------------- 1 file changed, 35 insertions(+), 30 deletions(-) diff --git a/eg2012_tpac.txt b/eg2012_tpac.txt index 6e792aac9..291154d1c 100644 --- a/eg2012_tpac.txt +++ b/eg2012_tpac.txt @@ -73,6 +73,9 @@ image:images/JSPACvsTPACNetworkDiagram.png["JSPAC vs TPAC Network"] *100% Accurate Representation. +Instrumentation +--------------- +foo Template Toolkit (TT) Syntax ---------------------------- @@ -189,6 +192,38 @@ striking from a hidden base... [% END %] ------------------------------------------------------------------------------ +Skinning and Localization with Apache Virtual Hosts +--------------------------------------------------- + + * Template paths and translations are all specified within the + Apache configuration. + * Applying template overrides from additional directories and + using alternate translations (for a given language) can be + managed with Apache virtual hosts. + +[source, conf] +------------------------------------------------------------------------------ + + ServerName libraryABC.exmaple.org:80 + DocumentRoot /openils/var/web/ + DirectoryIndex index.xml index.html index.xhtml + + # - Load the default virtualhost configuration + Include eg_vhost.conf + + # - Selectively override OPAC settings + + PerlSetVar OILSWebContextLoader "OpenILS::WWW::EGCatLoader" + PerlAddVar OILSWebTemplatePath "/openils/var/templates" + PerlAddVar OILSWebTemplatePath "/openils/var/templates_SYSA" + PerlAddVar OILSWebTemplatePath "/openils/var/templates_LIBABC" + PerlAddVar OILSWebLocale "en" + PerlAddVar OILSWebLocale "/openils/var/data/locale/SYSA/kpac.en.po" + + +------------------------------------------------------------------------------ + + Overriding Templates -------------------- * Overriding individual templates is 2-step process @@ -227,36 +262,6 @@ Common customizations - styles . Change templates/opac/parts/base.tt2 to point to the templated CSS . Stop maintaining many slight variations of the same CSS -Skinning and Localization with Apache Virtual Hosts ---------------------------------------------------- - - * Template paths and translations are all specified within the - Apache configuration. - * Applying template overrides from additional directories and - using alternate translations (for a given language) can be - managed with Apache virtual hosts. - -[source, conf] ------------------------------------------------------------------------------- - - ServerName libraryABC.exmaple.org:80 - DocumentRoot /openils/var/web/ - DirectoryIndex index.xml index.html index.xhtml - - # - Load the default virtualhost configuration - Include eg_vhost.conf - - # - Selectively override OPAC settings - - PerlSetVar OILSWebContextLoader "OpenILS::WWW::EGCatLoader" - PerlAddVar OILSWebTemplatePath "/openils/var/templates" - PerlAddVar OILSWebTemplatePath "/openils/var/templates_SYSA" - PerlAddVar OILSWebTemplatePath "/openils/var/templates_LIBABC" - PerlAddVar OILSWebLocale "en" - PerlAddVar OILSWebLocale "/openils/var/data/locale/SYSA/kpac.en.po" - - ------------------------------------------------------------------------------- Context Data ------------ -- 2.11.0