xsd update for all_perms flag
[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" xmlns:permacrud="http://open-ils.org/spec/opensrf/IDL/permacrud/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         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
606             <actions>
607                 <create permission="CREATE_METABIB_FIELD" global_required="true"/>
608                 <retrieve/>
609                 <update permission="UPDATE_METABIB_FIELD" global_required="true"/>
610                 <delete permission="DELETE_METABIB_FIELD" global_required="true"/>
611             </actions>
612         </permacrud>
613         </class>
614         <class id="cam" controller="open-ils.cstore" oils_obj:fieldmapper="config::audience_map" oils_persist:tablename="config.audience_map" reporter:label="Audience Map">
615                 <fields oils_persist:primary="code" oils_persist:sequence="">
616                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
617                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
618                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
619                         <field reporter:label="Audience Code" name="code" oils_obj:array_position="3" oils_persist:virtual="false" reporter:selector="value" reporter:datatype="text"/>
620                         <field reporter:label="Description" name="description" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="text" oils_persist:i18n="true" />
621                         <field reporter:label="Audience" name="value" oils_obj:array_position="5" oils_persist:virtual="false"  reporter:datatype="text" oils_persist:i18n="true"/>
622                 </fields>
623                 <links/>
624         </class>
625         <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">
626                 <fields oils_persist:primary="code" oils_persist:sequence="">
627                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
628                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
629                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
630                         <field reporter:label="Item Form Code" name="code" oils_obj:array_position="3" oils_persist:virtual="false" reporter:selector="value" reporter:datatype="text"/>
631                         <field reporter:label="Item Form" name="value" oils_obj:array_position="4" oils_persist:virtual="false"  reporter:datatype="text" oils_persist:i18n="true"/>
632                 </fields>
633                 <links/>
634         </class>
635         <class id="acn" controller="open-ils.cstore" oils_obj:fieldmapper="asset::call_number" oils_persist:tablename="asset.call_number" reporter:label="Call Number/Volume">
636                 <fields oils_persist:primary="id" oils_persist:sequence="asset.call_number_id_seq">
637                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
638                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
639                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
640                         <field reporter:label="Copies" name="copies" oils_obj:array_position="3" oils_persist:virtual="true" reporter:datatype="link"/>
641                         <field reporter:label="Create Date/Time" name="create_date" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="timestamp"/>
642                         <field reporter:label="Creating User" name="creator" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="link"/>
643                         <field reporter:label="Is Deleted" name="deleted" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="bool"/>
644                         <field reporter:label="Last Edit Date/Time" name="edit_date" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="timestamp"/>
645                         <field reporter:label="Last Editing User" name="editor" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="link"/>
646                         <field reporter:label="Call Number/Volume ID" name="id" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="id" />
647                         <field reporter:label="Call Number Label" name="label" oils_obj:array_position="10" oils_persist:virtual="false" reporter:datatype="text"/>
648                         <field reporter:label="Owning Library" name="owning_lib" oils_obj:array_position="11" oils_persist:virtual="false"  reporter:datatype="org_unit"/>
649                         <field reporter:label="Bib Record" name="record" oils_obj:array_position="12" oils_persist:virtual="false" reporter:datatype="link"/>
650                         <field reporter:label="Notes" name="notes" oils_obj:array_position="13" oils_persist:virtual="true" reporter:datatype="link"/>
651                 </fields>
652                 <links>
653                         <link field="editor" reltype="has_a" key="id" map="" class="au"/>
654                         <link field="creator" reltype="has_a" key="id" map="" class="au"/>
655                         <link field="record" reltype="has_a" key="id" map="" class="bre"/>
656                         <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
657                         <link field="notes" reltype="has_many" key="call_number" map="" class="acnn"/>
658                         <link field="copies" reltype="has_many" key="call_number" map="" class="acp"/>
659                 </links>
660         </class>
661         <class id="cst" controller="open-ils.cstore" oils_obj:fieldmapper="config::standing" oils_persist:tablename="config.standing">
662                 <fields oils_persist:primary="id" oils_persist:sequence="config.standing_id_seq">
663                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
664                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
665                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
666                         <field name="id" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="id" />
667                         <field name="value" oils_obj:array_position="4" oils_persist:virtual="false" oils_persist:i18n="true" />
668                 </fields>
669                 <links/>
670         </class>
671         <class id="mous" controller="open-ils.cstore" oils_obj:fieldmapper="money::open_user_summary" oils_persist:tablename="money.open_usr_summary">
672                 <fields oils_persist:primary="usr" oils_persist:sequence="">
673                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
674                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
675                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
676                         <field name="balance_owed" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="money" />
677                         <field name="total_owed" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="money" />
678                         <field name="total_paid" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="money" />
679                         <field name="usr" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="link"/>
680                 </fields>
681                 <links/>
682         </class>
683         <class id="mct" controller="open-ils.cstore" oils_obj:fieldmapper="money::collections_tracker" oils_persist:tablename="money.collections_tracker">
684                 <fields oils_persist:primary="id" oils_persist:sequence="money.collections_tracker_id_seq">
685                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
686                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
687                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
688                         <field name="collector" oils_obj:array_position="3" oils_persist:virtual="false" />
689                         <field name="enter_time" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="timestamp"/>
690                         <field name="id" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="id" />
691                         <field name="location" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="link"/>
692                         <field name="usr" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="link"/>
693                 </fields>
694                 <links>
695                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
696                         <link field="collector" reltype="has_a" key="id" map="" class="au"/>
697                         <link field="location" reltype="has_a" key="id" map="" class="aou"/>
698                 </links>
699         </class>
700         <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">
701                 <fields oils_persist:primary="id" oils_persist:sequence="biblio.record_entry_id_seq">
702                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
703                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
704                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
705                         <field reporter:label="Call Numbers" name="call_numbers" oils_obj:array_position="3" oils_persist:virtual="true" reporter:datatype="link"/>
706                         <field reporter:label="Fixed Field Entry" name="fixed_fields" oils_obj:array_position="4" oils_persist:virtual="true" reporter:datatype="link"/>
707                         <field reporter:label="Is Active?" name="active" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="bool"/>
708                         <field reporter:label="Record Creation Date/Time" name="create_date" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="timestamp"/>
709                         <field reporter:label="Record Creator" name="creator" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="link"/>
710                         <field reporter:label="Is Deleted?" name="deleted" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="bool"/>
711                         <field reporter:label="Last Edit Data/Time" name="edit_date" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="timestamp"/>
712                         <field reporter:label="Last Editing User" name="editor" oils_obj:array_position="10" oils_persist:virtual="false" reporter:datatype="link"/>
713                         <field reporter:label="Fingerprint" name="fingerprint" oils_obj:array_position="11" oils_persist:virtual="false"  reporter:datatype="text"/>
714                         <field reporter:label="Record ID" name="id" oils_obj:array_position="12" oils_persist:virtual="false" reporter:datatype="id" />
715                         <field reporter:label="Last Transaction ID" name="last_xact_id" oils_obj:array_position="13" oils_persist:virtual="false"  reporter:datatype="text"/>
716                         <field reporter:label="MARC21Slim" name="marc" oils_obj:array_position="14" oils_persist:virtual="false"  reporter:datatype="text"/>
717                         <field reporter:label="Overall Quality" name="quality" oils_obj:array_position="15" oils_persist:virtual="false" reporter:datatype="int" />
718                         <field reporter:label="Record Source" name="source" oils_obj:array_position="16" oils_persist:virtual="false" reporter:datatype="link"/>
719                         <field reporter:label="TCN Source" name="tcn_source" oils_obj:array_position="17" oils_persist:virtual="false"  reporter:datatype="text"/>
720                         <field reporter:label="TCN Value" name="tcn_value" oils_obj:array_position="18" oils_persist:virtual="false"  reporter:datatype="text"/>
721                         <field reporter:label="Metarecord" name="metarecord" oils_obj:array_position="19" oils_persist:virtual="true" reporter:datatype="link"/>
722                         <field reporter:label="Language Code" name="language" oils_obj:array_position="20" oils_persist:virtual="true" reporter:datatype="link"/>
723                         <field reporter:label="Non-MARC Record Notes" name="notes" oils_obj:array_position="21" oils_persist:virtual="true" reporter:datatype="link"/>
724                         <field reporter:label="Indexed Keyword Field Entries" name="keyword_field_entries" oils_obj:array_position="22" oils_persist:virtual="true" reporter:datatype="link"/>
725                         <field reporter:label="Indexed Subject Field Entries" name="subject_field_entries" oils_obj:array_position="23" oils_persist:virtual="true" reporter:datatype="link"/>
726                         <field reporter:label="Indexed Title Field Entries" name="title_field_entries" oils_obj:array_position="24" oils_persist:virtual="true" reporter:datatype="link"/>
727                         <field reporter:label="Indexed Author Field Entries" name="author_field_entries" oils_obj:array_position="25" oils_persist:virtual="true" reporter:datatype="link"/>
728                         <field reporter:label="Indexed Series Field Entries" name="series_field_entries" oils_obj:array_position="26" oils_persist:virtual="true" reporter:datatype="link"/>
729                         <field reporter:label="Flattened MARC Fields " name="full_record_entries" oils_obj:array_position="27" oils_persist:virtual="true" reporter:datatype="link"/>
730                         <field reporter:label="Simple Record Extracts " name="simple_record" oils_obj:array_position="28" oils_persist:virtual="true" reporter:datatype="link"/>
731                 </fields>
732                 <links>
733                         <link field="editor" reltype="has_a" key="id" map="" class="au"/>
734                         <link field="creator" reltype="has_a" key="id" map="" class="au"/>
735                         <link field="simple_record" reltype="might_have" key="id" map="" class="rssr"/>
736                         <link field="metarecord" reltype="might_have" key="source" map="metarecord" class="mmrsm"/>
737                         <link field="call_numbers" reltype="has_many" key="record" map="" class="acn"/>
738                         <link field="keyword_field_entries" reltype="has_many" key="source" map="" class="mkfe"/>
739                         <link field="fixed_fields" reltype="might_have" key="record" map="" class="mrd"/>
740                         <link field="language" reltype="might_have" key="record" map="item_lang" class="mrd"/>
741                         <link field="subject_field_entries" reltype="has_many" key="source" map="" class="msfe"/>
742                         <link field="title_field_entries" reltype="has_many" key="source" map="" class="mtfe"/>
743                         <link field="notes" reltype="has_many" key="record" map="" class="bren"/>
744                         <link field="author_field_entries" reltype="has_many" key="source" map="" class="mafe"/>
745                         <link field="series_field_entries" reltype="has_many" key="source" map="" class="msefe"/>
746                         <link field="full_record_entries" reltype="has_many" key="record" map="" class="mfr"/>
747                 </links>
748         </class>
749         <class id="aouhoo" controller="open-ils.cstore" oils_obj:fieldmapper="actor::org_unit::hours_of_operation" oils_persist:tablename="actor.hours_of_operation">
750                 <fields oils_persist:primary="id" oils_persist:sequence="">
751                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
752                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
753                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
754                         <field name="dow_0_close" oils_obj:array_position="3" oils_persist:virtual="false" />
755                         <field name="dow_0_open" oils_obj:array_position="4" oils_persist:virtual="false" />
756                         <field name="dow_1_close" oils_obj:array_position="5" oils_persist:virtual="false" />
757                         <field name="dow_1_open" oils_obj:array_position="6" oils_persist:virtual="false" />
758                         <field name="dow_2_close" oils_obj:array_position="7" oils_persist:virtual="false" />
759                         <field name="dow_2_open" oils_obj:array_position="8" oils_persist:virtual="false" />
760                         <field name="dow_3_close" oils_obj:array_position="9" oils_persist:virtual="false" />
761                         <field name="dow_3_open" oils_obj:array_position="10" oils_persist:virtual="false" />
762                         <field name="dow_4_close" oils_obj:array_position="11" oils_persist:virtual="false" />
763                         <field name="dow_4_open" oils_obj:array_position="12" oils_persist:virtual="false" />
764                         <field name="dow_5_close" oils_obj:array_position="13" oils_persist:virtual="false" />
765                         <field name="dow_5_open" oils_obj:array_position="14" oils_persist:virtual="false" />
766                         <field name="dow_6_close" oils_obj:array_position="15" oils_persist:virtual="false" />
767                         <field name="dow_6_open" oils_obj:array_position="16" oils_persist:virtual="false" />
768                         <field name="id" oils_obj:array_position="17" oils_persist:virtual="false" reporter:datatype="id" />
769                         <field name="org_unit" oils_obj:array_position="18" oils_persist:virtual="true" reporter:datatype="org_unit"/>
770                 </fields>
771                 <links>
772                         <link field="org_unit" reltype="might_have" key="id" map="" class="aou"/>
773                 </links>
774         </class>
775         <class id="aoucd" controller="open-ils.cstore" oils_obj:fieldmapper="actor::org_unit::closed_date" oils_persist:tablename="actor.org_unit_closed">
776                 <fields oils_persist:primary="id" oils_persist:sequence="actor.org_unit_closed_id_seq">
777                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
778                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
779                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
780                         <field name="close_end" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="timestamp" />
781                         <field name="close_start" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="timestamp" />
782                         <field name="id" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="id" />
783                         <field name="org_unit" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="org_unit"/>
784                         <field name="reason" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="text"/>
785                 </fields>
786                 <links>
787                         <link field="org_unit" reltype="has_a" key="id" map="" class="aou"/>
788                 </links>
789         </class>
790         <class id="crcd" controller="open-ils.cstore" oils_obj:fieldmapper="config::rules::circ_duration" oils_persist:tablename="config.rule_circ_duration">
791                 <fields oils_persist:primary="id" oils_persist:sequence="config.rule_circ_duration_id_seq">
792                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
793                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
794                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
795                         <field name="extended" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="interval"/>
796                         <field name="id" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="id" />
797                         <field name="max_renewals" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="int" />
798                         <field name="name" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="text"/>
799                         <field name="normal" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="interval"/>
800                         <field name="shrt" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="interval"/>
801                 </fields>
802                 <links>
803                 </links>
804         </class>
805         <class id="mobts" controller="open-ils.cstore" oils_obj:fieldmapper="money::open_billable_transaction_summary" oils_persist:tablename="money.open_billable_xact_summary">
806                 <fields oils_persist:primary="id" oils_persist:sequence="">
807                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
808                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
809                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
810                         <field name="balance_owed" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="money"/>
811                         <field name="id" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="id" />
812                         <field name="last_billing_note" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="text"/>
813                         <field name="last_billing_ts" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="timestamp"/>
814                         <field name="last_billing_type" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="text"/>
815                         <field name="last_payment_note" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="text"/>
816                         <field name="last_payment_ts" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="timestamp"/>
817                         <field name="last_payment_type" oils_obj:array_position="10" oils_persist:virtual="false" reporter:datatype="text"/>
818                         <field name="total_owed" oils_obj:array_position="11" oils_persist:virtual="false" reporter:datatype="money"/>
819                         <field name="total_paid" oils_obj:array_position="12" oils_persist:virtual="false" reporter:datatype="money"/>
820                         <field name="usr" oils_obj:array_position="13" oils_persist:virtual="false" reporter:datatype="link"/>
821                         <field name="xact_finish" oils_obj:array_position="14" oils_persist:virtual="false" reporter:datatype="timestamp" />
822                         <field name="xact_start" oils_obj:array_position="15" oils_persist:virtual="false" reporter:datatype="timestamp" />
823                         <field name="xact_type" oils_obj:array_position="16" oils_persist:virtual="false" reporter:datatype="text"/>
824                         <field name="xact" oils_obj:array_position="17" oils_persist:virtual="true" reporter:datatype="link"/>
825                         <field name="grocery" oils_obj:array_position="18" oils_persist:virtual="true" reporter:datatype="link"/>
826                         <field name="circulation" oils_obj:array_position="19" oils_persist:virtual="true" reporter:datatype="link"/>
827                         <field name="billing_location" oils_obj:array_position="20" oils_persist:virtual="false" reporter:datatype="link"/>
828                 </fields>
829                 <links>
830                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
831                         <link field="xact" reltype="might_have" key="id" map="" class="mbt"/>
832                         <link field="circulation" reltype="might_have" key="id" map="" class="circ"/>
833                         <link field="grocery" reltype="might_have" key="id" map="" class="mg"/>
834                         <link field="billing_location" reltype="has_a" key="id" map="" class="aou"/>
835                 </links>
836         </class>
837         <class id="au" controller="open-ils.cstore" oils_obj:fieldmapper="actor::user" oils_persist:tablename="actor.usr" reporter:core="true" reporter:label="ILS User">
838                 <fields oils_persist:primary="id" oils_persist:sequence="actor.usr_id_seq">
839                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
840                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
841                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
842                         <field reporter:label="All Addresses" name="addresses" oils_obj:array_position="3" oils_persist:virtual="true" reporter:datatype="link"/>
843                         <field reporter:label="All Library Cards" name="cards" oils_obj:array_position="4" oils_persist:virtual="true" reporter:datatype="link"/>
844                         <field reporter:label="All Circulations" name="checkouts" oils_obj:array_position="5" oils_persist:virtual="true" reporter:datatype="link"/>
845                         <field reporter:label="All Hold Requests" name="hold_requests" oils_obj:array_position="6" oils_persist:virtual="true" reporter:datatype="link"/>
846                         <field reporter:label="All Permissions" name="permissions" oils_obj:array_position="7" oils_persist:virtual="true" reporter:datatype="link"/>
847                         <field reporter:label="All User Settings" name="settings" oils_obj:array_position="8" oils_persist:virtual="true" reporter:datatype="link"/>
848                         <field reporter:label="Standing Penalties" name="standing_penalties" oils_obj:array_position="9" oils_persist:virtual="true" reporter:datatype="link"/>
849                         <field reporter:label="Statistical Category Entries" name="stat_cat_entries" oils_obj:array_position="10" oils_persist:virtual="true" reporter:datatype="link"/>
850                         <field reporter:label="Survey Responses" name="survey_responses" oils_obj:array_position="11" oils_persist:virtual="true" reporter:datatype="link"/>
851                         <field name="ws_ou" oils_obj:array_position="12" oils_persist:virtual="true" reporter:datatype="link"/>
852                         <field name="wsid" oils_obj:array_position="13" oils_persist:virtual="true" reporter:datatype="link"/>
853                         <field reporter:label="Active" name="active" oils_obj:array_position="14" oils_persist:virtual="false" reporter:datatype="bool"/>
854                         <field reporter:label="Alert Message" name="alert_message" oils_obj:array_position="15" oils_persist:virtual="false"  reporter:datatype="text"/>
855                         <field reporter:label="Barred" name="barred" oils_obj:array_position="16" oils_persist:virtual="false" reporter:datatype="bool"/>
856                         <field reporter:label="Physical Address" name="billing_address" oils_obj:array_position="17" oils_persist:virtual="false" reporter:datatype="link"/>
857                         <field reporter:label="Current Library Card" name="card" oils_obj:array_position="18" oils_persist:virtual="false" reporter:datatype="link"/>
858                         <field reporter:label="Claims-returned Count" name="claims_returned_count" oils_obj:array_position="19" oils_persist:virtual="false" reporter:datatype="int" />
859                         <field reporter:label="Record Creation Date/Time" name="create_date" oils_obj:array_position="20" oils_persist:virtual="false" reporter:datatype="timestamp"/>
860                         <field reporter:label="User Credit Balance" name="credit_forward_balance" oils_obj:array_position="21" oils_persist:virtual="false" reporter:datatype="money" />
861                         <field reporter:label="Daytime Phone" name="day_phone" oils_obj:array_position="22" oils_persist:virtual="false"  reporter:datatype="text"/>
862                         <field reporter:label="Date of Birth" name="dob" oils_obj:array_position="23" oils_persist:virtual="false" reporter:datatype="timestamp"/>
863                         <field reporter:label="Email Address" name="email" oils_obj:array_position="24" oils_persist:virtual="false"  reporter:datatype="text"/>
864                         <field reporter:label="Evening Phone" name="evening_phone" oils_obj:array_position="25" oils_persist:virtual="false"  reporter:datatype="text"/>
865                         <field reporter:label="Privilege Expiration Date" name="expire_date" oils_obj:array_position="26" oils_persist:virtual="false" reporter:datatype="timestamp"/>
866                         <field reporter:label="Last Name" name="family_name" oils_obj:array_position="27" oils_persist:virtual="false"  reporter:datatype="text"/>
867                         <field reporter:label="First Name" name="first_given_name" oils_obj:array_position="28" oils_persist:virtual="false"  reporter:datatype="text"/>
868                         <field reporter:label="Home Library" name="home_ou" oils_obj:array_position="29" oils_persist:virtual="false" reporter:datatype="org_unit"/>
869                         <field reporter:label="User ID" name="id" oils_obj:array_position="30" oils_persist:virtual="false" reporter:datatype="id" />
870                         <field reporter:label="Primary Identification Type" name="ident_type" oils_obj:array_position="31" oils_persist:virtual="false" reporter:datatype="link"/>
871                         <field reporter:label="Secondary Identification Type" name="ident_type2" oils_obj:array_position="32" oils_persist:virtual="false" reporter:datatype="link"/>
872                         <field reporter:label="Primary Identification" name="ident_value" oils_obj:array_position="33" oils_persist:virtual="false"  reporter:datatype="text"/>
873                         <field reporter:label="Secondary Identification" name="ident_value2" oils_obj:array_position="34" oils_persist:virtual="false"  reporter:datatype="text"/>
874                         <field name="last_xact_id" oils_obj:array_position="35" oils_persist:virtual="false" reporter:datatype="text"/>
875                         <field reporter:label="Mailing Address" name="mailing_address" oils_obj:array_position="36" oils_persist:virtual="false" reporter:datatype="link"/>
876                         <field reporter:label="Is Group Lead Account" name="master_account" oils_obj:array_position="37" oils_persist:virtual="false" reporter:datatype="bool"/>
877                         <field reporter:label="Internet Access Level" name="net_access_level" oils_obj:array_position="38" oils_persist:virtual="false" reporter:datatype="link"/>
878                         <field reporter:label="Other Phone" name="other_phone" oils_obj:array_position="39" oils_persist:virtual="false"  reporter:datatype="text"/>
879                         <field reporter:label="Password (obfuscated)" name="passwd" oils_obj:array_position="40" oils_persist:virtual="false"  reporter:datatype="text"/>
880                         <field reporter:label="Photo URL" name="photo_url" oils_obj:array_position="41" oils_persist:virtual="false"  reporter:datatype="text"/>
881                         <field reporter:label="Prefix" name="prefix" oils_obj:array_position="42" oils_persist:virtual="false"  reporter:datatype="text"/>
882                         <field reporter:label="Main (Profile) Permission Group" name="profile" oils_obj:array_position="43" oils_persist:virtual="false" reporter:datatype="link"/>
883                         <field reporter:label="Middle Name" name="second_given_name" oils_obj:array_position="44" oils_persist:virtual="false"  reporter:datatype="text"/>
884                         <field reporter:label="Standing (unused)" name="standing" oils_obj:array_position="45" oils_persist:virtual="false" reporter:datatype="link"/>
885                         <field reporter:label="Suffix/Title" name="suffix" oils_obj:array_position="46" oils_persist:virtual="false"  reporter:datatype="text"/>
886                         <field reporter:label="Is Super User" name="super_user" oils_obj:array_position="47" oils_persist:virtual="false" reporter:datatype="bool"/>
887                         <field reporter:label="Family Linkage or other Group" name="usrgroup" oils_obj:array_position="48" oils_persist:virtual="false" reporter:datatype="int"/>
888                         <field reporter:label="OPAC/Staff Client User Name" name="usrname" oils_obj:array_position="49" oils_persist:virtual="false"  reporter:datatype="text"/>
889                         <field reporter:label="Additional Permission Groups" name="groups" oils_obj:array_position="50" oils_persist:virtual="true" reporter:datatype="link"/>
890                         <field reporter:label="Is Deleted" name="deleted" oils_obj:array_position="51" oils_persist:virtual="false" reporter:datatype="bool"/>
891                         <field reporter:label="User Notes" name="notes" oils_obj:array_position="52" oils_persist:virtual="true" reporter:datatype="link"/>
892                         <field reporter:label="Demographic Info" name="demographic" oils_obj:array_position="53" oils_persist:virtual="true" reporter:datatype="link"/>
893                         <field reporter:label="Billable Transactions" name="billable_transactions" oils_obj:array_position="54" oils_persist:virtual="true" reporter:datatype="link"/>
894                         <field reporter:label="Checkins" name="checkins" oils_obj:array_position="55" oils_persist:virtual="true" reporter:datatype="link"/>
895                         <field reporter:label="Circulations Performed as Staff" name="performed_circulations" oils_obj:array_position="56" oils_persist:virtual="true" reporter:datatype="link"/>
896                 </fields>
897                 <links>
898                         <link field="demographic" reltype="might_have" key="id" map="" class="rud"/>
899                         <link field="net_access_level" reltype="has_a" key="id" map="" class="cnal"/>
900                         <link field="profile" reltype="has_a" key="id" map="" class="pgt"/>
901                         <link field="ident_type" reltype="has_a" key="id" map="" class="cit"/>
902                         <link field="billing_address" reltype="has_a" key="id" map="" class="aua"/>
903                         <link field="mailing_address" reltype="has_a" key="id" map="" class="aua"/>
904                         <link field="home_ou" reltype="has_a" key="id" map="" class="aou"/>
905                         <link field="standing" reltype="has_a" key="id" map="" class="cst"/>
906                         <link field="card" reltype="has_a" key="id" map="" class="ac"/>
907                         <link field="ident_type2" reltype="has_a" key="id" map="" class="cit"/>
908                         <link field="stat_cat_entries" reltype="has_many" key="target_usr" map="" class="actscecm"/>
909                         <link field="groups" reltype="has_many" key="usr" map="grp" class="pugm"/>
910                         <link field="usrgroup" reltype="has_many" key="usrgroup" map="" class="au"/>
911                         <link field="checkouts" reltype="has_many" key="usr" map="" class="circ"/>
912                         <link field="hold_requests" reltype="has_many" key="usr" map="" class="circ"/>
913                         <link field="permissions" reltype="has_many" key="usr" map="perm" class="pupm"/>
914                         <link field="settings" reltype="has_many" key="usr" map="" class="aus"/>
915                         <link reporter:label="Billable Transactions" field="billable_transactions" reltype="has_many" key="usr" map="" class="mbt"/>
916                         <link field="standing_penalties" reltype="has_many" key="usr" map="" class="ausp"/>
917                         <link field="addresses" reltype="has_many" key="usr" map="" class="aua"/>
918                         <link field="survey_responses" reltype="has_many" key="usr" map="" class="asvr"/>
919                         <link field="notes" reltype="has_many" key="usr" map="" class="aun"/>
920                         <link reporter:label="Check-ins Performed as Staff" field="checkins" reltype="has_many" key="checkin_staff" map="" class="circ"/>
921                         <link field="cards" reltype="has_many" key="usr" map="" class="ac"/>
922                         <link reporter:label="Circulations Performed as Staff" field="performed_circulations" reltype="has_many" key="circ_staff" map="" class="circ"/>
923                 </links>
924         </class>
925         <class id="aous" controller="open-ils.cstore" oils_obj:fieldmapper="actor::org_unit_setting" oils_persist:tablename="actor.org_unit_setting">
926                 <fields oils_persist:primary="id" oils_persist:sequence="actor.org_unit_setting_id_seq">
927                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
928                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
929                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
930                         <field name="id" oils_obj:array_position="3" oils_persist:virtual="false" />
931                         <field name="name" oils_obj:array_position="4" oils_persist:virtual="false"  reporter:datatype="text"/>
932                         <field name="org_unit" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="org_unit"/>
933                         <field name="value" oils_obj:array_position="6" oils_persist:virtual="false"  reporter:datatype="text"/>
934                 </fields>
935                 <links>
936                         <link field="org_unit" reltype="has_a" key="id" map="" class="aou"/>
937                 </links>
938         </class>
939         <class id="acpn" controller="open-ils.cstore" oils_obj:fieldmapper="asset::copy_note" oils_persist:tablename="asset.copy_note" reporter:label="Copy Note">
940                 <fields oils_persist:primary="id" oils_persist:sequence="asset.copy_note_id_seq">
941                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
942                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
943                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
944                         <field reporter:label="Note Creation Date/Time" name="create_date" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="timestamp"/>
945                         <field reporter:label="Note Creator" name="creator" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="link"/>
946                         <field reporter:label="Note ID" name="id" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="id" />
947                         <field reporter:label="Copy" name="owning_copy" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="link"/>
948                         <field reporter:label="Is OPAC Visible?" name="pub" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="bool"/>
949                         <field reporter:label="Note Title" name="title" oils_obj:array_position="8" oils_persist:virtual="false"  reporter:datatype="text"/>
950                         <field reporter:label="Note Content" name="value" oils_obj:array_position="9" oils_persist:virtual="false"  reporter:datatype="text"/>
951                 </fields>
952                 <links>
953                         <link field="owning_copy" reltype="has_a" key="id" map="" class="acp"/>
954                         <link field="creator" reltype="has_a" key="id" map="" class="au"/>
955                 </links>
956         </class>
957         <class id="mfr" controller="open-ils.cstore" oils_obj:fieldmapper="metabib::full_rec" oils_persist:tablename="metabib.full_rec" reporter:label="Flattened MARC Fields">
958                 <fields oils_persist:primary="id" oils_persist:sequence="metabib.full_rec_id_seq">
959                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
960                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
961                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
962                         <field reporter:label="Field ID" name="id" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="id" />
963                         <field reporter:label="Indicator 1" name="ind1" oils_obj:array_position="4" oils_persist:virtual="false" oils_persist:primitive="string"  reporter:datatype="text"/>
964                         <field reporter:label="Indicator 2" name="ind2" oils_obj:array_position="5" oils_persist:virtual="false" oils_persist:primitive="string"  reporter:datatype="text"/>
965                         <field reporter:label="Bib Record Entry" name="record" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="link"/>
966                         <field reporter:label="Subfield" name="subfield" oils_obj:array_position="7" oils_persist:virtual="false" oils_persist:primitive="string"  reporter:datatype="text"/>
967                         <field reporter:label="Tag" name="tag" oils_obj:array_position="8" oils_persist:virtual="false"  reporter:datatype="text"/>
968                         <field reporter:label="Normalized Value" name="value" oils_obj:array_position="9" oils_persist:virtual="false"  reporter:datatype="text"/>
969                 </fields>
970                 <links>
971                         <link field="record" reltype="has_a" key="id" map="" class="bre"/>
972                 </links>
973         </class>
974         <class id="mmr" controller="open-ils.cstore" oils_obj:fieldmapper="metabib::metarecord" oils_persist:tablename="metabib.metarecord">
975                 <fields oils_persist:primary="id" oils_persist:sequence="metabib.metarecord_id_seq">
976                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
977                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
978                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
979                         <field name="fingerprint" oils_obj:array_position="3" oils_persist:virtual="false"  reporter:datatype="text"/>
980                         <field name="id" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="id" />
981                         <field name="master_record" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="link"/>
982                         <field name="mods" oils_obj:array_position="6" oils_persist:virtual="false"  reporter:datatype="text"/>
983                         <field name="source_records" oils_obj:array_position="7" oils_persist:virtual="true" reporter:datatype="link"/>
984                 </fields>
985                 <links>
986                         <link field="master_record" reltype="has_a" key="id" map="" class="bre"/>
987                         <link field="source_records" reltype="has_many" key="metarecord" map="source" class="mmrsm"/>
988                 </links>
989         </class>
990         <class id="cnal" controller="open-ils.cstore" oils_obj:fieldmapper="config::net_access_level" oils_persist:tablename="config.net_access_level">
991                 <fields oils_persist:primary="id" oils_persist:sequence="config.net_access_level_id_seq">
992                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
993                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
994                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
995                         <field name="id" oils_obj:array_position="3" oils_persist:virtual="false" reporter:selector="name" reporter:datatype="id"/>
996                         <field name="name" oils_obj:array_position="4" oils_persist:virtual="false"  reporter:datatype="text"/>
997                 </fields>
998                 <links/>
999         </class>
1000         <class id="ppl" controller="open-ils.cstore" oils_obj:fieldmapper="permission::perm_list" oils_persist:tablename="permission.perm_list">
1001                 <fields oils_persist:primary="id" oils_persist:sequence="permission.perm_list_id_seq">
1002                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1003                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1004                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1005                         <field name="code" oils_obj:array_position="3" oils_persist:virtual="false"  reporter:datatype="text"/>
1006                         <field name="description" oils_obj:array_position="4" oils_persist:virtual="false"  reporter:datatype="text" oils_persist:i18n="true"/>
1007                         <field name="id" oils_obj:array_position="5" oils_persist:virtual="false" reporter:selector="code" reporter:datatype="id"/>
1008                 </fields>
1009                 <links/>
1010         </class>
1011         <class id="mmrsm" controller="open-ils.cstore" oils_obj:fieldmapper="metabib::metarecord_source_map" oils_persist:tablename="metabib.metarecord_source_map">
1012                 <fields oils_persist:primary="id" oils_persist:sequence="metabib.metarecord_source_map_id_seq">
1013                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1014                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1015                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1016                         <field name="id" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="id" />
1017                         <field name="metarecord" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="link"/>
1018                         <field name="source" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="link"/>
1019                 </fields>
1020                 <links>
1021                         <link field="source" reltype="has_a" key="id" map="" class="bre"/>
1022                         <link field="metarecord" reltype="has_a" key="id" map="" class="mmr"/>
1023                 </links>
1024         </class>
1025         <class id="mkfe" controller="open-ils.cstore" oils_obj:fieldmapper="metabib::keyword_field_entry" oils_persist:tablename="metabib.keyword_field_entry">
1026                 <fields oils_persist:primary="id" oils_persist:sequence="metabib.keyword_field_entry_id_seq">
1027                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1028                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1029                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1030                         <field name="field" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="link"/>
1031                         <field name="id" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="id" />
1032                         <field name="source" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="link"/>
1033                         <field name="value" oils_obj:array_position="6" oils_persist:virtual="false"  reporter:datatype="text"/>
1034                 </fields>
1035                 <links>
1036                         <link field="source" reltype="has_a" key="id" map="" class="bre"/>
1037                         <link field="field" reltype="has_a" key="id" map="" class="cmf"/>
1038                 </links>
1039         </class>
1040         <class id="mcp" controller="open-ils.cstore" oils_obj:fieldmapper="money::cash_payment" oils_persist:tablename="money.cash_payment">
1041                 <fields oils_persist:primary="id" oils_persist:sequence="money.payment_id_seq">
1042                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1043                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1044                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1045                         <field name="accepting_usr" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="link"/>
1046                         <field name="amount" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="money" />
1047                         <field name="amount_collected" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="money" />
1048                         <field name="cash_drawer" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="link"/>
1049                         <field name="id" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="id" />
1050                         <field name="note" oils_obj:array_position="8" oils_persist:virtual="false"  reporter:datatype="text"/>
1051                         <field name="payment_ts" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="timestamp"/>
1052                         <field name="xact" oils_obj:array_position="10" oils_persist:virtual="false" reporter:datatype="link"/>
1053                         <field name="payment_type" oils_obj:array_position="11" oils_persist:virtual="true"  reporter:datatype="text"/>
1054                         <field name="payment" oils_obj:array_position="12" oils_persist:virtual="true" reporter:datatype="link"/>
1055                 </fields>
1056                 <links>
1057                         <link field="payment" reltype="might_have" key="id" map="" class="mp"/>
1058                         <link field="accepting_usr" reltype="has_a" key="id" map="" class="au"/>
1059                         <link field="cash_drawer" reltype="has_a" key="id" map="" class="aws"/>
1060                         <link field="xact" reltype="has_a" key="id" map="" class="mbt"/>
1061                 </links>
1062         </class>
1063         <class id="mfp" controller="open-ils.cstore" oils_obj:fieldmapper="money::forgive_payment" oils_persist:tablename="money.forgive_payment">
1064                 <fields oils_persist:primary="id" oils_persist:sequence="money.payment_id_seq">
1065                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1066                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1067                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1068                         <field name="accepting_usr" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="link"/>
1069                         <field name="amount" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="money" />
1070                         <field name="amount_collected" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="money" />
1071                         <field name="id" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="id" />
1072                         <field name="note" oils_obj:array_position="7" oils_persist:virtual="false"  reporter:datatype="text"/>
1073                         <field name="payment_ts" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="timestamp"/>
1074                         <field name="xact" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="link"/>
1075                         <field name="payment_type" oils_obj:array_position="10" oils_persist:virtual="true"  reporter:datatype="text"/>
1076                         <field name="payment" oils_obj:array_position="11" oils_persist:virtual="true" reporter:datatype="link"/>
1077                 </fields>
1078                 <links>
1079                         <link field="payment" reltype="might_have" key="id" map="" class="mp"/>
1080                         <link field="accepting_usr" reltype="has_a" key="id" map="" class="au"/>
1081                         <link field="xact" reltype="has_a" key="id" map="" class="mbt"/>
1082                 </links>
1083         </class>
1084         <class id="mrd" controller="open-ils.cstore" oils_obj:fieldmapper="metabib::record_descriptor" oils_persist:tablename="metabib.rec_descriptor" reporter:label="Basic Record Descriptor">
1085                 <fields oils_persist:primary="id" oils_persist:sequence="metabib.rec_descriptor_id_seq">
1086                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1087                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1088                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1089                         <field reporter:label="Audn" name="audience" oils_obj:array_position="3" oils_persist:virtual="false" oils_persist:primitive="string"  reporter:datatype="text"/>
1090                         <field reporter:label="BLvl" name="bib_level" oils_obj:array_position="4" oils_persist:virtual="false" oils_persist:primitive="string"  reporter:datatype="text"/>
1091                         <field reporter:label="Cat Form" name="cat_form" oils_obj:array_position="5" oils_persist:virtual="false" oils_persist:primitive="string"  reporter:datatype="text"/>
1092                         <field reporter:label="Character Encoding" name="char_encoding" oils_obj:array_position="6" oils_persist:virtual="false" oils_persist:primitive="string"  reporter:datatype="text"/>
1093                         <field reporter:label="Ctrl" name="control_type" oils_obj:array_position="7" oils_persist:virtual="false" oils_persist:primitive="string"  reporter:datatype="text"/>
1094                         <field reporter:label="ELvl" name="enc_level" oils_obj:array_position="8" oils_persist:virtual="false" oils_persist:primitive="string"  reporter:datatype="text"/>
1095                         <field reporter:label="Descriptor ID" name="id" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="id" />
1096                         <field reporter:label="Form" name="item_form" oils_obj:array_position="10" oils_persist:virtual="false" oils_persist:primitive="string"  reporter:datatype="text"/>
1097                         <field reporter:label="Lang" name="item_lang" oils_obj:array_position="11" oils_persist:virtual="false" oils_persist:primitive="string"  reporter:datatype="text"/>
1098                         <field reporter:label="Type" name="item_type" oils_obj:array_position="12" oils_persist:virtual="false" oils_persist:primitive="string"  reporter:datatype="text"/>
1099                         <field reporter:label="LitF" name="lit_form" oils_obj:array_position="13" oils_persist:virtual="false" oils_persist:primitive="string"  reporter:datatype="text"/>
1100                         <field reporter:label="Pub Status" name="pub_status" oils_obj:array_position="14" oils_persist:virtual="false" oils_persist:primitive="string"  reporter:datatype="text"/>
1101                         <field reporter:label="Bib Record Entry" name="record" oils_obj:array_position="15" oils_persist:virtual="false" reporter:datatype="link"/>
1102                         <field reporter:label="TMat" name="type_mat" oils_obj:array_position="16" oils_persist:virtual="false" oils_persist:primitive="string"  reporter:datatype="text"/>
1103                         <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"/>
1104                 </fields>
1105                 <links>
1106                         <link field="record" reltype="has_a" key="id" map="" class="bre"/>
1107                         <link field="item_lang" reltype="has_a" key="code" map="" class="clm"/>
1108                         <link field="item_type" reltype="has_a" key="code" map="" class="citm"/>
1109                         <link field="item_form" reltype="has_a" key="code" map="" class="cifm"/>
1110                         <link field="audience" reltype="has_a" key="code" map="" class="cam"/>
1111                         <link field="lit_form" reltype="has_a" key="code" map="" class="clfm"/>
1112                 </links>
1113         </class>
1114         <class id="ccs" controller="open-ils.cstore" oils_obj:fieldmapper="config::copy_status" oils_persist:tablename="config.copy_status">
1115                 <fields oils_persist:primary="id" oils_persist:sequence="config.copy_status_id_seq">
1116                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1117                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1118                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1119                         <field name="holdable" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="bool"/>
1120                         <field name="id" oils_obj:array_position="4" oils_persist:virtual="false" reporter:selector="name" reporter:datatype="id"/>
1121                         <field name="name" oils_obj:array_position="5" oils_persist:virtual="false"  reporter:datatype="text" oils_persist:i18n="true"/>
1122                 </fields>
1123                 <links/>
1124         </class>
1125         <class id="ausp" controller="open-ils.cstore" oils_obj:fieldmapper="actor::user_standing_penalty" oils_persist:tablename="actor.usr_standing_penalty">
1126                 <fields oils_persist:primary="id" oils_persist:sequence="actor.usr_standing_penalty_id_seq">
1127                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1128                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1129                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1130                         <field name="id" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="id" />
1131                         <field name="penalty_type" oils_obj:array_position="4" oils_persist:virtual="false"  reporter:datatype="text"/>
1132                         <field name="usr" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="link"/>
1133                 </fields>
1134                 <links>
1135                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
1136                 </links>
1137         </class>
1138         <class id="aua" controller="open-ils.cstore" oils_obj:fieldmapper="actor::user_address" oils_persist:tablename="actor.usr_address" reporter:label="User Address">
1139                 <fields oils_persist:primary="id" oils_persist:sequence="actor.usr_address_id_seq">
1140                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1141                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1142                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1143                         <field reporter:label="Type" name="address_type" oils_obj:array_position="3" oils_persist:virtual="false"  reporter:datatype="text"/>
1144                         <field reporter:label="City" name="city" oils_obj:array_position="4" oils_persist:virtual="false"  reporter:datatype="text"/>
1145                         <field reporter:label="Country" name="country" oils_obj:array_position="5" oils_persist:virtual="false"  reporter:datatype="text"/>
1146                         <field reporter:label="County" name="county" oils_obj:array_position="6" oils_persist:virtual="false"  reporter:datatype="text"/>
1147                         <field reporter:label="Address ID" name="id" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="id" />
1148                         <field reporter:label="Postal Code" name="post_code" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="text"/>
1149                         <field reporter:label="State" name="state" oils_obj:array_position="9" oils_persist:virtual="false"  reporter:datatype="text"/>
1150                         <field reporter:label="Street (1)" name="street1" oils_obj:array_position="10" oils_persist:virtual="false"  reporter:datatype="text"/>
1151                         <field reporter:label="Street (2)" name="street2" oils_obj:array_position="11" oils_persist:virtual="false"  reporter:datatype="text"/>
1152                         <field reporter:label="User" name="usr" oils_obj:array_position="12" oils_persist:virtual="false" reporter:datatype="link"/>
1153                         <field reporter:label="Valid Address?" name="valid" oils_obj:array_position="13" oils_persist:virtual="false" reporter:datatype="bool"/>
1154                         <field reporter:label="Within City Limits?" name="within_city_limits" oils_obj:array_position="14" oils_persist:virtual="false" reporter:datatype="bool"/>
1155                 </fields>
1156                 <links>
1157                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
1158                 </links>
1159         </class>
1160         <class id="acnn" controller="open-ils.cstore" oils_obj:fieldmapper="asset::call_number_note" oils_persist:tablename="asset.call_number_note">
1161                 <fields oils_persist:primary="id" oils_persist:sequence="asset.call_number_note_id_seq">
1162                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1163                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1164                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1165                         <field name="call_number" oils_obj:array_position="3" oils_persist:virtual="false" />
1166                         <field name="create_date" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="timestamp"/>
1167                         <field name="creator" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="link"/>
1168                         <field name="id" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="id" />
1169                         <field name="pub" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="bool"/>
1170                         <field name="title" oils_obj:array_position="8" oils_persist:virtual="false"  reporter:datatype="text"/>
1171                         <field name="value" oils_obj:array_position="9" oils_persist:virtual="false"  reporter:datatype="text"/>
1172                 </fields>
1173                 <links>
1174                         <link field="call_number" reltype="has_a" key="id" map="" class="acn"/>
1175                 </links>
1176         </class>
1177         <class id="arn" controller="open-ils.cstore" oils_obj:fieldmapper="authority::record_note" oils_persist:tablename="authority.record_note">
1178                 <fields oils_persist:primary="id" oils_persist:sequence="authority.record_note_id_seq">
1179                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1180                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1181                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1182                         <field name="create_date" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="timestamp"/>
1183                         <field name="creator" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="link"/>
1184                         <field name="edit_date" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="timestamp"/>
1185                         <field name="editor" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="link"/>
1186                         <field name="id" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="id" />
1187                         <field name="record" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="link"/>
1188                         <field name="value" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="text"/>
1189                 </fields>
1190                 <links>
1191                         <link field="record" reltype="has_a" key="id" map="" class="are"/>
1192                 </links>
1193         </class>
1194         <class id="circ" controller="open-ils.cstore" oils_obj:fieldmapper="action::circulation" oils_persist:tablename="action.circulation" reporter:core="true" reporter:label="Circulation">
1195                 <fields oils_persist:primary="id" oils_persist:sequence="money.billable_xact_id_seq">
1196                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1197                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1198                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1199                         <field reporter:label="Check In Library" name="checkin_lib" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="org_unit"/>
1200                         <field reporter:label="Check In Staff" name="checkin_staff" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="link"/>
1201                         <field reporter:label="Check In Date/Time" name="checkin_time" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="timestamp"/>
1202                         <field reporter:label="Circulating Library" name="circ_lib" oils_obj:array_position="6" oils_persist:virtual="false"  reporter:datatype="org_unit"/>
1203                         <field reporter:label="Circulating Staff" name="circ_staff" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="link"/>
1204                         <field reporter:label="Desk Renewal" name="desk_renewal" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="bool"/>
1205                         <field reporter:label="Due Date/Time" name="due_date" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="timestamp"/>
1206                         <field reporter:label="Circulation Duration" name="duration" oils_obj:array_position="10" oils_persist:virtual="false" reporter:datatype="interval"/>
1207                         <field reporter:label="Circ Duration Rule" name="duration_rule" oils_obj:array_position="11" oils_persist:virtual="false" reporter:datatype="link"/>
1208                         <field reporter:label="Fine Interval" name="fine_interval" oils_obj:array_position="12" oils_persist:virtual="false" reporter:datatype="interval"/>
1209                         <field reporter:label="Circ ID" name="id" oils_obj:array_position="13" oils_persist:virtual="false" reporter:datatype="id" />
1210                         <field reporter:label="Max Fine Amount" name="max_fine" oils_obj:array_position="14" oils_persist:virtual="false" reporter:datatype="money" />
1211                         <field reporter:label="Max Fine Rule" name="max_fine_rule" oils_obj:array_position="15" oils_persist:virtual="false" reporter:datatype="link"/>
1212                         <field reporter:label="OPAC Renewal" name="opac_renewal" oils_obj:array_position="16" oils_persist:virtual="false" reporter:datatype="bool"/>
1213                         <field reporter:label="Phone Renewal" name="phone_renewal" oils_obj:array_position="17" oils_persist:virtual="false" reporter:datatype="bool"/>
1214                         <field reporter:label="Recurring Fine Amount" name="recuring_fine" oils_obj:array_position="18" oils_persist:virtual="false" reporter:datatype="money" />
1215                         <field reporter:label="Recurring Fine Rule" name="recuring_fine_rule" oils_obj:array_position="19" oils_persist:virtual="false" reporter:datatype="link"/>
1216                         <field reporter:label="Remaining Renewals" name="renewal_remaining" oils_obj:array_position="20" oils_persist:virtual="false" reporter:datatype="int" />
1217                         <field reporter:label="Fine Stop Reason" name="stop_fines" oils_obj:array_position="21" oils_persist:virtual="false" reporter:datatype="text"/>
1218                         <field reporter:label="Fine Stop Date/Time" name="stop_fines_time" oils_obj:array_position="22" oils_persist:virtual="false" reporter:datatype="timestamp"/>
1219                         <field reporter:label="Circulating Item" name="target_copy" oils_obj:array_position="23" oils_persist:virtual="false" reporter:datatype="link"/>
1220                         <field reporter:label="Patron" name="usr" oils_obj:array_position="24" oils_persist:virtual="false" reporter:datatype="link"/>
1221                         <field reporter:label="Transaction Finish Date/Time" name="xact_finish" oils_obj:array_position="25" oils_persist:virtual="false" reporter:datatype="timestamp" />
1222                         <field reporter:label="Check Out Date/Time" name="xact_start" oils_obj:array_position="26" oils_persist:virtual="false" reporter:datatype="timestamp" />
1223                         <field reporter:label="Record Creation Date/Time" name="create_time" oils_obj:array_position="27" oils_persist:virtual="false" reporter:datatype="timestamp" />
1224                         <field reporter:label="Transaction Billings" name="billings" oils_obj:array_position="28" oils_persist:virtual="true" reporter:datatype="link"/>
1225                         <field reporter:label="Transaction Payments" name="payments" oils_obj:array_position="29" oils_persist:virtual="true" reporter:datatype="link"/>
1226                         <field reporter:label="Base Transaction" name="billable_transaction" oils_obj:array_position="30" oils_persist:virtual="true" reporter:datatype="link"/>
1227                         <field reporter:label="Circulation Type" name="circ_type" oils_obj:array_position="31" oils_persist:virtual="true" reporter:datatype="text"/>
1228                         <field reporter:label="Billing Totals" name="billing_total" oils_obj:array_position="32" oils_persist:virtual="true" reporter:datatype="money"/>
1229                         <field reporter:label="Payment Totals" name="payment_total" oils_obj:array_position="33" oils_persist:virtual="true" reporter:datatype="money"/>
1230                 </fields>
1231                 <links>
1232                         <link field="billable_transaction" reltype="might_have" key="id" map="" class="mbt"/>
1233                         <link field="circ_staff" reltype="has_a" key="id" map="" class="au"/>
1234                         <link field="checkin_lib" reltype="has_a" key="id" map="" class="aou"/>
1235                         <link field="target_copy" reltype="has_a" key="id" map="" class="acp"/>
1236                         <link field="checkin_staff" reltype="has_a" key="id" map="" class="au"/>
1237                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
1238                         <link field="circ_lib" reltype="has_a" key="id" map="" class="aou"/>
1239                         <link field="payments" reltype="has_many" key="xact" map="" class="mp"/>
1240                         <link field="billings" reltype="has_many" key="xact" map="" class="mb"/>
1241                         <link field="duration_rule" reltype="has_a" key="name" map="" class="crcd"/>
1242                         <link field="max_fine_rule" reltype="has_a" key="name" map="" class="crmf"/>
1243                         <link field="recuring_fine_rule" reltype="has_a" key="name" map="" class="crrf"/>
1244                         <link field="circ_type" reltype="might_have" key="id" map="" class="rcirct"/>
1245                         <link field="billing_total" reltype="might_have" key="xact" map="" class="rxbt"/>
1246                         <link field="payment_total" reltype="might_have" key="xact" map="" class="rxpt"/>
1247                 </links>
1248         </class>
1249         <class id="ccnbi" controller="open-ils.cstore" oils_obj:fieldmapper="container::call_number_bucket_item" oils_persist:tablename="container.call_number_bucket_item">
1250                 <fields oils_persist:primary="id" oils_persist:sequence="container.call_number_bucket_item_id_seq">
1251                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1252                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1253                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1254                         <field name="bucket" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="link"/>
1255                         <field name="id" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="id" />
1256                         <field name="target_call_number" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="link" />
1257                         <field name="create_time" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="timestamp" />
1258                 </fields>
1259                 <links>
1260                         <link field="target_call_number" reltype="has_a" key="id" map="" class="acn"/>
1261                         <link field="bucket" reltype="has_a" key="id" map="" class="ccnb"/>
1262                 </links>
1263         </class>
1264         <class id="cbreb" controller="open-ils.cstore" oils_obj:fieldmapper="container::biblio_record_entry_bucket" oils_persist:tablename="container.biblio_record_entry_bucket">
1265                 <fields oils_persist:primary="id" oils_persist:sequence="container.biblio_record_entry_bucket_id_seq">
1266                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1267                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1268                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1269                         <field name="items" oils_obj:array_position="3" oils_persist:virtual="true" reporter:datatype="link"/>
1270                         <field name="btype" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="text"/>
1271                         <field name="id" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="id" />
1272                         <field name="name" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="text"/>
1273                         <field name="owner" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="link"/>
1274                         <field name="pub" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="bool"/>
1275                         <field name="create_time" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="timestamp" />
1276                 </fields>
1277                 <links>
1278                         <link field="owner" reltype="has_a" key="id" map="" class="au"/>
1279                         <link field="items" reltype="has_many" key="bucket" map="" class="cbrebi"/>
1280                 </links>
1281         </class>
1282         <class id="ahcm" controller="open-ils.cstore" oils_obj:fieldmapper="action::hold_copy_map" oils_persist:tablename="action.hold_copy_map">
1283                 <fields oils_persist:primary="id" oils_persist:sequence="action.hold_copy_map_id_seq">
1284                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1285                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1286                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1287                         <field name="hold" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="link"/>
1288                         <field name="id" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="id" />
1289                         <field name="target_copy" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="link"/>
1290                 </fields>
1291                 <links>
1292                         <link field="hold" reltype="has_a" key="id" map="" class="ahr"/>
1293                         <link field="target_copy" reltype="has_a" key="id" map="" class="acp"/>
1294                 </links>
1295         </class>
1296         <class id="ahn" controller="open-ils.cstore" oils_obj:fieldmapper="action::hold_notification" oils_persist:tablename="action.hold_notification" reporter:label="Hold Notification">
1297                 <fields oils_persist:primary="id" oils_persist:sequence="action.hold_notification_id_seq">
1298                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1299                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1300                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1301                         <field reporter:label="Hold" name="hold" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="link"/>
1302                         <field reporter:label="Notification ID" name="id" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="id" />
1303                         <field reporter:label="Notification Method" name="method" oils_obj:array_position="5" oils_persist:virtual="false"  reporter:datatype="text"/>
1304                         <field reporter:label="Notification Note" name="note" oils_obj:array_position="6" oils_persist:virtual="false"  reporter:datatype="text"/>
1305                         <field reporter:label="Notifying Staff" name="notify_staff" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="link"/>
1306                         <field reporter:label="Notification Date/Time" name="notify_time" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="timestamp"/>
1307                 </fields>
1308                 <links>
1309                         <link field="hold" reltype="has_a" key="id" map="" class="ahr"/>
1310                         <link field="notify_staff" reltype="has_a" key="id" map="" class="au"/>
1311                 </links>
1312         </class>
1313         <class id="acpl" controller="open-ils.cstore" oils_obj:fieldmapper="asset::copy_location" oils_persist:tablename="asset.copy_location" reporter:label="Copy/Shelving Location">
1314                 <fields oils_persist:primary="id" oils_persist:sequence="asset.copy_location_id_seq">
1315                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1316                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1317                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1318                         <field reporter:label="Can Circulate?" name="circulate" oils_obj:array_position="3" oils_persist:virtual="false"  reporter:datatype="bool"/>
1319                         <field reporter:label="Is Holdable?" name="holdable" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="bool"/>
1320                         <field reporter:label="Location ID" name="id" oils_obj:array_position="5" oils_persist:virtual="false" reporter:selector="name" reporter:datatype="id"/>
1321                         <field reporter:label="Name" name="name" oils_obj:array_position="6" oils_persist:virtual="false"  reporter:datatype="text" oils_persist:i18n="true"/>
1322                         <field reporter:label="Is OPAC Visible?" name="opac_visible" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="bool"/>
1323                         <field reporter:label="Owning Org Unit" name="owning_lib" oils_obj:array_position="8" oils_persist:virtual="false"  reporter:datatype="org_unit"/>
1324                 </fields>
1325                 <links>
1326                         <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
1327                 </links>
1328         </class>
1329         <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">
1330                 <fields oils_persist:primary="id" oils_persist:sequence="asset.stat_cat_entry_copy_map_id_seq">
1331                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1332                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1333                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1334                         <field name="id" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="id" />
1335                         <field name="owning_copy" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="link"/>
1336                         <field name="stat_cat" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="link"/>
1337                         <field name="stat_cat_entry" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="link"/>
1338                 </fields>
1339                 <links>
1340                         <link field="owning_copy" reltype="has_a" key="id" map="" class="acp"/>
1341                         <link field="stat_cat_entry" reltype="has_a" key="id" map="" class="asce"/>
1342                         <link field="stat_cat" reltype="has_a" key="id" map="" class="asc"/>
1343                 </links>
1344         </class>
1345         <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">
1346                 <fields oils_persist:primary="code" oils_persist:sequence="">
1347                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1348                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1349                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1350                         <field reporter:label="Item Type Code" name="code" oils_obj:array_position="3" oils_persist:virtual="false"  reporter:datatype="text"/>
1351                         <field reporter:label="Item Type" name="value" oils_obj:array_position="4" oils_persist:virtual="false"  reporter:datatype="text" oils_persist:i18n="true"/>
1352                 </fields>
1353                 <links/>
1354         </class>
1355         <class id="aoup" controller="open-ils.cstore" oils_obj:fieldmapper="actor::org_unit_proximity" oils_persist:tablename="actor.org_unit_proximity">
1356                 <fields oils_persist:primary="id" oils_persist:sequence="actor.org_unit_proximity_id_seq">
1357                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1358                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1359                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1360                         <field name="id" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="id" />
1361                         <field name="from_org" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="org_unit"/>
1362                         <field name="to_org" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="org_unit"/>
1363                         <field name="prox" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="int" />
1364                 </fields>
1365                 <links>
1366                         <link field="from_org" reltype="has_a" key="id" map="" class="aou"/>
1367                         <link field="to_org" reltype="has_a" key="id" map="" class="aou"/>
1368                 </links>
1369         </class>
1370         <class id="asv" controller="open-ils.cstore" oils_obj:fieldmapper="action::survey" oils_persist:tablename="action.survey" reporter:label="Survey">
1371                 <fields oils_persist:primary="id" oils_persist:sequence="action.survey_id_seq">
1372                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1373                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1374                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1375                         <field reporter:label="Questions" name="questions" oils_obj:array_position="3" oils_persist:virtual="true" reporter:datatype="link"/>
1376                         <field reporter:label="Responses" name="responses" oils_obj:array_position="4" oils_persist:virtual="true" reporter:datatype="link"/>
1377                         <field reporter:label="Description" name="description" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="text"/>
1378                         <field reporter:label="Survey End Date/Time" name="end_date" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="timestamp"/>
1379                         <field reporter:label="Survey ID" name="id" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="id"/>
1380                         <field reporter:label="Name" name="name" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="text"/>
1381                         <field reporter:label="OPAC Surevey?" name="opac" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="bool"/>
1382                         <field reporter:label="Owning Library" name="owner" oils_obj:array_position="10" oils_persist:virtual="false" reporter:datatype="org_unit"/>
1383                         <field reporter:label="Poll Style?" name="poll" oils_obj:array_position="11" oils_persist:virtual="false" reporter:datatype="bool"/>
1384                         <field reporter:label="Is Required?" name="required" oils_obj:array_position="12" oils_persist:virtual="false" reporter:datatype="bool"/>
1385                         <field reporter:label="Survey Start Date/Time" name="start_date" oils_obj:array_position="13" oils_persist:virtual="false" reporter:datatype="timestamp"/>
1386                         <field reporter:label="Display in User Summary" name="usr_summary" oils_obj:array_position="14" oils_persist:virtual="false" reporter:datatype="bool"/>
1387                 </fields>
1388                 <links>
1389                         <link field="owner" reltype="has_a" key="survey" map="" class="aou"/>
1390                         <link field="responses" reltype="has_many" key="survey" map="" class="asvr"/>
1391                         <link field="questions" reltype="has_many" key="survey" map="" class="asvq"/>
1392                 </links>
1393         </class>
1394         <class id="aoa" controller="open-ils.cstore" oils_obj:fieldmapper="actor::org_address" oils_persist:tablename="actor.org_address">
1395                 <fields oils_persist:primary="id" oils_persist:sequence="actor.org_address_id_seq">
1396                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1397                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1398                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1399                         <field name="address_type" oils_obj:array_position="3" oils_persist:virtual="false"  reporter:datatype="text"/>
1400                         <field name="city" oils_obj:array_position="4" oils_persist:virtual="false"  reporter:datatype="text"/>
1401                         <field name="country" oils_obj:array_position="5" oils_persist:virtual="false"  reporter:datatype="text"/>
1402                         <field name="county" oils_obj:array_position="6" oils_persist:virtual="false"  reporter:datatype="text"/>
1403                         <field name="id" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="id" />
1404                         <field name="org_unit" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="org_unit"/>
1405                         <field name="post_code" oils_obj:array_position="9" oils_persist:virtual="false"  reporter:datatype="text"/>
1406                         <field name="state" oils_obj:array_position="10" oils_persist:virtual="false"  reporter:datatype="text"/>
1407                         <field name="street1" oils_obj:array_position="11" oils_persist:virtual="false"  reporter:datatype="text"/>
1408                         <field name="street2" oils_obj:array_position="12" oils_persist:virtual="false"  reporter:datatype="text"/>
1409                         <field name="valid" oils_obj:array_position="13" oils_persist:virtual="false" reporter:datatype="bool"/>
1410                 </fields>
1411                 <links>
1412                         <link field="org_unit" reltype="has_a" key="id" map="" class="aou"/>
1413                 </links>
1414         </class>
1415         <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">
1416                 <fields oils_persist:primary="id" oils_persist:sequence="action.hold_request_id_seq">
1417                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1418                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1419                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1420                         <field name="status" oils_obj:array_position="3" oils_persist:virtual="true" />
1421                         <field reporter:label="Transit" name="transit" oils_obj:array_position="4" oils_persist:virtual="true" />
1422                         <field reporter:label="Capture Date/Time" name="capture_time" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="timestamp"/>
1423                         <field reporter:label="Currently Targeted Copy" name="current_copy" oils_obj:array_position="6" oils_persist:virtual="false" />
1424                         <field reporter:label="Notify by Email?" name="email_notify" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="bool"/>
1425                         <field reporter:label="Hold Expire Date/Time" name="expire_time" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="timestamp"/>
1426                         <field reporter:label="Fulfilling Library" name="fulfillment_lib" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="org_unit"/>
1427                         <field reporter:label="Fulfilling Staff" name="fulfillment_staff" oils_obj:array_position="10" oils_persist:virtual="false" />
1428                         <field reporter:label="Fulfillment Date/Time" name="fulfillment_time" oils_obj:array_position="11" oils_persist:virtual="false" reporter:datatype="timestamp"/>
1429                         <field reporter:label="Hold Type" name="hold_type" oils_obj:array_position="12" oils_persist:virtual="false" reporter:datatype="text"/>
1430                         <field reporter:label="Holdable Formats (for M-type hold)" name="holdable_formats" oils_obj:array_position="13" oils_persist:virtual="false" reporter:datatype="text"/>
1431                         <field reporter:label="Hold ID" name="id" oils_obj:array_position="14" oils_persist:virtual="false" reporter:datatype="id" />
1432                         <field reporter:label="Notifications Phone Number" name="phone_notify" oils_obj:array_position="15" oils_persist:virtual="false" reporter:datatype="text"/>
1433                         <field reporter:label="Pickup Library" name="pickup_lib" oils_obj:array_position="16" oils_persist:virtual="false" reporter:datatype="org_unit"/>
1434                         <field reporter:label="Last Targeting Date/Time" name="prev_check_time" oils_obj:array_position="17" oils_persist:virtual="false" reporter:datatype="timestamp"/>
1435                         <field reporter:label="Requesting Library" name="request_lib" oils_obj:array_position="18" oils_persist:virtual="false" reporter:datatype="org_unit"/>
1436                         <field reporter:label="Request Date/Time" name="request_time" oils_obj:array_position="19" oils_persist:virtual="false" reporter:datatype="timestamp"/>
1437                         <field reporter:label="Requesting User" name="requestor" oils_obj:array_position="20" oils_persist:virtual="false" reporter:datatype="link"/>
1438                         <field reporter:label="Item Selection Depth" name="selection_depth" oils_obj:array_position="21" oils_persist:virtual="false" />
1439                         <field reporter:label="Selection Locus" name="selection_ou" oils_obj:array_position="22" oils_persist:virtual="false" reporter:datatype="org_unit"/>
1440                         <field reporter:label="Target Object ID" name="target" oils_obj:array_position="23" oils_persist:virtual="false" reporter:datatype="link"/>
1441                         <field reporter:label="Hold User" name="usr" oils_obj:array_position="24" oils_persist:virtual="false" reporter:datatype="link"/>
1442                         <field reporter:label="Hold Cancel Date/Time" name="cancel_time" oils_obj:array_position="25" oils_persist:virtual="false" reporter:datatype="timestamp"/>
1443                         <field name="notify_time" oils_obj:array_position="26" oils_persist:virtual="true" reporter:datatype="timestamp"/>
1444                         <field name="notify_count" oils_obj:array_position="27" oils_persist:virtual="true" reporter:datatype="int" />
1445                         <field reporter:label="Notifications" name="notifications" oils_obj:array_position="28" oils_persist:virtual="true" reporter:datatype="link"/>
1446                         <field reporter:label="Bib Record link" name="bib_rec" oils_obj:array_position="29" oils_persist:virtual="true" reporter:datatype="link"/>
1447                         <field reporter:label="Eligible Copies" name="eligible_copies" oils_obj:array_position="30" oils_persist:virtual="true" reporter:datatype="link"/>
1448                         <field reporter:label="Currently Frozen" name="frozen" oils_obj:array_position="31" oils_persist:virtual="false" reporter:datatype="bool"/>
1449                         <field reporter:label="Thaw Date (if frozen)" name="thaw_date" oils_obj:array_position="32" oils_persist:virtual="false" reporter:datatype="timestamp"/>
1450                 </fields>
1451                 <links>
1452                         <link field="fulfillment_lib" reltype="has_a" key="id" map="" class="aou"/>
1453                         <link field="fulfillment_staff" reltype="has_a" key="id" map="" class="au"/>
1454                         <link field="pickup_lib" reltype="has_a" key="id" map="" class="aou"/>
1455                         <link field="selection_ou" reltype="has_a" key="id" map="" class="aou"/>
1456                         <link field="requestor" reltype="has_a" key="id" map="" class="au"/>
1457                         <link field="current_copy" reltype="has_a" key="id" map="" class="acp"/>
1458                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
1459                         <link field="request_lib" reltype="has_a" key="id" map="" class="aou"/>
1460                         <link field="transit" reltype="might_have" key="hold" map="" class="ahtc"/>
1461                         <link field="notifications" reltype="has_many" key="hold" map="" class="ahn"/>
1462                         <link field="eligible_copies" reltype="has_many" key="hold" map="target_copy" class="ahcm"/>
1463                         <link field="bib_rec" reltype="might_have" key="id" map="" class="rhrr"/>
1464                 </links>
1465         </class>
1466         <class id="aou" controller="open-ils.cstore" oils_obj:fieldmapper="actor::org_unit" oils_persist:tablename="actor.org_unit" reporter:label="Organizational Unit">
1467                 <fields oils_persist:primary="id" oils_persist:sequence="actor.org_unit_id_seq">
1468                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1469                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1470                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1471                         <field reporter:label="Subordinate Organizational Units" name="children" oils_obj:array_position="3" oils_persist:virtual="true" reporter:datatype="org_unit"/>
1472                         <field reporter:label="Billing Address" name="billing_address" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="link"/>
1473                         <field reporter:label="Holds Receiving Address" name="holds_address" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="link"/>
1474                         <field reporter:label="Organizational Unit ID" name="id" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="org_unit"/>
1475                         <field reporter:label="ILL Receiving Address" name="ill_address" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="link"/>
1476                         <field reporter:label="Mailing Address" name="mailing_address" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="link"/>
1477                         <field reporter:label="Name" name="name" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="text" oils_persist:i18n="true"/>
1478                         <field reporter:label="Organizational Unit Type" name="ou_type" oils_obj:array_position="10" oils_persist:virtual="false" reporter:datatype="link"/>
1479                         <field reporter:label="Parent Organizational Unit" name="parent_ou" oils_obj:array_position="11" oils_persist:virtual="false" reporter:datatype="link"/>
1480                         <field reporter:label="Short (Policy) Name" name="shortname" oils_obj:array_position="12" oils_persist:virtual="false" reporter:datatype="text"/>
1481                         <field reporter:label="Email Address" name="email" oils_obj:array_position="13" oils_persist:virtual="false" reporter:datatype="text"/>
1482                         <field reporter:label="Phone Number" name="phone" oils_obj:array_position="14" oils_persist:virtual="false" reporter:datatype="text"/>
1483                         <field reporter:label="OPAC Visible" name="opac_visible" oils_obj:array_position="15" oils_persist:virtual="false" reporter:datatype="bool"/>
1484                         <field reporter:label="Users" name="users" oils_obj:array_position="16" oils_persist:virtual="true" reporter:datatype="link"/>
1485                         <field reporter:label="Closed Dates" name="closed_dates" oils_obj:array_position="17" oils_persist:virtual="true" reporter:datatype="link"/>
1486                         <field reporter:label="Circulations" name="circulations" oils_obj:array_position="18" oils_persist:virtual="true" reporter:datatype="link"/>
1487                         <field reporter:label="Settings" name="settings" oils_obj:array_position="19" oils_persist:virtual="true" reporter:datatype="link"/>
1488                         <field reporter:label="Addresses" name="addresses" oils_obj:array_position="20" oils_persist:virtual="true" reporter:datatype="link"/>
1489                         <field reporter:label="Checkins" name="checkins" oils_obj:array_position="21" oils_persist:virtual="true" reporter:datatype="link"/>
1490                         <field reporter:label="Workstations" name="workstations" oils_obj:array_position="22" oils_persist:virtual="true" reporter:datatype="link"/>
1491                 </fields>
1492                 <links>
1493                         <link field="billing_address" reltype="has_a" key="id" map="" class="aoa"/>
1494                         <link field="holds_address" reltype="has_a" key="id" map="" class="aoa"/>
1495                         <link field="ou_type" reltype="has_a" key="id" map="" class="aout"/>
1496                         <link field="mailing_address" reltype="has_a" key="id" map="" class="aoa"/>
1497                         <link field="parent_ou" reltype="has_a" key="id" map="" class="aou"/>
1498                         <link field="ill_address" reltype="has_a" key="id" map="" class="aoa"/>
1499                         <link field="users" reltype="has_many" key="home_ou" map="" class="au"/>
1500                         <link field="closed_dates" reltype="has_many" key="org_unit" map="" class="aoucd"/>
1501                         <link field="children" reltype="has_many" key="parent_ou" map="" class="aou"/>
1502                         <link field="circulations" reltype="has_many" key="circ_lib" map="" class="circ"/>
1503                         <link field="settings" reltype="has_many" key="org_unit" map="" class="aous"/>
1504                         <link field="addresses" reltype="has_many" key="org_unit" map="" class="aoa"/>
1505                         <link field="checkins" reltype="has_many" key="checkin_lib" map="" class="circ"/>
1506                         <link field="workstations" reltype="has_many" key="owning_lib" map="" class="aws"/>
1507                 </links>
1508         </class>
1509         <class id="ccnb" controller="open-ils.cstore" oils_obj:fieldmapper="container::call_number_bucket" oils_persist:tablename="container.call_number_bucket">
1510                 <fields oils_persist:primary="id" oils_persist:sequence="container.call_number_bucket_id_seq">
1511                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1512                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1513                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1514                         <field name="items" oils_obj:array_position="3" oils_persist:virtual="true" reporter:datatype="link"/>
1515                         <field name="btype" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="text"/>
1516                         <field name="id" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="id" />
1517                         <field name="name" oils_obj:array_position="6" oils_persist:virtual="false"  reporter:datatype="text"/>
1518                         <field name="owner" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="link"/>
1519                         <field name="pub" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="bool"/>
1520                         <field name="create_time" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="timestamp" />
1521                 </fields>
1522                 <links>
1523                         <link field="owner" reltype="has_a" key="id" map="" class="au"/>
1524                         <link field="items" reltype="has_many" key="bucket" map="" class="ccnbi"/>
1525                 </links>
1526         </class>
1527         <class id="asc" controller="open-ils.cstore" oils_obj:fieldmapper="asset::stat_cat" oils_persist:tablename="asset.stat_cat" reporter:label="Asset Statistical Category">
1528                 <fields oils_persist:primary="id" oils_persist:sequence="asset.stat_cat_id_seq">
1529                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1530                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1531                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1532                         <field reporter:label="Entries" name="entries" oils_obj:array_position="3" oils_persist:virtual="true" reporter:datatype="link"/>
1533                         <field reporter:label="Stat Cat ID" name="id" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="id" reporter:selector="name"/>
1534                         <field reporter:label="Name" name="name" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="text" oils_persist:i18n="true"/>
1535                         <field reporter:label="OPAC Visible" name="opac_visible" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="bool"/>
1536                         <field reporter:label="Owning Library" name="owner" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="org_unit"/>
1537                 </fields>
1538                 <links>
1539                         <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
1540                         <link field="entries" reltype="has_many" key="stat_cat" map="" class="asce"/>
1541                 </links>
1542         </class>
1543         <class id="ac" controller="open-ils.cstore" oils_obj:fieldmapper="actor::card" oils_persist:tablename="actor.card" reporter:label="Library Card">
1544                 <fields oils_persist:primary="id" oils_persist:sequence="actor.card_id_seq">
1545                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1546                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1547                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1548                         <field reporter:label="IsActive?" name="active" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="bool"/>
1549                         <field reporter:label="Barcode" name="barcode" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="text"/>
1550                         <field reporter:label="Card ID" name="id" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="id" />
1551                         <field reporter:label="User" name="usr" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="link"/>
1552                 </fields>
1553                 <links>
1554                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
1555                 </links>
1556         </class>
1557         <class id="actsc" controller="open-ils.cstore" oils_obj:fieldmapper="actor::stat_cat" oils_persist:tablename="actor.stat_cat" reporter:label="User Statistical Category">
1558                 <fields oils_persist:primary="id" oils_persist:sequence="actor.stat_cat_id_seq">
1559                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1560                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1561                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1562                         <field reporter:label="Entries" name="entries" oils_obj:array_position="3" oils_persist:virtual="true" reporter:datatype="link"/>
1563                         <field reporter:label="Stat Cat ID" name="id" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="id" reporter:selector="name"/>
1564                         <field reporter:label="Name" name="name" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="text" oils_persist:i18n="true"/>
1565                         <field reporter:label="OPAC Visible" name="opac_visible" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="bool"/>
1566                         <field reporter:label="Owning Library" name="owner" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="org_unit"/>
1567                 </fields>
1568                 <links>
1569                         <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
1570                         <link field="entries" reltype="has_many" key="stat_cat" map="" class="actsce"/>
1571                 </links>
1572         </class>
1573         <class id="msefe" controller="open-ils.cstore" oils_obj:fieldmapper="metabib::series_field_entry" oils_persist:tablename="metabib.series_field_entry">
1574                 <fields oils_persist:primary="id" oils_persist:sequence="metabib.series_field_entry_id_seq">
1575                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1576                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1577                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1578                         <field name="field" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="link"/>
1579                         <field name="id" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="id" />
1580                         <field name="source" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="link"/>
1581                         <field name="value" oils_obj:array_position="6" oils_persist:virtual="false"  reporter:datatype="text"/>
1582                 </fields>
1583                 <links>
1584                         <link field="source" reltype="has_a" key="id" map="" class="bre"/>
1585                         <link field="field" reltype="has_a" key="id" map="" class="cmf"/>
1586                 </links>
1587         </class>
1588         <class id="cub" controller="open-ils.cstore" oils_obj:fieldmapper="container::user_bucket" oils_persist:tablename="container.user_bucket">
1589                 <fields oils_persist:primary="id" oils_persist:sequence="container.user_bucket_id_seq">
1590                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1591                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1592                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1593                         <field name="items" oils_obj:array_position="3" oils_persist:virtual="true" reporter:datatype="link"/>
1594                         <field name="btype" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="text"/>
1595                         <field name="id" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="id" />
1596                         <field name="name" oils_obj:array_position="6" oils_persist:virtual="false"  reporter:datatype="text"/>
1597                         <field name="owner" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="link"/>
1598                         <field name="pub" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="bool"/>
1599                         <field name="create_time" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="timestamp" />
1600                 </fields>
1601                 <links>
1602                         <link field="owner" reltype="has_a" key="id" map="" class="au"/>
1603                         <link field="items" reltype="has_many" key="bucket" map="" class="cubi"/>
1604                 </links>
1605         </class>
1606         <class id="mcrp" controller="open-ils.cstore" oils_obj:fieldmapper="money::credit_payment" oils_persist:tablename="money.credit_payment" reporter:label="House Credit Payment">
1607                 <fields oils_persist:primary="id" oils_persist:sequence="money.payment_id_seq">
1608                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1609                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1610                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1611                         <field reporter:label="Accepting Staff Member" name="accepting_usr" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="link"/>
1612                         <field reporter:label="Amount" name="amount" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="money" />
1613                         <field reporter:label="Amount Collected" name="amount_collected" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="money" />
1614                         <field reporter:label="Pyament ID" name="id" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="id" />
1615                         <field reporter:label="Payment Note" name="note" oils_obj:array_position="7" oils_persist:virtual="false"  reporter:datatype="text"/>
1616                         <field reporter:label="Payment Timestamp" name="payment_ts" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="timestamp"/>
1617                         <field reporter:label="Transaction" name="xact" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="link"/>
1618                         <field reporter:label="Payment Type" name="payment_type" oils_obj:array_position="10" oils_persist:virtual="true"  reporter:datatype="text"/>
1619                         <field reporter:label="Payment link" name="payment" oils_obj:array_position="11" oils_persist:virtual="true" reporter:datatype="link"/>
1620                 </fields>
1621                 <links>
1622                         <link field="payment" reltype="might_have" key="id" map="" class="mp"/>
1623                         <link field="accepting_usr" reltype="has_a" key="id" map="" class="au"/>
1624                         <link field="xact" reltype="has_a" key="id" map="" class="mbt"/>
1625                 </links>
1626         </class>
1627         <class id="afr" controller="open-ils.cstore" oils_obj:fieldmapper="authority::full_rec" oils_persist:tablename="authority.full_rec">
1628                 <fields oils_persist:primary="id" oils_persist:sequence="authority.full_rec_id_seq">
1629                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1630                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1631                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1632                         <field name="id" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="id" />
1633                         <field name="ind1" oils_obj:array_position="4" oils_persist:virtual="false" />
1634                         <field name="ind2" oils_obj:array_position="5" oils_persist:virtual="false" />
1635                         <field name="record" oils_obj:array_position="6" oils_persist:virtual="false" />
1636                         <field name="subfield" oils_obj:array_position="7" oils_persist:virtual="false" />
1637                         <field name="tag" oils_obj:array_position="8" oils_persist:virtual="false" />
1638                         <field name="value" oils_obj:array_position="9" oils_persist:virtual="false" />
1639                 </fields>
1640                 <links>
1641                         <link field="record" reltype="has_a" key="id" map="" class="are"/>
1642                 </links>
1643         </class>
1644         <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">
1645                 <fields oils_persist:primary="id" oils_persist:sequence="config.non_cataloged_type_id_seq">
1646                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1647                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1648                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1649                         <field reporter:label="Circulation Duration" name="circ_duration" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="interval"/>
1650                         <field reporter:label="Non-cat Type ID" name="id" oils_obj:array_position="4" oils_persist:virtual="false" reporter:selector="name" reporter:datatype="id"/>
1651                         <field reporter:label="In House?" name="in_house" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="bool"/>
1652                         <field reporter:label="Name" name="name" oils_obj:array_position="6" oils_persist:virtual="false"  reporter:datatype="text" oils_persist:i18n="true"/>
1653                         <field reporter:label="Owning Library" name="owning_lib" oils_obj:array_position="7" oils_persist:virtual="false"  reporter:datatype="org_unit"/>
1654                 </fields>
1655                 <links>
1656                         <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
1657                 </links>
1658         </class>
1659         <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">
1660                 <fields oils_persist:primary="id" oils_persist:sequence="actor.org_unit_type_id_seq">
1661                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1662                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1663                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1664                         <field reporter:label="Subordinate Types" name="children" oils_obj:array_position="3" oils_persist:virtual="true" reporter:datatype="link"/>
1665                         <field reporter:label="Can Have Users?" name="can_have_users" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="bool"/>
1666                         <field reporter:label="Can Have Volumes?" name="can_have_vols" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="bool"/>
1667                         <field reporter:label="Type Depth" name="depth" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="int" />
1668                         <field reporter:label="Type ID" name="id" oils_obj:array_position="7" oils_persist:virtual="false" reporter:selector="name" reporter:datatype="id"/>
1669                         <field reporter:label="Type Name" name="name" oils_obj:array_position="8" oils_persist:virtual="false"  reporter:datatype="text" oils_persist:i18n="true"/>
1670                         <field reporter:label="OPAC Label" name="opac_label" oils_obj:array_position="9" oils_persist:virtual="false"  reporter:datatype="text" oils_persist:i18n="true"/>
1671                         <field reporter:label="Parent Type" name="parent" oils_obj:array_position="10" oils_persist:virtual="false" reporter:datatype="link"/>
1672                         <field reporter:label="Org Units" name="org_units" oils_obj:array_position="11" oils_persist:virtual="true"  reporter:datatype="org_unit"/>
1673                 </fields>
1674                 <links>
1675                         <link field="parent" reltype="has_a" key="id" map="" class="aout"/>
1676                         <link field="children" reltype="has_many" key="parent" map="" class="aout"/>
1677                         <link field="org_units" reltype="has_many" key="ou_type" map="" class="aou"/>
1678                 </links>
1679         </class>
1680         <class id="bren" controller="open-ils.cstore" oils_obj:fieldmapper="biblio::record_note" oils_persist:tablename="biblio.record_note">
1681                 <fields oils_persist:primary="id" oils_persist:sequence="biblio.record_note_id_seq">
1682                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1683                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1684                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1685                         <field name="create_date" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="timestamp"/>
1686                         <field name="creator" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="link"/>
1687                         <field name="edit_date" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="timestamp"/>
1688                         <field name="editor" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="link"/>
1689                         <field name="id" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="id" />
1690                         <field name="pub" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="bool"/>
1691                         <field name="record" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="link"/>
1692                         <field name="value" oils_obj:array_position="10" oils_persist:virtual="false"  reporter:datatype="text"/>
1693                 </fields>
1694                 <links>
1695                         <link field="creator" reltype="has_a" key="id" map="" class="au"/>
1696                         <link field="editor" reltype="has_a" key="id" map="" class="au"/>
1697                         <link field="record" reltype="has_a" key="id" map="" class="bre"/>
1698                 </links>
1699         </class>
1700         <class id="mucs" controller="open-ils.cstore" oils_obj:fieldmapper="money::user_circulation_summary" oils_persist:tablename="money.usr_circulation_summary">
1701                 <fields oils_persist:primary="usr" oils_persist:sequence="">
1702                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1703                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1704                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1705                         <field name="balance_owed" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="money" />
1706                         <field name="total_owed" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="money" />
1707                         <field name="total_paid" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="money" />
1708                         <field name="usr" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="link"/>
1709                 </fields>
1710                 <links>
1711                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
1712                 </links>
1713         </class>
1714         <class id="mg" controller="open-ils.cstore" oils_obj:fieldmapper="money::grocery" oils_persist:tablename="money.grocery" reporter:label="Grocery Transaction">
1715                 <fields oils_persist:primary="id" oils_persist:sequence="money.billable_xact_id_seq">
1716                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1717                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1718                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1719                         <field reporter:label="Billing Location" name="billing_location" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="link"/>
1720                         <field reporter:label="Transaction ID" name="id" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="id" />
1721                         <field reporter:label="Note" name="note" oils_obj:array_position="5" oils_persist:virtual="false"  reporter:datatype="text"/>
1722                         <field reporter:label="User" name="usr" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="link"/>
1723                         <field reporter:label="Transaction Finish Timestamp" name="xact_finish" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="timestamp" />
1724                         <field reporter:label="Transaction Start Timestamp" name="xact_start" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="timestamp" />
1725                         <field reporter:label="Billings" name="billings" oils_obj:array_position="9" oils_persist:virtual="true" reporter:datatype="link"/>
1726                         <field reporter:label="Payments" name="payments" oils_obj:array_position="10" oils_persist:virtual="true" reporter:datatype="link"/>
1727                         <field reporter:label="Billable Transaction link" name="billable_transaction" oils_obj:array_position="11" oils_persist:virtual="true" reporter:datatype="link"/>
1728                         <field reporter:label="Billing Totals" name="billing_total" oils_obj:array_position="12" oils_persist:virtual="true" reporter:datatype="money"/>
1729                         <field reporter:label="Payment Totals" name="payment_total" oils_obj:array_position="13" oils_persist:virtual="true" reporter:datatype="money"/>
1730                 </fields>
1731                 <links>
1732                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
1733                         <link field="billable_transaction" reltype="might_have" key="id" map="" class="mbt"/>
1734                         <link field="payments" reltype="has_many" key="xact" map="" class="mp"/>
1735                         <link field="billings" reltype="has_many" key="xact" map="" class="mb"/>
1736                         <link field="billing_location" reltype="has_a" key="id" map="" class="aou"/>
1737                         <link field="billing_total" reltype="might_have" key="xact" map="" class="rxbt"/>
1738                         <link field="payment_total" reltype="might_have" key="xact" map="" class="rxpt"/>
1739                 </links>
1740         </class>
1741         <class id="cbs" controller="open-ils.cstore" oils_obj:fieldmapper="config::bib_source" oils_persist:tablename="config.bib_source">
1742                 <fields oils_persist:primary="id" oils_persist:sequence="config.bib_source_id_seq">
1743                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1744                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1745                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1746                         <field name="id" oils_obj:array_position="3" oils_persist:virtual="false" reporter:selector="source" reporter:datatype="id"/>
1747                         <field name="quality" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="int" />
1748                         <field name="source" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="text"/>
1749                         <field name="transcendant" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="bool"/>
1750                 </fields>
1751                 <links/>
1752         </class>
1753         <class id="mbt" controller="open-ils.cstore" oils_obj:fieldmapper="money::billable_transaction" oils_persist:tablename="money.billable_xact" reporter:label="Billable Transaction">
1754                 <fields oils_persist:primary="id" oils_persist:sequence="money.billable_xact_id_seq">
1755                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1756                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1757                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1758                         <field reporter:label="Transaction ID" name="id" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="id" />
1759                         <field reporter:label="User" name="usr" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="link"/>
1760                         <field reporter:label="Transaction Finish Date/Time" name="xact_finish" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="timestamp"/>
1761                         <field reporter:label="Transaction Start Date/Time" name="xact_start" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="timestamp"/>
1762                         <field reporter:label="Grocery Billing link" name="grocery" oils_obj:array_position="7" oils_persist:virtual="true" reporter:datatype="link"/>
1763                         <field reporter:label="Circulation Billing link" name="circulation" oils_obj:array_position="8" oils_persist:virtual="true" reporter:datatype="link"/>
1764                         <field reporter:label="Billing Line Items" name="billings" oils_obj:array_position="9" oils_persist:virtual="true" reporter:datatype="link"/>
1765                         <field reporter:label="Payment Line Items" name="payments" oils_obj:array_position="10" oils_persist:virtual="true" reporter:datatype="link"/>
1766                         <field reporter:label="Billing Totals" name="billing_total" oils_obj:array_position="11" oils_persist:virtual="true" reporter:datatype="money"/>
1767                         <field reporter:label="Payment Totals" name="payment_total" oils_obj:array_position="12" oils_persist:virtual="true" reporter:datatype="money"/>
1768                 </fields>
1769                 <links>
1770                         <link field="grocery" reltype="might_have" key="id" map="" class="mg"/>
1771                         <link field="circulation" reltype="might_have" key="id" map="" class="circ"/>
1772                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
1773                         <link field="payments" reltype="has_many" key="xact" map="" class="mp"/>
1774                         <link field="billings" reltype="has_many" key="xact" map="" class="mb"/>
1775                         <link field="billing_total" reltype="might_have" key="xact" map="" class="rxbt"/>
1776                         <link field="payment_total" reltype="might_have" key="xact" map="" class="rxpt"/>
1777                 </links>
1778         </class>
1779         <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">
1780                 <fields oils_persist:primary="id" oils_persist:sequence="actor.stat_cat_entry_id_seq">
1781                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1782                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1783                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1784                         <field reporter:label="Entry ID" name="id" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="id" />
1785                         <field reporter:label="Entry Owner" name="owner" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="link"/>
1786                         <field reporter:label="Stat Cat" name="stat_cat" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="link"/>
1787                         <field reporter:label="Entry Value" name="value" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="text"/>
1788                 </fields>
1789                 <links>
1790                         <link field="stat_cat" reltype="has_a" key="id" map="" class="actsc"/>
1791                         <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
1792                 </links>
1793         </class>
1794         <class id="cubi" controller="open-ils.cstore" oils_obj:fieldmapper="container::user_bucket_item" oils_persist:tablename="container.user_bucket_item">
1795                 <fields oils_persist:primary="id" oils_persist:sequence="container.user_bucket_item_id_seq">
1796                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1797                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1798                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1799                         <field name="bucket" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="link"/>
1800                         <field name="id" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="id" />
1801                         <field name="target_user" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="link"/>
1802                         <field name="create_time" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="timestamp" />
1803                 </fields>
1804                 <links>
1805                         <link field="target_user" reltype="has_a" key="id" map="" class="au"/>
1806                         <link field="bucket" reltype="has_a" key="id" map="" class="cub"/>
1807                 </links>
1808         </class>
1809         <class id="mus" controller="open-ils.cstore" oils_obj:fieldmapper="money::user_summary" oils_persist:tablename="money.usr_summary">
1810                 <fields oils_persist:primary="usr" oils_persist:sequence="">
1811                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1812                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1813                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1814                         <field name="balance_owed" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="money" />
1815                         <field name="total_owed" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="money" />
1816                         <field name="total_paid" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="money" />
1817                         <field name="usr" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="link"/>
1818                 </fields>
1819                 <links>
1820                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
1821                 </links>
1822         </class>
1823         <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">
1824                 <fields oils_persist:primary="code" oils_persist:sequence="">
1825                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1826                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1827                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1828                         <field reporter:label="LitF Code" name="code" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="text"/>
1829                         <field reporter:label="LitF Description" name="description" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="text"/>
1830                         <field reporter:label="LitF Name" name="value" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="text"/>
1831                 </fields>
1832                 <links/>
1833         </class>
1834         <class id="mwp" controller="open-ils.cstore" oils_obj:fieldmapper="money::work_payment" oils_persist:tablename="money.work_payment" reporter:label="Work Payment">
1835                 <fields oils_persist:primary="id" oils_persist:sequence="money.payment_id_seq">
1836                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1837                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1838                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1839                         <field reporter:label="Accepting Staff Member" name="accepting_usr" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="link"/>
1840                         <field reporter:label="Amount" name="amount" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="money" />
1841                         <field reporter:label="Amount Collected" name="amount_collected" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="money" />
1842                         <field reporter:label="Payment ID" name="id" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="id" />
1843                         <field reporter:label="Note" name="note" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="text"/>
1844                         <field reporter:label="Payment Timestamp" name="payment_ts" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="timestamp"/>
1845                         <field reporter:label="Transaction ID" name="xact" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="link"/>
1846                         <field reporter:label="Payment link" name="payment" oils_obj:array_position="10" oils_persist:virtual="true" reporter:datatype="link"/>
1847                         <field reporter:label="Payment Type" name="payment_type" oils_obj:array_position="11" oils_persist:virtual="true" reporter:datatype="text"/>
1848                 </fields>
1849                 <links>
1850                         <link field="payment" reltype="might_have" key="id" map="" class="mp"/>
1851                         <link field="accepting_usr" reltype="has_a" key="id" map="" class="au"/>
1852                         <link field="xact" reltype="has_a" key="id" map="" class="mbt"/>
1853                 </links>
1854         </class>
1855         <class id="mgp" controller="open-ils.cstore" oils_obj:fieldmapper="money::goods_payment" oils_persist:tablename="money.goods_payment" reporter:label="Goods Payment">
1856                 <fields oils_persist:primary="id" oils_persist:sequence="money.payment_id_seq">
1857                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1858                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1859                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1860                         <field reporter:label="Accepting Staff Member" name="accepting_usr" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="link"/>
1861                         <field reporter:label="Amount" name="amount" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="money" />
1862                         <field reporter:label="Amount Collected" name="amount_collected" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="money" />
1863                         <field reporter:label="Payment ID" name="id" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="id" />
1864                         <field reporter:label="Note" name="note" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="text"/>
1865                         <field reporter:label="Payment Timestamp" name="payment_ts" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="timestamp"/>
1866                         <field reporter:label="Transaction ID" name="xact" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="link"/>
1867                         <field reporter:label="Payment link" name="payment" oils_obj:array_position="10" oils_persist:virtual="true" reporter:datatype="link"/>
1868                         <field reporter:label="Payment Type" name="payment_type" oils_obj:array_position="11" oils_persist:virtual="true" reporter:datatype="text"/>
1869                 </fields>
1870                 <links>
1871                         <link field="payment" reltype="might_have" key="id" map="" class="mp"/>
1872                         <link field="accepting_usr" reltype="has_a" key="id" map="" class="au"/>
1873                         <link field="xact" reltype="has_a" key="id" map="" class="mbt"/>
1874                 </links>
1875         </class>
1876         <class id="aoc" controller="open-ils.cstore" oils_obj:fieldmapper="action::open_circulation" oils_persist:tablename="action.open_circulation">
1877                 <fields oils_persist:primary="id" oils_persist:sequence="">
1878                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1879                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1880                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1881                         <field name="checkin_lib" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="link"/>
1882                         <field name="checkin_staff" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="link"/>
1883                         <field name="checkin_time" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="timestamp"/>
1884                         <field name="circ_lib" oils_obj:array_position="6" oils_persist:virtual="false"  reporter:datatype="org_unit"/>
1885                         <field name="circ_staff" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="link"/>
1886                         <field name="desk_renewal" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="bool"/>
1887                         <field name="due_date" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="timestamp"/>
1888                         <field name="duration" oils_obj:array_position="10" oils_persist:virtual="false" reporter:datatype="interval"/>
1889                         <field name="duration_rule" oils_obj:array_position="11" oils_persist:virtual="false" reporter:datatype="link"/>
1890                         <field name="fine_interval" oils_obj:array_position="12" oils_persist:virtual="false" reporter:datatype="interval"/>
1891                         <field name="id" oils_obj:array_position="13" oils_persist:virtual="false" reporter:datatype="id" />
1892                         <field name="max_fine" oils_obj:array_position="14" oils_persist:virtual="false" reporter:datatype="money" />
1893                         <field name="max_fine_rule" oils_obj:array_position="15" oils_persist:virtual="false" reporter:datatype="link"/>
1894                         <field name="opac_renewal" oils_obj:array_position="16" oils_persist:virtual="false" reporter:datatype="bool"/>
1895                         <field name="phone_renewal" oils_obj:array_position="17" oils_persist:virtual="false" reporter:datatype="bool"/>
1896                         <field name="recuring_fine" oils_obj:array_position="18" oils_persist:virtual="false" reporter:datatype="money" />
1897                         <field name="recuring_fine_rule" oils_obj:array_position="19" oils_persist:virtual="false" reporter:datatype="link"/>
1898                         <field name="renewal_remaining" oils_obj:array_position="20" oils_persist:virtual="false" reporter:datatype="int" />
1899                         <field name="stop_fines" oils_obj:array_position="21" oils_persist:virtual="false" reporter:datatype="text"/>
1900                         <field name="stop_fines_time" oils_obj:array_position="22" oils_persist:virtual="false" reporter:datatype="timestamp"/>
1901                         <field name="target_copy" oils_obj:array_position="23" oils_persist:virtual="false" reporter:datatype="link"/>
1902                         <field name="usr" oils_obj:array_position="24" oils_persist:virtual="false" reporter:datatype="link"/>
1903                         <field name="xact_finish" oils_obj:array_position="25" oils_persist:virtual="false" reporter:datatype="timestamp" />
1904                         <field name="xact_start" oils_obj:array_position="26" oils_persist:virtual="false" reporter:datatype="timestamp" />
1905                         <field name="circulation" oils_obj:array_position="27" oils_persist:virtual="true" reporter:datatype="link"/>
1906                 </fields>
1907                 <links>
1908                         <link field="circulation" reltype="might_have" key="id" map="" class="circ"/>
1909                         <link field="duration_rule" reltype="has_a" key="name" map="" class="crcd"/>
1910                         <link field="max_fine_rule" reltype="has_a" key="name" map="" class="crmf"/>
1911                         <link field="recuring_fine_rule" reltype="has_a" key="name" map="" class="crrf"/>
1912                 </links>
1913         </class>
1914         <class id="msfe" controller="open-ils.cstore" oils_obj:fieldmapper="metabib::subject_field_entry" oils_persist:tablename="metabib.subject_field_entry">
1915                 <fields oils_persist:primary="id" oils_persist:sequence="metabib.subject_field_entry_id_seq">
1916                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1917                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1918                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1919                         <field name="field" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="link"/>
1920                         <field name="id" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="id" />
1921                         <field name="source" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="link"/>
1922                         <field name="value" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="text"/>
1923                 </fields>
1924                 <links>
1925                         <link field="source" reltype="has_a" key="id" map="" class="bre"/>
1926                         <link field="field" reltype="has_a" key="id" map="" class="cmf"/>
1927                 </links>
1928         </class>
1929         <class id="crrf" controller="open-ils.cstore" oils_obj:fieldmapper="config::rules::recuring_fine" oils_persist:tablename="config.rule_recuring_fine">
1930                 <fields oils_persist:primary="id" oils_persist:sequence="config.rule_recuring_fine_id_seq">
1931                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1932                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1933                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1934                         <field name="high" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="money" />
1935                         <field name="id" oils_obj:array_position="4" oils_persist:virtual="false" reporter:selector="name" reporter:datatype="id"/>
1936                         <field name="low" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="money" />
1937                         <field name="name" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="text"/>
1938                         <field name="normal" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="money" />
1939                         <field name="recurance_interval" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="interval"/>
1940                 </fields>
1941                 <links/>
1942         </class>
1943         <class id="mckp" controller="open-ils.cstore" oils_obj:fieldmapper="money::check_payment" oils_persist:tablename="money.check_payment" reporter:label="Check Payment">
1944                 <fields oils_persist:primary="id" oils_persist:sequence="money.payment_id_seq">
1945                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1946                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1947                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1948                         <field reporter:label="Accepting Staff Member" name="accepting_usr" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="link"/>
1949                         <field reporter:label="Amount" name="amount" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="money" />
1950                         <field reporter:label="Amount Collected" name="amount_collected" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="money" />
1951                         <field reporter:label="Workstation link" name="cash_drawer" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="link"/>
1952                         <field reporter:label="Check Number" name="check_number" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="int" />
1953                         <field reporter:label="Payment ID" name="id" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="id" />
1954                         <field reporter:label="Note" name="note" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="text"/>
1955                         <field reporter:label="Payment Timestamp" name="payment_ts" oils_obj:array_position="10" oils_persist:virtual="false" reporter:datatype="timestamp"/>
1956                         <field reporter:label="Transaction link" name="xact" oils_obj:array_position="11" oils_persist:virtual="false" reporter:datatype="link"/>
1957                         <field reporter:label="Payment link" name="payment" oils_obj:array_position="12" oils_persist:virtual="true" reporter:datatype="link"/>
1958                         <field reporter:label="Payment Type" name="payment_type" oils_obj:array_position="13" oils_persist:virtual="true" reporter:datatype="text"/>
1959                 </fields>
1960                 <links>
1961                         <link field="payment" reltype="might_have" key="id" map="" class="mp"/>
1962                         <link field="accepting_usr" reltype="has_a" key="id" map="" class="au"/>
1963                         <link field="cash_drawer" reltype="has_a" key="id" map="" class="aws"/>
1964                         <link field="xact" reltype="has_a" key="id" map="" class="mbt"/>
1965                 </links>
1966         </class>
1967         <class id="acp" controller="open-ils.cstore" oils_obj:fieldmapper="asset::copy" oils_persist:tablename="asset.copy" reporter:core="true" reporter:label="Item">
1968                 <fields oils_persist:primary="id" oils_persist:sequence="asset.copy_id_seq">
1969                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
1970                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
1971                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
1972                         <field reporter:label="Statistical Catagory Entries" name="stat_cat_entries" oils_obj:array_position="3" oils_persist:virtual="true" reporter:datatype="link"/>
1973                         <field reporter:label="Age Hold Protection" name="age_protect" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="link"/>
1974                         <field reporter:label="Alert Message" name="alert_message" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="text"/>
1975                         <field reporter:label="Barcode" name="barcode" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="text"/>
1976                         <field reporter:label="Call Number/Volume" name="call_number" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="link"/>
1977                         <field reporter:label="Circulation Type (MARC)" name="circ_as_type" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="text"/>
1978                         <field reporter:label="Circulating Library" name="circ_lib" oils_obj:array_position="9" oils_persist:virtual="false"  reporter:datatype="org_unit"/>
1979                         <field reporter:label="Circulation Modifier" name="circ_modifier" oils_obj:array_position="10" oils_persist:virtual="false" reporter:datatype="text"/>
1980                         <field reporter:label="Can Circulate" name="circulate" oils_obj:array_position="11" oils_persist:virtual="false" reporter:datatype="bool"/>
1981                         <field reporter:label="Copy Number on Volume" name="copy_number" oils_obj:array_position="12" oils_persist:virtual="false" reporter:datatype="text"/>
1982                         <field reporter:label="Creation Date/Time" name="create_date" oils_obj:array_position="13" oils_persist:virtual="false" reporter:datatype="timestamp"/>
1983                         <field reporter:label="Creating User" name="creator" oils_obj:array_position="14" oils_persist:virtual="false" reporter:datatype="link"/>
1984                         <field reporter:label="Is Deleted" name="deleted" oils_obj:array_position="15" oils_persist:virtual="false" reporter:datatype="bool"/>
1985                         <field reporter:label="Is Deposit Required" name="deposit" oils_obj:array_position="16" oils_persist:virtual="false" reporter:datatype="bool"/>
1986                         <field reporter:label="Deposit Amount" name="deposit_amount" oils_obj:array_position="17" oils_persist:virtual="false" reporter:datatype="money" />
1987                         <field reporter:label="Precat Dummy Author" name="dummy_author" oils_obj:array_position="18" oils_persist:virtual="false" reporter:datatype="text"/>
1988                         <field reporter:label="Precat Dummy Title" name="dummy_title" oils_obj:array_position="19" oils_persist:virtual="false" reporter:datatype="text"/>
1989                         <field reporter:label="Last Edit Date/Time" name="edit_date" oils_obj:array_position="20" oils_persist:virtual="false" reporter:datatype="timestamp"/>
1990                         <field reporter:label="Last Editing User" name="editor" oils_obj:array_position="21" oils_persist:virtual="false" reporter:datatype="link"/>
1991                         <field reporter:label="Fine Level" name="fine_level" oils_obj:array_position="22" oils_persist:virtual="false" reporter:datatype="int"/>
1992                         <field reporter:label="Is Holdable" name="holdable" oils_obj:array_position="23" oils_persist:virtual="false" reporter:datatype="bool" />
1993                         <field reporter:label="Copy ID" name="id" oils_obj:array_position="24" oils_persist:virtual="false" reporter:datatype="id"/>
1994                         <field reporter:label="Loan Duration" name="loan_duration" oils_obj:array_position="25" oils_persist:virtual="false" reporter:datatype="int"/>
1995                         <field reporter:label="Shelving Location" name="location" oils_obj:array_position="26" oils_persist:virtual="false" reporter:datatype="link"/>
1996                         <field reporter:label="OPAC Visible" name="opac_visible" oils_obj:array_position="27" oils_persist:virtual="false" reporter:datatype="bool" />
1997                         <field reporter:label="Price" name="price" oils_obj:array_position="28" oils_persist:virtual="false" reporter:datatype="money" />
1998                         <field reporter:label="Is Reference" name="ref" oils_obj:array_position="29" oils_persist:virtual="false" reporter:datatype="bool"/>
1999                         <field reporter:label="Copy Status" name="status" oils_obj:array_position="30" oils_persist:virtual="false" reporter:datatype="link"/>
2000                         <field reporter:label="Copy Notes" name="notes" oils_obj:array_position="31" oils_persist:virtual="true" reporter:datatype="link"/>
2001                         <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"/>
2002                         <field reporter:label="Circulations" name="circulations" oils_obj:array_position="33" oils_persist:virtual="true" reporter:datatype="link"/>
2003                         <field reporter:label="Holds" name="holds" oils_obj:array_position="34" oils_persist:virtual="true" reporter:datatype="link"/>
2004                 </fields>
2005                 <links>
2006                         <link field="age_protect" reltype="has_a" key="id" map="" class="crahp"/>
2007                         <link field="call_number" reltype="has_a" key="id" map="" class="acn"/>
2008                         <link field="location" reltype="has_a" key="id" map="" class="acpl"/>
2009                         <link field="editor" reltype="has_a" key="id" map="" class="au"/>
2010                         <link field="creator" reltype="has_a" key="id" map="" class="au"/>
2011                         <link field="status" reltype="has_a" key="id" map="" class="ccs"/>
2012                         <link field="circ_lib" reltype="has_a" key="id" map="" class="aou"/>
2013                         <link field="holds" reltype="has_many" key="target_copy" map="hold" class="ahcm"/>
2014                         <link field="stat_cat_entry_copy_maps" reltype="has_many" key="owning_copy" map="" class="ascecm"/>
2015                         <link field="notes" reltype="has_many" key="owning_copy" map="" class="acpn"/>
2016                         <link field="stat_cat_entries" reltype="has_many" key="owning_copy" map="stat_cat_entry" class="ascecm"/>
2017                         <link field="circulations" reltype="has_many" key="target_copy" map="" class="circ"/>
2018                 </links>
2019         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2020             <actions>
2021                 <create permission="CREATE_COPY">
2022                     <context link="call_number" field="owning_lib"/>
2023                 </create>
2024                 <retrieve/>
2025                 <update permission="UPDATE_COPY">
2026                     <context link="call_number" field="owning_lib"/>
2027                 </update>
2028                 <delete permission="DELETE_COPY">
2029                     <context link="call_number" field="owning_lib"/>
2030                 </delete>
2031             </actions>
2032         </permacrud>
2033         </class>
2034         <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">
2035                 <fields oils_persist:primary="id" oils_persist:sequence="config.rule_age_hold_protect_id_seq">
2036                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
2037                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
2038                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
2039                         <field reporter:label="Item Age" name="age" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="interval"/>
2040                         <field reporter:label="Rule ID" name="id" oils_obj:array_position="4" oils_persist:virtual="false" reporter:selector="name" reporter:datatype="id"/>
2041                         <field reporter:label="Rule Name" name="name" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="text"/>
2042                         <field reporter:label="Allowed Proximity" name="prox" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="int" />
2043                 </fields>
2044                 <links/>
2045         </class>
2046         <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">
2047                 <fields oils_persist:primary="id" oils_persist:sequence="config.rule_max_fine_id_seq">
2048                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
2049                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
2050                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
2051                         <field reporter:label="Max Fine Amount" name="amount" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="money" />
2052                         <field reporter:label="Rule ID" name="id" oils_obj:array_position="4" oils_persist:virtual="false" reporter:selector="name" reporter:datatype="id"/>
2053                         <field reporter:label="Rule Name" name="name" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="text"/>
2054                 </fields>
2055                 <links/>
2056         </class>
2057         <class id="pgt" controller="open-ils.cstore" oils_obj:fieldmapper="permission::grp_tree" oils_persist:tablename="permission.grp_tree" reporter:label="Permission Group">
2058                 <fields oils_persist:primary="id" oils_persist:sequence="permission.grp_tree_id_seq">
2059                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
2060                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
2061                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
2062                         <field reporter:label="Child Groups" name="children" oils_obj:array_position="3" oils_persist:virtual="true" reporter:datatype="link"/>
2063                         <field reporter:label="Description" name="description" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="text" oils_persist:i18n="true"/>
2064                         <field reporter:label="Group ID" name="id" oils_obj:array_position="5" oils_persist:virtual="false" reporter:selector="name" reporter:datatype="id"/>
2065                         <field reporter:label="Group Name" name="name" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="text" oils_persist:i18n="true"/>
2066                         <field reporter:label="Parent Group" name="parent" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="link"/>
2067                         <field reporter:label="User Expiration Interval" name="perm_interval" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="interval"/>
2068                         <field reporter:label="Required Permission" name="application_perm" oils_obj:array_position="9" oils_persist:virtual="false" reporter:datatype="text"/>
2069                         <field reporter:label="Is User Group" name="usergroup" oils_obj:array_position="10" oils_persist:virtual="false" reporter:datatype="bool"/>
2070                 </fields>
2071                 <links>
2072                         <link field="parent" reltype="has_a" key="id" map="" class="pgt"/>
2073                         <link field="children" reltype="has_many" key="parent" map="" class="pgt"/>
2074                 </links>
2075         </class>
2076         <class id="asva" controller="open-ils.cstore" oils_obj:fieldmapper="action::survey_answer" oils_persist:tablename="action.survey_answer" reporter:label="Survey Answer">
2077                 <fields oils_persist:primary="id" oils_persist:sequence="action.survey_answer_id_seq">
2078                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
2079                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
2080                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
2081                         <field reporter:label="Responses using this Answer" name="responses" oils_obj:array_position="3" oils_persist:virtual="true" reporter:datatype="link"/>
2082                         <field reporter:label="Answer Text" name="answer" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="text"/>
2083                         <field reporter:label="Answer ID" name="id" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="id" />
2084                         <field reporter:label="Question" name="question" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="link"/>
2085                 </fields>
2086                 <links>
2087                         <link field="question" reltype="has_a" key="id" map="" class="asvq"/>
2088                         <link field="responses" reltype="has_many" key="answer" map="" class="asvr"/>
2089                 </links>
2090         </class>
2091         <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">
2092                 <fields oils_persist:primary="id" oils_persist:sequence="action.non_cataloged_circulation_id_seq">
2093                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
2094                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
2095                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
2096                         <field reporter:label="Circulating Library" name="circ_lib" oils_obj:array_position="3" oils_persist:virtual="false"  reporter:datatype="org_unit"/>
2097                         <field reporter:label="Circulation Date/Time" name="circ_time" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="timestamp"/>
2098                         <field reporter:label="Non-cat Circulation ID" name="id" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="id" />
2099                         <field reporter:label="Non-cat Item Type" name="item_type" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="link"/>
2100                         <field reporter:label="Patron" name="patron" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="link"/>
2101                         <field reporter:label="Circulating Staff" name="staff" oils_obj:array_position="8" oils_persist:virtual="false" reporter:datatype="link"/>
2102                 </fields>
2103                 <links>
2104                         <link field="item_type" reltype="has_a" key="id" map="" class="cnct"/>
2105                         <link field="staff" reltype="has_a" key="id" map="" class="au"/>
2106                         <link field="patron" reltype="has_a" key="id" map="" class="au"/>
2107                         <link field="circ_lib" reltype="has_a" key="id" map="" class="aou"/>
2108                 </links>
2109         </class>
2110         <class id="moucs" controller="open-ils.cstore" oils_obj:fieldmapper="money::open_user_circulation_summary" oils_persist:tablename="money.open_usr_circulation_summary">
2111                 <fields oils_persist:primary="usr" oils_persist:sequence="">
2112                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
2113                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
2114                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
2115                         <field name="balance_owed" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="money" />
2116                         <field name="total_owed" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="money" />
2117                         <field name="total_paid" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="money" />
2118                         <field name="usr" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="link"/>
2119                 </fields>
2120                 <links>
2121                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
2122                 </links>
2123         </class>
2124         <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">
2125                 <fields oils_persist:primary="id" oils_persist:sequence="action.unfulfilled_hold_list_id_seq">
2126                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
2127                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
2128                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
2129                         <field reporter:label="Non-fulfilling Library" name="circ_lib" oils_obj:array_position="3" oils_persist:virtual="false"  reporter:datatype="org_unit"/>
2130                         <field reporter:label="Non-fulfilling Copy" name="current_copy" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="link"/>
2131                         <field reporter:label="Retargeting Date/Time" name="fail_time" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="timestamp"/>
2132                         <field reporter:label="Hold" name="hold" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="link"/>
2133                         <field reporter:label="Record ID" name="id" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="id" />
2134                 </fields>
2135                 <links>
2136                         <link field="hold" reltype="has_a" key="id" map="" class="ahr"/>
2137                         <link field="current_copy" reltype="has_a" key="id" map="" class="acp"/>
2138                         <link field="circ_lib" reltype="has_a" key="id" map="" class="aou"/>
2139                 </links>
2140         </class>
2141         <class id="mtfe" controller="open-ils.cstore" oils_obj:fieldmapper="metabib::title_field_entry" oils_persist:tablename="metabib.title_field_entry">
2142                 <fields oils_persist:primary="id" oils_persist:sequence="metabib.title_field_entry_id_seq">
2143                         <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
2144                         <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
2145                         <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true" />
2146                         <field name="field" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="link"/>
2147                         <field name="id" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="id" />
2148                         <field name="source" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="link"/>
2149                         <field name="value" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="text"/>
2150                 </fields>
2151                 <links>
2152                         <link field="source" reltype="has_a" key="id" map="" class="bre"/>
2153                         <link field="field" reltype="has_a" key="