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