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