7d721d4f80e0734b864a352bf87328609b5a5f0b
[Evergreen.git] / Open-ILS / examples / fm_IDL.xml
1 <IDL xmlns="http://opensrf.org/spec/IDL/base/v1" xmlns:oils_persist="http://open-ils.org/spec/opensrf/IDL/persistence/v1" xmlns:oils_obj="http://open-ils.org/spec/opensrf/IDL/objects/v1" xmlns:reporter="http://open-ils.org/spec/opensrf/IDL/reporter/v1">
2
3         <!-- Virtual classes -->
4         <class id="mups" controller="open-ils.cstore" oils_obj:fieldmapper="money::user_payment_summary" oils_persist:virtual="true">
5                 <fields>
6                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
7                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
8                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
9                         <field name="usr" oils_obj:array_position="3" oils_persist:virtual="true" />
10                         <field name="forgive_payment" oils_obj:array_position="4" oils_persist:virtual="true" />
11                         <field name="work_payment" oils_obj:array_position="5" oils_persist:virtual="true" />
12                         <field name="credit_payment" oils_obj:array_position="6" oils_persist:virtual="true" />
13                 </fields>
14                 <links>
15                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
16                 </links>
17         </class>
18
19         <class id="mwps" controller="open-ils.cstore" oils_obj:fieldmapper="money::workstation_payment_summary" oils_persist:virtual="true">
20                 <fields>
21                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
22                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
23                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
24                         <field name="workstation" oils_obj:array_position="3" oils_persist:virtual="true" />
25                         <field name="cash_payment" oils_obj:array_position="4" oils_persist:virtual="true" />
26                         <field name="check_payment" oils_obj:array_position="5" oils_persist:virtual="true" />
27                         <field name="credit_card_payment" oils_obj:array_position="6" oils_persist:virtual="true" />
28                 </fields>
29                 <links>
30                         <link field="workstation" reltype="has_a" key="id" map="" class="aws"/>
31                 </links>
32         </class>
33
34         <class id="brn" controller="open-ils.cstore" oils_obj:fieldmapper="biblio::record_node" oils_persist:virtual="true">
35                 <fields>
36                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
37                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
38                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
39                         <field name="id" oils_obj:array_position="4" oils_persist:virtual="true" />
40                         <field name="children" oils_obj:array_position="3" oils_persist:virtual="true" />
41                         <field name="owner_doc" oils_obj:array_position="9" oils_persist:virtual="true" />
42                         <field name="intra_doc_id" oils_obj:array_position="5" oils_persist:virtual="true" />
43                         <field name="parent_node" oils_obj:array_position="10" oils_persist:virtual="true" />
44                         <field name="node_type" oils_obj:array_position="8" oils_persist:virtual="true" />
45                         <field name="namespace_uri" oils_obj:array_position="7" oils_persist:virtual="true" />
46                         <field name="name" oils_obj:array_position="6" oils_persist:virtual="true" />
47                         <field name="value" oils_obj:array_position="11" oils_persist:virtual="true" />
48                 </fields>
49         </class>
50
51         <class id="mvr" controller="open-ils.cstore" oils_obj:fieldmapper="metabib::virtual_record" oils_persist:virtual="true">
52                 <fields>
53                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
54                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
55                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
56                         <field name="title" oils_obj:array_position="19" oils_persist:virtual="true" />
57                         <field name="author" oils_obj:array_position="3" oils_persist:virtual="true" />
58                         <field name="doc_id" oils_obj:array_position="6" oils_persist:virtual="true" />
59                         <field name="doc_type" oils_obj:array_position="7" oils_persist:virtual="true" />
60                         <field name="pubdate" oils_obj:array_position="12" oils_persist:virtual="true" />
61                         <field name="isbn" oils_obj:array_position="9" oils_persist:virtual="true" />
62                         <field name="publisher" oils_obj:array_position="13" oils_persist:virtual="true" />
63                         <field name="tcn" oils_obj:array_position="18" oils_persist:virtual="true" />
64                         <field name="subject" oils_obj:array_position="16" oils_persist:virtual="true" />
65                         <field name="types_of_resource" oils_obj:array_position="21" oils_persist:virtual="true" />
66                         <field name="call_numbers" oils_obj:array_position="4" oils_persist:virtual="true" />
67                         <field name="edition" oils_obj:array_position="8" oils_persist:virtual="true" />
68                         <field name="online_loc" oils_obj:array_position="10" oils_persist:virtual="true" />
69                         <field name="synopsis" oils_obj:array_position="17" oils_persist:virtual="true" />
70                         <field name="physical_description" oils_obj:array_position="11" oils_persist:virtual="true" />
71                         <field name="toc" oils_obj:array_position="20" oils_persist:virtual="true" />
72                         <field name="copy_count" oils_obj:array_position="5" oils_persist:virtual="true" />
73                         <field name="series" oils_obj:array_position="15" oils_persist:virtual="true" />
74                         <field name="serials" oils_obj:array_position="14" oils_persist:virtual="true" />
75                 </fields>
76         </class>
77
78         <class id="ex" controller="open-ils.cstore" oils_obj:fieldmapper="ex" oils_persist:virtual="true">
79                 <fields>
80                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
81                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
82                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
83                         <field name="err_msg" oils_obj:array_position="3" oils_persist:virtual="true" />
84                         <field name="type" oils_obj:array_position="4" oils_persist:virtual="true" />
85                 </fields>
86         </class>
87
88         <class id="perm_ex" controller="open-ils.cstore" oils_obj:fieldmapper="perm_ex" oils_persist:virtual="true">
89                 <fields>
90                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
91                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
92                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
93                         <field name="err_msg" oils_obj:array_position="3" oils_persist:virtual="true" />
94                         <field name="type" oils_obj:array_position="4" oils_persist:virtual="true" />
95                 </fields>
96         </class>
97
98
99
100         <!-- Actually in the DB -->
101         <class id="aws" controller="open-ils.cstore" oils_obj:fieldmapper="actor::workstation" oils_persist:tablename="actor.workstation" reporter:label="Workstation">
102                 <fields oils_persist:primary="id" oils_persist:sequence="actor.workstation_id_seq">
103                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
104                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
105                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
106                         <field reporter:label="Workstation ID" name="id" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="id"/>
107                         <field reporter:label="Workstation Name" name="name" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="text"/>
108                         <field reporter:label="Owning Library" name="owning_lib" oils_obj:array_position="5" oils_persist:virtual="false"  reporter:datatype="org_unit"/>
109                 </fields>
110                 <links>
111                         <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
112                 </links>
113         </class>
114
115         <class id="cit" controller="open-ils.cstore" oils_obj:fieldmapper="config::identification_type" oils_persist:tablename="config.identification_type" reporter:label="Identification Type">
116                 <fields oils_persist:primary="id" oils_persist:sequence="config.identification_type_id_seq">
117                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
118                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
119                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
120                         <field reporter:label="Identification ID" name="id" oils_obj:array_position="3" oils_persist:virtual="false" reporter:selector="name" reporter:datatype="id"/>
121                         <field reporter:label="Identification Name" name="name" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="text"/>
122                 </fields>
123                 <links/>
124         </class>
125         <class id="asvq" controller="open-ils.cstore" oils_obj:fieldmapper="action::survey_question" oils_persist:tablename="action.survey_question" reporter:label="User Survey Question">
126                 <fields oils_persist:primary="id" oils_persist:sequence="action.survey_question_id_seq">
127                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
128                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
129                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
130                         <field reporter:label="Answers" name="answers" oils_obj:array_position="3" oils_persist:virtual="true" reporter:datatype="link"/>
131                         <field reporter:label="Responses" name="responses" oils_obj:array_position="4" oils_persist:virtual="true" reporter:datatype="link"/>
132                         <field reporter:label="Question ID" name="id" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="id" />
133                         <field reporter:label="Question" name="question" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="text"/>
134                         <field reporter:label="Survey" name="survey" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="link"/>
135                 </fields>
136                 <links>
137                         <link field="survey" reltype="has_a" key="id" map="" class="asv"/>
138                         <link field="responses" reltype="has_many" key="question" map="" class="asvr"/>
139                         <link field="answers" reltype="has_many" key="question" map="" class="asva"/>
140                 </links>
141         </class>
142         <class id="mbts" controller="open-ils.cstore" oils_obj:fieldmapper="money::billable_transaction_summary" oils_persist:tablename="money.billable_xact_summary" reporter:label="Billable Transaction Summary">
143                 <fields oils_persist:primary="id" oils_persist:sequence="">
144                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
145                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
146                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
147                         <field reporter:label="Balance Owed" name="balance_owed" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="money"/>
148                         <field reporter:label="Transaction ID" name="id" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="id"/>
149                         <field reporter:label="Last Billing Note" name="last_billing_note" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="text"/>
150                         <field reporter:label="Last Billing Timestamp" name="last_billing_ts" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="timestamp"/>
151                         <field reporter:label="Last Billing Type" name="last_billing_type" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="text"/>
152                         <field reporter:label="Last Payment Note" name="last_payment_note" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="text"/>
153                         <field reporter:label="Last Payment Timestamp" name="last_payment_ts" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="timestamp"/>
154                         <field reporter:label="Last Payment Type" name="last_payment_type" oils_obj:array_position="10" oils_persist:virtual="false" reporter:datatype="text"/>
155                         <field reporter:label="Total Owed" name="total_owed" oils_obj:array_position="11" oils_persist:virtual="false" reporter:datatype="money"/>
156                         <field reporter:label="Total Paid" name="total_paid" oils_obj:array_position="12" oils_persist:virtual="false" reporter:datatype="money"/>
157                         <field reporter:label="Billed User" name="usr" oils_obj:array_position="13" oils_persist:virtual="false" reporter:datatype="link"/>
158                         <field reporter:label="Transaction Finish Time" name="xact_finish" oils_obj:array_position="14" oils_persist:virtual="false" reporter:datatype="timestamp" />
159                         <field reporter:label="Transaction Start Time" name="xact_start" oils_obj:array_position="15" oils_persist:virtual="false" reporter:datatype="timestamp" />
160                         <field reporter:label="Transaction Type" name="xact_type" oils_obj:array_position="16" oils_persist:virtual="false" reporter:datatype="text"/>
161                 </fields>
162                 <links>
163                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
164                 </links>
165         </class>
166         <class id="aun" controller="open-ils.cstore" oils_obj:fieldmapper="actor::usr_note" oils_persist:tablename="actor.usr_note" reporter:label="User Note">
167                 <fields oils_persist:primary="id" oils_persist:sequence="actor.usr_note_id_seq">
168                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
169                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
170                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
171                         <field reporter:label="Creation Date/Time" name="create_date" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="timestamp"/>
172                         <field reporter:label="Creating Staff" name="creator" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="link"/>
173                         <field reporter:label="Note ID" name="id" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="id" />
174                         <field reporter:label="Is OPAC Visible?" name="pub" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="bool"/>
175                         <field reporter:label="Note Title" name="title" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="text"/>
176                         <field reporter:label="User" name="usr" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="link" />
177                         <field reporter:label="Note Content" name="value" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="text"/>
178                 </fields>
179                 <links>
180                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
181                         <link field="creator" reltype="has_a" key="id" map="" class="au"/>
182                 </links>
183         </class>
184         <class id="aus" controller="open-ils.cstore" oils_obj:fieldmapper="actor::user_setting" oils_persist:tablename="actor.usr_setting" reporter:label="User Setting">
185                 <fields oils_persist:primary="id" oils_persist:sequence="actor.usr_setting_id_seq">
186                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
187                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
188                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
189                         <field reporter:label="Setting ID" name="id" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="id" />
190                         <field reporter:label="Name" name="name" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="text"/>
191                         <field reporter:label="User" name="usr" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="link"/>
192                         <field reporter:label="Value" name="value" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="text"/>
193                 </fields>
194                 <links>
195                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
196                 </links>
197         </class>
198         <class id="mafe" controller="open-ils.cstore" oils_obj:fieldmapper="metabib::author_field_entry" oils_persist:tablename="metabib.author_field_entry">
199                 <fields oils_persist:primary="id" oils_persist:sequence="metabib.author_field_entry_id_seq">
200                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
201                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
202                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
203                         <field name="field" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="link"/>
204                         <field name="id" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="id" />
205                         <field name="source" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="link"/>
206                         <field name="value" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="text"/>
207                 </fields>
208                 <links>
209                         <link field="source" reltype="has_a" key="id" map="" class="bre"/>
210                         <link field="field" reltype="has_a" key="id" map="" class="cmf"/>
211                 </links>
212         </class>
213         <class id="aihu" controller="open-ils.cstore" oils_obj:fieldmapper="action::in_house_use" oils_persist:tablename="action.in_house_use" reporter:core="true" reporter:label="In House Use">
214                 <fields oils_persist:primary="id" oils_persist:sequence="action.in_house_use_id_seq">
215                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
216                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
217                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
218                         <field reporter:label="Use ID" name="id" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="id" />
219                         <field reporter:label="Item" name="item" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="int" />
220                         <field reporter:label="Using Library" name="org_unit" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="org_unit"/>
221                         <field reporter:label="Recording Staff" name="staff" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="link"/>
222                         <field reporter:label="Use Date/Time" name="use_time" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="timestamp"/>
223                 </fields>
224                 <links>
225                         <link field="item" reltype="has_a" key="id" map="" class="acp"/>
226                         <link field="staff" reltype="has_a" key="id" map="" class="au"/>
227                         <link field="org_unit" reltype="has_a" key="id" map="" class="aou"/>
228                 </links>
229         </class>
230         <class id="ancihu" controller="open-ils.cstore" oils_obj:fieldmapper="action::non_cat_in_house_use" oils_persist:tablename="action.non_cat_in_house_use" reporter:core="true" reporter:label="Non-cataloged In House Use">
231                 <fields oils_persist:primary="id" oils_persist:sequence="action.non_cat_in_house_use_id_seq">
232                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
233                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
234                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
235                         <field reporter:label="Use ID" name="id" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="id" />
236                         <field reporter:label="Item Type" name="item_type" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="link"/>
237                         <field reporter:label="Using Library" name="org_unit" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="org_unit"/>
238                         <field reporter:label="Recording Staff" name="staff" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="link"/>
239                         <field reporter:label="Use Date/Time" name="use_time" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="timestamp"/>
240                 </fields>
241                 <links>
242                         <link field="item_type" reltype="has_a" key="id" map="" class="cnct"/>
243                         <link field="staff" reltype="has_a" key="id" map="" class="au"/>
244                         <link field="org_unit" reltype="has_a" key="id" map="" class="aou"/>
245                 </links>
246         </class>
247         <class id="atc" controller="open-ils.cstore" oils_obj:fieldmapper="action::transit_copy" oils_persist:tablename="action.transit_copy" reporter:core="true" reporter:label="Copy Transit">
248                 <fields oils_persist:primary="id" oils_persist:sequence="action.transit_copy_id_seq">
249                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
250                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
251                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
252                         <field reporter:label="Pretransit Copy Status" name="copy_status" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="bool"/>
253                         <field reporter:label="Destination" name="dest" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="link"/>
254                         <field reporter:label="Receive Date/Time" name="dest_recv_time" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="timestamp"/>
255                         <field reporter:label="Transit ID" name="id" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="id"/>
256                         <field reporter:label="Is Persistent? (unused)" name="persistant_transfer" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="bool"/>
257                         <field reporter:label="Previous Hop (unused)" name="prev_hop" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="link"/>
258                         <field reporter:label="Source" name="source" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="link"/>
259                         <field reporter:label="Send Date/Time" name="source_send_time" oils_obj:array_position="10" oils_persist:virtual="false" reporter:datatype="timestamp"/>
260                         <field reporter:label="Transited Copy" name="target_copy" oils_obj:array_position="11" oils_persist:virtual="false" reporter:datatype="link"/>
261                         <field reporter:label="Hold Transit" name="hold_transit_copy" oils_obj:array_position="12" oils_persist:virtual="true" reporter:datatype="link"/>
262                 </fields>
263                 <links>
264                         <link field="hold_transit_copy" reltype="might_have" key="id" map="" class="ahtc"/>
265                         <link field="source" reltype="has_a" key="id" map="" class="aou"/>
266                         <link field="copy_status" reltype="has_a" key="id" map="" class="ccs"/>
267                         <link field="dest" reltype="has_a" key="id" map="" class="aou"/>
268                         <link field="target_copy" reltype="has_a" key="id" map="" class="acp"/>
269                 </links>
270         </class>
271         <class id="asvr" controller="open-ils.cstore" oils_obj:fieldmapper="action::survey_response" oils_persist:tablename="action.survey_response" reporter:label="Survey Response">
272                 <fields oils_persist:primary="id" oils_persist:sequence="action.survey_response_id_seq">
273                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
274                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
275                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
276                         <field reporter:label="Answer" name="answer" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="link"/>
277                         <field reporter:label="Answer Date/Time" name="answer_date" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="timestamp"/>
278                         <field reporter:label="Effective Answer Date/Time" name="effective_date" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="timestamp"/>
279                         <field reporter:label="Answer ID" name="id" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="id" />
280                         <field reporter:label="Question" name="question" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="link"/>
281                         <field reporter:label="Response Group ID" name="response_group_id" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="int" />
282                         <field reporter:label="Survey" name="survey" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="link"/>
283                         <field reporter:label="Responding User" name="usr" oils_obj:array_position="10" oils_persist:virtual="false" reporter:datatype="link"/>
284                 </fields>
285                 <links>
286                         <link field="question" reltype="has_a" key="id" map="" class="asvq"/>
287                         <link field="survey" reltype="has_a" key="id" map="" class="asv"/>
288                         <link field="answer" reltype="has_a" key="id" map="" class="asva"/>
289                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
290                 </links>
291         </class>
292         <class id="ccbi" controller="open-ils.cstore" oils_obj:fieldmapper="container::copy_bucket_item" oils_persist:tablename="container.copy_bucket_item">
293                 <fields oils_persist:primary="id" oils_persist:sequence="container.copy_bucket_item_id_seq">
294                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
295                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
296                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
297                         <field name="bucket" oils_obj:array_position="3" oils_persist:virtual="false" />
298                         <field name="id" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="id" />
299                         <field name="target_copy" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="link"/>
300                         <field name="create_time" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="timestamp" />
301                 </fields>
302                 <links>
303                         <link field="target_copy" reltype="has_a" key="id" map="" class="acp"/>
304                         <link field="bucket" reltype="has_a" key="id" map="" class="ccb"/>
305                 </links>
306         </class>
307         <class id="are" controller="open-ils.cstore" oils_obj:fieldmapper="authority::record_entry" oils_persist:tablename="authority.record_entry">
308                 <fields oils_persist:primary="id" oils_persist:sequence="authority.record_entry_id_seq">
309                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
310                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
311                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
312                         <field name="active" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="bool"/>
313                         <field name="arn_source" oils_obj:array_position="4" oils_persist:virtual="false" />
314                         <field name="arn_value" oils_obj:array_position="5" oils_persist:virtual="false" />
315                         <field name="create_date" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="timestamp"/>
316                         <field name="creator" oils_obj:array_position="7" oils_persist:virtual="false" />
317                         <field name="deleted" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="bool"/>
318                         <field name="edit_date" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="timestamp"/>
319                         <field name="editor" oils_obj:array_position="10" oils_persist:virtual="false" />
320                         <field name="id" oils_obj:array_position="11" oils_persist:virtual="false" reporter:datatype="id" />
321                         <field name="last_xact_id" oils_obj:array_position="12" oils_persist:virtual="false" />
322                         <field name="marc" oils_obj:array_position="13" oils_persist:virtual="false" />
323                         <field name="source" oils_obj:array_position="14" oils_persist:virtual="false" />
324                         <field name="fixed_fields" oils_obj:array_position="15" oils_persist:virtual="true" />
325                 </fields>
326                 <links>
327                         <link field="editor" reltype="has_a" key="id" map="" class="au"/>
328                         <link field="creator" reltype="has_a" key="id" map="" class="au"/>
329                         <link field="notes" reltype="has_many" key="record" map="" class="arn"/>
330                         <link field="fixed_fields" reltype="might_have" key="record" map="" class="ard"/>
331                 </links>
332         </class>
333         <class id="ard" controller="open-ils.cstore" oils_obj:fieldmapper="authority::record_descriptor" oils_persist:tablename="authority.rec_descriptor">
334                 <fields oils_persist:primary="id" oils_persist:sequence="authority.rec_descriptor_id_seq">
335                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
336                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
337                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
338                         <field name="char_encoding" oils_obj:array_position="3" oils_persist:virtual="false" />
339                         <field name="id" oils_obj:array_position="4" oils_persist:virtual="false" />
340                         <field name="record" oils_obj:array_position="5" oils_persist:virtual="false" />
341                         <field name="record_status" oils_obj:array_position="6" oils_persist:virtual="false" />
342                 </fields>
343                 <links>
344                         <link field="record" reltype="has_a" key="id" map="" class="are"/>
345                 </links>
346         </class>
347         <class id="clm" controller="open-ils.cstore" oils_obj:fieldmapper="config::language_map" oils_persist:tablename="config.language_map" reporter:label="Language Map">
348                 <fields oils_persist:primary="code" oils_persist:sequence="">
349                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
350                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
351                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
352                         <field reporter:label="Language Code" name="code" oils_obj:array_position="3" oils_persist:virtual="false" reporter:selector="value" reporter:datatype="text"/>
353                         <field reporter:label="Language" name="value" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="text"/>
354                 </fields>
355                 <links/>
356         </class>
357         <class id="mccp" controller="open-ils.cstore" oils_obj:fieldmapper="money::credit_card_payment" oils_persist:tablename="money.credit_card_payment">
358                 <fields oils_persist:primary="id" oils_persist:sequence="money.payment_id_seq">
359                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
360                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
361                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
362                         <field name="accepting_usr" oils_obj:array_position="3" oils_persist:virtual="false" />
363                         <field name="amount" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="money" />
364                         <field name="amount_collected" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="money" />
365                         <field name="approval_code" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="text"/>
366                         <field name="cash_drawer" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="link"/>
367                         <field name="cc_number" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="text"/>
368                         <field name="cc_type" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="text"/>
369                         <field name="expire_month" oils_obj:array_position="10" oils_persist:virtual="false" reporter:datatype="int" />
370                         <field name="expire_year" oils_obj:array_position="11" oils_persist:virtual="false" reporter:datatype="int" />
371                         <field name="id" oils_obj:array_position="12" oils_persist:virtual="false" reporter:datatype="id" />
372                         <field name="note" oils_obj:array_position="13" oils_persist:virtual="false" reporter:datatype="text"/>
373                         <field name="payment_ts" oils_obj:array_position="14" oils_persist:virtual="false" reporter:datatype="timestamp"/>
374                         <field name="xact" oils_obj:array_position="15" oils_persist:virtual="false" reporter:datatype="link"/>
375                         <field name="payment_type" oils_obj:array_position="16" oils_persist:virtual="true" reporter:datatype="text"/>
376                         <field name="payment" oils_obj:array_position="17" oils_persist:virtual="true" reporter:datatype="link"/>
377                 </fields>
378                 <links>
379                         <link field="payment" reltype="might_have" key="id" map="" class="mp"/>
380                         <link field="accepting_usr" reltype="has_a" key="id" map="" class="au"/>
381                         <link field="cash_drawer" reltype="has_a" key="id" map="" class="aws"/>
382                         <link field="xact" reltype="has_a" key="id" map="" class="mbt"/>
383                 </links>
384         </class>
385         <class id="cmf" controller="open-ils.cstore" oils_obj:fieldmapper="config::metabib_field" oils_persist:tablename="config.metabib_field">
386                 <fields oils_persist:primary="id" oils_persist:sequence="config.metabib_field_id_seq">
387                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
388                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
389                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
390                         <field name="field_class" oils_obj:array_position="3" oils_persist:virtual="false" />
391                         <field name="id" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="id" />
392                         <field name="name" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="text"/>
393                         <field name="xpath" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="text"/>
394                         <field name="weight" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="int" />
395                         <field name="format" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="link"/>
396                         <field name="search_field" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="bool" />
397                         <field name="facet_field" oils_obj:array_position="10" oils_persist:virtual="false" reporter:datatype="bool" />
398                 </fields>
399                 <links/>
400         </class>
401         <class id="cam" controller="open-ils.cstore" oils_obj:fieldmapper="config::audience_map" oils_persist:tablename="config.audience_map" reporter:label="Audience Map">
402                 <fields oils_persist:primary="code" oils_persist:sequence="">
403                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
404                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
405                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
406                         <field reporter:label="Audicence Code" name="code" oils_obj:array_position="3" oils_persist:virtual="false" reporter:selector="value" reporter:datatype="text"/>
407                         <field reporter:label="Description" name="description" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="text" />
408                         <field reporter:label="Audience" name="value" oils_obj:array_position="5" oils_persist:virtual="false"  reporter:datatype="text"/>
409                 </fields>
410                 <links/>
411         </class>
412         <class id="cifm" controller="open-ils.cstore" oils_obj:fieldmapper="config::item_form_map" oils_persist:tablename="config.item_form_map" reporter:label="Item Form Map">
413                 <fields oils_persist:primary="code" oils_persist:sequence="">
414                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
415                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
416                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
417                         <field reporter:label="Item Form Code" name="code" oils_obj:array_position="3" oils_persist:virtual="false" reporter:selector="value" reporter:datatype="text"/>
418                         <field reporter:label="Item Form" name="value" oils_obj:array_position="4" oils_persist:virtual="false"  reporter:datatype="text"/>
419                 </fields>
420                 <links/>
421         </class>
422         <class id="acn" controller="open-ils.cstore" oils_obj:fieldmapper="asset::call_number" oils_persist:tablename="asset.call_number" reporter:label="Call Number/Volume">
423                 <fields oils_persist:primary="id" oils_persist:sequence="asset.call_number_id_seq">
424                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
425                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
426                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
427                         <field reporter:label="Copies" name="copies" oils_obj:array_position="3" oils_persist:virtual="true" reporter:datatype="link"/>
428                         <field reporter:label="Create Date/Time" name="create_date" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="timestamp"/>
429                         <field reporter:label="Creating User" name="creator" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="link"/>
430                         <field reporter:label="Is Deleted" name="deleted" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="bool"/>
431                         <field reporter:label="Last Edit Date/Time" name="edit_date" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="timestamp"/>
432                         <field reporter:label="Last Editing User" name="editor" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="link"/>
433                         <field reporter:label="Call Number/Volume ID" name="id" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="id" />
434                         <field reporter:label="Call Number Label" name="label" oils_obj:array_position="10" oils_persist:virtual="false" reporter:datatype="text"/>
435                         <field reporter:label="Owning Library" name="owning_lib" oils_obj:array_position="11" oils_persist:virtual="false"  reporter:datatype="org_unit"/>
436                         <field reporter:label="Bib Record" name="record" oils_obj:array_position="12" oils_persist:virtual="false" reporter:datatype="link"/>
437                 </fields>
438                 <links>
439                         <link field="editor" reltype="has_a" key="id" map="" class="au"/>
440                         <link field="creator" reltype="has_a" key="id" map="" class="au"/>
441                         <link field="record" reltype="has_a" key="id" map="" class="bre"/>
442                         <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
443                         <link field="notes" reltype="has_many" key="call_number" map="" class="acnn"/>
444                         <link field="copies" reltype="has_many" key="call_number" map="" class="acp"/>
445                 </links>
446         </class>
447         <class id="cst" controller="open-ils.cstore" oils_obj:fieldmapper="config::standing" oils_persist:tablename="config.standing">
448                 <fields oils_persist:primary="id" oils_persist:sequence="config.standing_id_seq">
449                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
450                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
451                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
452                         <field name="id" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="id" />
453                         <field name="value" oils_obj:array_position="4" oils_persist:virtual="false" />
454                 </fields>
455                 <links/>
456         </class>
457         <class id="mous" controller="open-ils.cstore" oils_obj:fieldmapper="money::open_user_summary" oils_persist:tablename="money.open_usr_summary">
458                 <fields oils_persist:primary="usr" oils_persist:sequence="">
459                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
460                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
461                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
462                         <field name="balance_owed" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="money" />
463                         <field name="total_owed" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="money" />
464                         <field name="total_paid" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="money" />
465                         <field name="usr" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="link"/>
466                 </fields>
467                 <links/>
468         </class>
469         <class id="mct" controller="open-ils.cstore" oils_obj:fieldmapper="money::collections_tracker" oils_persist:tablename="money.collections_tracker">
470                 <fields oils_persist:primary="id" oils_persist:sequence="money.collections_tracker_id_seq">
471                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
472                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
473                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
474                         <field name="collector" oils_obj:array_position="3" oils_persist:virtual="false" />
475                         <field name="enter_time" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="timestamp"/>
476                         <field name="id" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="id" />
477                         <field name="location" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="link"/>
478                         <field name="usr" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="link"/>
479                 </fields>
480                 <links>
481                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
482                         <link field="collector" reltype="has_a" key="id" map="" class="au"/>
483                         <link field="location" reltype="has_a" key="id" map="" class="aou"/>
484                 </links>
485         </class>
486         <class id="bre" controller="open-ils.cstore" oils_obj:fieldmapper="biblio::record_entry" oils_persist:tablename="biblio.record_entry" reporter:core="true" reporter:label="Bibliographic Record">
487                 <fields oils_persist:primary="id" oils_persist:sequence="biblio.record_entry_id_seq">
488                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
489                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
490                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
491                         <field reporter:label="Call Numbers" name="call_numbers" oils_obj:array_position="3" oils_persist:virtual="true" reporter:datatype="link"/>
492                         <field reporter:label="Fixed Field Entry" name="fixed_fields" oils_obj:array_position="4" oils_persist:virtual="true" reporter:datatype="link"/>
493                         <field reporter:label="Is Active?" name="active" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="bool"/>
494                         <field reporter:label="Record Creation Date/Time" name="create_date" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="timestamp"/>
495                         <field reporter:label="Record Creator" name="creator" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="link"/>
496                         <field reporter:label="Is Deleted?" name="deleted" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="bool"/>
497                         <field reporter:label="Last Edit Data/Time" name="edit_date" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="timestamp"/>
498                         <field reporter:label="Last Editing User" name="editor" oils_obj:array_position="10" oils_persist:virtual="false" reporter:datatype="link"/>
499                         <field reporter:label="Fingerprint" name="fingerprint" oils_obj:array_position="11" oils_persist:virtual="false"  reporter:datatype="text"/>
500                         <field reporter:label="Record ID" name="id" oils_obj:array_position="12" oils_persist:virtual="false" reporter:datatype="id" />
501                         <field reporter:label="Last Transaction ID" name="last_xact_id" oils_obj:array_position="13" oils_persist:virtual="false"  reporter:datatype="text"/>
502                         <field reporter:label="MARC21Slim" name="marc" oils_obj:array_position="14" oils_persist:virtual="false"  reporter:datatype="text"/>
503                         <field reporter:label="Overall Quality" name="quality" oils_obj:array_position="15" oils_persist:virtual="false" reporter:datatype="int" />
504                         <field reporter:label="Record Source" name="source" oils_obj:array_position="16" oils_persist:virtual="false" reporter:datatype="link"/>
505                         <field reporter:label="TCN Source" name="tcn_source" oils_obj:array_position="17" oils_persist:virtual="false"  reporter:datatype="text"/>
506                         <field reporter:label="TCN Value" name="tcn_value" oils_obj:array_position="18" oils_persist:virtual="false"  reporter:datatype="text"/>
507                         <field reporter:label="Metarecord" name="metarecord" oils_obj:array_position="19" oils_persist:virtual="true" reporter:datatype="link"/>
508                         <field reporter:label="Language Code" name="language" oils_obj:array_position="20" oils_persist:virtual="true" reporter:datatype="link"/>
509                         <field reporter:label="Non-MARC Record Notes" name="notes" oils_obj:array_position="21" oils_persist:virtual="true" reporter:datatype="link"/>
510                         <field reporter:label="Indexed Keyword Field Entries" name="keyword_field_entries" oils_obj:array_position="22" oils_persist:virtual="true" reporter:datatype="link"/>
511                         <field reporter:label="Indexed Subject Field Entries" name="subject_field_entries" oils_obj:array_position="23" oils_persist:virtual="true" reporter:datatype="link"/>
512                         <field reporter:label="Indexed Title Field Entries" name="title_field_entries" oils_obj:array_position="24" oils_persist:virtual="true" reporter:datatype="link"/>
513                         <field reporter:label="Indexed Author Field Entries" name="author_field_entries" oils_obj:array_position="25" oils_persist:virtual="true" reporter:datatype="link"/>
514                         <field reporter:label="Indexed Series Field Entries" name="series_field_entries" oils_obj:array_position="26" oils_persist:virtual="true" reporter:datatype="link"/>
515                         <field reporter:label="Flattened MARC Fields " name="full_record_entries" oils_obj:array_position="27" oils_persist:virtual="true" reporter:datatype="link"/>
516                         <field reporter:label="Simple Record Extracts " name="simple_record" oils_obj:array_position="28" oils_persist:virtual="true" reporter:datatype="link"/>
517                 </fields>
518                 <links>
519                         <link field="editor" reltype="has_a" key="id" map="" class="au"/>
520                         <link field="creator" reltype="has_a" key="id" map="" class="au"/>
521                         <link field="simple_record" reltype="might_have" key="id" map="" class="rssr"/>
522                         <link field="metarecord" reltype="might_have" key="source" map="metarecord" class="mmrsm"/>
523                         <link field="call_numbers" reltype="has_many" key="record" map="" class="acn"/>
524                         <link field="keyword_field_entries" reltype="has_many" key="source" map="" class="mkfe"/>
525                         <link field="fixed_fields" reltype="might_have" key="record" map="" class="mrd"/>
526                         <link field="language" reltype="might_have" key="record" map="item_lang" class="mrd"/>
527                         <link field="subject_field_entries" reltype="has_many" key="source" map="" class="msfe"/>
528                         <link field="title_field_entries" reltype="has_many" key="source" map="" class="mtfe"/>
529                         <link field="notes" reltype="has_many" key="record" map="" class="bren"/>
530                         <link field="author_field_entries" reltype="has_many" key="source" map="" class="mafe"/>
531                         <link field="series_field_entries" reltype="has_many" key="source" map="" class="msefe"/>
532                         <link field="full_record_entries" reltype="has_many" key="record" map="" class="mfr"/>
533                 </links>
534         </class>
535         <class id="aouhoo" controller="open-ils.cstore" oils_obj:fieldmapper="actor::org_unit::hours_of_operation" oils_persist:tablename="actor.hours_of_operation">
536                 <fields oils_persist:primary="id" oils_persist:sequence="">
537                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
538                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
539                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
540                         <field name="dow_0_close" oils_obj:array_position="3" oils_persist:virtual="false" />
541                         <field name="dow_0_open" oils_obj:array_position="4" oils_persist:virtual="false" />
542                         <field name="dow_1_close" oils_obj:array_position="5" oils_persist:virtual="false" />
543                         <field name="dow_1_open" oils_obj:array_position="6" oils_persist:virtual="false" />
544                         <field name="dow_2_close" oils_obj:array_position="7" oils_persist:virtual="false" />
545                         <field name="dow_2_open" oils_obj:array_position="8" oils_persist:virtual="false" />
546                         <field name="dow_3_close" oils_obj:array_position="9" oils_persist:virtual="false" />
547                         <field name="dow_3_open" oils_obj:array_position="10" oils_persist:virtual="false" />
548                         <field name="dow_4_close" oils_obj:array_position="11" oils_persist:virtual="false" />
549                         <field name="dow_4_open" oils_obj:array_position="12" oils_persist:virtual="false" />
550                         <field name="dow_5_close" oils_obj:array_position="13" oils_persist:virtual="false" />
551                         <field name="dow_5_open" oils_obj:array_position="14" oils_persist:virtual="false" />
552                         <field name="dow_6_close" oils_obj:array_position="15" oils_persist:virtual="false" />
553                         <field name="dow_6_open" oils_obj:array_position="16" oils_persist:virtual="false" />
554                         <field name="id" oils_obj:array_position="17" oils_persist:virtual="false" reporter:datatype="id" />
555                         <field name="org_unit" oils_obj:array_position="18" oils_persist:virtual="true" reporter:datatype="org_unit"/>
556                 </fields>
557                 <links>
558                         <link field="org_unit" reltype="might_have" key="id" map="" class="aou"/>
559                 </links>
560         </class>
561         <class id="aoucd" controller="open-ils.cstore" oils_obj:fieldmapper="actor::org_unit::closed_date" oils_persist:tablename="actor.org_unit_closed">
562                 <fields oils_persist:primary="id" oils_persist:sequence="actor.org_unit_closed_id_seq">
563                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
564                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
565                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
566                         <field name="close_end" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="timestamp" />
567                         <field name="close_start" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="timestamp" />
568                         <field name="id" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="id" />
569                         <field name="org_unit" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="org_unit"/>
570                         <field name="reason" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="text"/>
571                 </fields>
572                 <links>
573                         <link field="org_unit" reltype="has_a" key="id" map="" class="aou"/>
574                 </links>
575         </class>
576         <class id="crcd" controller="open-ils.cstore" oils_obj:fieldmapper="config::rules::circ_duration" oils_persist:tablename="config.rule_circ_duration">
577                 <fields oils_persist:primary="id" oils_persist:sequence="config.rule_circ_duration_id_seq">
578                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
579                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
580                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
581                         <field name="extended" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="interval"/>
582                         <field name="id" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="id" />
583                         <field name="max_renewals" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="int" />
584                         <field name="name" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="text"/>
585                         <field name="normal" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="interval"/>
586                         <field name="shrt" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="interval"/>
587                 </fields>
588                 <links>
589                 </links>
590         </class>
591         <class id="mobts" controller="open-ils.cstore" oils_obj:fieldmapper="money::open_billable_transaction_summary" oils_persist:tablename="money.open_billable_xact_summary">
592                 <fields oils_persist:primary="id" oils_persist:sequence="">
593                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
594                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
595                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
596                         <field name="balance_owed" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="money"/>
597                         <field name="id" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="id" />
598                         <field name="last_billing_note" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="text"/>
599                         <field name="last_billing_ts" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="timestamp"/>
600                         <field name="last_billing_type" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="text"/>
601                         <field name="last_payment_note" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="text"/>
602                         <field name="last_payment_ts" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="timestamp"/>
603                         <field name="last_payment_type" oils_obj:array_position="10" oils_persist:virtual="false" reporter:datatype="text"/>
604                         <field name="total_owed" oils_obj:array_position="11" oils_persist:virtual="false" reporter:datatype="money"/>
605                         <field name="total_paid" oils_obj:array_position="12" oils_persist:virtual="false" reporter:datatype="money"/>
606                         <field name="usr" oils_obj:array_position="13" oils_persist:virtual="false" reporter:datatype="link"/>
607                         <field name="xact_finish" oils_obj:array_position="14" oils_persist:virtual="false" reporter:datatype="timestamp" />
608                         <field name="xact_start" oils_obj:array_position="15" oils_persist:virtual="false" reporter:datatype="timestamp" />
609                         <field name="xact_type" oils_obj:array_position="16" oils_persist:virtual="false" reporter:datatype="text"/>
610                         <field name="xact" oils_obj:array_position="17" oils_persist:virtual="true" reporter:datatype="link"/>
611                         <field name="grocery" oils_obj:array_position="18" oils_persist:virtual="true" reporter:datatype="link"/>
612                         <field name="circulation" oils_obj:array_position="19" oils_persist:virtual="true" reporter:datatype="link"/>
613                         <field name="billing_location" oils_obj:array_position="20" oils_persist:virtual="false" reporter:datatype="link"/>
614                 </fields>
615                 <links>
616                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
617                         <link field="xact" reltype="might_have" key="id" map="" class="mbt"/>
618                         <link field="circulation" reltype="might_have" key="id" map="" class="circ"/>
619                         <link field="grocery" reltype="might_have" key="id" map="" class="mg"/>
620                         <link field="billing_location" reltype="has_a" key="id" map="" class="aou"/>
621                 </links>
622         </class>
623         <class id="au" controller="open-ils.cstore" oils_obj:fieldmapper="actor::user" oils_persist:tablename="actor.usr" reporter:core="true" reporter:label="ILS User">
624                 <fields oils_persist:primary="id" oils_persist:sequence="actor.usr_id_seq">
625                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
626                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
627                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
628                         <field reporter:label="All Addresses" name="addresses" oils_obj:array_position="3" oils_persist:virtual="true" reporter:datatype="link"/>
629                         <field reporter:label="All Library Cards" name="cards" oils_obj:array_position="4" oils_persist:virtual="true" reporter:datatype="link"/>
630                         <field reporter:label="All Circulations" name="checkouts" oils_obj:array_position="5" oils_persist:virtual="true" reporter:datatype="link"/>
631                         <field reporter:label="All Hold Requests" name="hold_requests" oils_obj:array_position="6" oils_persist:virtual="true" reporter:datatype="link"/>
632                         <field reporter:label="All Permissions" name="permissions" oils_obj:array_position="7" oils_persist:virtual="true" reporter:datatype="link"/>
633                         <field reporter:label="All User Settings" name="settings" oils_obj:array_position="8" oils_persist:virtual="true" reporter:datatype="link"/>
634                         <field reporter:label="Standing Penalties" name="standing_penalties" oils_obj:array_position="9" oils_persist:virtual="true" reporter:datatype="link"/>
635                         <field reporter:label="Statistical Catagorie Entries" name="stat_cat_entries" oils_obj:array_position="10" oils_persist:virtual="true" reporter:datatype="link"/>
636                         <field reporter:label="Survey Responses" name="survey_responses" oils_obj:array_position="11" oils_persist:virtual="true" reporter:datatype="link"/>
637                         <field name="ws_ou" oils_obj:array_position="12" oils_persist:virtual="true" reporter:datatype="link"/>
638                         <field name="wsid" oils_obj:array_position="13" oils_persist:virtual="true" reporter:datatype="link"/>
639                         <field reporter:label="Active" name="active" oils_obj:array_position="14" oils_persist:virtual="false" reporter:datatype="bool"/>
640                         <field reporter:label="Alert Message" name="alert_message" oils_obj:array_position="15" oils_persist:virtual="false"  reporter:datatype="text"/>
641                         <field reporter:label="Barred" name="barred" oils_obj:array_position="16" oils_persist:virtual="false" reporter:datatype="bool"/>
642                         <field reporter:label="Physical Address" name="billing_address" oils_obj:array_position="17" oils_persist:virtual="false" reporter:datatype="link"/>
643                         <field reporter:label="Current Library Card" name="card" oils_obj:array_position="18" oils_persist:virtual="false" reporter:datatype="link"/>
644                         <field reporter:label="Claims-returned Count" name="claims_returned_count" oils_obj:array_position="19" oils_persist:virtual="false" reporter:datatype="int" />
645                         <field reporter:label="Record Creation Date/Time" name="create_date" oils_obj:array_position="20" oils_persist:virtual="false" reporter:datatype="timestamp"/>
646                         <field reporter:label="User Credit Balance" name="credit_forward_balance" oils_obj:array_position="21" oils_persist:virtual="false" reporter:datatype="money" />
647                         <field reporter:label="Daytime Phone" name="day_phone" oils_obj:array_position="22" oils_persist:virtual="false"  reporter:datatype="text"/>
648                         <field reporter:label="Date of Birth" name="dob" oils_obj:array_position="23" oils_persist:virtual="false" reporter:datatype="timestamp"/>
649                         <field reporter:label="Email Address" name="email" oils_obj:array_position="24" oils_persist:virtual="false"  reporter:datatype="text"/>
650                         <field reporter:label="Evening Phone" name="evening_phone" oils_obj:array_position="25" oils_persist:virtual="false"  reporter:datatype="text"/>
651                         <field reporter:label="Priviledge Expiration Date" name="expire_date" oils_obj:array_position="26" oils_persist:virtual="false" reporter:datatype="timestamp"/>
652                         <field reporter:label="Last Name" name="family_name" oils_obj:array_position="27" oils_persist:virtual="false"  reporter:datatype="text"/>
653                         <field reporter:label="First Name" name="first_given_name" oils_obj:array_position="28" oils_persist:virtual="false"  reporter:datatype="text"/>
654                         <field reporter:label="Home Library" name="home_ou" oils_obj:array_position="29" oils_persist:virtual="false" reporter:datatype="org_unit"/>
655                         <field reporter:label="User ID" name="id" oils_obj:array_position="30" oils_persist:virtual="false" reporter:datatype="id" />
656                         <field reporter:label="Primary Identifcation Type" name="ident_type" oils_obj:array_position="31" oils_persist:virtual="false" reporter:datatype="link"/>
657                         <field reporter:label="Secondary Identification Type" name="ident_type2" oils_obj:array_position="32" oils_persist:virtual="false" reporter:datatype="link"/>
658                         <field reporter:label="Primary Identification" name="ident_value" oils_obj:array_position="33" oils_persist:virtual="false"  reporter:datatype="text"/>
659                         <field reporter:label="Secondary Identification" name="ident_value2" oils_obj:array_position="34" oils_persist:virtual="false"  reporter:datatype="text"/>
660                         <field name="last_xact_id" oils_obj:array_position="35" oils_persist:virtual="false" reporter:datatype="text"/>
661                         <field reporter:label="Mailing Address" name="mailing_address" oils_obj:array_position="36" oils_persist:virtual="false" reporter:datatype="link"/>
662                         <field reporter:label="Is Group Lead Account" name="master_account" oils_obj:array_position="37" oils_persist:virtual="false" reporter:datatype="bool"/>
663                         <field reporter:label="Internet Access Level" name="net_access_level" oils_obj:array_position="38" oils_persist:virtual="false" reporter:datatype="link"/>
664                         <field reporter:label="Other Phone" name="other_phone" oils_obj:array_position="39" oils_persist:virtual="false"  reporter:datatype="text"/>
665                         <field reporter:label="Password (obfuscated)" name="passwd" oils_obj:array_position="40" oils_persist:virtual="false"  reporter:datatype="text"/>
666                         <field reporter:label="Photo URL" name="photo_url" oils_obj:array_position="41" oils_persist:virtual="false"  reporter:datatype="text"/>
667                         <field reporter:label="Prefix" name="prefix" oils_obj:array_position="42" oils_persist:virtual="false"  reporter:datatype="text"/>
668                         <field reporter:label="Main (Profile) Permission Group" name="profile" oils_obj:array_position="43" oils_persist:virtual="false" reporter:datatype="link"/>
669                         <field reporter:label="Middle Name" name="second_given_name" oils_obj:array_position="44" oils_persist:virtual="false"  reporter:datatype="text"/>
670                         <field reporter:label="Standing (unused)" name="standing" oils_obj:array_position="45" oils_persist:virtual="false" reporter:datatype="link"/>
671                         <field reporter:label="Suffix/Title" name="suffix" oils_obj:array_position="46" oils_persist:virtual="false"  reporter:datatype="text"/>
672                         <field reporter:label="Is Super User" name="super_user" oils_obj:array_position="47" oils_persist:virtual="false" reporter:datatype="bool"/>
673                         <field reporter:label="Family Linkage or other Group" name="usrgroup" oils_obj:array_position="48" oils_persist:virtual="false" reporter:datatype="int"/>
674                         <field reporter:label="OPAC/Staff Client User Name" name="usrname" oils_obj:array_position="49" oils_persist:virtual="false"  reporter:datatype="text"/>
675                         <field reporter:label="Additional Permission Groups" name="groups" oils_obj:array_position="50" oils_persist:virtual="true" reporter:datatype="link"/>
676                         <field reporter:label="Is Deleted" name="deleted" oils_obj:array_position="51" oils_persist:virtual="false" reporter:datatype="bool"/>
677                         <field reporter:label="User Notes" name="notes" oils_obj:array_position="52" oils_persist:virtual="true" reporter:datatype="link"/>
678                         <field reporter:label="Demographic Info" name="demographic" oils_obj:array_position="53" oils_persist:virtual="true" reporter:datatype="link"/>
679                 </fields>
680                 <links>
681                         <link field="demographic" reltype="might_have" key="id" map="" class="rud"/>
682                         <link field="net_access_level" reltype="has_a" key="id" map="" class="cnal"/>
683                         <link field="profile" reltype="has_a" key="id" map="" class="pgt"/>
684                         <link field="ident_type" reltype="has_a" key="id" map="" class="cit"/>
685                         <link field="billing_address" reltype="has_a" key="id" map="" class="aua"/>
686                         <link field="mailing_address" reltype="has_a" key="id" map="" class="aua"/>
687                         <link field="home_ou" reltype="has_a" key="id" map="" class="aou"/>
688                         <link field="standing" reltype="has_a" key="id" map="" class="cst"/>
689                         <link field="card" reltype="has_a" key="id" map="" class="ac"/>
690                         <link field="ident_type2" reltype="has_a" key="id" map="" class="cit"/>
691                         <link field="stat_cat_entries" reltype="has_many" key="target_usr" map="" class="actscecm"/>
692                         <link field="groups" reltype="has_many" key="usr" map="grp" class="pugm"/>
693                         <link field="usrgroup" reltype="has_many" key="usrgroup" map="" class="au"/>
694                         <link field="checkouts" reltype="has_many" key="usr" map="" class="circ"/>
695                         <link field="hold_requests" reltype="has_many" key="usr" map="" class="circ"/>
696                         <link field="permissions" reltype="has_many" key="usr" map="perm" class="pupm"/>
697                         <link field="settings" reltype="has_many" key="usr" map="" class="aus"/>
698                         <link reporter:label="Billable Tranastactions" field="billable_transactions" reltype="has_many" key="usr" map="" class="mbt"/>
699                         <link field="standing_penalties" reltype="has_many" key="usr" map="" class="ausp"/>
700                         <link field="addresses" reltype="has_many" key="usr" map="" class="aua"/>
701                         <link field="survey_responses" reltype="has_many" key="usr" map="" class="asvr"/>
702                         <link field="notes" reltype="has_many" key="usr" map="" class="aun"/>
703                         <link reporter:label="Check-ins Performed as Staff" field="checkins" reltype="has_many" key="checkin_staff" map="" class="circ"/>
704                         <link field="cards" reltype="has_many" key="usr" map="" class="ac"/>
705                         <link reporter:label="Circulations Performed as Staff" field="performed_circulations" reltype="has_many" key="circ_staff" map="" class="circ"/>
706                 </links>
707         </class>
708         <class id="aous" controller="open-ils.cstore" oils_obj:fieldmapper="actor::org_unit_setting" oils_persist:tablename="actor.org_unit_setting">
709                 <fields oils_persist:primary="id" oils_persist:sequence="actor.org_unit_setting_id_seq">
710                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
711                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
712                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
713                         <field name="id" oils_obj:array_position="3" oils_persist:virtual="false" />
714                         <field name="name" oils_obj:array_position="4" oils_persist:virtual="false"  reporter:datatype="text"/>
715                         <field name="org_unit" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="org_unit"/>
716                         <field name="value" oils_obj:array_position="6" oils_persist:virtual="false"  reporter:datatype="text"/>
717                 </fields>
718                 <links>
719                         <link field="org_unit" reltype="has_a" key="id" map="" class="aou"/>
720                 </links>
721         </class>
722         <class id="acpn" controller="open-ils.cstore" oils_obj:fieldmapper="asset::copy_note" oils_persist:tablename="asset.copy_note" reporter:label="Copy Note">
723                 <fields oils_persist:primary="id" oils_persist:sequence="asset.copy_note_id_seq">
724                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
725                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
726                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
727                         <field reporter:label="Note Creation Date/Time" name="create_date" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="timestamp"/>
728                         <field reporter:label="Note Creator" name="creator" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="link"/>
729                         <field reporter:label="Node ID" name="id" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="id" />
730                         <field reporter:label="Copy" name="owning_copy" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="link"/>
731                         <field reporter:label="Is OPAC Visible?" name="pub" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="bool"/>
732                         <field reporter:label="Note Title" name="title" oils_obj:array_position="8" oils_persist:virtual="false"  reporter:datatype="text"/>
733                         <field reporter:label="Note Content" name="value" oils_obj:array_position="9" oils_persist:virtual="false"  reporter:datatype="text"/>
734                 </fields>
735                 <links>
736                         <link field="owning_copy" reltype="has_a" key="id" map="" class="acp"/>
737                         <link field="creator" reltype="has_a" key="id" map="" class="au"/>
738                 </links>
739         </class>
740         <class id="mfr" controller="open-ils.cstore" oils_obj:fieldmapper="metabib::full_rec" oils_persist:tablename="metabib.full_rec" reporter:label="Flattened MARC Fields">
741                 <fields oils_persist:primary="id" oils_persist:sequence="metabib.full_rec_id_seq">
742                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
743                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
744                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
745                         <field reporter:label="Field ID" name="id" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="id" />
746                         <field reporter:label="Indicator 1" name="ind1" oils_obj:array_position="4" oils_persist:virtual="false" oils_persist:primitive="string"  reporter:datatype="text"/>
747                         <field reporter:label="Indicator 2" name="ind2" oils_obj:array_position="5" oils_persist:virtual="false" oils_persist:primitive="string"  reporter:datatype="text"/>
748                         <field reporter:label="Bib Record Entry" name="record" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="link"/>
749                         <field reporter:label="Subfield" name="subfield" oils_obj:array_position="7" oils_persist:virtual="false" oils_persist:primitive="string"  reporter:datatype="text"/>
750                         <field reporter:label="Tag" name="tag" oils_obj:array_position="8" oils_persist:virtual="false"  reporter:datatype="text"/>
751                         <field reporter:label="Normalized Value" name="value" oils_obj:array_position="9" oils_persist:virtual="false"  reporter:datatype="text"/>
752                 </fields>
753                 <links>
754                         <link field="record" reltype="has_a" key="id" map="" class="bre"/>
755                 </links>
756         </class>
757         <class id="mmr" controller="open-ils.cstore" oils_obj:fieldmapper="metabib::metarecord" oils_persist:tablename="metabib.metarecord">
758                 <fields oils_persist:primary="id" oils_persist:sequence="metabib.metarecord_id_seq">
759                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
760                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
761                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
762                         <field name="fingerprint" oils_obj:array_position="3" oils_persist:virtual="false"  reporter:datatype="text"/>
763                         <field name="id" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="id" />
764                         <field name="master_record" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="link"/>
765                         <field name="mods" oils_obj:array_position="6" oils_persist:virtual="false"  reporter:datatype="text"/>
766                         <field name="source_records" oils_obj:array_position="7" oils_persist:virtual="true" reporter:datatype="link"/>
767                 </fields>
768                 <links>
769                         <link field="master_record" reltype="has_a" key="id" map="" class="bre"/>
770                         <link field="source_records" reltype="has_many" key="metarecord" map="source" class="mmrsm"/>
771                 </links>
772         </class>
773         <class id="cnal" controller="open-ils.cstore" oils_obj:fieldmapper="config::net_access_level" oils_persist:tablename="config.net_access_level">
774                 <fields oils_persist:primary="id" oils_persist:sequence="config.net_access_level_id_seq">
775                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
776                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
777                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
778                         <field name="id" oils_obj:array_position="3" oils_persist:virtual="false" reporter:selector="name" reporter:datatype="id"/>
779                         <field name="name" oils_obj:array_position="4" oils_persist:virtual="false"  reporter:datatype="text"/>
780                 </fields>
781                 <links/>
782         </class>
783         <class id="ppl" controller="open-ils.cstore" oils_obj:fieldmapper="permission::perm_list" oils_persist:tablename="permission.perm_list">
784                 <fields oils_persist:primary="id" oils_persist:sequence="permission.perm_list_id_seq">
785                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
786                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
787                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
788                         <field name="code" oils_obj:array_position="3" oils_persist:virtual="false"  reporter:datatype="text"/>
789                         <field name="description" oils_obj:array_position="4" oils_persist:virtual="false"  reporter:datatype="text"/>
790                         <field name="id" oils_obj:array_position="5" oils_persist:virtual="false" reporter:selector="code" reporter:datatype="id"/>
791                 </fields>
792                 <links/>
793         </class>
794         <class id="mmrsm" controller="open-ils.cstore" oils_obj:fieldmapper="metabib::metarecord_source_map" oils_persist:tablename="metabib.metarecord_source_map">
795                 <fields oils_persist:primary="id" oils_persist:sequence="metabib.metarecord_source_map_id_seq">
796                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
797                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
798                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
799                         <field name="id" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="id" />
800                         <field name="metarecord" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="link"/>
801                         <field name="source" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="link"/>
802                 </fields>
803                 <links>
804                         <link field="source" reltype="has_a" key="id" map="" class="bre"/>
805                         <link field="metarecord" reltype="has_a" key="id" map="" class="mmr"/>
806                 </links>
807         </class>
808         <class id="mkfe" controller="open-ils.cstore" oils_obj:fieldmapper="metabib::keyword_field_entry" oils_persist:tablename="metabib.keyword_field_entry">
809                 <fields oils_persist:primary="id" oils_persist:sequence="metabib.keyword_field_entry_id_seq">
810                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
811                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
812                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
813                         <field name="field" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="link"/>
814                         <field name="id" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="id" />
815                         <field name="source" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="link"/>
816                         <field name="value" oils_obj:array_position="6" oils_persist:virtual="false"  reporter:datatype="text"/>
817                 </fields>
818                 <links>
819                         <link field="source" reltype="has_a" key="id" map="" class="bre"/>
820                         <link field="field" reltype="has_a" key="id" map="" class="cmf"/>
821                 </links>
822         </class>
823         <class id="mcp" controller="open-ils.cstore" oils_obj:fieldmapper="money::cash_payment" oils_persist:tablename="money.cash_payment">
824                 <fields oils_persist:primary="id" oils_persist:sequence="money.payment_id_seq">
825                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
826                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
827                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
828                         <field name="accepting_usr" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="link"/>
829                         <field name="amount" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="money" />
830                         <field name="amount_collected" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="money" />
831                         <field name="cash_drawer" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="link"/>
832                         <field name="id" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="id" />
833                         <field name="note" oils_obj:array_position="8" oils_persist:virtual="false"  reporter:datatype="text"/>
834                         <field name="payment_ts" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="timestamp"/>
835                         <field name="xact" oils_obj:array_position="10" oils_persist:virtual="false" reporter:datatype="link"/>
836                         <field name="payment_type" oils_obj:array_position="11" oils_persist:virtual="true"  reporter:datatype="text"/>
837                         <field name="payment" oils_obj:array_position="12" oils_persist:virtual="true" reporter:datatype="link"/>
838                 </fields>
839                 <links>
840                         <link field="payment" reltype="might_have" key="id" map="" class="mp"/>
841                         <link field="accepting_usr" reltype="has_a" key="id" map="" class="au"/>
842                         <link field="cash_drawer" reltype="has_a" key="id" map="" class="aws"/>
843                         <link field="xact" reltype="has_a" key="id" map="" class="mbt"/>
844                 </links>
845         </class>
846         <class id="mfp" controller="open-ils.cstore" oils_obj:fieldmapper="money::forgive_payment" oils_persist:tablename="money.forgive_payment">
847                 <fields oils_persist:primary="id" oils_persist:sequence="money.payment_id_seq">
848                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
849                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
850                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
851                         <field name="accepting_usr" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="link"/>
852                         <field name="amount" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="money" />
853                         <field name="amount_collected" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="money" />
854                         <field name="id" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="id" />
855                         <field name="note" oils_obj:array_position="7" oils_persist:virtual="false"  reporter:datatype="text"/>
856                         <field name="payment_ts" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="timestamp"/>
857                         <field name="xact" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="link"/>
858                         <field name="payment_type" oils_obj:array_position="10" oils_persist:virtual="true"  reporter:datatype="text"/>
859                         <field name="payment" oils_obj:array_position="11" oils_persist:virtual="true" reporter:datatype="link"/>
860                 </fields>
861                 <links>
862                         <link field="payment" reltype="might_have" key="id" map="" class="mp"/>
863                         <link field="accepting_usr" reltype="has_a" key="id" map="" class="au"/>
864                         <link field="xact" reltype="has_a" key="id" map="" class="mbt"/>
865                 </links>
866         </class>
867         <class id="mrd" controller="open-ils.cstore" oils_obj:fieldmapper="metabib::record_descriptor" oils_persist:tablename="metabib.rec_descriptor" reporter:label="Basic Record Descriptor">
868                 <fields oils_persist:primary="id" oils_persist:sequence="metabib.rec_descriptor_id_seq">
869                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
870                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
871                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
872                         <field reporter:label="Audn" name="audience" oils_obj:array_position="3" oils_persist:virtual="false" oils_persist:primitive="string"  reporter:datatype="text"/>
873                         <field reporter:label="BLvl" name="bib_level" oils_obj:array_position="4" oils_persist:virtual="false" oils_persist:primitive="string"  reporter:datatype="text"/>
874                         <field reporter:label="Cat Form" name="cat_form" oils_obj:array_position="5" oils_persist:virtual="false" oils_persist:primitive="string"  reporter:datatype="text"/>
875                         <field reporter:label="Character Encoding" name="char_encoding" oils_obj:array_position="6" oils_persist:virtual="false" oils_persist:primitive="string"  reporter:datatype="text"/>
876                         <field reporter:label="Ctrl" name="control_type" oils_obj:array_position="7" oils_persist:virtual="false" oils_persist:primitive="string"  reporter:datatype="text"/>
877                         <field reporter:label="ELvl" name="enc_level" oils_obj:array_position="8" oils_persist:virtual="false" oils_persist:primitive="string"  reporter:datatype="text"/>
878                         <field reporter:label="Descriptor ID" name="id" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="id" />
879                         <field reporter:label="Form" name="item_form" oils_obj:array_position="10" oils_persist:virtual="false" oils_persist:primitive="string"  reporter:datatype="text"/>
880                         <field reporter:label="Lang" name="item_lang" oils_obj:array_position="11" oils_persist:virtual="false" oils_persist:primitive="string"  reporter:datatype="text"/>
881                         <field reporter:label="Type" name="item_type" oils_obj:array_position="12" oils_persist:virtual="false" oils_persist:primitive="string"  reporter:datatype="text"/>
882                         <field reporter:label="LitF" name="lit_form" oils_obj:array_position="13" oils_persist:virtual="false" oils_persist:primitive="string"  reporter:datatype="text"/>
883                         <field reporter:label="Pub Status" name="pub_status" oils_obj:array_position="14" oils_persist:virtual="false" oils_persist:primitive="string"  reporter:datatype="text"/>
884                         <field reporter:label="Bib Record Entry" name="record" oils_obj:array_position="15" oils_persist:virtual="false" reporter:datatype="link"/>
885                         <field reporter:label="TMat" name="type_mat" oils_obj:array_position="16" oils_persist:virtual="false" oils_persist:primitive="string"  reporter:datatype="text"/>
886                         <field reporter:label="Video Recording Format" name="vr_format" oils_obj:array_position="17" oils_persist:virtual="false" oils_persist:primitive="string"  reporter:datatype="text"/>
887                 </fields>
888                 <links>
889                         <link field="record" reltype="has_a" key="id" map="" class="bre"/>
890                         <link field="item_lang" reltype="has_a" key="code" map="" class="clm"/>
891                         <link field="item_type" reltype="has_a" key="code" map="" class="citm"/>
892                         <link field="item_form" reltype="has_a" key="code" map="" class="cifm"/>
893                         <link field="audience" reltype="has_a" key="code" map="" class="cam"/>
894                         <link field="lit_form" reltype="has_a" key="code" map="" class="clfm"/>
895                 </links>
896         </class>
897         <class id="ccs" controller="open-ils.cstore" oils_obj:fieldmapper="config::copy_status" oils_persist:tablename="config.copy_status">
898                 <fields oils_persist:primary="id" oils_persist:sequence="config.copy_status_id_seq">
899                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
900                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
901                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
902                         <field name="holdable" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="bool"/>
903                         <field name="id" oils_obj:array_position="4" oils_persist:virtual="false" reporter:selector="name" reporter:datatype="id"/>
904                         <field name="name" oils_obj:array_position="5" oils_persist:virtual="false"  reporter:datatype="text"/>
905                 </fields>
906                 <links/>
907         </class>
908         <class id="ausp" controller="open-ils.cstore" oils_obj:fieldmapper="actor::user_standing_penalty" oils_persist:tablename="actor.usr_standing_penalty">
909                 <fields oils_persist:primary="id" oils_persist:sequence="actor.usr_standing_penalty_id_seq">
910                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
911                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
912                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
913                         <field name="id" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="id" />
914                         <field name="penalty_type" oils_obj:array_position="4" oils_persist:virtual="false"  reporter:datatype="text"/>
915                         <field name="usr" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="link"/>
916                 </fields>
917                 <links>
918                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
919                 </links>
920         </class>
921         <class id="aua" controller="open-ils.cstore" oils_obj:fieldmapper="actor::user_address" oils_persist:tablename="actor.usr_address" reporter:label="User Address">
922                 <fields oils_persist:primary="id" oils_persist:sequence="actor.usr_address_id_seq">
923                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
924                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
925                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
926                         <field reporter:label="Type" name="address_type" oils_obj:array_position="3" oils_persist:virtual="false"  reporter:datatype="text"/>
927                         <field reporter:label="City" name="city" oils_obj:array_position="4" oils_persist:virtual="false"  reporter:datatype="text"/>
928                         <field reporter:label="Country" name="country" oils_obj:array_position="5" oils_persist:virtual="false"  reporter:datatype="text"/>
929                         <field reporter:label="County" name="county" oils_obj:array_position="6" oils_persist:virtual="false"  reporter:datatype="text"/>
930                         <field reporter:label="Address ID" name="id" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="id" />
931                         <field reporter:label="Postal Code" name="post_code" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="text"/>
932                         <field reporter:label="State" name="state" oils_obj:array_position="9" oils_persist:virtual="false"  reporter:datatype="text"/>
933                         <field reporter:label="Street (1)" name="street1" oils_obj:array_position="10" oils_persist:virtual="false"  reporter:datatype="text"/>
934                         <field reporter:label="Street (2)" name="street2" oils_obj:array_position="11" oils_persist:virtual="false"  reporter:datatype="text"/>
935                         <field reporter:label="User" name="usr" oils_obj:array_position="12" oils_persist:virtual="false" reporter:datatype="link"/>
936                         <field reporter:label="Valid Address?" name="valid" oils_obj:array_position="13" oils_persist:virtual="false" reporter:datatype="bool"/>
937                         <field reporter:label="Within City Limits?" name="within_city_limits" oils_obj:array_position="14" oils_persist:virtual="false" reporter:datatype="bool"/>
938                 </fields>
939                 <links>
940                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
941                 </links>
942         </class>
943         <class id="acnn" controller="open-ils.cstore" oils_obj:fieldmapper="asset::call_number_note" oils_persist:tablename="asset.call_number_note">
944                 <fields oils_persist:primary="id" oils_persist:sequence="asset.call_number_note_id_seq">
945                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
946                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
947                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
948                         <field name="call_number" oils_obj:array_position="3" oils_persist:virtual="false" />
949                         <field name="create_date" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="timestamp"/>
950                         <field name="creator" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="link"/>
951                         <field name="id" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="id" />
952                         <field name="pub" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="bool"/>
953                         <field name="title" oils_obj:array_position="8" oils_persist:virtual="false"  reporter:datatype="text"/>
954                         <field name="value" oils_obj:array_position="9" oils_persist:virtual="false"  reporter:datatype="text"/>
955                 </fields>
956                 <links>
957                         <link field="call_number" reltype="has_a" key="id" map="" class="acn"/>
958                 </links>
959         </class>
960         <class id="arn" controller="open-ils.cstore" oils_obj:fieldmapper="authority::record_note" oils_persist:tablename="authority.record_note">
961                 <fields oils_persist:primary="id" oils_persist:sequence="authority.record_note_id_seq">
962                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
963                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
964                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
965                         <field name="create_date" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="timestamp"/>
966                         <field name="creator" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="link"/>
967                         <field name="edit_date" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="timestamp"/>
968                         <field name="editor" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="link"/>
969                         <field name="id" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="id" />
970                         <field name="record" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="link"/>
971                         <field name="value" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="text"/>
972                 </fields>
973                 <links>
974                         <link field="record" reltype="has_a" key="id" map="" class="are"/>
975                 </links>
976         </class>
977         <class id="circ" controller="open-ils.cstore" oils_obj:fieldmapper="action::circulation" oils_persist:tablename="action.circulation" reporter:core="true" reporter:label="Circulation">
978                 <fields oils_persist:primary="id" oils_persist:sequence="money.billable_xact_id_seq">
979                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
980                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
981                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
982                         <field reporter:label="Check In Library" name="checkin_lib" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="org_unit"/>
983                         <field reporter:label="Check In Staff" name="checkin_staff" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="link"/>
984                         <field reporter:label="Check In Date/Time" name="checkin_time" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="timestamp"/>
985                         <field reporter:label="Circulating Library" name="circ_lib" oils_obj:array_position="6" oils_persist:virtual="false"  reporter:datatype="org_unit"/>
986                         <field reporter:label="Circulating Staff" name="circ_staff" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="link"/>
987                         <field reporter:label="Desk Renewal" name="desk_renewal" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="bool"/>
988                         <field reporter:label="Due Date/Time" name="due_date" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="timestamp"/>
989                         <field reporter:label="Circulation Duration" name="duration" oils_obj:array_position="10" oils_persist:virtual="false" reporter:datatype="interval"/>
990                         <field reporter:label="Circ Duration Rule" name="duration_rule" oils_obj:array_position="11" oils_persist:virtual="false" reporter:datatype="link"/>
991                         <field reporter:label="Fine Interval" name="fine_interval" oils_obj:array_position="12" oils_persist:virtual="false" reporter:datatype="interval"/>
992                         <field reporter:label="Circ ID" name="id" oils_obj:array_position="13" oils_persist:virtual="false" reporter:datatype="id" />
993                         <field reporter:label="Max Fine Amount" name="max_fine" oils_obj:array_position="14" oils_persist:virtual="false" reporter:datatype="money" />
994                         <field reporter:label="Max Fine Rule" name="max_fine_rule" oils_obj:array_position="15" oils_persist:virtual="false" reporter:datatype="link"/>
995                         <field reporter:label="OPAC Renewal" name="opac_renewal" oils_obj:array_position="16" oils_persist:virtual="false" reporter:datatype="bool"/>
996                         <field reporter:label="Phone Renewal" name="phone_renewal" oils_obj:array_position="17" oils_persist:virtual="false" reporter:datatype="bool"/>
997                         <field reporter:label="Recurring Fine Amount" name="recuring_fine" oils_obj:array_position="18" oils_persist:virtual="false" reporter:datatype="money" />
998                         <field reporter:label="Recurring Fine Rule" name="recuring_fine_rule" oils_obj:array_position="19" oils_persist:virtual="false" reporter:datatype="link"/>
999                         <field reporter:label="Remaining Renewals" name="renewal_remaining" oils_obj:array_position="20" oils_persist:virtual="false" reporter:datatype="int" />
1000                         <field reporter:label="Fine Stop Reason" name="stop_fines" oils_obj:array_position="21" oils_persist:virtual="false" reporter:datatype="text"/>
1001                         <field reporter:label="Fine Stop Date/Time" name="stop_fines_time" oils_obj:array_position="22" oils_persist:virtual="false" reporter:datatype="timestamp"/>
1002                         <field reporter:label="Circulating Item" name="target_copy" oils_obj:array_position="23" oils_persist:virtual="false" reporter:datatype="link"/>
1003                         <field reporter:label="Patron" name="usr" oils_obj:array_position="24" oils_persist:virtual="false" reporter:datatype="link"/>
1004                         <field reporter:label="Transaction Finish Date/Time" name="xact_finish" oils_obj:array_position="25" oils_persist:virtual="false" reporter:datatype="timestamp" />
1005                         <field reporter:label="Check Out Date/Time" name="xact_start" oils_obj:array_position="26" oils_persist:virtual="false" reporter:datatype="timestamp" />
1006                         <field reporter:label="Transaction Billings" name="billings" oils_obj:array_position="27" oils_persist:virtual="true" reporter:datatype="link"/>
1007                         <field reporter:label="Transaction Payments" name="payments" oils_obj:array_position="28" oils_persist:virtual="true" reporter:datatype="link"/>
1008                         <field reporter:label="Base Transaction" name="billable_transaction" oils_obj:array_position="29" oils_persist:virtual="true" reporter:datatype="link"/>
1009                         <field reporter:label="Circulation Type" name="circ_type" oils_obj:array_position="30" oils_persist:virtual="true" reporter:datatype="text"/>
1010                         <field reporter:label="Billing Totals" name="billing_total" oils_obj:array_position="31" oils_persist:virtual="true" reporter:datatype="money"/>
1011                         <field reporter:label="Payment Totals" name="payment_total" oils_obj:array_position="32" oils_persist:virtual="true" reporter:datatype="money"/>
1012                 </fields>
1013                 <links>
1014                         <link field="billable_transaction" reltype="might_have" key="id" map="" class="mbt"/>
1015                         <link field="circ_staff" reltype="has_a" key="id" map="" class="au"/>
1016                         <link field="checkin_lib" reltype="has_a" key="id" map="" class="aou"/>
1017                         <link field="target_copy" reltype="has_a" key="id" map="" class="acp"/>
1018                         <link field="checkin_staff" reltype="has_a" key="id" map="" class="au"/>
1019                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
1020                         <link field="circ_lib" reltype="has_a" key="id" map="" class="aou"/>
1021                         <link field="payments" reltype="has_many" key="xact" map="" class="mp"/>
1022                         <link field="billings" reltype="has_many" key="xact" map="" class="mb"/>
1023                         <link field="duration_rule" reltype="has_a" key="name" map="" class="crcd"/>
1024                         <link field="max_fine_rule" reltype="has_a" key="name" map="" class="crmf"/>
1025                         <link field="recuring_fine_rule" reltype="has_a" key="name" map="" class="crrf"/>
1026                         <link field="circ_type" reltype="might_have" key="id" map="" class="rcirct"/>
1027                         <link field="billing_total" reltype="might_have" key="xact" map="" class="rxbt"/>
1028                         <link field="payment_total" reltype="might_have" key="xact" map="" class="rxpt"/>
1029                 </links>
1030         </class>
1031         <class id="ccnbi" controller="open-ils.cstore" oils_obj:fieldmapper="container::call_number_bucket_item" oils_persist:tablename="container.call_number_bucket_item">
1032                 <fields oils_persist:primary="id" oils_persist:sequence="container.call_number_bucket_item_id_seq">
1033                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1034                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1035                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1036                         <field name="bucket" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="link"/>
1037                         <field name="id" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="id" />
1038                         <field name="target_call_number" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="link" />
1039                         <field name="create_time" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="timestamp" />
1040                 </fields>
1041                 <links>
1042                         <link field="target_call_number" reltype="has_a" key="id" map="" class="acn"/>
1043                         <link field="bucket" reltype="has_a" key="id" map="" class="ccnb"/>
1044                 </links>
1045         </class>
1046         <class id="cbreb" controller="open-ils.cstore" oils_obj:fieldmapper="container::biblio_record_entry_bucket" oils_persist:tablename="container.biblio_record_entry_bucket">
1047                 <fields oils_persist:primary="id" oils_persist:sequence="container.biblio_record_entry_bucket_id_seq">
1048                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1049                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1050                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1051                         <field name="items" oils_obj:array_position="3" oils_persist:virtual="true" reporter:datatype="link"/>
1052                         <field name="btype" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="text"/>
1053                         <field name="id" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="id" />
1054                         <field name="name" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="text"/>
1055                         <field name="owner" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="link"/>
1056                         <field name="pub" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="bool"/>
1057                         <field name="create_time" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="timestamp" />
1058                 </fields>
1059                 <links>
1060                         <link field="owner" reltype="has_a" key="id" map="" class="au"/>
1061                         <link field="items" reltype="has_many" key="bucket" map="" class="cbrebi"/>
1062                 </links>
1063         </class>
1064         <class id="ahcm" controller="open-ils.cstore" oils_obj:fieldmapper="action::hold_copy_map" oils_persist:tablename="action.hold_copy_map">
1065                 <fields oils_persist:primary="id" oils_persist:sequence="action.hold_copy_map_id_seq">
1066                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1067                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1068                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1069                         <field name="hold" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="link"/>
1070                         <field name="id" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="id" />
1071                         <field name="target_copy" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="link"/>
1072                 </fields>
1073                 <links>
1074                         <link field="hold" reltype="has_a" key="id" map="" class="ahr"/>
1075                         <link field="target_copy" reltype="has_a" key="id" map="" class="acp"/>
1076                 </links>
1077         </class>
1078         <class id="ahn" controller="open-ils.cstore" oils_obj:fieldmapper="action::hold_notification" oils_persist:tablename="action.hold_notification" reporter:label="Hold Notification">
1079                 <fields oils_persist:primary="id" oils_persist:sequence="action.hold_notification_id_seq">
1080                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1081                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1082                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1083                         <field reporter:label="Hold" name="hold" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="link"/>
1084                         <field reporter:label="Notification ID" name="id" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="id" />
1085                         <field reporter:label="Notification Method" name="method" oils_obj:array_position="5" oils_persist:virtual="false"  reporter:datatype="text"/>
1086                         <field reporter:label="Notification Note" name="note" oils_obj:array_position="6" oils_persist:virtual="false"  reporter:datatype="text"/>
1087                         <field reporter:label="Notifying Staff" name="notify_staff" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="link"/>
1088                         <field reporter:label="Notification Date/Time" name="notify_time" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="timestamp"/>
1089                 </fields>
1090                 <links>
1091                         <link field="hold" reltype="has_a" key="id" map="" class="ahr"/>
1092                         <link field="notify_staff" reltype="has_a" key="id" map="" class="au"/>
1093                 </links>
1094         </class>
1095         <class id="acpl" controller="open-ils.cstore" oils_obj:fieldmapper="asset::copy_location" oils_persist:tablename="asset.copy_location" reporter:label="Copy/Shelving Location">
1096                 <fields oils_persist:primary="id" oils_persist:sequence="asset.copy_location_id_seq">
1097                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1098                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1099                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1100                         <field reporter:label="Can Circulate?" name="circulate" oils_obj:array_position="3" oils_persist:virtual="false"  reporter:datatype="bool"/>
1101                         <field reporter:label="Is Holdable?" name="holdable" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="bool"/>
1102                         <field reporter:label="Location ID" name="id" oils_obj:array_position="5" oils_persist:virtual="false" reporter:selector="name" reporter:datatype="id"/>
1103                         <field reporter:label="Name" name="name" oils_obj:array_position="6" oils_persist:virtual="false"  reporter:datatype="text"/>
1104                         <field reporter:label="Is OPAC Visible?" name="opac_visible" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="bool"/>
1105                         <field reporter:label="Owing Org Unit" name="owning_lib" oils_obj:array_position="8" oils_persist:virtual="false"  reporter:datatype="org_unit"/>
1106                 </fields>
1107                 <links>
1108                         <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
1109                 </links>
1110         </class>
1111         <class id="ascecm" controller="open-ils.cstore" oils_obj:fieldmapper="asset::stat_cat_entry_copy_map" oils_persist:tablename="asset.stat_cat_entry_copy_map">
1112                 <fields oils_persist:primary="id" oils_persist:sequence="asset.stat_cat_entry_copy_map_id_seq">
1113                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1114                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1115                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1116                         <field name="id" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="id" />
1117                         <field name="owning_copy" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="link"/>
1118                         <field name="stat_cat" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="link"/>
1119                         <field name="stat_cat_entry" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="link"/>
1120                 </fields>
1121                 <links>
1122                         <link field="owning_copy" reltype="has_a" key="id" map="" class="acp"/>
1123                         <link field="stat_cat_entry" reltype="has_a" key="id" map="" class="asce"/>
1124                         <link field="stat_cat" reltype="has_a" key="id" map="" class="asc"/>
1125                 </links>
1126         </class>
1127         <class id="citm" controller="open-ils.cstore" oils_obj:fieldmapper="config::item_type_map" oils_persist:tablename="config.item_type_map" reporter:label="Item Type Map">
1128                 <fields oils_persist:primary="code" oils_persist:sequence="">
1129                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1130                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1131                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1132                         <field reporter:label="Item Type Code" name="code" oils_obj:array_position="3" oils_persist:virtual="false"  reporter:datatype="text"/>
1133                         <field reporter:label="Item Type" name="value" oils_obj:array_position="4" oils_persist:virtual="false"  reporter:datatype="text"/>
1134                 </fields>
1135                 <links/>
1136         </class>
1137         <class id="aoup" controller="open-ils.cstore" oils_obj:fieldmapper="actor::org_unit_proximity" oils_persist:tablename="actor.org_unit_proximity">
1138                 <fields oils_persist:primary="id" oils_persist:sequence="actor.org_unit_proximity_id_seq">
1139                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1140                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1141                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1142                         <field name="id" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="id" />
1143                         <field name="from_org" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="org_unit"/>
1144                         <field name="to_org" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="org_unit"/>
1145                         <field name="prox" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="int" />
1146                 </fields>
1147                 <links>
1148                         <link field="from_org" reltype="has_a" key="id" map="" class="aou"/>
1149                         <link field="to_org" reltype="has_a" key="id" map="" class="aou"/>
1150                 </links>
1151         </class>
1152         <class id="asv" controller="open-ils.cstore" oils_obj:fieldmapper="action::survey" oils_persist:tablename="action.survey" reporter:label="Survey">
1153                 <fields oils_persist:primary="id" oils_persist:sequence="action.survey_id_seq">
1154                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1155                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1156                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1157                         <field reporter:label="Questions" name="questions" oils_obj:array_position="3" oils_persist:virtual="true" reporter:datatype="link"/>
1158                         <field reporter:label="Responses" name="responses" oils_obj:array_position="4" oils_persist:virtual="true" reporter:datatype="link"/>
1159                         <field reporter:label="Description" name="description" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="text"/>
1160                         <field reporter:label="Survey End Date/Time" name="end_date" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="timestamp"/>
1161                         <field reporter:label="Survey ID" name="id" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="id"/>
1162                         <field reporter:label="Name" name="name" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="text"/>
1163                         <field reporter:label="OPAC Surevey?" name="opac" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="bool"/>
1164                         <field reporter:label="Owning Library" name="owner" oils_obj:array_position="10" oils_persist:virtual="false" reporter:datatype="org_unit"/>
1165                         <field reporter:label="Poll Style?" name="poll" oils_obj:array_position="11" oils_persist:virtual="false" reporter:datatype="bool"/>
1166                         <field reporter:label="Is Required?" name="required" oils_obj:array_position="12" oils_persist:virtual="false" reporter:datatype="bool"/>
1167                         <field reporter:label="Survey Start Date/Time" name="start_date" oils_obj:array_position="13" oils_persist:virtual="false" reporter:datatype="timestamp"/>
1168                         <field reporter:label="Display in User Summary" name="usr_summary" oils_obj:array_position="14" oils_persist:virtual="false" reporter:datatype="bool"/>
1169                 </fields>
1170                 <links>
1171                         <link field="owner" reltype="has_a" key="survey" map="" class="aou"/>
1172                         <link field="responses" reltype="has_many" key="survey" map="" class="asvr"/>
1173                         <link field="questions" reltype="has_many" key="survey" map="" class="asvq"/>
1174                 </links>
1175         </class>
1176         <class id="aoa" controller="open-ils.cstore" oils_obj:fieldmapper="actor::org_address" oils_persist:tablename="actor.org_address">
1177                 <fields oils_persist:primary="id" oils_persist:sequence="actor.org_address_id_seq">
1178                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1179                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1180                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1181                         <field name="address_type" oils_obj:array_position="3" oils_persist:virtual="false"  reporter:datatype="text"/>
1182                         <field name="city" oils_obj:array_position="4" oils_persist:virtual="false"  reporter:datatype="text"/>
1183                         <field name="country" oils_obj:array_position="5" oils_persist:virtual="false"  reporter:datatype="text"/>
1184                         <field name="county" oils_obj:array_position="6" oils_persist:virtual="false"  reporter:datatype="text"/>
1185                         <field name="id" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="id" />
1186                         <field name="org_unit" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="org_unit"/>
1187                         <field name="post_code" oils_obj:array_position="9" oils_persist:virtual="false"  reporter:datatype="text"/>
1188                         <field name="state" oils_obj:array_position="10" oils_persist:virtual="false"  reporter:datatype="text"/>
1189                         <field name="street1" oils_obj:array_position="11" oils_persist:virtual="false"  reporter:datatype="text"/>
1190                         <field name="street2" oils_obj:array_position="12" oils_persist:virtual="false"  reporter:datatype="text"/>
1191                         <field name="valid" oils_obj:array_position="13" oils_persist:virtual="false" reporter:datatype="bool"/>
1192                 </fields>
1193                 <links>
1194                         <link field="org_unit" reltype="has_a" key="id" map="" class="aou"/>
1195                 </links>
1196         </class>
1197         <class id="ahr" controller="open-ils.cstore" oils_obj:fieldmapper="action::hold_request" oils_persist:tablename="action.hold_request" reporter:core="true" reporter:label="Hold Request">
1198                 <fields oils_persist:primary="id" oils_persist:sequence="action.hold_request_id_seq">
1199                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1200                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1201                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1202                         <field name="status" oils_obj:array_position="3" oils_persist:virtual="true" />
1203                         <field reporter:label="Transit" name="transit" oils_obj:array_position="4" oils_persist:virtual="true" />
1204                         <field reporter:label="Capture Date/Time" name="capture_time" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="timestamp"/>
1205                         <field reporter:label="Currently Targeted Copy" name="current_copy" oils_obj:array_position="6" oils_persist:virtual="false" />
1206                         <field reporter:label="Notify by Email?" name="email_notify" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="bool"/>
1207                         <field reporter:label="Hold Expire Date/Time" name="expire_time" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="timestamp"/>
1208                         <field reporter:label="Fulfilling Library" name="fulfillment_lib" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="org_unit"/>
1209                         <field reporter:label="Fulfilling Staff" name="fulfillment_staff" oils_obj:array_position="10" oils_persist:virtual="false" />
1210                         <field reporter:label="Fulfillment Date/Time" name="fulfillment_time" oils_obj:array_position="11" oils_persist:virtual="false" reporter:datatype="timestamp"/>
1211                         <field reporter:label="Hold Type" name="hold_type" oils_obj:array_position="12" oils_persist:virtual="false" reporter:datatype="text"/>
1212                         <field reporter:label="Holdable Formats (for M-type hold)" name="holdable_formats" oils_obj:array_position="13" oils_persist:virtual="false" reporter:datatype="text"/>
1213                         <field reporter:label="Hold ID" name="id" oils_obj:array_position="14" oils_persist:virtual="false" reporter:datatype="id" />
1214                         <field reporter:label="Notifications Phone Number" name="phone_notify" oils_obj:array_position="15" oils_persist:virtual="false" reporter:datatype="text"/>
1215                         <field reporter:label="Pickup Library" name="pickup_lib" oils_obj:array_position="16" oils_persist:virtual="false" reporter:datatype="org_unit"/>
1216                         <field reporter:label="Last Targeting Date/Time" name="prev_check_time" oils_obj:array_position="17" oils_persist:virtual="false" reporter:datatype="timestamp"/>
1217                         <field reporter:label="Requesting Library" name="request_lib" oils_obj:array_position="18" oils_persist:virtual="false" reporter:datatype="org_unit"/>
1218                         <field reporter:label="Request Date/Time" name="request_time" oils_obj:array_position="19" oils_persist:virtual="false" reporter:datatype="timestamp"/>
1219                         <field reporter:label="Requesting User" name="requestor" oils_obj:array_position="20" oils_persist:virtual="false" reporter:datatype="link"/>
1220                         <field reporter:label="Item Selection Depth" name="selection_depth" oils_obj:array_position="21" oils_persist:virtual="false" />
1221                         <field reporter:label="Selection Locus" name="selection_ou" oils_obj:array_position="22" oils_persist:virtual="false" reporter:datatype="org_unit"/>
1222                         <field reporter:label="Target Object ID" name="target" oils_obj:array_position="23" oils_persist:virtual="false" reporter:datatype="link"/>
1223                         <field reporter:label="Hold User" name="usr" oils_obj:array_position="24" oils_persist:virtual="false" reporter:datatype="link"/>
1224                         <field reporter:label="Hold Cancel Date/Time" name="cancel_time" oils_obj:array_position="25" oils_persist:virtual="false" reporter:datatype="timestamp"/>
1225                         <field name="notify_time" oils_obj:array_position="26" oils_persist:virtual="true" reporter:datatype="timestamp"/>
1226                         <field name="notify_count" oils_obj:array_position="27" oils_persist:virtual="true" reporter:datatype="int" />
1227                         <field reporter:label="Notifications" name="notifications" oils_obj:array_position="28" oils_persist:virtual="true" reporter:datatype="link"/>
1228                         <field reporter:label="Bib Record link" name="bib_rec" oils_obj:array_position="29" oils_persist:virtual="true" reporter:datatype="link"/>
1229                         <field reporter:label="Eligible Copies" name="eligible_copies" oils_obj:array_position="30" oils_persist:virtual="true" reporter:datatype="link"/>
1230                         <field reporter:label="Currently Frozen" name="frozen" oils_obj:array_position="31" oils_persist:virtual="false" reporter:datatype="bool"/>
1231                 </fields>
1232                 <links>
1233                         <link field="fulfillment_lib" reltype="has_a" key="id" map="" class="aou"/>
1234                         <link field="fulfillment_staff" reltype="has_a" key="id" map="" class="au"/>
1235                         <link field="pickup_lib" reltype="has_a" key="id" map="" class="aou"/>
1236                         <link field="selection_ou" reltype="has_a" key="id" map="" class="aou"/>
1237                         <link field="requestor" reltype="has_a" key="id" map="" class="au"/>
1238                         <link field="current_copy" reltype="has_a" key="id" map="" class="acp"/>
1239                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
1240                         <link field="request_lib" reltype="has_a" key="id" map="" class="aou"/>
1241                         <link field="transit" reltype="might_have" key="hold" map="" class="ahtc"/>
1242                         <link field="notifications" reltype="has_many" key="hold" map="" class="ahn"/>
1243                         <link field="eligible_copies" reltype="has_many" key="hold" map="target_copy" class="ahcm"/>
1244                         <link field="bib_rec" reltype="might_have" key="id" map="" class="rhrr"/>
1245                 </links>
1246         </class>
1247         <class id="aou" controller="open-ils.cstore" oils_obj:fieldmapper="actor::org_unit" oils_persist:tablename="actor.org_unit" reporter:label="Organizational Unit">
1248                 <fields oils_persist:primary="id" oils_persist:sequence="actor.org_unit_id_seq">
1249                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1250                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1251                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1252                         <field reporter:label="Subordinate Organizational Units" name="children" oils_obj:array_position="3" oils_persist:virtual="true" reporter:datatype="org_unit"/>
1253                         <field reporter:label="Billing Address" name="billing_address" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="link"/>
1254                         <field reporter:label="Holds Recieving Address" name="holds_address" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="link"/>
1255                         <field reporter:label="Organizational Unit ID" name="id" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="org_unit"/>
1256                         <field reporter:label="ILL Recieving Address" name="ill_address" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="link"/>
1257                         <field reporter:label="Mailling Address" name="mailing_address" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="link"/>
1258                         <field reporter:label="Name" name="name" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="text"/>
1259                         <field reporter:label="Organizational Unit Type" name="ou_type" oils_obj:array_position="10" oils_persist:virtual="false" reporter:datatype="link"/>
1260                         <field reporter:label="Parent Organizational Unit" name="parent_ou" oils_obj:array_position="11" oils_persist:virtual="false" reporter:datatype="link"/>
1261                         <field reporter:label="Short (Policy) Name" name="shortname" oils_obj:array_position="12" oils_persist:virtual="false" reporter:datatype="text"/>
1262                         <field reporter:label="EMail Address" name="email" oils_obj:array_position="13" oils_persist:virtual="false" reporter:datatype="text"/>
1263                         <field reporter:label="Phone Number" name="phone" oils_obj:array_position="14" oils_persist:virtual="false" reporter:datatype="text"/>
1264                         <field reporter:label="OPAC Visible" name="opac_visible" oils_obj:array_position="15" oils_persist:virtual="false" reporter:datatype="bool"/>
1265                 </fields>
1266                 <links>
1267                         <link field="billing_address" reltype="has_a" key="id" map="" class="aoa"/>
1268                         <link field="holds_address" reltype="has_a" key="id" map="" class="aoa"/>
1269                         <link field="ou_type" reltype="has_a" key="id" map="" class="aout"/>
1270                         <link field="mailing_address" reltype="has_a" key="id" map="" class="aoa"/>
1271                         <link field="parent_ou" reltype="has_a" key="id" map="" class="aou"/>
1272                         <link field="ill_address" reltype="has_a" key="id" map="" class="aoa"/>
1273                         <link field="users" reltype="has_many" key="home_ou" map="" class="au"/>
1274                         <link field="closed_dates" reltype="has_many" key="org_unit" map="" class="aoucd"/>
1275                         <link field="children" reltype="has_many" key="parent_ou" map="" class="aou"/>
1276                         <link field="circulations" reltype="has_many" key="circ_lib" map="" class="circ"/>
1277                         <link field="settings" reltype="has_many" key="org_unit" map="" class="aous"/>
1278                         <link field="addresses" reltype="has_many" key="org_unit" map="" class="aoa"/>
1279                         <link field="checkins" reltype="has_many" key="checkin_lib" map="" class="circ"/>
1280                         <link field="workstations" reltype="has_many" key="owning_lib" map="" class="aws"/>
1281                 </links>
1282         </class>
1283         <class id="ccnb" controller="open-ils.cstore" oils_obj:fieldmapper="container::call_number_bucket" oils_persist:tablename="container.call_number_bucket">
1284                 <fields oils_persist:primary="id" oils_persist:sequence="container.call_number_bucket_id_seq">
1285                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1286                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1287                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1288                         <field name="items" oils_obj:array_position="3" oils_persist:virtual="true" reporter:datatype="link"/>
1289                         <field name="btype" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="text"/>
1290                         <field name="id" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="id" />
1291                         <field name="name" oils_obj:array_position="6" oils_persist:virtual="false"  reporter:datatype="text"/>
1292                         <field name="owner" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="link"/>
1293                         <field name="pub" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="bool"/>
1294                         <field name="create_time" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="timestamp" />
1295                 </fields>
1296                 <links>
1297                         <link field="owner" reltype="has_a" key="id" map="" class="au"/>
1298                         <link field="items" reltype="has_many" key="bucket" map="" class="ccnbi"/>
1299                 </links>
1300         </class>
1301         <class id="asc" controller="open-ils.cstore" oils_obj:fieldmapper="asset::stat_cat" oils_persist:tablename="asset.stat_cat" reporter:label="Asset Statistical Category">
1302                 <fields oils_persist:primary="id" oils_persist:sequence="asset.stat_cat_id_seq">
1303                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1304                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1305                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1306                         <field reporter:label="Entries" name="entries" oils_obj:array_position="3" oils_persist:virtual="true" reporter:datatype="link"/>
1307                         <field reporter:label="Stat Cat ID" name="id" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="id" reporter:selector="name"/>
1308                         <field reporter:label="Name" name="name" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="text"/>
1309                         <field reporter:label="OPAC Visible" name="opac_visible" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="bool"/>
1310                         <field reporter:label="Owning Library" name="owner" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="org_unit"/>
1311                 </fields>
1312                 <links>
1313                         <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
1314                         <link field="entries" reltype="has_many" key="stat_cat" map="" class="asce"/>
1315                 </links>
1316         </class>
1317         <class id="ac" controller="open-ils.cstore" oils_obj:fieldmapper="actor::card" oils_persist:tablename="actor.card" reporter:label="Library Card">
1318                 <fields oils_persist:primary="id" oils_persist:sequence="actor.card_id_seq">
1319                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1320                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1321                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1322                         <field reporter:label="IsActive?" name="active" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="bool"/>
1323                         <field reporter:label="Barcode" name="barcode" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="text"/>
1324                         <field reporter:label="Card ID" name="id" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="id" />
1325                         <field reporter:label="User" name="usr" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="link"/>
1326                 </fields>
1327                 <links>
1328                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
1329                 </links>
1330         </class>
1331         <class id="actsc" controller="open-ils.cstore" oils_obj:fieldmapper="actor::stat_cat" oils_persist:tablename="actor.stat_cat" reporter:label="User Statistical Category">
1332                 <fields oils_persist:primary="id" oils_persist:sequence="actor.stat_cat_id_seq">
1333                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1334                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1335                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1336                         <field reporter:label="Entries" name="entries" oils_obj:array_position="3" oils_persist:virtual="true" reporter:datatype="link"/>
1337                         <field reporter:label="Stat Cat ID" name="id" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="id" reporter:selector="name"/>
1338                         <field reporter:label="Name" name="name" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="text"/>
1339                         <field reporter:label="OPAC Visible" name="opac_visible" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="bool"/>
1340                         <field reporter:label="Owning Library" name="owner" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="org_unit"/>
1341                 </fields>
1342                 <links>
1343                         <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
1344                         <link field="entries" reltype="has_many" key="stat_cat" map="" class="actsce"/>
1345                 </links>
1346         </class>
1347         <class id="msefe" controller="open-ils.cstore" oils_obj:fieldmapper="metabib::series_field_entry" oils_persist:tablename="metabib.series_field_entry">
1348                 <fields oils_persist:primary="id" oils_persist:sequence="metabib.series_field_entry_id_seq">
1349                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1350                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1351                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1352                         <field name="field" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="link"/>
1353                         <field name="id" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="id" />
1354                         <field name="source" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="link"/>
1355                         <field name="value" oils_obj:array_position="6" oils_persist:virtual="false"  reporter:datatype="text"/>
1356                 </fields>
1357                 <links>
1358                         <link field="source" reltype="has_a" key="id" map="" class="bre"/>
1359                         <link field="field" reltype="has_a" key="id" map="" class="cmf"/>
1360                 </links>
1361         </class>
1362         <class id="cub" controller="open-ils.cstore" oils_obj:fieldmapper="container::user_bucket" oils_persist:tablename="container.user_bucket">
1363                 <fields oils_persist:primary="id" oils_persist:sequence="container.user_bucket_id_seq">
1364                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1365                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1366                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1367                         <field name="items" oils_obj:array_position="3" oils_persist:virtual="true" reporter:datatype="link"/>
1368                         <field name="btype" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="text"/>
1369                         <field name="id" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="id" />
1370                         <field name="name" oils_obj:array_position="6" oils_persist:virtual="false"  reporter:datatype="text"/>
1371                         <field name="owner" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="link"/>
1372                         <field name="pub" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="bool"/>
1373                         <field name="create_time" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="timestamp" />
1374                 </fields>
1375                 <links>
1376                         <link field="owner" reltype="has_a" key="id" map="" class="au"/>
1377                         <link field="items" reltype="has_many" key="bucket" map="" class="cubi"/>
1378                 </links>
1379         </class>
1380         <class id="mcrp" controller="open-ils.cstore" oils_obj:fieldmapper="money::credit_payment" oils_persist:tablename="money.credit_payment" reporter:label="House Credit Payment">
1381                 <fields oils_persist:primary="id" oils_persist:sequence="money.payment_id_seq">
1382                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1383                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1384                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1385                         <field reporter:label="Accepting Staff Member" name="accepting_usr" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="link"/>
1386                         <field reporter:label="Amount" name="amount" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="money" />
1387                         <field reporter:label="Amount Collected" name="amount_collected" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="money" />
1388                         <field reporter:label="Pyament ID" name="id" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="id" />
1389                         <field reporter:label="Payment Note" name="note" oils_obj:array_position="7" oils_persist:virtual="false"  reporter:datatype="text"/>
1390                         <field reporter:label="Payment Timestamp" name="payment_ts" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="timestamp"/>
1391                         <field reporter:label="Transaction" name="xact" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="link"/>
1392                         <field reporter:label="Payment Type" name="payment_type" oils_obj:array_position="10" oils_persist:virtual="true"  reporter:datatype="text"/>
1393                         <field reporter:label="Payment link" name="payment" oils_obj:array_position="11" oils_persist:virtual="true" reporter:datatype="link"/>
1394                 </fields>
1395                 <links>
1396                         <link field="payment" reltype="might_have" key="id" map="" class="mp"/>
1397                         <link field="accepting_usr" reltype="has_a" key="id" map="" class="au"/>
1398                         <link field="xact" reltype="has_a" key="id" map="" class="mbt"/>
1399                 </links>
1400         </class>
1401         <class id="afr" controller="open-ils.cstore" oils_obj:fieldmapper="authority::full_rec" oils_persist:tablename="authority.full_rec">
1402                 <fields oils_persist:primary="id" oils_persist:sequence="authority.full_rec_id_seq">
1403                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1404                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1405                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1406                         <field name="id" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="id" />
1407                         <field name="ind1" oils_obj:array_position="4" oils_persist:virtual="false" />
1408                         <field name="ind2" oils_obj:array_position="5" oils_persist:virtual="false" />
1409                         <field name="record" oils_obj:array_position="6" oils_persist:virtual="false" />
1410                         <field name="subfield" oils_obj:array_position="7" oils_persist:virtual="false" />
1411                         <field name="tag" oils_obj:array_position="8" oils_persist:virtual="false" />
1412                         <field name="value" oils_obj:array_position="9" oils_persist:virtual="false" />
1413                 </fields>
1414                 <links>
1415                         <link field="record" reltype="has_a" key="id" map="" class="are"/>
1416                 </links>
1417         </class>
1418         <class id="cnct" controller="open-ils.cstore" oils_obj:fieldmapper="config::non_cataloged_type" oils_persist:tablename="config.non_cataloged_type" reporter:label="Non-cataloged Type">
1419                 <fields oils_persist:primary="id" oils_persist:sequence="config.non_cataloged_type_id_seq">
1420                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1421                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1422                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1423                         <field reporter:label="Circulation Duration" name="circ_duration" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="interval"/>
1424                         <field reporter:label="Non-cat Type ID" name="id" oils_obj:array_position="4" oils_persist:virtual="false" reporter:selector="name" reporter:datatype="id"/>
1425                         <field reporter:label="In House?" name="in_house" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="bool"/>
1426                         <field reporter:label="Name" name="name" oils_obj:array_position="6" oils_persist:virtual="false"  reporter:datatype="text"/>
1427                         <field reporter:label="Owning Library" name="owning_lib" oils_obj:array_position="7" oils_persist:virtual="false"  reporter:datatype="org_unit"/>
1428                 </fields>
1429                 <links>
1430                         <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
1431                 </links>
1432         </class>
1433         <class id="aout" controller="open-ils.cstore" oils_obj:fieldmapper="actor::org_unit_type" oils_persist:tablename="actor.org_unit_type" reporter:label="Organizational Unit Type">
1434                 <fields oils_persist:primary="id" oils_persist:sequence="actor.org_unit_type_id_seq">
1435                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1436                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1437                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1438                         <field reporter:label="Subordinate Types" name="children" oils_obj:array_position="3" oils_persist:virtual="true" reporter:datatype="link"/>
1439                         <field reporter:label="Can Have Users?" name="can_have_users" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="bool"/>
1440                         <field reporter:label="Can Have Volumes?" name="can_have_vols" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="bool"/>
1441                         <field reporter:label="Type Depth" name="depth" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="int" />
1442                         <field reporter:label="Type ID" name="id" oils_obj:array_position="7" oils_persist:virtual="false" reporter:selector="name" reporter:datatype="id"/>
1443                         <field reporter:label="Type Name" name="name" oils_obj:array_position="8" oils_persist:virtual="false"  reporter:datatype="text"/>
1444                         <field reporter:label="OPAC Label" name="opac_label" oils_obj:array_position="9" oils_persist:virtual="false"  reporter:datatype="text"/>
1445                         <field reporter:label="Parent Type" name="parent" oils_obj:array_position="10" oils_persist:virtual="false" reporter:datatype="link"/>
1446                         <field reporter:label="Org Units" name="org_units" oils_obj:array_position="11" oils_persist:virtual="true"  reporter:datatype="org_unit"/>
1447                 </fields>
1448                 <links>
1449                         <link field="parent" reltype="has_a" key="id" map="" class="aout"/>
1450                         <link field="children" reltype="has_many" key="parent" map="" class="aout"/>
1451                         <link field="org_units" reltype="has_many" key="ou_type" map="" class="aou"/>
1452                 </links>
1453         </class>
1454         <class id="bren" controller="open-ils.cstore" oils_obj:fieldmapper="biblio::record_note" oils_persist:tablename="biblio.record_note">
1455                 <fields oils_persist:primary="id" oils_persist:sequence="biblio.record_note_id_seq">
1456                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1457                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1458                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1459                         <field name="create_date" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="timestamp"/>
1460                         <field name="creator" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="link"/>
1461                         <field name="edit_date" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="timestamp"/>
1462                         <field name="editor" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="link"/>
1463                         <field name="id" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="id" />
1464                         <field name="pub" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="bool"/>
1465                         <field name="record" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="link"/>
1466                         <field name="value" oils_obj:array_position="10" oils_persist:virtual="false"  reporter:datatype="text"/>
1467                 </fields>
1468                 <links>
1469                         <link field="creator" reltype="has_a" key="id" map="" class="au"/>
1470                         <link field="editor" reltype="has_a" key="id" map="" class="au"/>
1471                         <link field="record" reltype="has_a" key="id" map="" class="bre"/>
1472                 </links>
1473         </class>
1474         <class id="mucs" controller="open-ils.cstore" oils_obj:fieldmapper="money::user_circulation_summary" oils_persist:tablename="money.usr_circulation_summary">
1475                 <fields oils_persist:primary="usr" oils_persist:sequence="">
1476                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1477                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1478                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1479                         <field name="balance_owed" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="money" />
1480                         <field name="total_owed" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="money" />
1481                         <field name="total_paid" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="money" />
1482                         <field name="usr" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="link"/>
1483                 </fields>
1484                 <links>
1485                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
1486                 </links>
1487         </class>
1488         <class id="mg" controller="open-ils.cstore" oils_obj:fieldmapper="money::grocery" oils_persist:tablename="money.grocery" reporter:label="Grocery Transaction">
1489                 <fields oils_persist:primary="id" oils_persist:sequence="money.billable_xact_id_seq">
1490                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1491                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1492                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1493                         <field reporter:label="Billing Location" name="billing_location" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="link"/>
1494                         <field reporter:label="Transaction ID" name="id" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="id" />
1495                         <field reporter:label="Note" name="note" oils_obj:array_position="5" oils_persist:virtual="false"  reporter:datatype="text"/>
1496                         <field reporter:label="User" name="usr" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="link"/>
1497                         <field reporter:label="Transaction Finish Timestamp" name="xact_finish" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="timestamp" />
1498                         <field reporter:label="Transaction Start Timestamp" name="xact_start" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="timestamp" />
1499                         <field reporter:label="Billings" name="billings" oils_obj:array_position="9" oils_persist:virtual="true" reporter:datatype="link"/>
1500                         <field reporter:label="Payments" name="payments" oils_obj:array_position="10" oils_persist:virtual="true" reporter:datatype="link"/>
1501                         <field reporter:label="Billable Transaction link" name="billable_transaction" oils_obj:array_position="11" oils_persist:virtual="true" reporter:datatype="link"/>
1502                         <field reporter:label="Billing Totals" name="billing_total" oils_obj:array_position="12" oils_persist:virtual="true" reporter:datatype="money"/>
1503                         <field reporter:label="Payment Totals" name="payment_total" oils_obj:array_position="13" oils_persist:virtual="true" reporter:datatype="money"/>
1504                 </fields>
1505                 <links>
1506                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
1507                         <link field="billable_transaction" reltype="might_have" key="id" map="" class="mbt"/>
1508                         <link field="payments" reltype="has_many" key="xact" map="" class="mp"/>
1509                         <link field="billings" reltype="has_many" key="xact" map="" class="mb"/>
1510                         <link field="billing_location" reltype="has_a" key="id" map="" class="aou"/>
1511                         <link field="billing_total" reltype="might_have" key="xact" map="" class="rxbt"/>
1512                         <link field="payment_total" reltype="might_have" key="xact" map="" class="rxpt"/>
1513                 </links>
1514         </class>
1515         <class id="cbs" controller="open-ils.cstore" oils_obj:fieldmapper="config::bib_source" oils_persist:tablename="config.bib_source">
1516                 <fields oils_persist:primary="id" oils_persist:sequence="config.bib_source_id_seq">
1517                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1518                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1519                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1520                         <field name="id" oils_obj:array_position="3" oils_persist:virtual="false" reporter:selector="source" reporter:datatype="id"/>
1521                         <field name="quality" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="int" />
1522                         <field name="source" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="text"/>
1523                         <field name="transcendant" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="bool"/>
1524                 </fields>
1525                 <links/>
1526         </class>
1527         <class id="mbt" controller="open-ils.cstore" oils_obj:fieldmapper="money::billable_transaction" oils_persist:tablename="money.billable_xact" reporter:label="Billable Transaction">
1528                 <fields oils_persist:primary="id" oils_persist:sequence="money.billable_xact_id_seq">
1529                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1530                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1531                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1532                         <field reporter:label="Transaction ID" name="id" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="id" />
1533                         <field reporter:label="User" name="usr" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="link"/>
1534                         <field reporter:label="Transaction Finish Date/Time" name="xact_finish" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="timestamp"/>
1535                         <field reporter:label="Transaction Start Date/Time" name="xact_start" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="timestamp"/>
1536                         <field reporter:label="Grocery Billing link" name="grocery" oils_obj:array_position="7" oils_persist:virtual="true" reporter:datatype="link"/>
1537                         <field reporter:label="Circulation Billing link" name="circulation" oils_obj:array_position="8" oils_persist:virtual="true" reporter:datatype="link"/>
1538                         <field reporter:label="Billing Line Items" name="billings" oils_obj:array_position="9" oils_persist:virtual="true" reporter:datatype="link"/>
1539                         <field reporter:label="Payment Line Items" name="payments" oils_obj:array_position="10" oils_persist:virtual="true" reporter:datatype="link"/>
1540                         <field reporter:label="Billing Totals" name="billing_total" oils_obj:array_position="11" oils_persist:virtual="true" reporter:datatype="money"/>
1541                         <field reporter:label="Payment Totals" name="payment_total" oils_obj:array_position="12" oils_persist:virtual="true" reporter:datatype="money"/>
1542                 </fields>
1543                 <links>
1544                         <link field="grocery" reltype="might_have" key="id" map="" class="mg"/>
1545                         <link field="circulation" reltype="might_have" key="id" map="" class="circ"/>
1546                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
1547                         <link field="payments" reltype="has_many" key="xact" map="" class="mp"/>
1548                         <link field="billings" reltype="has_many" key="xact" map="" class="mb"/>
1549                         <link field="billing_total" reltype="might_have" key="xact" map="" class="rxbt"/>
1550                         <link field="payment_total" reltype="might_have" key="xact" map="" class="rxpt"/>
1551                 </links>
1552         </class>
1553         <class id="actsce" controller="open-ils.cstore" oils_obj:fieldmapper="actor::stat_cat_entry" oils_persist:tablename="actor.stat_cat_entry" reporter:label="User Stat Cat Entry">
1554                 <fields oils_persist:primary="id" oils_persist:sequence="actor.stat_cat_entry_id_seq">
1555                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1556                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1557                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1558                         <field reporter:label="Entry ID" name="id" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="id" />
1559                         <field reporter:label="Entry Owner" name="owner" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="link"/>
1560                         <field reporter:label="Stat Cat" name="stat_cat" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="link"/>
1561                         <field reporter:label="Entry Value" name="value" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="text"/>
1562                 </fields>
1563                 <links>
1564                         <link field="stat_cat" reltype="has_a" key="id" map="" class="actsc"/>
1565                         <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
1566                 </links>
1567         </class>
1568         <class id="cubi" controller="open-ils.cstore" oils_obj:fieldmapper="container::user_bucket_item" oils_persist:tablename="container.user_bucket_item">
1569                 <fields oils_persist:primary="id" oils_persist:sequence="container.user_bucket_item_id_seq">
1570                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1571                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1572                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1573                         <field name="bucket" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="link"/>
1574                         <field name="id" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="id" />
1575                         <field name="target_user" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="link"/>
1576                         <field name="create_time" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="timestamp" />
1577                 </fields>
1578                 <links>
1579                         <link field="target_user" reltype="has_a" key="id" map="" class="au"/>
1580                         <link field="bucket" reltype="has_a" key="id" map="" class="cub"/>
1581                 </links>
1582         </class>
1583         <class id="mus" controller="open-ils.cstore" oils_obj:fieldmapper="money::user_summary" oils_persist:tablename="money.usr_summary">
1584                 <fields oils_persist:primary="usr" oils_persist:sequence="">
1585                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1586                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1587                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1588                         <field name="balance_owed" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="money" />
1589                         <field name="total_owed" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="money" />
1590                         <field name="total_paid" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="money" />
1591                         <field name="usr" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="link"/>
1592                 </fields>
1593                 <links>
1594                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
1595                 </links>
1596         </class>
1597         <class id="clfm" controller="open-ils.cstore" oils_obj:fieldmapper="config::lit_form_map" oils_persist:tablename="config.lit_form_map" reporter:label="Literary Form">
1598                 <fields oils_persist:primary="code" oils_persist:sequence="">
1599                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1600                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1601                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1602                         <field reporter:label="LitF Code" name="code" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="text"/>
1603                         <field reporter:label="LitF Description" name="description" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="text"/>
1604                         <field reporter:label="LitF Name" name="value" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="text"/>
1605                 </fields>
1606                 <links/>
1607         </class>
1608         <class id="mwp" controller="open-ils.cstore" oils_obj:fieldmapper="money::work_payment" oils_persist:tablename="money.work_payment" reporter:label="Work Payment">
1609                 <fields oils_persist:primary="id" oils_persist:sequence="money.payment_id_seq">
1610                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1611                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1612                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1613                         <field reporter:label="Accepting Staff Member" name="accepting_usr" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="link"/>
1614                         <field reporter:label="Amount" name="amount" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="money" />
1615                         <field reporter:label="Amount Collected" name="amount_collected" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="money" />
1616                         <field reporter:label="Payment ID" name="id" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="id" />
1617                         <field reporter:label="Note" name="note" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="text"/>
1618                         <field reporter:label="Payment Timestamp" name="payment_ts" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="timestamp"/>
1619                         <field reporter:label="Transaction ID" name="xact" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="link"/>
1620                         <field reporter:label="Payment link" name="payment" oils_obj:array_position="10" oils_persist:virtual="true" reporter:datatype="link"/>
1621                         <field reporter:label="Payment Type" name="payment_type" oils_obj:array_position="11" oils_persist:virtual="true" reporter:datatype="text"/>
1622                 </fields>
1623                 <links>
1624                         <link field="payment" reltype="might_have" key="id" map="" class="mp"/>
1625                         <link field="accepting_usr" reltype="has_a" key="id" map="" class="au"/>
1626                         <link field="xact" reltype="has_a" key="id" map="" class="mbt"/>
1627                 </links>
1628         </class>
1629         <class id="aoc" controller="open-ils.cstore" oils_obj:fieldmapper="action::open_circulation" oils_persist:tablename="action.open_circulation">
1630                 <fields oils_persist:primary="id" oils_persist:sequence="">
1631                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1632                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1633                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1634                         <field name="checkin_lib" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="link"/>
1635                         <field name="checkin_staff" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="link"/>
1636                         <field name="checkin_time" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="timestamp"/>
1637                         <field name="circ_lib" oils_obj:array_position="6" oils_persist:virtual="false"  reporter:datatype="org_unit"/>
1638                         <field name="circ_staff" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="link"/>
1639                         <field name="desk_renewal" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="bool"/>
1640                         <field name="due_date" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="timestamp"/>
1641                         <field name="duration" oils_obj:array_position="10" oils_persist:virtual="false" reporter:datatype="interval"/>
1642                         <field name="duration_rule" oils_obj:array_position="11" oils_persist:virtual="false" reporter:datatype="link"/>
1643                         <field name="fine_interval" oils_obj:array_position="12" oils_persist:virtual="false" reporter:datatype="interval"/>
1644                         <field name="id" oils_obj:array_position="13" oils_persist:virtual="false" reporter:datatype="id" />
1645                         <field name="max_fine" oils_obj:array_position="14" oils_persist:virtual="false" reporter:datatype="money" />
1646                         <field name="max_fine_rule" oils_obj:array_position="15" oils_persist:virtual="false" reporter:datatype="link"/>
1647                         <field name="opac_renewal" oils_obj:array_position="16" oils_persist:virtual="false" reporter:datatype="bool"/>
1648                         <field name="phone_renewal" oils_obj:array_position="17" oils_persist:virtual="false" reporter:datatype="bool"/>
1649                         <field name="recuring_fine" oils_obj:array_position="18" oils_persist:virtual="false" reporter:datatype="money" />
1650                         <field name="recuring_fine_rule" oils_obj:array_position="19" oils_persist:virtual="false" reporter:datatype="link"/>
1651                         <field name="renewal_remaining" oils_obj:array_position="20" oils_persist:virtual="false" reporter:datatype="int" />
1652                         <field name="stop_fines" oils_obj:array_position="21" oils_persist:virtual="false" reporter:datatype="text"/>
1653                         <field name="stop_fines_time" oils_obj:array_position="22" oils_persist:virtual="false" reporter:datatype="timestamp"/>
1654                         <field name="target_copy" oils_obj:array_position="23" oils_persist:virtual="false" reporter:datatype="link"/>
1655                         <field name="usr" oils_obj:array_position="24" oils_persist:virtual="false" reporter:datatype="link"/>
1656                         <field name="xact_finish" oils_obj:array_position="25" oils_persist:virtual="false" reporter:datatype="timestamp" />
1657                         <field name="xact_start" oils_obj:array_position="26" oils_persist:virtual="false" reporter:datatype="timestamp" />
1658                         <field name="circulation" oils_obj:array_position="27" oils_persist:virtual="true" reporter:datatype="link"/>
1659                 </fields>
1660                 <links>
1661                         <link field="circulation" reltype="might_have" key="id" map="" class="circ"/>
1662                         <link field="duration_rule" reltype="has_a" key="name" map="" class="crcd"/>
1663                         <link field="max_fine_rule" reltype="has_a" key="name" map="" class="crmf"/>
1664                         <link field="recuring_fine_rule" reltype="has_a" key="name" map="" class="crrf"/>
1665                 </links>
1666         </class>
1667         <class id="msfe" controller="open-ils.cstore" oils_obj:fieldmapper="metabib::subject_field_entry" oils_persist:tablename="metabib.subject_field_entry">
1668                 <fields oils_persist:primary="id" oils_persist:sequence="metabib.subject_field_entry_id_seq">
1669                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1670                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1671                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1672                         <field name="field" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="link"/>
1673                         <field name="id" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="id" />
1674                         <field name="source" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="link"/>
1675                         <field name="value" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="text"/>
1676                 </fields>
1677                 <links>
1678                         <link field="source" reltype="has_a" key="id" map="" class="bre"/>
1679                         <link field="field" reltype="has_a" key="id" map="" class="cmf"/>
1680                 </links>
1681         </class>
1682         <class id="crrf" controller="open-ils.cstore" oils_obj:fieldmapper="config::rules::recuring_fine" oils_persist:tablename="config.rule_recuring_fine">
1683                 <fields oils_persist:primary="id" oils_persist:sequence="config.rule_recuring_fine_id_seq">
1684                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1685                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1686                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1687                         <field name="high" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="money" />
1688                         <field name="id" oils_obj:array_position="4" oils_persist:virtual="false" reporter:selector="name" reporter:datatype="id"/>
1689                         <field name="low" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="money" />
1690                         <field name="name" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="text"/>
1691                         <field name="normal" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="money" />
1692                         <field name="recurance_interval" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="interval"/>
1693                 </fields>
1694                 <links/>
1695         </class>
1696         <class id="mckp" controller="open-ils.cstore" oils_obj:fieldmapper="money::check_payment" oils_persist:tablename="money.check_payment" reporter:label="Check Payment">
1697                 <fields oils_persist:primary="id" oils_persist:sequence="money.payment_id_seq">
1698                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1699                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1700                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1701                         <field reporter:label="Accepting Staff Member" name="accepting_usr" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="link"/>
1702                         <field reporter:label="Amount" name="amount" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="money" />
1703                         <field reporter:label="Amount Collected" name="amount_collected" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="money" />
1704                         <field reporter:label="Workstation link" name="cash_drawer" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="link"/>
1705                         <field reporter:label="Check Number" name="check_number" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="int" />
1706                         <field reporter:label="Payment ID" name="id" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="id" />
1707                         <field reporter:label="Note" name="note" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="text"/>
1708                         <field reporter:label="Payment Timestamp" name="payment_ts" oils_obj:array_position="10" oils_persist:virtual="false" reporter:datatype="timestamp"/>
1709                         <field reporter:label="Transaction link" name="xact" oils_obj:array_position="11" oils_persist:virtual="false" reporter:datatype="link"/>
1710                         <field reporter:label="Payment link" name="payment" oils_obj:array_position="12" oils_persist:virtual="true" reporter:datatype="link"/>
1711                         <field reporter:label="Payment Type" name="payment_type" oils_obj:array_position="13" oils_persist:virtual="true" reporter:datatype="text"/>
1712                 </fields>
1713                 <links>
1714                         <link field="payment" reltype="might_have" key="id" map="" class="mp"/>
1715                         <link field="accepting_usr" reltype="has_a" key="id" map="" class="au"/>
1716                         <link field="cash_drawer" reltype="has_a" key="id" map="" class="aws"/>
1717                         <link field="xact" reltype="has_a" key="id" map="" class="mbt"/>
1718                 </links>
1719         </class>
1720         <class id="acp" controller="open-ils.cstore" oils_obj:fieldmapper="asset::copy" oils_persist:tablename="asset.copy" reporter:core="true" reporter:label="Item">
1721                 <fields oils_persist:primary="id" oils_persist:sequence="asset.copy_id_seq">
1722                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1723                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1724                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1725                         <field reporter:label="Statistical Catagory Entries" name="stat_cat_entries" oils_obj:array_position="3" oils_persist:virtual="true" reporter:datatype="link"/>
1726                         <field reporter:label="Age Hold Protection" name="age_protect" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="link"/>
1727                         <field reporter:label="Alert Message" name="alert_message" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="text"/>
1728                         <field reporter:label="Barcode" name="barcode" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="text"/>
1729                         <field reporter:label="Call Number/Volume" name="call_number" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="link"/>
1730                         <field reporter:label="Circulation Type (MARC)" name="circ_as_type" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="text"/>
1731                         <field reporter:label="Circulating Library" name="circ_lib" oils_obj:array_position="9" oils_persist:virtual="false"  reporter:datatype="org_unit"/>
1732                         <field reporter:label="Circulation Modifier" name="circ_modifier" oils_obj:array_position="10" oils_persist:virtual="false" reporter:datatype="text"/>
1733                         <field reporter:label="Can Circulate" name="circulate" oils_obj:array_position="11" oils_persist:virtual="false" reporter:datatype="bool"/>
1734                         <field reporter:label="Copy Number on Volume" name="copy_number" oils_obj:array_position="12" oils_persist:virtual="false" reporter:datatype="text"/>
1735                         <field reporter:label="Creation Date/Time" name="create_date" oils_obj:array_position="13" oils_persist:virtual="false" reporter:datatype="timestamp"/>
1736                         <field reporter:label="Creating User" name="creator" oils_obj:array_position="14" oils_persist:virtual="false" reporter:datatype="link"/>
1737                         <field reporter:label="Is Deleted" name="deleted" oils_obj:array_position="15" oils_persist:virtual="false" reporter:datatype="bool"/>
1738                         <field reporter:label="Is Deposit Required" name="deposit" oils_obj:array_position="16" oils_persist:virtual="false" reporter:datatype="bool"/>
1739                         <field reporter:label="Deposit Amount" name="deposit_amount" oils_obj:array_position="17" oils_persist:virtual="false" reporter:datatype="money" />
1740                         <field reporter:label="Precat Dummy Author" name="dummy_author" oils_obj:array_position="18" oils_persist:virtual="false" reporter:datatype="text"/>
1741                         <field reporter:label="Precat Dummy Title" name="dummy_title" oils_obj:array_position="19" oils_persist:virtual="false" reporter:datatype="text"/>
1742                         <field reporter:label="Last Edit Date/Time" name="edit_date" oils_obj:array_position="20" oils_persist:virtual="false" reporter:datatype="timestamp"/>
1743                         <field reporter:label="Last Editing User" name="editor" oils_obj:array_position="21" oils_persist:virtual="false" reporter:datatype="link"/>
1744                         <field reporter:label="Fine Level" name="fine_level" oils_obj:array_position="22" oils_persist:virtual="false" reporter:datatype="int"/>
1745                         <field reporter:label="Is Holdable" name="holdable" oils_obj:array_position="23" oils_persist:virtual="false" reporter:datatype="bool" />
1746                         <field reporter:label="Copy ID" name="id" oils_obj:array_position="24" oils_persist:virtual="false" reporter:datatype="id"/>
1747                         <field reporter:label="Loan Duration" name="loan_duration" oils_obj:array_position="25" oils_persist:virtual="false" reporter:datatype="int"/>
1748                         <field reporter:label="Shelving Location" name="location" oils_obj:array_position="26" oils_persist:virtual="false" reporter:datatype="link"/>
1749                         <field reporter:label="OPAC Visible" name="opac_visible" oils_obj:array_position="27" oils_persist:virtual="false" reporter:datatype="bool" />
1750                         <field reporter:label="Price" name="price" oils_obj:array_position="28" oils_persist:virtual="false" reporter:datatype="money" />
1751                         <field reporter:label="Is Reference" name="ref" oils_obj:array_position="29" oils_persist:virtual="false" reporter:datatype="bool"/>
1752                         <field reporter:label="Copy Status" name="status" oils_obj:array_position="30" oils_persist:virtual="false" reporter:datatype="link"/>
1753                         <field reporter:label="Copy Notes" name="notes" oils_obj:array_position="31" oils_persist:virtual="true" reporter:datatype="link"/>
1754                         <field reporter:label="Stat-Cat entry maps" name="stat_cat_entry_copy_maps" oils_obj:array_position="32" oils_persist:virtual="true" reporter:datatype="link"/>
1755                         <field reporter:label="Circulations" name="circulations" oils_obj:array_position="33" oils_persist:virtual="true" reporter:datatype="link"/>
1756                 </fields>
1757                 <links>
1758                         <link field="age_protect" reltype="has_a" key="id" map="" class="crahp"/>
1759                         <link field="call_number" reltype="has_a" key="id" map="" class="acn"/>
1760                         <link field="location" reltype="has_a" key="id" map="" class="acpl"/>
1761                         <link field="editor" reltype="has_a" key="id" map="" class="au"/>
1762                         <link field="creator" reltype="has_a" key="id" map="" class="au"/>
1763                         <link field="status" reltype="has_a" key="id" map="" class="ccs"/>
1764                         <link field="circ_lib" reltype="has_a" key="id" map="" class="aou"/>
1765                         <link field="holds" reltype="has_many" key="target_copy" map="hold" class="ahcm"/>
1766                         <link field="stat_cat_entry_copy_maps" reltype="has_many" key="owning_copy" map="" class="ascecm"/>
1767                         <link field="notes" reltype="has_many" key="owning_copy" map="" class="acpn"/>
1768                         <link field="stat_cat_entries" reltype="has_many" key="owning_copy" map="stat_cat_entry" class="ascecm"/>
1769                         <link field="circulations" reltype="has_many" key="target_copy" map="" class="circ"/>
1770                 </links>
1771         </class>
1772         <class id="crahp" controller="open-ils.cstore" oils_obj:fieldmapper="config::rules::age_hold_protect" oils_persist:tablename="config.rule_age_hold_protect" reporter:label="Age Hold Protection Rule">
1773                 <fields oils_persist:primary="id" oils_persist:sequence="config.rule_age_hold_protect_id_seq">
1774                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1775                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1776                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1777                         <field reporter:label="Item Age" name="age" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="interval"/>
1778                         <field reporter:label="Rule ID" name="id" oils_obj:array_position="4" oils_persist:virtual="false" reporter:selector="name" reporter:datatype="id"/>
1779                         <field reporter:label="Rule Name" name="name" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="text"/>
1780                         <field reporter:label="Allowed Proximity" name="prox" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="int" />
1781                 </fields>
1782                 <links/>
1783         </class>
1784         <class id="crmf" controller="open-ils.cstore" oils_obj:fieldmapper="config::rules::max_fine" oils_persist:tablename="config.rule_max_fine" reporter:label="Max Fine Rule">
1785                 <fields oils_persist:primary="id" oils_persist:sequence="config.rule_max_fine_id_seq">
1786                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1787                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1788                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1789                         <field reporter:label="Max Fine Amount" name="amount" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="money" />
1790                         <field reporter:label="Rule ID" name="id" oils_obj:array_position="4" oils_persist:virtual="false" reporter:selector="name" reporter:datatype="id"/>
1791                         <field reporter:label="Rule Name" name="name" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="text"/>
1792                 </fields>
1793                 <links/>
1794         </class>
1795         <class id="pgt" controller="open-ils.cstore" oils_obj:fieldmapper="permission::grp_tree" oils_persist:tablename="permission.grp_tree" reporter:label="Permission Group">
1796                 <fields oils_persist:primary="id" oils_persist:sequence="permission.grp_tree_id_seq">
1797                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1798                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1799                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1800                         <field reporter:label="Child Groups" name="children" oils_obj:array_position="3" oils_persist:virtual="true" reporter:datatype="link"/>
1801                         <field reporter:label="Description" name="description" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="text"/>
1802                         <field reporter:label="Group ID" name="id" oils_obj:array_position="5" oils_persist:virtual="false" reporter:selector="name" reporter:datatype="id"/>
1803                         <field reporter:label="Group Name" name="name" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="text"/>
1804                         <field reporter:label="Parent Group" name="parent" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="link"/>
1805                         <field reporter:label="User Expiration Interval" name="perm_interval" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="interval"/>
1806                         <field reporter:label="Required Permission" name="application_perm" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="text"/>
1807                         <field reporter:label="Is User Group" name="usergroup" oils_obj:array_position="10" oils_persist:virtual="false" reporter:datatype="bool"/>
1808                 </fields>
1809                 <links>
1810                         <link field="parent" reltype="has_a" key="id" map="" class="pgt"/>
1811                         <link field="children" reltype="has_many" key="parent" map="" class="pgt"/>
1812                 </links>
1813         </class>
1814         <class id="asva" controller="open-ils.cstore" oils_obj:fieldmapper="action::survey_answer" oils_persist:tablename="action.survey_answer" reporter:label="Survey Answer">
1815                 <fields oils_persist:primary="id" oils_persist:sequence="action.survey_answer_id_seq">
1816                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1817                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1818                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1819                         <field reporter:label="Responses using this Answer" name="responses" oils_obj:array_position="3" oils_persist:virtual="true" reporter:datatype="link"/>
1820                         <field reporter:label="Answer Text" name="answer" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="text"/>
1821                         <field reporter:label="Answer ID" name="id" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="id" />
1822                         <field reporter:label="Question" name="question" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="link"/>
1823                 </fields>
1824                 <links>
1825                         <link field="question" reltype="has_a" key="id" map="" class="asvq"/>
1826                         <link field="responses" reltype="has_many" key="answer" map="" class="asvr"/>
1827                 </links>
1828         </class>
1829         <class id="ancc" controller="open-ils.cstore" oils_obj:fieldmapper="action::non_cataloged_circulation" oils_persist:tablename="action.non_cataloged_circulation" reporter:core="true" reporter:label="Non-cataloged Circulation">
1830                 <fields oils_persist:primary="id" oils_persist:sequence="action.non_cataloged_circulation_id_seq">
1831                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1832                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1833                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1834                         <field reporter:label="Circulating Library" name="circ_lib" oils_obj:array_position="3" oils_persist:virtual="false"  reporter:datatype="org_unit"/>
1835                         <field reporter:label="Circulation Date/Time" name="circ_time" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="timestamp"/>
1836                         <field reporter:label="Non-cat Circulation ID" name="id" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="id" />
1837                         <field reporter:label="Non-cat Item Type" name="item_type" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="link"/>
1838                         <field reporter:label="Patron" name="patron" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="link"/>
1839                         <field reporter:label="Circulating Staff" name="staff" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="link"/>
1840                 </fields>
1841                 <links>
1842                         <link field="item_type" reltype="has_a" key="id" map="" class="cnct"/>
1843                         <link field="staff" reltype="has_a" key="id" map="" class="au"/>
1844                         <link field="patron" reltype="has_a" key="id" map="" class="au"/>
1845                         <link field="circ_lib" reltype="has_a" key="id" map="" class="aou"/>
1846                 </links>
1847         </class>
1848         <class id="moucs" controller="open-ils.cstore" oils_obj:fieldmapper="money::open_user_circulation_summary" oils_persist:tablename="money.open_usr_circulation_summary">
1849                 <fields oils_persist:primary="usr" oils_persist:sequence="">
1850                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1851                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1852                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1853                         <field name="balance_owed" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="money" />
1854                         <field name="total_owed" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="money" />
1855                         <field name="total_paid" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="money" />
1856                         <field name="usr" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="link"/>
1857                 </fields>
1858                 <links>
1859                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
1860                 </links>
1861         </class>
1862         <class id="aufh" controller="open-ils.cstore" oils_obj:fieldmapper="action::unfulfilled_hold_list" oils_persist:tablename="action.unfulfilled_hold_list" reporter:label="Unfulfilled Hold Targets">
1863                 <fields oils_persist:primary="id" oils_persist:sequence="action.unfulfilled_hold_list_id_seq">
1864                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1865                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1866                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1867                         <field reporter:label="Non-fulfilling Library" name="circ_lib" oils_obj:array_position="3" oils_persist:virtual="false"  reporter:datatype="org_unit"/>
1868                         <field reporter:label="Non-fulfilling Copy" name="current_copy" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="link"/>
1869                         <field reporter:label="Retargeting Date/Time" name="fail_time" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="timestamp"/>
1870                         <field reporter:label="Hold" name="hold" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="link"/>
1871                         <field reporter:label="Record ID" name="id" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="id" />
1872                 </fields>
1873                 <links>
1874                         <link field="hold" reltype="has_a" key="id" map="" class="ahr"/>
1875                         <link field="current_copy" reltype="has_a" key="id" map="" class="acp"/>
1876                         <link field="circ_lib" reltype="has_a" key="id" map="" class="aou"/>
1877                 </links>
1878         </class>
1879         <class id="mtfe" controller="open-ils.cstore" oils_obj:fieldmapper="metabib::title_field_entry" oils_persist:tablename="metabib.title_field_entry">
1880                 <fields oils_persist:primary="id" oils_persist:sequence="metabib.title_field_entry_id_seq">
1881                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1882                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1883                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1884                         <field name="field" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="link"/>
1885                         <field name="id" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="id" />
1886                         <field name="source" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="link"/>
1887                         <field name="value" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="text"/>
1888                 </fields>
1889                 <links>
1890                         <link field="source" reltype="has_a" key="id" map="" class="bre"/>
1891                         <link field="field" reltype="has_a" key="id" map="" class="cmf"/>
1892                 </links>
1893         </class>
1894         <class id="actscecm" controller="open-ils.cstore" oils_obj:fieldmapper="actor::stat_cat_entry_user_map" oils_persist:tablename="actor.stat_cat_entry_usr_map"  reporter:label="User Statistical Category Entry">
1895                 <fields oils_persist:primary="id" oils_persist:sequence="actor.stat_cat_entry_usr_map_id_seq">
1896                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1897                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1898                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1899                         <field reporter:label="Entry ID" name="id" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="id" />
1900                         <field reporter:label="Statistical Category" name="stat_cat" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="link"/>
1901                         <field reporter:label="Entry Text" name="stat_cat_entry" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="text"/>
1902                         <field reporter:label="User" name="target_usr" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="link"/>
1903                 </fields>
1904                 <links>
1905                         <link field="target_usr" reltype="has_a" key="id" map="" class="au"/>
1906                         <link field="stat_cat" reltype="has_a" key="id" map="" class="actsc"/>
1907                 </links>
1908         </class>
1909         <class id="pgpm" controller="open-ils.cstore" oils_obj:fieldmapper="permission::grp_perm_map" oils_persist:tablename="permission.grp_perm_map">
1910                 <fields oils_persist:primary="id" oils_persist:sequence="permission.grp_perm_map_id_seq">
1911                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1912                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1913                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1914                         <field name="depth" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="int" />
1915                         <field name="grantable" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="bool"/>
1916                         <field name="grp" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="link"/>
1917                         <field name="id" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="id" />
1918                         <field name="perm" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="link"/>
1919                 </fields>
1920                 <links>
1921                         <link field="grp" reltype="has_a" key="id" map="" class="pgt"/>
1922                         <link field="perm" reltype="has_a" key="id" map="" class="ppl"/>
1923                 </links>
1924         </class>
1925         <class id="ccb" controller="open-ils.cstore" oils_obj:fieldmapper="container::copy_bucket" oils_persist:tablename="container.copy_bucket">
1926                 <fields oils_persist:primary="id" oils_persist:sequence="container.copy_bucket_id_seq">
1927                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1928                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1929                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1930                         <field name="items" oils_obj:array_position="3" oils_persist:virtual="true" />
1931                         <field name="btype" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="text"/>
1932                         <field name="id" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="id" />
1933                         <field name="name" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="text"/>
1934                         <field name="owner" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="link"/>
1935                         <field name="pub" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="bool"/>
1936                         <field name="create_time" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="timestamp" />
1937                 </fields>
1938                 <links>
1939                         <link field="owner" reltype="has_a" key="id" map="" class="au"/>
1940                         <link field="items" reltype="has_many" key="bucket" map="" class="ccbi"/>
1941                 </links>
1942         </class>
1943         <class id="puwoum" controller="open-ils.cstore" oils_obj:fieldmapper="permission::usr_work_ou_map" oils_persist:tablename="permission.usr_work_ou_map">
1944                 <fields oils_persist:primary="id" oils_persist:sequence="permission.usr_work_ou_map_id_seq">
1945                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1946                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1947                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1948                         <field name="id" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="int" />
1949                         <field name="usr" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="link"/>
1950                         <field name="work_ou" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="link"/>
1951                 </fields>
1952                 <links>
1953                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
1954                         <link field="work_ou" reltype="has_a" key="id" map="" class="aou"/>
1955                 </links>
1956         </class>
1957         <class id="pupm" controller="open-ils.cstore" oils_obj:fieldmapper="permission::usr_perm_map" oils_persist:tablename="permission.usr_perm_map">
1958                 <fields oils_persist:primary="id" oils_persist:sequence="permission.usr_perm_map_id_seq">
1959                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1960                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1961                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1962                         <field name="depth" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="int"/>
1963                         <field name="grantable" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="bool"/>
1964                         <field name="id" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="id" />
1965                         <field name="perm" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="link"/>
1966                         <field name="usr" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="link"/>
1967                 </fields>
1968                 <links>
1969                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
1970                         <link field="perm" reltype="has_a" key="id" map="" class="ppl"/>
1971                 </links>
1972         </class>
1973         <class id="mp" controller="open-ils.cstore" oils_obj:fieldmapper="money::payment" oils_persist:tablename="money.payment_view" reporter:core="true" reporter:label="Payments: All">
1974                 <fields oils_persist:primary="id" oils_persist:sequence="">
1975                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1976                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1977                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1978                         <field reporter:label="Amount" name="amount" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="money" />
1979                         <field reporter:label="Payment ID" name="id" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="id" />
1980                         <field reporter:label="Note" name="note" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="text"/>
1981                         <field reporter:label="Payment Date/Time" name="payment_ts" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="timestamp"/>
1982                         <field reporter:label="Payment Type" name="payment_type" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="text"/>
1983                         <field reporter:label="Billable Transaction" name="xact" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="link"/>
1984                         <field reporter:label="Voided?" name="voided" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="bool"/>
1985                         <field reporter:label="Cash Payment Detail" name="cash_payment" oils_obj:array_position="10" oils_persist:virtual="true" reporter:datatype="link"/>
1986                         <field reporter:label="Credit Card Payment Detail" name="credit_card_payment" oils_obj:array_position="11" oils_persist:virtual="true" reporter:datatype="link"/>
1987                         <field reporter:label="Credit Payment Detail" name="credit_payment" oils_obj:array_position="12" oils_persist:virtual="true" reporter:datatype="link"/>
1988                         <field reporter:label="Check Payment Detail" name="check_payment" oils_obj:array_position="13" oils_persist:virtual="true" reporter:datatype="link"/>
1989                         <field reporter:label="Work Payment Detail" name="work_payment" oils_obj:array_position="14" oils_persist:virtual="true" reporter:datatype="link"/>
1990                         <field reporter:label="Forgive Payment Detail" name="forgive_payment" oils_obj:array_position="15" oils_persist:virtual="true" reporter:datatype="link"/>
1991                 </fields>
1992                 <links>
1993                         <link field="cash_payment" reltype="might_have" key="id" map="" class="mcp"/>
1994                         <link field="credit_card_payment" reltype="might_have" key="id" map="" class="mccp"/>
1995                         <link field="credit_payment" reltype="might_have" key="id" map="" class="mcrp"/>
1996                         <link field="check_payment" reltype="might_have" key="id" map="" class="mckp"/>
1997                         <link field="work_payment" reltype="might_have" key="id" map="" class="mwp"/>
1998                         <link field="forgive_payment" reltype="might_have" key="id" map="" class="mfp"/>
1999                         <link field="xact" reltype="has_a" key="id" map="" class="mbt"/>
2000                 </links>
2001         </class>
2002         <class id="mbp" controller="open-ils.cstore" oils_obj:fieldmapper="money::bnm_payment" oils_persist:tablename="money.bnm_payment_view" reporter:core="true" reporter:label="Payments: Brick-and-mortar">
2003                 <fields oils_persist:primary="id" oils_persist:sequence="">
2004                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
2005                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
2006                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
2007                         <field reporter:label="Amount" name="amount" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="money" />
2008                         <field reporter:label="Payment ID" name="id" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="id" />
2009                         <field reporter:label="Note" name="note" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="text"/>
2010                         <field reporter:label="Payment Date/Time" name="payment_ts" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="timestamp"/>
2011                         <field reporter:label="Payment Type" name="payment_type" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="text"/>
2012                         <field reporter:label="Billable Transaction" name="xact" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="link"/>
2013                         <field reporter:label="Voided?" name="voided" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="bool"/>
2014                         <field reporter:label="Cash Payment Detail" name="cash_payment" oils_obj:array_position="10" oils_persist:virtual="true" reporter:datatype="link"/>
2015                         <field reporter:label="Credit Card Payment Detail" name="credit_card_payment" oils_obj:array_position="11" oils_persist:virtual="true" reporter:datatype="link"/>
2016                         <field reporter:label="Credit Payment Detail" name="credit_payment" oils_obj:array_position="12" oils_persist:virtual="true" reporter:datatype="link"/>
2017                         <field reporter:label="Check Payment Detail" name="check_payment" oils_obj:array_position="13" oils_persist:virtual="true" reporter:datatype="link"/>
2018                         <field reporter:label="Work Payment Detail" name="work_payment" oils_obj:array_position="14" oils_persist:virtual="true" reporter:datatype="link"/>
2019                         <field reporter:label="Forgive Payment Detail" name="forgive_payment" oils_obj:array_position="15" oils_persist:virtual="true" reporter:datatype="link"/>
2020                 </fields>
2021                 <links>
2022                         <link field="cash_payment" reltype="might_have" key="id" map="" class="mcp"/>
2023                         <link field="credit_card_payment" reltype="might_have" key="id" map="" class="mccp"/>
2024                         <link field="credit_payment" reltype="might_have" key="id" map="" class="mcrp"/>
2025                         <link field="check_payment" reltype="might_have" key="id" map="" class="mckp"/>
2026                         <link field="work_payment" reltype="might_have" key="id" map="" class="mwp"/>
2027                         <link field="forgive_payment" reltype="might_have" key="id" map="" class="mfp"/>
2028                         <link field="xact" reltype="has_a" key="id" map="" class="mbt"/>
2029                 </links>
2030         </class>
2031         <class id="mndp" controller="open-ils.reporter" oils_obj:fieldmapper="money::non_drawer_payment" oils_persist:tablename="money.non_drawer_payment_view" reporter:core="true" reporter:label="Payments: Non-drawer Staff">
2032                 <fields oils_persist:primary="id" oils_persist:sequence="">
2033                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
2034                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
2035                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
2036                         <field reporter:label="Amount" name="amount" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="money" />
2037                         <field reporter:label="Payment ID" name="id" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="id" />
2038                         <field reporter:label="Note" name="note" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="text"/>
2039                         <field reporter:label="Payment Date/Time" name="payment_ts" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="timestamp"/>
2040                         <field reporter:label="Payment Type" name="payment_type" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="text"/>
2041                         <field reporter:label="Billable Transaction" name="xact" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="link"/>
2042                         <field reporter:label="Voided?" name="voided" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="bool"/>
2043                         <field reporter:label="Work Payment Detail" name="work_payment" oils_obj:array_position="10" oils_persist:virtual="true" reporter:datatype="link"/>
2044                         <field reporter:label="Forgive Payment Detail" name="forgive_payment" oils_obj:array_position="11" oils_persist:virtual="true" reporter:datatype="link"/>
2045                 </fields>
2046                 <links>
2047                         <link field="work_payment" reltype="might_have" key="id" map="" class="mwp"/>
2048                         <link field="forgive_payment" reltype="might_have" key="id" map="" class="mfp"/>
2049                         <link field="xact" reltype="has_a" key="id" map="" class="mbt"/>
2050                 </links>
2051         </class>
2052         <class id="mdp" controller="open-ils.cstore" oils_obj:fieldmapper="money::desk_payment" oils_persist:tablename="money.desk_payment_view" reporter:core="true" reporter:label="Payments: Desk">
2053                 <fields oils_persist:primary="id" oils_persist:sequence="">
2054                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
2055                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
2056                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
2057                         <field reporter:label="Amount" name="amount" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="money" />
2058                         <field reporter:label="Payment ID" name="id" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="id" />
2059                         <field reporter:label="Note" name="note" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="text"/>
2060                         <field reporter:label="Payment Date/Time" name="payment_ts" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="timestamp"/>
2061                         <field reporter:label="Payment Type" name="payment_type" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="text"/>
2062                         <field reporter:label="Billable Transaction" name="xact" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="link"/>
2063                         <field reporter:label="Accepting User" name="accepting_usr" oils_obj:array_position="9" oils_persist:virtual="false" />
2064                         <field reporter:label="Cash Drawer" name="cash_drawer" oils_obj:array_position="10" oils_persist:virtual="false" reporter:datatype="link"/>
2065                         <field reporter:label="Voided?" name="voided" oils_obj:array_position="11" oils_persist:virtual="false" reporter:datatype="bool"/>
2066                         <field reporter:label="Cash Payment" name="cash_payment" oils_obj:array_position="12" oils_persist:virtual="true" reporter:datatype="link"/>
2067                         <field reporter:label="Credit Card Payment" name="credit_card_payment" oils_obj:array_position="13" oils_persist:virtual="true" reporter:datatype="link"/>
2068                         <field reporter:label="Check Payment" name="check_payment" oils_obj:array_position="14" oils_persist:virtual="true" reporter:datatype="link"/>
2069                 </fields>
2070                 <links>
2071                         <link field="cash_payment" reltype="might_have" key="id" map="" class="mcp"/>
2072                         <link field="credit_card_payment" reltype="might_have" key="id" map="" class="mccp"/>
2073                         <link field="check_payment" reltype="might_have" key="id" map="" class="mckp"/>
2074                         <link field="xact" reltype="has_a" key="id" map="" class="mbt"/>
2075                         <link field="accepting_usr" reltype="has_a" key="id" map="" class="au"/>
2076                         <link field="cash_drawer" reltype="has_a" key="id" map="" class="aws"/>
2077                 </links>
2078         </class>
2079         <class id="cbrebi" controller="open-ils.cstore" oils_obj:fieldmapper="container::biblio_record_entry_bucket_item" oils_persist:tablename="container.biblio_record_entry_bucket_item">
2080                 <fields oils_persist:primary="id" oils_persist:sequence="container.biblio_record_entry_bucket_item_id_seq">
2081                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
2082                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
2083                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
2084                         <field name="bucket" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="link"/>
2085                         <field name="id" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="id" />
2086                         <field name="target_biblio_record_entry" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="link"/>
2087                         <field name="create_time" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="timestamp" />
2088                 </fields>
2089                 <links>
2090                         <link field="target_biblio_record_entry" reltype="has_a" key="id" map="" class="bre"/>
2091                         <link field="bucket" reltype="has_a" key="id" map="" class="cbreb"/>
2092                 </links>
2093         </class>
2094         <class id="asce" controller="open-ils.cstore" oils_obj:fieldmapper="asset::stat_cat_entry" oils_persist:tablename="asset.stat_cat_entry" reporter:label="Item Stat Cat Entry">
2095                 <fields oils_persist:primary="id" oils_persist:sequence="asset.stat_cat_entry_id_seq">
2096                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
2097                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
2098                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
2099                         <field reporter:label="Entry ID" name="id" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="int" />
2100                         <field reporter:label="Entry Owner" name="owner" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="link"/>
2101                         <field reporter:label="Stat Cat" name="stat_cat" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="link"/>
2102                         <field reporter:label="Value" name="value" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="text"/>
2103                 </fields>
2104                 <links>
2105                         <link field="stat_cat" reltype="has_a" key="id" map="" class="asc"/>
2106                         <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
2107                 </links>
2108         </class>
2109         <class id="ahtc" controller="open-ils.cstore" oils_obj:fieldmapper="action::hold_transit_copy" oils_persist:tablename="action.hold_transit_copy" reporter:core="true" reporter:label="Hold Transit">
2110                 <fields oils_persist:primary="id" oils_persist:sequence="action.transit_copy_id_seq">
2111                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
2112                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
2113                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
2114                         <field reporter:label="Copy Status at Transit" name="copy_status" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="link"/>
2115                         <field reporter:label="Destination Library" name="dest" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="org_unit"/>
2116                         <field reporter:label="Receive Date/Time" name="dest_recv_time" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="timestamp"/>
2117                         <field reporter:label="Hold requiring Transit" name="hold" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="link"/>
2118                         <field reporter:label="Transit ID" name="id" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="id" />
2119                         <field reporter:label="Is Persistent?" name="persistant_transfer" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="bool"/>
2120                         <field reporter:label="Previous Stop" name="prev_hop" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="link"/>
2121                         <field reporter:label="Sending Library" name="source" oils_obj:array_position="10" oils_persist:virtual="false" reporter:datatype="org_unit"/>
2122                         <field reporter:label="Send Date/Time" name="source_send_time" oils_obj:array_position="11" oils_persist:virtual="false" reporter:datatype="timestamp"/>
2123                         <field reporter:label="Transited Copy" name="target_copy" oils_obj:array_position="12" oils_persist:virtual="false" reporter:datatype="link"/>
2124                         <field reporter:label="Base Transit" name="transit_copy" oils_obj:array_position="13" oils_persist:virtual="true" reporter:datatype="link"/>
2125                 </fields>
2126                 <links>
2127                         <link field="transit_copy" reltype="might_have" key="id" map="" class="atc"/>
2128                         <link field="target_copy" reltype="has_a" key="id" map="" class="acp"/>
2129                         <link field="source" reltype="has_a" key="id" map="" class="aou"/>
2130                         <link field="copy_status" reltype="has_a" key="id" map="" class="ccs"/>
2131                         <link field="dest" reltype="has_a" key="id" map="" class="aou"/>
2132                         <link field="hold" reltype="has_a" key="id" map="" class="ahr"/>
2133                 </links>
2134         </class>
2135         <class id="mb" controller="open-ils.cstore" oils_obj:fieldmapper="money::billing" oils_persist:tablename="money.billing" reporter:label="Billing Line Item">
2136                 <fields oils_persist:primary="id" oils_persist:sequence="money.billing_id_seq">
2137                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
2138                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
2139                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
2140                         <field reporter:label="Amount" name="amount" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="money" />
2141                         <field reporter:label="Billing Timestamp" name="billing_ts" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="timestamp"/>
2142                         <field reporter:label="Billing Type" name="billing_type" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="text"/>
2143                         <field reporter:label="Billing ID" name="id" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="id" />
2144                         <field reporter:label="Note" name="note" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="text"/>
2145                         <field reporter:label="Void Timestamp" name="void_time" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="timestamp"/>
2146                         <field reporter:label="Voided?" name="voided" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="bool"/>
2147                         <field reporter:label="Voiding Staff Member" name="voider" oils_obj:array_position="10" oils_persist:virtual="false" reporter:datatype="link"/>
2148                         <field reporter:label="Transaction" name="xact" oils_obj:array_position="11" oils_persist:virtual="false" reporter:datatype="link"/>
2149                 </fields>
2150                 <links>
2151                         <link field="xact" reltype="has_a" key="id" map="" class="mbt"/>
2152                         <link field="voider" reltype="has_a" key="id" map="" class="au"/>
2153                 </links>
2154         </class>
2155         <class id="pugm" controller="open-ils.cstore" oils_obj:fieldmapper="permission::usr_grp_map" oils_persist:tablename="permission.usr_grp_map">
2156                 <fields oils_persist:primary="id" oils_persist:sequence="permission.usr_grp_map_id_seq">
2157                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
2158                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
2159                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
2160                         <field name="grp" oils_obj:array_position="3" oils_persist:virtual="false" />
2161                         <field name="id" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="id" />
2162                         <field name="usr" oils_obj:array_position="5" oils_persist:virtual="false" />
2163                 </fields>
2164                 <links>
2165                         <link field="grp" reltype="has_a" key="id" map="" class="pgt"/>
2166                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
2167                 </links>
2168         </class>
2169         <class id="rof" controller="open-ils.reporter-store" oils_obj:fieldmapper="reporter::output_folder" oils_persist:tablename="reporter.output_folder">
2170                 <fields oils_persist:primary="id" oils_persist:sequence="reporter.output_folder_id_seq">
2171                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
2172                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
2173                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
2174                         <field name="id" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="id" />
2175                         <field name="parent" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="link"/>
2176                         <field name="owner" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="link"/>
2177                         <field name="create_time" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="timestamp"/>
2178                         <field name="name" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="text"/>
2179                         <field name="shared" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="bool"/>
2180                         <field name="share_with" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="link"/>
2181                         <field name="children" oils_obj:array_position="10" oils_persist:virtual="true" reporter:datatype="link"/>
2182                         <field name="outputs" oils_obj:array_position="11" oils_persist:virtual="true" reporter:datatype="link"/>
2183                 </fields>
2184                 <links>
2185                         <link field="owner" reltype="has_a" key="id" map="" class="au"/>
2186                         <link field="parent" reltype="has_a" key="id" map="" class="rof"/>
2187                         <link field="children" reltype="has_many" key="parent" map="" class="rof"/>
2188                         <link field="share_with" reltype="has_a" key="id" map="" class="aou"/>
2189                         <link field="outputs" reltype="has_many" key="folder" map="" class="rs"/>
2190                 </links>
2191         </class>
2192         <class id="rtf" controller="open-ils.reporter-store" oils_obj:fieldmapper="reporter::template_folder" oils_persist:tablename="reporter.template_folder">
2193                 <fields oils_persist:primary="id" oils_persist:sequence="reporter.template_folder_id_seq">
2194                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
2195                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
2196                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
2197                         <field name="id" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="id" />
2198                         <field name="parent" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="link"/>
2199                         <field name="owner" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="link"/>
2200                         <field name="create_time" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="timestamp"/>
2201                         <field name="name" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="text"/>
2202                         <field name="shared" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="bool"/>
2203                         <field name="share_with" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="link"/>
2204                         <field name="children" oils_obj:array_position="10" oils_persist:virtual="true" reporter:datatype="link"/>
2205                         <field name="templates" oils_obj:array_position="11" oils_persist:virtual="true" reporter:datatype="link"/>
2206                 </fields>
2207                 <links>
2208                         <link field="owner" reltype="has_a" key="id" map="" class="au"/>
2209                         <link field="parent" reltype="has_a" key="id" map="" class="rtf"/>
2210                         <link field="children" reltype="has_many" key="parent" map="" class="rtf"/>
2211                         <link field="share_with" reltype="has_a" key="id" map="" class="aou"/>
2212                         <link field="templates" reltype="has_many" key="folder" map="" class="rt"/>
2213                 </links>
2214         </class>
2215         <class id="rrf" controller="open-ils.reporter-store" oils_obj:fieldmapper="reporter::report_folder" oils_persist:tablename="reporter.report_folder">
2216                 <fields oils_persist:primary="id" oils_persist:sequence="reporter.report_folder_id_seq">
2217                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
2218                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
2219                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
2220                         <field name="id" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="id" />
2221                         <field name="parent" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="link"/>
2222                         <field name="owner" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="link"/>
2223                         <field name="create_time" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="timestamp"/>
2224                         <field name="name" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="text"/>
2225                         <field name="shared" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="bool"/>
2226                         <field name="share_with" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="link"/>
2227                         <field name="children" oils_obj:array_position="10" oils_persist:virtual="true" reporter:datatype="link"/>
2228                         <field name="reports" oils_obj:array_position="11" oils_persist:virtual="true" reporter:datatype="link"/>
2229                 </fields>
2230                 <links>
2231                         <link field="owner" reltype="has_a" key="id" map="" class="au"/>
2232                         <link field="parent" reltype="has_a" key="id" map="" class="rrf"/>
2233                         <link field="children" reltype="has_many" key="parent" map="" class="rrf"/>
2234                         <link field="share_with" reltype="has_a" key="id" map="" class="aou"/>
2235                         <link field="reports" reltype="has_many" key="folder" map="" class="rr"/>
2236                 </links>
2237         </class>
2238         <class id="rt" controller="open-ils.reporter-store" oils_obj:fieldmapper="reporter::template" oils_persist:tablename="reporter.template">
2239                 <fields oils_persist:primary="id" oils_persist:sequence="reporter.template_id_seq">
2240                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
2241                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
2242                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
2243                         <field name="id" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="id" />
2244                         <field name="owner" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="link"/>
2245                         <field name="create_time" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="timestamp"/>
2246                         <field name="name" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="text"/>
2247                         <field name="data" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="text"/>
2248                         <field name="folder" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="link"/>
2249                         <field name="description" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="text"/>
2250                         <field name="reports" oils_obj:array_position="10" oils_persist:virtual="true" reporter:datatype="link"/>
2251                 </fields>
2252                 <links>
2253                         <link field="owner" reltype="has_a" key="id" map="" class="au"/>
2254                         <link field="folder" reltype="has_a" key="id" map="" class="rtf"/>
2255                         <link field="reports" reltype="has_many" key="template" map="" class="rr"/>
2256                 </links>
2257         </class>
2258         <class id="rr" controller="open-ils.reporter-store" oils_obj:fieldmapper="reporter::report" oils_persist:tablename="reporter.report">
2259                 <fields oils_persist:primary="id" oils_persist:sequence="reporter.report_id_seq">
2260                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
2261                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
2262                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
2263                         <field name="id" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="id" />
2264                         <field name="owner" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="link"/>
2265                         <field name="create_time" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="tiemstamp"/>
2266                         <field name="template" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="link"/>
2267                         <field name="data" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="link"/>
2268                         <field name="folder" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="link"/>
2269                         <field name="recur" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="bool"/>
2270                         <field name="recurance" oils_obj:array_position="10" oils_persist:virtual="false" reporter:datatype="interval"/>
2271                         <field name="name" oils_obj:array_position="11" oils_persist:virtual="false" reporter:datatype="text"/>
2272                         <field name="description" oils_obj:array_position="12" oils_persist:virtual="false" reporter:datatype="text"/>
2273                         <field name="runs" oils_obj:array_position="13" oils_persist:virtual="true" reporter:datatype="link"/>
2274                 </fields>
2275                 <links>
2276                         <link field="owner" reltype="has_a" key="id" map="" class="au"/>
2277                         <link field="template" reltype="has_a" key="id" map="" class="rt"/>
2278                         <link field="folder" reltype="has_a" key="id" map="" class="rrf"/>
2279                         <link field="runs" reltype="has_many" key="report" map="" class="rs"/>
2280                 </links>
2281         </class>
2282         <class id="rs" controller="open-ils.reporter-store" oils_obj:fieldmapper="reporter::schedule" oils_persist:tablename="reporter.schedule">
2283                 <fields oils_persist:primary="id" oils_persist:sequence="reporter.schedule_id_seq">
2284                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
2285                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
2286                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
2287                         <field name="id" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="id" />
2288                         <field name="runner" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="link"/>
2289                         <field name="start_time" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="timestamp"/>
2290                         <field name="complete_time" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="timestamp"/>
2291                         <field name="run_time" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="timestamp"/>
2292                         <field name="email" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="text"/>
2293                         <field name="excel_format" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="bool"/>
2294                         <field name="csv_format" oils_obj:array_position="10" oils_persist:virtual="false" reporter:datatype="bool"/>
2295                         <field name="html_format" oils_obj:array_position="11" oils_persist:virtual="false" reporter:datatype="bool"/>
2296                         <field name="error_code" oils_obj:array_position="12" oils_persist:virtual="false" reporter:datatype="int"/>
2297                         <field name="error_text" oils_obj:array_position="13" oils_persist:virtual="false" reporter:datatype="text"/>
2298                         <field name="report" oils_obj:array_position="14" oils_persist:virtual="false" reporter:datatype="link"/>
2299                         <field name="folder" oils_obj:array_position="15" oils_persist:virtual="false" reporter:datatype="link"/>
2300                         <field name="chart_pie" oils_obj:array_position="16" oils_persist:virtual="false" reporter:datatype="bool"/>
2301                         <field name="chart_bar" oils_obj:array_position="17" oils_persist:virtual="false" reporter:datatype="bool"/>
2302                         <field name="chart_line" oils_obj:array_position="18" oils_persist:virtual="false" reporter:datatype="bool"/>
2303                 </fields>
2304                 <links>
2305                         <link field="runner" reltype="has_a" key="id" map="" class="au"/>
2306                         <link field="report" reltype="has_a" key="id" map="" class="rr"/>
2307                         <link field="folder" reltype="has_a" key="id" map="" class="rof"/>
2308                 </links>
2309         </class>
2310         <class id="rssr" controller="open-ils.reporter-store" oils_obj:fieldmapper="reporter::super_simple_record" oils_persist:tablename="reporter.super_simple_record" reporter:label="Simple Record Extracts">
2311                 <fields oils_persist:primary="id">
2312                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
2313                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
2314                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
2315                         <field reporter:label="Record ID" name="id" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="id" />
2316                         <field reporter:label="Fingerprint" name="fingerprint" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="text"/>
2317                         <field reporter:label="Overall Record Quality" name="quality" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="int"/>
2318                         <field reporter:label="TCN Source" name="tcn_source" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="text"/>
2319                         <field reporter:label="TCN Value" name="tcn_value" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="text"/>
2320                         <field reporter:label="Title Proper (normalized)" name="title" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="text"/>
2321                         <field reporter:label="Author (normalized)" name="author" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="text"/>
2322                         <field reporter:label="Publisher (normalized)" name="publisher" oils_obj:array_position="10" oils_persist:virtual="false" reporter:datatype="text"/>
2323                         <field reporter:label="Publication Year (normalized)" name="pubdate" oils_obj:array_position="11" oils_persist:virtual="false" reporter:datatype="int"/>
2324                         <field reporter:label="ISBN" name="isbn" oils_obj:array_position="12" oils_persist:virtual="false" reporter:datatype="text"/>
2325                         <field reporter:label="ISSN" name="issn" oils_obj:array_position="13" oils_persist:virtual="false" reporter:datatype="text"/>
2326                         <field reporter:label="Full Bibliographic record" name="biblio_record" oils_obj:array_position="14" oils_persist:virtual="true" reporter:datatype="link"/>
2327                 </fields>
2328                 <links>
2329                         <link field="biblio_record" reltype="might_have" key="id" map="" class="bre"/>
2330                 </links>
2331         </class>
2332         <class id="rsr" controller="open-ils.reporter-store" oils_obj:fieldmapper="reporter::simple_record" oils_persist:tablename="reporter.simple_record">
2333                 <fields oils_persist:primary="id">
2334                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
2335                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
2336                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
2337                         <field reporter:label="Record ID" name="id" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="id" />
2338                         <field reporter:label="Metarecord" name="metarecord" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="link"/>
2339                         <field reporter:label="Fingerprint" name="fingerprint" oils_obj:array_position="5" oils_persist:virtual="false" />
2340                         <field reporter:label="Overall Record Quality" name="quality" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="int"/>
2341                         <field reporter:label="TCN Source" name="tcn_source" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="text"/>
2342                         <field reporter:label="TCN Value" name="tcn_value" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="text"/>
2343                         <field reporter:label="Title Proper (normalized)" name="title" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="text"/>
2344                         <field reporter:label="Uniform Title (normalized)" name="uniform_title" oils_obj:array_position="10" oils_persist:virtual="false" reporter:datatype="text"/>
2345                         <field reporter:label="Author (normalized)" name="author" oils_obj:array_position="11" oils_persist:virtual="false" reporter:datatype="text"/>
2346                         <field reporter:label="Publisher (normalized)" name="publisher" oils_obj:array_position="12" oils_persist:virtual="false" reporter:datatype="text"/>
2347                         <field reporter:label="Publication Year (normalized)" name="pubdate" oils_obj:array_position="13" oils_persist:virtual="false" reporter:datatype="int"/>
2348                         <field reporter:label="Series Title (normalized)" name="series_title" oils_obj:array_position="14" oils_persist:virtual="false" reporter:datatype="text"/>
2349                         <field reporter:label="Series Statement (normalized)" name="series_statement" oils_obj:array_position="15" oils_persist:virtual="false" reporter:datatype="text"/>
2350                         <field reporter:label="Summary (normalized)" name="summary" oils_obj:array_position="16" oils_persist:virtual="false" reporter:datatype="text"/>
2351                         <field reporter:label="ISBN" name="isbn" oils_obj:array_position="17" oils_persist:virtual="false" reporter:datatype="text"/>
2352                         <field reporter:label="ISSN" name="issn" oils_obj:array_position="18" oils_persist:virtual="false" reporter:datatype="text"/>
2353                         <field reporter:label="Topic Subjects (normalized)" name="topic_subject" oils_obj:array_position="19" oils_persist:virtual="false" reporter:datatype="text"/>
2354                         <field reporter:label="Geographic Subjects (normalized)" name="geographic_subject" oils_obj:array_position="20" oils_persist:virtual="false" reporter:datatype="text"/>
2355                         <field reporter:label="Genres (normalized)" name="genre" oils_obj:array_position="21" oils_persist:virtual="false" reporter:datatype="text"/>
2356                         <field reporter:label="Personal Name Subjects (normalized)" name="name_subject" oils_obj:array_position="22" oils_persist:virtual="false" reporter:datatype="text"/>
2357                         <field reporter:label="Corporate Name Subjects (normalized)" name="corporate_subject" oils_obj:array_position="23" oils_persist:virtual="false" reporter:datatype="text"/>