From a69cadc482329dae8f7de933ae7b618205c768f2 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Fri, 27 Apr 2012 09:16:58 -0400 Subject: [PATCH] ctx slide just after syntax Signed-off-by: Bill Erickson --- eg2012_tpac.txt | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/eg2012_tpac.txt b/eg2012_tpac.txt index cba39de1f..8b42dcc6d 100644 --- a/eg2012_tpac.txt +++ b/eg2012_tpac.txt @@ -248,6 +248,27 @@ striking from a hidden base... [% END %] ------------------------------------------------------------------------------ +Context Data: OpenILS::WWW::EGCatLoader +--------------------------------------- + + * Most of the data is pre-fetched by the page handlers within the EGCatLoader + class and inserted into a global hash called "ctx". + * 3 generic classes of data retrieval functions are passed into the template + environment. For each, replace HINT with the class hint of the desired object. + ** ctx.get_HINT + *** inherited_vis = ctx.get_cgf("opac.org_unit.non_inheritied_visibility").enabled == "f"; + ** ctx.search_HINT + *** item_langs = ctx.search_ccvm("ctype", "item_lang"); + ** ctx.HINT_list + *** copy_status_list = ctx.ccs_list; + * ctx.aou_tree provides the canonical org unit tree + * ctx.aouct_tree provides the OPAC custom org unit tree (when present) + * ctx.get_org_setting(org_id, setting_name) + ** Returns the org unit setting value + * ctx.parse_datetime(ISO_date) + ** Returns a date compatible with the Template Toolkit DATE plugin. + + Skinning and Localization with Apache Virtual Hosts --------------------------------------------------- @@ -322,27 +343,6 @@ Common customizations - styles * _To-do_: Enhance the templated CSS to separate foreground from background colors - -Context Data: OpenILS::WWW::EGCatLoader ---------------------------------------- - - * Most of the data is pre-fetched by the page handlers within the EGCatLoader - class and inserted into a global hash called "ctx". - * 3 generic classes of data retrieval functions are passed into the template - environment. For each, replace HINT with the class hint of the desired object. - ** ctx.get_HINT - *** inherited_vis = ctx.get_cgf("opac.org_unit.non_inheritied_visibility").enabled == "f"; - ** ctx.search_HINT - *** item_langs = ctx.search_ccvm("ctype", "item_lang"); - ** ctx.HINT_list - *** copy_status_list = ctx.ccs_list; - * ctx.aou_tree provides the canonical org unit tree - * ctx.aouct_tree provides the OPAC custom org unit tree (when present) - * ctx.get_org_setting(org_id, setting_name) - ** Returns the org unit setting value - * ctx.parse_datetime(ISO_date) - ** Returns a date compatible with the Template Toolkit DATE plugin. - Debugging TPAC -------------- -- 2.11.0