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