]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/examples/oils_web.xml.example
Merge branch 'master' of git.evergreen-ils.org:Evergreen into template-toolkit-opac
[working/Evergreen.git] / Open-ILS / examples / oils_web.xml.example
1 <oils_web>
2
3     <!-- This should match the Apache Directory/Location[Match] configuration path -->
4     <base_path>/eg</base_path>
5
6     <web_dir>/openils/var/web</web_dir>
7
8     <!-- when locating files that don't have explicit handlers defined, assume the
9         files have the following filename extension -->
10     <default_template_extension>tt2</default_template_extension>
11
12     <!-- Media Prefix.  Allows static files to be served from an alternate domain/server
13
14             Examples:
15
16                 # local URL path
17                 <media_prefix>/media</media_prefix> 
18
19                 # server w/ path.  
20                 <media_prefix>static.example.com/media</media_prefix> 
21
22                 ===
23                 In the first 2 examples, the request protocol (http vs https) will
24                 match the protocol of the current page
25                 ===
26
27                 # full-qualified with static protocol
28                 <media_prefix>http://static.example.com/media</media_prefix> 
29      -->
30     <media_prefix/>
31
32     <!-- If set to true, all output will be parsed as XML before delivery to the client.  
33         If XML parsing fails, the error message, with HTML included, will be output as text/plain.
34         XML parsing adds overhead, so this should only be used for debugging -->
35     <force_valid_xml>false</force_valid_xml>
36
37     <!-- Turn on template-toolkit debugging, which reports on undefined blocks, macros, etc. -->
38     <debug_template>false</debug_template>
39
40     <!-- 
41         Supported locales.  Locales with no message catalog will use the native template strings.
42         All locales will fall back to native strings when a given string is not in the catalog
43     -->
44     <locales>
45         <en_US/>
46         <en_CA>/openils/var/data/locale/messages.en_CA.po</en_CA>
47         <fr_CA>/openils/var/data/locale/messages.fr_CA.po</fr_CA>
48     </locales>
49
50     <!-- Where templates can be found.  Paths will be checked in the order entered here.
51          It's possible to override individual or sets of templates by putting them into
52          a path in front of the default template path -->
53     <template_paths>
54         <!-- XXX we should really move these out of the default web root -->
55         <path>/openils/var/web/templates</path>
56     </template_paths>
57
58     <handlers>
59         <!-- add custom handlers here.  These are for templates that live in non-obvious locations.  
60             In other words, if the path + default extension does not map directly to a template file -->
61         <handler path='acq/fund/list' template='acq/financial/list_funds.tt2'/>
62         <handler path='acq/fund/view' template='acq/financial/view_fund.tt2'/>
63         <handler path='acq/funding_source/list' template='acq/financial/list_funding_sources.tt2'/>
64         <handler path='acq/funding_source/view' template='acq/financial/view_funding_source.tt2'/>
65         <handler path='acq/currency_type/list' template='acq/financial/list_currency_types.tt2'/>
66         <handler path='acq/currency_type/view' template='acq/financial/view_currency_type.tt2'/>
67         <handler path='acq/provider/list' template='acq/financial/list_providers.tt2'/>
68         <handler path='acq/provider/view' template='acq/financial/view_provider.tt2'/>
69         <handler path='vandelay/vandelay' template='vandelay/vandelay.tt2' as_xml='true'/>
70     </handlers>
71 </oils_web>