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