From 867393bbe5b8f0d3dacc6a9cd31fb756028fbd71 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Tue, 17 Apr 2012 11:39:21 -0400 Subject: [PATCH] kpac : initial kpac tech reference Signed-off-by: Bill Erickson --- docs/TechRef/KidsOPAC.txt | 76 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 docs/TechRef/KidsOPAC.txt diff --git a/docs/TechRef/KidsOPAC.txt b/docs/TechRef/KidsOPAC.txt new file mode 100644 index 0000000000..aff4b6e2fe --- /dev/null +++ b/docs/TechRef/KidsOPAC.txt @@ -0,0 +1,76 @@ +Kid's OPAC +========== + +Configuration +------------- + +Apache +~~~~~~ + +[source, bash] +------------------------------------------------------------------------------ + + PerlSetVar OILSWebContextLoader "OpenILS::WWW::EGKPacLoader" + PerlSetVar KPacConfigFile "/openils/conf/kpac.xml.example" + +------------------------------------------------------------------------------ + +XML Configuration File +~~~~~~~~~~~~~~~~~~~~~~ + + * The XML configuration file defines the layout of the kid's OPAC. + * It is read with each restart/reload of the Apache web server. + * The file lives by default at /openils/conf/kpac.xml.example + * There are two top-level elements: and . + * The layout defines the owning org unit and the start page, both by ID. + * At runtime, the layout is determined by the context org unit. If no + configuration is defined for the context org unit, the layout for the + closest ancestor is used. + +[source, xml] +------------------------------------------------------------------------------ + +------------------------------------------------------------------------------ + + * The pages section is a container for elements. + * Each page defines an ID, the number of columns to display for the page, + the page name, and an icon. + +[source, xml] +------------------------------------------------------------------------------ + +------------------------------------------------------------------------------ + + * Each page is a container of cells + * Each cell defines + ** type (topic, search, link) + ** name + ** icon + ** content + * The content for type="topic" cells is the ID of the page this topic + jumps to. The name and img for the referenced page is used as the + display content. + +[source, xml] +------------------------------------------------------------------------------ +12 +------------------------------------------------------------------------------ + + * The content for type="search" cells is the search query. The name and + img are used for the display content. + +[source, xml] +------------------------------------------------------------------------------ +su:piano +------------------------------------------------------------------------------ + + * The content for type="link" cells is the URL. The name and img are used + for the display content. + +[source, xml] +------------------------------------------------------------------------------ +http://en.wikipedia.org/wiki/Clarinet +------------------------------------------------------------------------------ + + -- 2.11.0