bug hunting and a (small) new set of widget code
[Evergreen.git] / Open-ILS / src / reporter / report_base.example.xml
index 300fb83..41b8f2a 100644 (file)
 
        <setup>
                <files>
-                       <stage1>/tmp/reporter/</stage1>
-                       <stage2>/tmp/reporter/</stage2>
-                       <stage3>/tmp/reporter/</stage3>
+                       <output_base>/openils/var/web/reporter/</output_base>
+                       <!-- <chart_logo>/openils/var/web/opac/images/small_logo.gif</chart_logo> -->
                </files>
                <database>
-                       <host>10.0.0.2</host>
-                       <name>demo-dev</name>
+                       <driver>Pg</driver>
+                       <host>127.0.0.1</host>
+                       <port>5433</port>
+                       <name>develooper</name>
                        <user>postgres</user>
                        <password/>
                </database>
        </setup>
 
-       <tables>
+       <xi:include href="tables.example.xml">
+               This file sucks in table definitions
+       </xi:include>
+       <xi:include href="widgets.example.xml">
+               This file sucks in widget definitions
+       </xi:include>
 
-               <table id="silly.fact" partition="true">
-                       <tablename>stats.silly_fact</tablename>
-
-                       <partition>
-                               <field>said_when</field>
-                               <!-- Valid options:  month, year, woy (week of year), doy (day of year) -->
-                               <chunk>month</chunk>
-                               <start>2005-09-01</start>
-                               <end>2005-12-31</end>
-                       </partition>
-
-                       <fields>
-                               <field
-                                 name="silly_word_dim"
-                                 datatype="int"
-                                 indexed="true">
-                                       <label>Silly word dim</label>
-                                       <description>Silly word entry dimension link</description>
-                               </field>
-                               <field
-                                 name="silly_sayer_dim"
-                                 datatype="int"
-                                 indexed="true">
-                                       <label>Silly sayer dim</label>
-                                       <description>Silly sayer entry dimension link</description>
-                               </field>
-                               <field
-                                 name="said_when"
-                                 datatype="timestamptz"
-                                 core="true"
-                                 indexed="true"
-                                 default="now()">
-                                       <label>Silly word timestamp</label>
-                                       <description>Silly word entry timestamp</description>
-                               </field>
-                       </fields>
-                       <links>
-                               <link
-                                 field="silly_word_dim"
-                                 table="silly.word_dim"
-                                 key="id"
-                                 type="has_a"/>
-                               <link
-                                 field="silly_sayer_dim"
-                                 table="silly.sayer_dim"
-                                 key="id"
-                                 type="has_a"/>
-                       </links>
-               </table>
-
-               <table id="silly.word_dim">
-                       <name>Silly word list</name>
-                       <tablename>stats.words</tablename>
-                       <fields>
-                               <field
-                                 name="id"
-                                 primary="1"
-                                 create-type="serial"
-                                 datatype="int"/>
-                               <field
-                                 name="word"
-                                 datatype="text"
-                                 indexed="true"
-                                 index-type="BTREE"/>
-                       </fields>
-               </table>
-
-               <table id="silly.sayer_dim">
-                       <name>Silly word sayer list</name>
-                       <tablename>stats.silly_sayers</tablename>
-                       <fields>
-                               <field
-                                 name="id"
-                                 primary="1"
-                                 create-type="serial"
-                                 datatype="int"/>
-                               <field
-                                 name="sayer"
-                                 datatype="text"
-                                 indexed="true"
-                                 index-type="BTREE"/>
-                       </fields>
-               </table>
-
-       </tables>
 </reporter>