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