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