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