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