Table of Contents
The KPAC is already included and ready to be used with new Evergreen installs. So you only need to change the apache config if you need to change template locations or if you want to use a different kpac.xml config file. The defaults for the KPAC are set in /etc/apache2/eg_vhosts.conf.
<Location /eg/kpac> PerlSetVar OILSWebContextLoader "OpenILS::WWW::EGKPacLoader" PerlSetVar KPacConfigFile "/openils/conf/kpac.xml.example" </Location>
<layout owner="1" page="1"/>
<page id="1" columns="5" name="Home" img="/images/home.jpg">
Each cell defines
<cell type="topic">12</cell>
<cell name="Piano" img="category.png" type="search">su:piano</cell>
<cell name="Clarinet" img="category.png" type="link">http://en.wikipedia.org/wiki/Clarinet</cell>
The following example enables you to configure the alternate skin (Monster Skin, kpac2) for the Kids Catalog.
You should be familiar with how the Evergreen TPAC handles template folders before you make these changes.
If you already have a custom template directory setup you can copy the Open-ILS/examples/web/templates/kpac files to that directory instead, and then skip any Apache config changes.
% cp -r Open-ILS/examples/web/css/skin/kpac2 /openils/var/web/css/skin/ % cp -r Open-ILS/examples/web/images/kpac/* /openils/var/web/images/kpac/ #does not clobber % mkdir /openils/var/templates_kpac2 % cp -r Open-ILS/examples/web/templates/kpac /openils/var/templates_kpac2/ % cp -r /openils/var/web/css/skin/default/kpac/fonts /openils/var/web/css/skin/kpac2/kpac
Then set up 443/80 vhosts for serving the alternate skin in eg.conf, something along the lines of:
<VirtualHost *:80> ServerName xyz.dev198.esilibrary.com:80 DocumentRoot /openils/var/web/ DirectoryIndex index.xml index.html index.xhtml Include eg_vhost.conf <Location /eg/kpac> #Point to a different kpac.xml config file if needed #PerlSetVar KPacConfigFile "/openils/conf/kpac.xml.example" PerlAddVar OILSWebTemplatePath "/openils/var/templates_kpac2" </Location> </VirtualHost>