LP1424646 Paid-For Long Overdue Items Still Appear in "Other/Special Circulations...
[working/Evergreen.git] / Open-ILS / examples / fm_IDL.xml
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <!--
3
4 Copyright (C) 2006-2008 Georgia Public Library Service
5 Copyright (C) 2008 Equinox Software, Inc
6 Author: Mike Rylander <miker@esilibrary.com>
7
8 This program is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public License
10 as published by the Free Software Foundation; either version 2
11 of the License, or (at your option) any later version.
12
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
21
22 ############################
23           TEMPLATE
24 ############################
25
26     <class
27         id=""
28         controller="open-ils.cstore open-ils.pcrud"
29         oils_obj:fieldmapper=""
30         oils_persist:tablename=""
31         reporter:label=""
32         oils_persist:field_safe=""
33         oils_persist:virtual=""
34         oils_persist:readonly=""
35         reporter:core=""
36     >
37
38         <oils_persist:source_definition><![CDATA[
39             SELECT * FROM foo
40         ]]></oils_persist:source_definition>
41
42         <fields oils_persist:primary="" oils_persist:sequence="">
43             <field reporter:label="ID" name="id" reporter:datatype="id"/>
44                         <field reporter:label="" name="" reporter:datatype="org_unit"/>
45             <field reporter:label="" name="" reporter:datatype="text"/>
46             <field reporter:label="" name="" reporter:datatype="link"/>
47             <field reporter:label="" name="" reporter:datatype="timestamp"/>
48             <field reporter:label="" name="" reporter:datatype="money"/>
49             <field reporter:label="" name="" reporter:datatype="bool"/>
50             <field reporter:label="" name="" reporter:datatype="int" oils_obj:required="true"/>
51             <field reporter:label="" name="" reporter:datatype="int" oils_persist:virtual="true"/>
52         </fields>
53
54         <links>
55             <link field="" reltype="has_a" key="" map="" class=""/>
56         </links>
57
58         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
59             <actions>
60                 <create permission="" gloabl_required="true"/>
61                 <retrieve/>
62                 <update permission="" context_field=""/>
63                 <delete permission="">
64                     <context link="" field=""/>
65                 </delete>
66             </actions>
67         </permacrud>
68
69     </class>
70
71
72 -->
73
74 <IDL xmlns="http://opensrf.org/spec/IDL/base/v1" xmlns:idl="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">
75
76         <!-- Virtual classes -->
77         <class id="mups" controller="open-ils.cstore" oils_obj:fieldmapper="money::user_payment_summary" oils_persist:virtual="true" reporter:label="User Payment Summary">
78                 <fields>
79                         <field name="usr" oils_persist:virtual="true" />
80                         <field name="forgive_payment" oils_persist:virtual="true" />
81                         <field name="work_payment" oils_persist:virtual="true" />
82                         <field name="credit_payment" oils_persist:virtual="true" />
83                         <field name="goods_payment" oils_persist:virtual="true" />
84                 </fields>
85                 <links>
86                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
87                 </links>
88         </class>
89
90         <class id="mwps" controller="open-ils.cstore" oils_obj:fieldmapper="money::workstation_payment_summary" oils_persist:virtual="true" reporter:label="Workstation Payment Summary">
91                 <fields>
92                         <field name="workstation" oils_persist:virtual="true" />
93                         <field name="cash_payment" oils_persist:virtual="true" />
94                         <field name="check_payment" oils_persist:virtual="true" />
95                         <field name="credit_card_payment" oils_persist:virtual="true" />
96                 </fields>
97                 <links>
98                         <link field="workstation" reltype="has_a" key="id" map="" class="aws"/>
99                 </links>
100         </class>
101
102         <class id="brn" controller="open-ils.cstore" oils_obj:fieldmapper="biblio::record_node" oils_persist:virtual="true" reporter:label="Record Node">
103                 <fields>
104                         <field name="id" oils_persist:virtual="true" />
105                         <field name="children" oils_persist:virtual="true" />
106                         <field name="owner_doc" oils_persist:virtual="true" />
107                         <field name="intra_doc_id" oils_persist:virtual="true" />
108                         <field name="parent_node" oils_persist:virtual="true" />
109                         <field name="node_type" oils_persist:virtual="true" />
110                         <field name="namespace_uri" oils_persist:virtual="true" />
111                         <field name="name" oils_persist:virtual="true" />
112                         <field name="value" oils_persist:virtual="true" />
113                 </fields>
114         </class>
115
116         <class id="mvr" controller="open-ils.cstore" oils_obj:fieldmapper="metabib::virtual_record" oils_persist:virtual="true" reporter:label="Virtual Record">
117                 <fields>
118                         <field name="title" oils_persist:virtual="true" />
119                         <field name="author" oils_persist:virtual="true" />
120                         <field name="doc_id" oils_persist:virtual="true" />
121                         <field name="doc_type" oils_persist:virtual="true" />
122                         <field name="pubdate" oils_persist:virtual="true" />
123                         <field name="isbn" oils_persist:virtual="true" />
124                         <field name="publisher" oils_persist:virtual="true" />
125                         <field name="tcn" oils_persist:virtual="true" />
126                         <field name="subject" oils_persist:virtual="true" />
127                         <field name="types_of_resource" oils_persist:virtual="true" />
128                         <field name="call_numbers" oils_persist:virtual="true" />
129                         <field name="edition" oils_persist:virtual="true" />
130                         <field name="online_loc" oils_persist:virtual="true" />
131                         <field name="synopsis" oils_persist:virtual="true" />
132                         <field name="physical_description" oils_persist:virtual="true" />
133                         <field name="toc" oils_persist:virtual="true" />
134                         <field name="copy_count" oils_persist:virtual="true" />
135                         <field name="series" oils_persist:virtual="true" />
136                         <field name="serials" oils_persist:virtual="true" />
137                         <field name="foreign_copy_maps" oils_persist:virtual="true" />
138                 </fields>
139         </class>
140
141         <class id="ex" controller="open-ils.cstore" oils_obj:fieldmapper="ex" oils_persist:virtual="true">
142                 <fields>
143                         <field name="err_msg" oils_persist:virtual="true" />
144                         <field name="type" oils_persist:virtual="true" />
145                 </fields>
146         </class>
147
148         <class id="perm_ex" controller="open-ils.cstore" oils_obj:fieldmapper="perm_ex" oils_persist:virtual="true">
149                 <fields>
150                         <field name="err_msg" oils_persist:virtual="true" />
151                         <field name="type" oils_persist:virtual="true" />
152                 </fields>
153         </class>
154
155         <class id="amtr" controller="open-ils.cstore" oils_obj:fieldmapper="action::matrix_test_result" oils_persist:virtual="true" reporter:label="Matrix Test Result">
156                 <fields oils_persist:primary="matchpoint">
157                         <field reporter:label="Matchpoint ID" name="matchpoint" reporter:datatype="id"/>
158                         <field reporter:label="Success" name="success" reporter:datatype="bool"/>
159                         <field reporter:label="Failure Part" name="fail_part" reporter:datatype="text"/>
160                 </fields>
161                 <links>
162                         <link field="matchpoint" reltype="has_a" key="id" map="" class="ccmm"/>
163                 </links>
164         </class>
165
166         <class id="accs" controller="open-ils.cstore" oils_obj:fieldmapper="action::circ_chain_summary" oils_persist:virtual="true" reporter:label="Circulation Chain Summary">
167         <!-- when the time is right, turn me into a view.  -->
168                 <fields>
169             <field reporter:label="Total Circs" name="num_circs" reporter:datatype="int"/>
170             <field reporter:label="Start Time" name="start_time" reporter:datatype="timestamp"/>
171             <field reporter:label="Checkout Workstation" name="checkout_workstation" reporter:datatype="text"/>
172             <field reporter:label="Last Renewal Time" name="last_renewal_time" reporter:datatype="timestamp"/>
173             <field reporter:label="Last Stop Fines" name="last_stop_fines" reporter:datatype="text"/>
174             <field reporter:label="Last Stop Fines Time" name="last_stop_fines_time" reporter:datatype="timestamp"/>
175             <field reporter:label="Last Renewal Workstation" name="last_renewal_workstation" reporter:datatype="text"/>
176             <field reporter:label="Last Checkin Workstation" name="last_checkin_workstation" reporter:datatype="text"/>
177             <field reporter:label="Last Checkin Time" name="last_checkin_time" reporter:datatype="timestamp"/>
178             <field reporter:label="Last Checkin Scan Time" name="last_checkin_scan_time" reporter:datatype="timestamp"/>
179                 </fields>
180         </class>
181
182         <class id="rhr" oils_obj:fieldmapper="resolver::holdings_record" oils_persist:virtual="true">
183                 <fields>
184                         <field name="public_name" oils_persist:virtual="true" />
185                         <field name="target_url" oils_persist:virtual="true" />
186                         <field name="target_coverage" oils_persist:virtual="true" />
187                         <field name="target_embargo" oils_persist:virtual="true" />
188                 </fields>
189         </class>
190
191         <!-- Actually in the DB -->
192         <class id="vmp" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="vandelay::merge_profile" oils_persist:tablename="vandelay.merge_profile" reporter:label="Bib Import Merge Profile">
193                 <fields oils_persist:primary="id" oils_persist:sequence="vandelay.merge_profile_id_seq">
194                         <field reporter:label="Field ID" name="id" reporter:selector="name" reporter:datatype="id"/>
195                         <field reporter:label="Owner" name="owner" reporter:datatype="link"/>
196                         <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
197                         <field reporter:label="Add Specification" name="add_spec" reporter:datatype="text"/>
198                         <field reporter:label="Replace Specification" name="replace_spec" reporter:datatype="text"/>
199                         <field reporter:label="Remove Specification" name="strip_spec" reporter:datatype="text"/>
200                         <field reporter:label="Preserve Specification" name="preserve_spec" reporter:datatype="text"/>
201                         <field reporter:label="Min. Quality Ratio" name="lwm_ratio" reporter:datatype="float"/>
202                 </fields>
203                 <links>
204                         <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
205                 </links>
206                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
207                         <actions>
208                                 <create permission="ADMIN_MERGE_PROFILE CREATE_MERGE_PROFILE" context_field="owner"/>
209                                 <retrieve permission="ADMIN_MERGE_PROFILE CREATE_MERGE_PROFILE UPDATE_MERGE_PROFILE DELETE_MERGE_PROFILE VIEW_MERGE_PROFILE" context_field="owner"/>
210                                 <update permission="ADMIN_MERGE_PROFILE UPDATE_MERGE_PROFILE" context_field="owner"/>
211                                 <delete permission="ADMIN_MERGE_PROFILE DELETE_MERGE_PROFILE" context_field="owner"/>
212                         </actions>
213                 </permacrud>
214         </class>
215
216         <class id="vibtf" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="vandelay::import_bib_trash_fields" oils_persist:tablename="vandelay.import_bib_trash_fields" reporter:label="Import/Overlay Fields for Removal">
217                 <fields oils_persist:primary="id" oils_persist:sequence="vandelay.import_bib_trash_fields_id_seq">
218                         <field reporter:label="Field ID" name="id" reporter:datatype="id"/>
219                         <field reporter:label="Group" name="grp" reporter:datatype="link"/>
220                         <field reporter:label="Field" name="field" reporter:datatype="text"/>
221                 </fields>
222                 <links>
223                         <link field="grp" reltype="has_a" key="id" map="" class="vibtg"/>
224                 </links>
225                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
226                         <actions>
227                                 <create permission="CREATE_IMPORT_TRASH_FIELD">
228                     <context link="grp" field="owner"/>
229                 </create>
230                                 <retrieve/>
231                                 <update permission="UPDATE_IMPORT_TRASH_FIELD">
232                     <context link="grp" field="owner"/>
233                 </update>
234                                 <delete permission="DELETE_IMPORT_TRASH_FIELD">
235                     <context link="grp" field="owner"/>
236                 </delete>
237                         </actions>
238                 </permacrud>
239         </class>
240
241         <class  id="vibtg" 
242             controller="open-ils.cstore open-ils.pcrud" 
243             oils_obj:fieldmapper="vandelay::import_bib_trash_group" 
244             oils_persist:tablename="vandelay.import_bib_trash_group" 
245             reporter:label="Import/Overlay Field Groups for Removal">
246                 <fields oils_persist:primary="id" 
247                 oils_persist:sequence="vandelay.import_bib_trash_group_id_seq">
248                         <field reporter:label="ID" name="id" reporter:datatype="id" reporter:selector="name"/>
249                         <field reporter:label="Owner" name="owner" reporter:datatype="link"/>
250                         <field reporter:label="Label" name="label" reporter:datatype="text"/>
251                         <field reporter:label="Always Apply" name="always_apply" reporter:datatype="bool"/>
252                 </fields>
253                 <links>
254                         <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
255                 </links>
256                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
257                         <actions>
258                                 <create permission="CREATE_IMPORT_TRASH_FIELD" context_field="owner"/>
259                                 <retrieve/>
260                                 <update permission="UPDATE_IMPORT_TRASH_FIELD" context_field="owner"/>
261                                 <delete permission="DELETE_IMPORT_TRASH_FIELD" context_field="owner"/>
262                         </actions>
263                 </permacrud>
264         </class>
265
266
267         <class id="vii" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="vandelay::import_item" oils_persist:tablename="vandelay.import_item" reporter:label="Import Item">
268                 <fields oils_persist:primary="id" oils_persist:sequence="vandelay.import_item_id_seq">
269                         <field reporter:label="Import Item ID" name="id" reporter:datatype="id"/>
270                         <field reporter:label="Import Record" name="record" reporter:datatype="link"/>
271                         <field reporter:label="Attribute Definition" name="definition" reporter:datatype="link"/>
272                         <field reporter:label="Import Error" name="import_error" reporter:datatype="link"/>
273                         <field reporter:label="Import Error Detail" name="error_detail" reporter:datatype="text"/>
274                         <field reporter:label="Final Target Copy" name="imported_as" reporter:datatype="link"/>
275                         <field reporter:label="Import Time" name="import_time" reporter:datatype="timestamp"/>
276                         <field reporter:label="Owning Library" name="owning_lib" reporter:datatype="int"/>
277                         <field reporter:label="Circulating Library" name="circ_lib" reporter:datatype="int"/>
278                         <field reporter:label="Call Number" name="call_number" reporter:datatype="text"/>
279                         <field reporter:label="Copy Number" name="copy_number" reporter:datatype="int"/>
280                         <field reporter:label="Status" name="status" reporter:datatype="int"/>
281                         <field reporter:label="Shelving Location" name="location" reporter:datatype="int"/>
282                         <field reporter:label="Circulate" name="circulate" reporter:datatype="bool"/>
283                         <field reporter:label="Deposit" name="deposit" reporter:datatype="bool"/>
284                         <field reporter:label="Deposit Amount" name="deposit_amount" reporter:datatype="money"/>
285                         <field reporter:label="Reference" name="ref" reporter:datatype="bool"/>
286                         <field reporter:label="Holdable" name="holdable" reporter:datatype="bool"/>
287                         <field reporter:label="Price" name="price" reporter:datatype="money"/>
288                         <field reporter:label="Barcode" name="barcode" reporter:datatype="text"/>
289                         <field reporter:label="Circulation Modifier" name="circ_modifier" reporter:datatype="text"/>
290                         <field reporter:label="Circulate As MARC Type" name="circ_as_type" reporter:datatype="text"/>
291                         <field reporter:label="Alert Message" name="alert_message" reporter:datatype="text"/>
292                         <field reporter:label="Public Note" name="pub_note" reporter:datatype="text"/>
293                         <field reporter:label="Private Note" name="priv_note" reporter:datatype="text"/>
294                         <field reporter:label="OPAC Visible" name="opac_visible" reporter:datatype="bool"/>
295                         <field reporter:label="Overlay Match ID" name="internal_id" reporter:datatype="int"/>
296                 </fields>
297                 <links>
298                         <link field="import_error" reltype="has_a" key="code" map="" class="vie"/>
299                         <link field="record" reltype="has_a" key="id" map="" class="vqbr"/>
300                         <link field="definition" reltype="has_a" key="id" map="" class="viiad"/>
301                         <link field="imported_as" reltype="has_a" key="id" map="" class="acp"/>
302                 </links>
303                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
304                         <actions>
305                                 <create permission="CREATE_IMPORT_ITEM">
306                     <context link="definition" field="owner"/>
307                                 </create>
308                                 <retrieve permission="CREATE_IMPORT_ITEM UPDATE_IMPORT_ITEM DELETE_IMPORT_ITEM">
309                     <context link="definition" field="owner"/>
310                                 </retrieve>
311                                 <update permission="UPDATE_IMPORT_ITEM">
312                     <context link="definition" field="owner"/>
313                                 </update>
314                                 <delete permission="DELETE_IMPORT_ITEM">
315                     <context link="definition" field="owner"/>
316                                 </delete>
317                         </actions>
318                 </permacrud>
319         </class>
320
321         <class id="viiad" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="vandelay::import_item_attr_definition" oils_persist:tablename="vandelay.import_item_attr_definition" reporter:label="Import Item Attribute Definition">
322                 <fields oils_persist:primary="id" oils_persist:sequence="vandelay.import_item_attr_definition_id_seq">
323                         <field reporter:label="Definition ID" name="id" reporter:datatype="id"/>
324                         <field reporter:label="Owner" name="owner" reporter:datatype="link"/>
325                         <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
326                         <field reporter:label="Tag" name="tag" reporter:datatype="text"/>
327                         <field reporter:label="Keep" name="keep" reporter:datatype="bool"/>
328                         <field reporter:label="Owning Library" name="owning_lib" reporter:datatype="text"/>
329                         <field reporter:label="Circulating Library" name="circ_lib" reporter:datatype="text"/>
330                         <field reporter:label="Call Number" name="call_number" reporter:datatype="text"/>
331                         <field reporter:label="Status" name="status" reporter:datatype="text"/>
332                         <field reporter:label="Shelving Location" name="location" reporter:datatype="text"/>
333                         <field reporter:label="Circulate" name="circulate" reporter:datatype="text"/>
334                         <field reporter:label="Deposit" name="deposit" reporter:datatype="text"/>
335                         <field reporter:label="Deposit Amount" name="deposit_amount" reporter:datatype="text"/>
336                         <field reporter:label="Reference" name="ref" reporter:datatype="text"/>
337                         <field reporter:label="Holdable" name="holdable" reporter:datatype="text"/>
338                         <field reporter:label="Price" name="price" reporter:datatype="text"/>
339                         <field reporter:label="Barcode" name="barcode" reporter:datatype="text"/>
340                         <field reporter:label="Circulation Modifier" name="circ_modifier" reporter:datatype="text"/>
341                         <field reporter:label="Circulate As MARC Type" name="circ_as_type" reporter:datatype="text"/>
342                         <field reporter:label="Alert Message" name="alert_message" reporter:datatype="text"/>
343                         <field reporter:label="Public Note" name="pub_note" reporter:datatype="text"/>
344                         <field reporter:label="Private Note" name="priv_note" reporter:datatype="text"/>
345                         <field reporter:label="OPAC Visible" name="opac_visible" reporter:datatype="text"/>
346                         <field reporter:label="Copy Number" name="copy_number" reporter:datatype="text"/>
347                         <field reporter:label="Overlay Match ID" name="internal_id" reporter:datatype="text"/>
348                 </fields>
349                 <links>
350                         <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
351                 </links>
352                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
353                         <actions>
354                                 <create permission="CREATE_IMPORT_ITEM_ATTR_DEF ADMIN_IMPORT_ITEM_ATTR_DEF" context_field="owner"/>
355                                 <retrieve permission="CREATE_IMPORT_ITEM_ATTR_DEF UPDATE_IMPORT_ITEM_ATTR_DEF DELETE_IMPORT_ITEM_ATTR_DEF ADMIN_IMPORT_ITEM_ATTR_DEF" context_field="owner"/>
356                                 <update permission="UPDATE_IMPORT_ITEM_ATTR_DEF ADMIN_IMPORT_ITEM_ATTR_DEF" context_field="owner"/>
357                                 <delete permission="DELETE_IMPORT_ITEM_ATTR_DEF ADMIN_IMPORT_ITEM_ATTR_DEF" context_field="owner"/>
358                         </actions>
359                 </permacrud>
360         </class>
361
362         <class id="vbq" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="vandelay::bib_queue" oils_persist:tablename="vandelay.bib_queue" reporter:label="Import/Overlay Bib Queue">
363                 <fields oils_persist:primary="id" oils_persist:sequence="vandelay.queue_id_seq">
364                         <field reporter:label="Queue ID" name="id" reporter:selector="name" reporter:datatype="id"/>
365                         <field reporter:label="Owner" name="owner" reporter:datatype="link"/>
366                         <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
367                         <field reporter:label="Complete" name="complete" reporter:datatype="bool"/>
368                         <field reporter:label="Type" name="queue_type" reporter:datatype="text"/>
369                         <field reporter:label="Match Set" name="match_set" reporter:datatype="link"/>
370                         <field reporter:label="Item Import Attribute Definition" name="item_attr_def" reporter:datatype="link"/>
371                         <field reporter:label="Match Bucket" name="match_bucket" reporter:datatype="link"/>
372                 </fields>
373                 <links>
374                         <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
375                         <link field="item_attr_def" reltype="has_a" key="id" map="" class="viiad"/>
376                         <link field="match_set" reltype="has_a" key="id" map="" class="vms"/>
377                         <link field="match_bucket" reltype="has_a" key="id" map="" class="cbreb"/>
378                 </links>
379                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
380                         <actions>
381                                 <create permission="CREATE_BIB_IMPORT_QUEUE" global_required="true"/>
382                                 <retrieve permission="CREATE_BIB_IMPORT_QUEUE UPDATE_BIB_IMPORT_QUEUE DELETE_BIB_IMPORT_QUEUE" global_required="true"/>
383                                 <update permission="UPDATE_BIB_IMPORT_QUEUE" global_required="true"/>
384                                 <delete permission="DELETE_BIB_IMPORT_QUEUE" global_required="true"/>
385                         </actions>
386                 </permacrud>
387         </class>
388
389         <class id="vie" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="vandelay::import_error" oils_persist:tablename="vandelay.import_error" reporter:label="Import/Overlay Error Definitions">
390                 <fields oils_persist:primary="code">
391                         <field reporter:label="Error Code" name="code" reporter:selector="description" reporter:datatype="id"/>
392                         <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true"/>
393                 </fields>
394                 <links>
395                         <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
396                         <link field="item_attr_def" reltype="has_a" key="id" map="" class="viiad"/>
397                         <link field="match_set" reltype="has_a" key="id" map="" class="vms"/>
398                 </links>
399                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
400                         <actions>
401                                 <retrieve/>
402                         </actions>
403                 </permacrud>
404         </class>
405
406         <class id="vqbr" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="vandelay::queued_bib_record" oils_persist:tablename="vandelay.queued_bib_record" reporter:label="Queued Bib Record">
407                 <fields oils_persist:primary="id" oils_persist:sequence="vandelay.queued_record_id_seq">
408                         <field reporter:label="Record ID" name="id" reporter:datatype="id"/>
409                         <field reporter:label="Create Time" name="create_time" reporter:datatype="timestamp"/>
410                         <field reporter:label="Import Time" name="import_time" reporter:datatype="timestamp"/>
411                         <field reporter:label="MARC" name="marc" reporter:datatype="text"/>
412                         <field reporter:label="Queue" name="queue" reporter:datatype="link"/>
413                         <field reporter:label="Bib Source" name="bib_source" reporter:datatype="link"/>
414                         <field reporter:label="Final Target Record" name="imported_as" reporter:datatype="link"/>
415                         <field reporter:label="Import Error" name="import_error" reporter:datatype="link"/>
416                         <field reporter:label="Import Error Detail" name="error_detail" reporter:datatype="text"/>
417                         <field reporter:label="Purpose" name="purpose" reporter:datatype="text"/>
418                         <field reporter:label="Attributes" name="attributes" oils_persist:virtual="true" reporter:datatype="link"/>
419                         <field reporter:label="Matches" name="matches" oils_persist:virtual="true" reporter:datatype="link"/>
420                         <field reporter:label="Import Items" name="import_items" oils_persist:virtual="true" reporter:datatype="link"/>
421                         <field reporter:label="Quality" name="quality" reporter:datatype="int"/>
422                 </fields>
423                 <links>
424                         <link field="import_error" reltype="has_a" key="code" map="" class="vie"/>
425                         <link field="queue" reltype="has_a" key="id" map="" class="vbq"/>
426                         <link field="bib_source" reltype="has_a" key="id" map="" class="cbs"/>
427                         <link field="imported_as" reltype="has_a" key="id" map="" class="bre"/>
428             <link field="attributes" reltype="has_many" key="record" map="" class="vqbra"/>
429             <link field="matches" reltype="has_many" key="queued_record" map="" class="vbm"/>
430             <link field="import_items" reltype="has_many" key="record" map="" class="vii"/>
431                 </links>
432                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
433                         <actions>
434                                 <create permission="CREATE_BIB_IMPORT_QUEUE" global_required="true"/>
435                                 <retrieve permission="CREATE_BIB_IMPORT_QUEUE UPDATE_BIB_IMPORT_QUEUE DELETE_BIB_IMPORT_QUEUE" global_required="true"/>
436                                 <update permission="UPDATE_BIB_IMPORT_QUEUE" global_required="true"/>
437                                 <delete permission="DELETE_BIB_IMPORT_QUEUE" global_required="true"/>
438                         </actions>
439                 </permacrud>
440         </class>
441
442         <class id="vqbrad" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="vandelay::bib_attr_definition" oils_persist:tablename="vandelay.bib_attr_definition" reporter:label="Queued Bib Record Attribute Definition">
443                 <fields oils_persist:primary="id" oils_persist:sequence="vandelay.bib_attr_definition_id_seq">
444                         <field reporter:label="ID" name="id" reporter:datatype="id"/>
445                         <field reporter:label="Code" name="code" reporter:datatype="text"/>
446                         <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true"/>
447                         <field reporter:label="XPath" name="xpath" reporter:datatype="text"/>
448                         <field reporter:label="Remove RegExp" name="remove" reporter:datatype="text"/>
449                 </fields>
450                 <links/>
451                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
452                         <actions>
453                                 <create permission="CREATE_BIB_IMPORT_FIELD_DEF" global_required="true"/>
454                 <retrieve/>
455                                 <update permission="UPDATE_BIB_IMPORT_IMPORT_FIELD_DEF" global_required="true"/>
456                                 <delete permission="DELETE_BIB_IMPORT_IMPORT_FIELD_DEF" global_required="true"/>
457                         </actions>
458                 </permacrud>
459         </class>
460
461         <class id="vqbra" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="vandelay::queued_bib_record_attr" oils_persist:tablename="vandelay.queued_bib_record_attr" reporter:label="Queued Bib Record Attribute">
462                 <fields oils_persist:primary="id" oils_persist:sequence="vandelay.queued_bib_record_attr_id_seq">
463                         <field reporter:label="Attribute ID" name="id" reporter:datatype="id"/>
464                         <field reporter:label="Record" name="record" reporter:datatype="link"/>
465                         <field reporter:label="Field" name="field" reporter:datatype="link"/>
466                         <field reporter:label="Value" name="attr_value" reporter:datatype="text"/>
467                 </fields>
468                 <links>
469                         <link field="record" reltype="has_a" key="id" map="" class="vqbr"/>
470                         <link field="field" reltype="has_a" key="id" map="" class="vqbrad"/>
471                 </links>
472                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
473                         <actions>
474                                 <create permission="CREATE_BIB_IMPORT_QUEUE" global_required="true"/>
475                                 <retrieve permission="CREATE_BIB_IMPORT_QUEUE UPDATE_BIB_IMPORT_QUEUE DELETE_BIB_IMPORT_QUEUE" global_required="true"/>
476                                 <update permission="UPDATE_BIB_IMPORT_QUEUE" global_required="true"/>
477                                 <delete permission="DELETE_BIB_IMPORT_QUEUE" global_required="true"/>
478                         </actions>
479                 </permacrud>
480         </class>
481
482         <class id="vbm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="vandelay::bib_match" oils_persist:tablename="vandelay.bib_match" reporter:label="Queued Bib Record Match">
483                 <fields oils_persist:primary="id" oils_persist:sequence="vandelay.bib_match_id_seq">
484                         <field reporter:label="Match ID" name="id" reporter:datatype="id"/>
485                         <field reporter:label="Queued Record" name="queued_record" reporter:datatype="link"/>
486                         <field reporter:label="Evergreen Record" name="eg_record" reporter:datatype="link"/>
487                         <field reporter:label="Quality" name="quality" reporter:datatype="text"/>
488                         <field reporter:label="Match Score" name="match_score" reporter:datatype="text"/>
489                 </fields>
490                 <links>
491                         <link field="queued_record" reltype="has_a" key="id" map="" class="vqbr"/>
492                         <link field="eg_record" reltype="has_a" key="id" map="" class="bre"/>
493                 </links>
494                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
495                         <actions>
496                                 <create permission="CREATE_BIB_IMPORT_QUEUE" global_required="true"/>
497                                 <retrieve permission="CREATE_BIB_IMPORT_QUEUE UPDATE_BIB_IMPORT_QUEUE DELETE_BIB_IMPORT_QUEUE" global_required="true"/>
498                                 <update permission="UPDATE_BIB_IMPORT_QUEUE" global_required="true"/>
499                                 <delete permission="DELETE_BIB_IMPORT_QUEUE" global_required="true"/>
500                         </actions>
501                 </permacrud>
502         </class>
503
504         <class id="vaq" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="vandelay::authority_queue" oils_persist:tablename="vandelay.authority_queue" reporter:label="Import/Overlay Authority Queue">
505                 <fields oils_persist:primary="id" oils_persist:sequence="vandelay.queue_id_seq">
506                         <field reporter:label="Queue ID" name="id" reporter:selector="name" reporter:datatype="id"/>
507                         <field reporter:label="Owner" name="owner" reporter:datatype="link"/>
508                         <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
509                         <field reporter:label="Complete" name="complete" reporter:datatype="bool"/>
510                         <field reporter:label="Type" name="queue_type" reporter:datatype="text"/>
511                         <field reporter:label="Match Set" name="match_set" reporter:datatype="link"/>
512                 </fields>
513                 <links>
514                         <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
515                         <link field="match_set" reltype="has_a" key="id" map="" class="vms"/>
516                 </links>
517                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
518                         <actions>
519                                 <create permission="CREATE_AUTHORITY_IMPORT_QUEUE" global_required="true"/>
520                                 <retrieve permission="CREATE_AUTHORITY_IMPORT_QUEUE UPDATE_AUTHORITY_IMPORT_QUEUE DELETE_AUTHORITY_IMPORT_QUEUE" global_required="true"/>
521                                 <update permission="UPDATE_AUTHORITY_IMPORT_QUEUE" global_required="true"/>
522                                 <delete permission="DELETE_AUTHORITY_IMPORT_QUEUE" global_required="true"/>
523                         </actions>
524                 </permacrud>
525         </class>
526
527         <class id="vqar" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="vandelay::queued_authority_record" oils_persist:tablename="vandelay.queued_authority_record" reporter:label="Queued Authority Record">
528                 <fields oils_persist:primary="id" oils_persist:sequence="vandelay.queued_record_id_seq">
529                         <field reporter:label="Record ID" name="id" reporter:datatype="id"/>
530                         <field reporter:label="Create Time" name="create_time" reporter:datatype="timestamp"/>
531                         <field reporter:label="Import Time" name="import_time" reporter:datatype="timestamp"/>
532                         <field reporter:label="MARC" name="marc" reporter:datatype="text"/>
533                         <field reporter:label="Queue" name="queue" reporter:datatype="link"/>
534                         <field reporter:label="Final Target Record" name="imported_as" reporter:datatype="link"/>
535                         <field reporter:label="Import Error" name="import_error" reporter:datatype="link"/>
536                         <field reporter:label="Import Error Detail" name="error_detail" reporter:datatype="text"/>
537                         <field reporter:label="Purpose" name="purpose" reporter:datatype="text"/>
538                         <field reporter:label="Attributes" name="attributes" oils_persist:virtual="true" reporter:datatype="link"/>
539                         <field reporter:label="Matches" name="matches" oils_persist:virtual="true" reporter:datatype="link"/>
540                         <field reporter:label="Quality" name="quality" reporter:datatype="int"/>
541                 </fields>
542                 <links>
543                         <link field="import_error" reltype="has_a" key="code" map="" class="vie"/>
544                         <link field="queue" reltype="has_a" key="id" map="" class="vaq"/>
545                         <link field="imported_as" reltype="has_a" key="id" map="" class="are"/>
546             <link field="attributes" reltype="has_many" key="record" map="" class="vqara"/>
547             <link field="matches" reltype="has_many" key="queued_record" map="" class="vam"/>
548                 </links>
549                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
550                         <actions>
551                                 <create permission="CREATE_AUTHORITY_IMPORT_QUEUE" global_required="true"/>
552                                 <retrieve permission="CREATE_AUTHORITY_IMPORT_QUEUE UPDATE_AUTHORITY_IMPORT_QUEUE DELETE_AUTHORITY_IMPORT_QUEUE" global_required="true"/>
553                                 <update permission="UPDATE_AUTHORITY_IMPORT_QUEUE" global_required="true"/>
554                                 <delete permission="DELETE_AUTHORITY_IMPORT_QUEUE" global_required="true"/>
555                         </actions>
556                 </permacrud>
557         </class>
558
559         <class id="vqarad" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="vandelay::authority_attr_definition" oils_persist:tablename="vandelay.authority_attr_definition" reporter:label="Queued Authority Record Attribute Definition">
560                 <fields oils_persist:primary="id" oils_persist:sequence="vandelay.authority_attr_definition_id_seq">
561                         <field reporter:label="ID" name="id" reporter:datatype="id"/>
562                         <field reporter:label="Code" name="code" reporter:datatype="text"/>
563                         <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true"/>
564                         <field reporter:label="XPath" name="xpath" reporter:datatype="text"/>
565                         <field reporter:label="Remove RegExp" name="remove" reporter:datatype="text"/>
566                 </fields>
567                 <links/>
568                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
569                         <actions>
570                                 <create permission="CREATE_AUTHORITY_IMPORT_IMPORT_FIELD_DEF" global_required="true"/>
571                 <retrieve/>
572                                 <update permission="UPDATE_AUTHORITY_IMPORT_IMPORT_FIELD_DEF" global_required="true"/>
573                                 <delete permission="DELETE_AUTHORITY_IMPORT_IMPORT_FIELD_DEF" global_required="true"/>
574                         </actions>
575                 </permacrud>
576         </class>
577
578         <class id="vqara" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="vandelay::queued_authority_record_attr" oils_persist:tablename="vandelay.queued_authority_record_attr" reporter:label="Queued Authority Record Attribute">
579                 <fields oils_persist:primary="id" oils_persist:sequence="vandelay.queued_authority_record_attr_id_seq">
580                         <field reporter:label="Attribute ID" name="id" reporter:datatype="id"/>
581                         <field reporter:label="Record" name="record" reporter:datatype="link"/>
582                         <field reporter:label="Field" name="field" reporter:datatype="link"/>
583                         <field reporter:label="Value" name="attr_value" reporter:datatype="text"/>
584                 </fields>
585                 <links>
586                         <link field="record" reltype="has_a" key="id" map="" class="vqar"/>
587                         <link field="field" reltype="has_a" key="id" map="" class="vqarad"/>
588                 </links>
589                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
590                         <actions>
591                                 <create permission="CREATE_AUTHORITY_IMPORT_QUEUE" global_required="true"/>
592                                 <retrieve permission="CREATE_AUTHORITY_IMPORT_QUEUE UPDATE_AUTHORITY_IMPORT_QUEUE DELETE_AUTHORITY_IMPORT_QUEUE" global_required="true"/>
593                                 <update permission="UPDATE_AUTHORITY_IMPORT_QUEUE" global_required="true"/>
594                                 <delete permission="DELETE_AUTHORITY_IMPORT_QUEUE" global_required="true"/>
595                         </actions>
596                 </permacrud>
597         </class>
598
599         <class id="vam" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="vandelay::authority_match" oils_persist:tablename="vandelay.authority_match" reporter:label="Queued Authority Record Match">
600                 <fields oils_persist:primary="id" oils_persist:sequence="vandelay.authority_match_id_seq">
601                         <field reporter:label="Match ID" name="id" reporter:datatype="id"/>
602                         <field reporter:label="Queued Record" name="queued_record" reporter:datatype="link"/>
603                         <field reporter:label="Evergreen Record" name="eg_record" reporter:datatype="link"/>
604                         <field reporter:label="Quality" name="quality" reporter:datatype="int"/>
605                         <field reporter:label="Match Score" name="match_score" reporter:datatype="text"/>
606                 </fields>
607                 <links>
608                         <link field="queued_record" reltype="has_a" key="id" map="" class="vqar"/>
609                         <link field="eg_record" reltype="has_a" key="id" map="" class="are"/>
610                 </links>
611                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
612                         <actions>
613                                 <create permission="CREATE_AUTHORITY_IMPORT_QUEUE" global_required="true"/>
614                                 <retrieve permission="CREATE_AUTHORITY_IMPORT_QUEUE UPDATE_AUTHORITY_IMPORT_QUEUE DELETE_AUTHORITY_IMPORT_QUEUE" global_required="true"/>
615                                 <update permission="UPDATE_AUTHORITY_IMPORT_QUEUE" global_required="true"/>
616                                 <delete permission="DELETE_AUTHORITY_IMPORT_QUEUE" global_required="true"/>
617                         </actions>
618                 </permacrud>
619         </class>
620
621         <class id="vms" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="vandelay::match_set" oils_persist:tablename="vandelay.match_set" reporter:label="Record Matching Definition Set">
622                 <fields oils_persist:primary="id" oils_persist:sequence="vandelay.match_set_id_seq">
623                         <field reporter:label="Match Set ID" name="id" reporter:datatype="id" reporter:selector="name"/>
624                         <field reporter:label="Name" name="name" reporter:datatype="text"/>
625                         <field reporter:label="Owning Library" name="owner" reporter:datatype="link"/>
626                         <field reporter:label="Match Set Type" name="mtype" reporter:datatype="text"/>
627                 </fields>
628                 <links>
629                         <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
630                 </links>
631                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
632                         <actions>
633                                 <create permission="ADMIN_IMPORT_MATCH_SET" context_field="owner"/>
634                                 <retrieve permission="ADMIN_IMPORT_MATCH_SET VIEW_IMPORT_MATCH_SET" context_field="owner"/>
635                                 <update permission="ADMIN_IMPORT_MATCH_SET" context_field="owner"/>
636                                 <delete permission="ADMIN_IMPORT_MATCH_SET" context_field="owner"/>
637                         </actions>
638                 </permacrud>
639         </class>
640
641         <class id="vmsp" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="vandelay::match_set_point" oils_persist:tablename="vandelay.match_set_point" reporter:label="Record Matching Definition">
642                 <fields oils_persist:primary="id" oils_persist:sequence="vandelay.match_set_point_id_seq">
643                         <field reporter:label="Match Definition ID" name="id" reporter:datatype="id"/>
644                         <field reporter:label="Expression Tree Parent" name="parent" reporter:datatype="link"/>
645                         <field reporter:label="Match Set" name="match_set" reporter:datatype="link"/>
646                         <field reporter:label="Boolean Operator" name="bool_op" reporter:datatype="text"/>
647                         <field reporter:label="Coded Field" name="svf" reporter:datatype="link"/>
648                         <field reporter:label="Tag" name="tag" reporter:datatype="text"/>
649                         <field reporter:label="Subfield" name="subfield" reporter:datatype="text"/>
650             <field reporter:label="Negate" name="negate"  reporter:datatype="bool"/>
651                         <field reporter:label="Importance" name="quality" reporter:datatype="int"/>
652                         <field reporter:label="Expression Tree Children" name="children" oils_persist:virtual="true" reporter:datatype="link"/>
653                         <field reporter:label="Authority Heading" name="heading" reporter:datatype="bool"/>
654                 </fields>
655                 <links>
656                         <link field="parent" reltype="has_a" key="id" map="" class="vmsp"/>
657                         <link field="match_set" reltype="has_a" key="id" map="" class="vms"/>
658                         <link field="svf" reltype="has_a" key="id" map="" class="crad"/>
659                         <link field="children" reltype="has_many" key="parent" map="" class="vmsp"/>
660                 </links>
661                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
662                         <actions>
663                                 <create permission="ADMIN_IMPORT_MATCH_SET">
664                     <context link="match_set" field="owner"/>
665                                 </create>
666                                 <retrieve permission="ADMIN_IMPORT_MATCH_SET VIEW_IMPORT_MATCH_SET">
667                     <context link="match_set" field="owner"/>
668                                 </retrieve>
669                                 <update permission="ADMIN_IMPORT_MATCH_SET">
670                     <context link="match_set" field="owner"/>
671                                 </update>
672                                 <delete permission="ADMIN_IMPORT_MATCH_SET">
673                     <context link="match_set" field="owner"/>
674                                 </delete>
675                         </actions>
676                 </permacrud>
677         </class>
678
679         <class id="vmsq" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="vandelay::match_set_quality" oils_persist:tablename="vandelay.match_set_quality" reporter:label="Record Quality Metric">
680                 <fields oils_persist:primary="id" oils_persist:sequence="vandelay.match_set_quality_id_seq">
681                         <field reporter:label="Quality Metric ID" name="id" reporter:datatype="id"/>
682                         <field reporter:label="Match Set" name="match_set" reporter:datatype="link"/>
683                         <field reporter:label="Record Attribute" name="svf" reporter:datatype="text"/>
684                         <field reporter:label="Tag" name="tag" reporter:datatype="text"/>
685                         <field reporter:label="Subfield" name="subfield" reporter:datatype="text"/>
686                         <field reporter:label="Value" name="value" reporter:datatype="text"/>
687                         <field reporter:label="Quality" name="quality" reporter:datatype="int"/>
688                 </fields>
689                 <links>
690                         <link field="match_set" reltype="has_a" key="id" map="" class="vms"/>
691                 </links>
692                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
693                         <actions>
694                                 <create permission="ADMIN_IMPORT_MATCH_SET">
695                     <context link="match_set" field="owner"/>
696                                 </create>
697                                 <retrieve permission="ADMIN_IMPORT_MATCH_SET">
698                     <context link="match_set" field="owner"/>
699                                 </retrieve>
700                                 <update permission="ADMIN_IMPORT_MATCH_SET">
701                     <context link="match_set" field="owner"/>
702                                 </update>
703                                 <delete permission="ADMIN_IMPORT_MATCH_SET">
704                     <context link="match_set" field="owner"/>
705                                 </delete>
706                         </actions>
707                 </permacrud>
708         </class>
709
710         <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">
711                 <fields oils_persist:primary="id" oils_persist:sequence="actor.usr_org_unit_opt_in_id_seq">
712                         <field reporter:label="Opt-in ID" name="id" reporter:datatype="id"/>
713                         <field reporter:label="Workstation" name="opt_in_ws" reporter:datatype="link"/>
714                         <field reporter:label="Staff Member" name="staff" reporter:datatype="link"/>
715                         <field reporter:label="User" name="usr" reporter:datatype="link"/>
716                         <field reporter:label="Allowed Org Unit" name="org_unit" reporter:datatype="link"/>
717                         <field reporter:label="Opt-in Date/Time" name="opt_in_ts" reporter:datatype="timestamp"/>
718                 </fields>
719                 <links>
720                         <link field="org_unit" reltype="has_a" key="id" map="" class="aou"/>
721                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
722                         <link field="staff" reltype="has_a" key="id" map="" class="au"/>
723                         <link field="opt_in_ws" reltype="has_a" key="id" map="" class="aws"/>
724                 </links>
725         </class>
726
727     <class id="cgf" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::global_flag" oils_persist:tablename="config.global_flag" reporter:label="Global Flags and Settings" oils_persist:field_safe="true">
728         <fields oils_persist:primary="name">
729             <field reporter:label="Name" name="name" reporter:datatype="text"/>
730             <field reporter:label="Label" name="label"  reporter:datatype="text" oils_persist:i18n="true"/>
731             <field reporter:label="Value" name="value"  reporter:datatype="text"/>
732             <field reporter:label="Enabled" name="enabled"  reporter:datatype="bool"/>
733         </fields>
734         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
735             <actions>
736                 <create   permission="ADMIN_GLOBAL_FLAG" global_required="true"/>
737                 <retrieve permission="ADMIN_GLOBAL_FLAG" global_required="true"/>
738                 <update   permission="ADMIN_GLOBAL_FLAG" global_required="true"/>
739                 <delete   permission="ADMIN_GLOBAL_FLAG" global_required="true"/>
740             </actions>
741         </permacrud>
742     </class>
743
744     <class id="cin" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::index_normalizer" oils_persist:tablename="config.index_normalizer" reporter:label="Indexing Normalizer" oils_persist:field_safe="true">
745         <fields oils_persist:primary="id">
746             <field reporter:label="ID" name="id" reporter:datatype="id"/>
747             <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
748             <field reporter:label="Description" name="description"  reporter:datatype="text" oils_persist:i18n="true"/>
749             <field reporter:label="Function" name="func"  reporter:datatype="text"/>
750             <field reporter:label="Required Parameter Count" name="param_count"  reporter:datatype="int"/>
751         </fields>
752         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
753             <actions>
754                 <create permission="ADMIN_INDEX_NORMALIZER" global_required="true"/>
755                 <retrieve/>
756                 <update permission="ADMIN_INDEX_NORMALIZER" global_required="true"/>
757                 <delete permission="ADMIN_INDEX_NORMALIZER" global_required="true"/>
758             </actions>
759         </permacrud>
760     </class>
761
762         <class id="cmfinm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::metabib_field_index_norm_map" oils_persist:tablename="config.metabib_field_index_norm_map" reporter:label="Metabib Field to Indexing Normalizer Map" oils_persist:field_safe="true">
763                 <fields oils_persist:primary="id" oils_persist:sequence="config.metabib_field_index_norm_map_id_seq">
764                         <field reporter:label="ID" name="id" reporter:datatype="id"/>
765                         <field reporter:label="Metabib Field" name="field" reporter:datatype="link"/>
766                         <field reporter:label="Normalizer" name="norm" reporter:datatype="link"/>
767                         <field reporter:label="Parameters (JSON Array)" name="params" reporter:datatype="text"/>
768                         <field reporter:label="Order of Application" name="pos" reporter:datatype="int"/>
769                 </fields>
770                 <links>
771                         <link field="field" reltype="has_a" key="id" map="" class="cmf"/>
772                         <link field="norm" reltype="has_a" key="id" map="" class="cin"/>
773                 </links>
774         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
775             <actions>
776                 <create permission="ADMIN_INDEX_NORMALIZER" global_required="true"/>
777                 <retrieve/>
778                 <update permission="ADMIN_INDEX_NORMALIZER" global_required="true"/>
779                 <delete permission="ADMIN_INDEX_NORMALIZER" global_required="true"/>
780             </actions>
781         </permacrud>
782         </class>
783
784         <class id="crad" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::record_attr_definition" oils_persist:tablename="config.record_attr_definition" reporter:label="SVF Record Attribute Defintion" oils_persist:field_safe="true">
785                 <fields oils_persist:primary="name">
786                         <field reporter:label="Name" name="name" reporter:datatype="id" reporter:selector="label"  oils_obj:required="true"/>
787                         <field reporter:label="Label" name="label" reporter:datatype="text"  oils_obj:required="true"/>
788                         <field reporter:label="Description" name="description" reporter:datatype="text" />
789                         <field reporter:label="Multi-valued?" name="multi" reporter:datatype="bool"/>
790                         <field reporter:label="Filter?" name="filter" reporter:datatype="bool"/>
791                         <field reporter:label="Sorter?" name="sorter" reporter:datatype="bool"/>
792                         <field reporter:label="Composite attribute?" name="composite" reporter:datatype="bool"/>
793                         <field reporter:label="MARC Tag" name="tag" reporter:datatype="text"/>
794                         <field reporter:label="MARC Subfields" name="sf_list" reporter:datatype="text"/>
795                         <field reporter:label="Joiner" name="joiner" reporter:datatype="text"/>
796                         <field reporter:label="XPath" name="xpath" reporter:datatype="text"/>
797                         <field reporter:label="Format" name="format" reporter:datatype="link"/>
798                         <field reporter:label="Starting Position" name="start_pos" reporter:datatype="int"/>
799                         <field reporter:label="String Length" name="string_len" reporter:datatype="int"/>
800                         <field reporter:label="Fixed Field" name="fixed_field" reporter:datatype="text"/>
801                         <field reporter:label="Physical Characteristic" name="phys_char_sf" reporter:datatype="text"/>
802                         <field reporter:label="Normalizers" name="normalizers" reporter:datatype="link" oils_persist:virtual="true"/>
803                 </fields>
804                 <links>
805                         <link field="format" reltype="has_a" key="name" map="" class="cxt"/>
806                         <link field="normalizers" reltype="has_many" key="name" map="" class="crainm"/>
807                 </links>
808         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
809             <actions>
810                 <create permission="ADMIN_SVF" global_required="true"/>
811                 <retrieve/>
812                 <update permission="ADMIN_SVF" global_required="true"/>
813                 <delete permission="ADMIN_SVF" global_required="true"/>
814             </actions>
815         </permacrud>
816         </class>
817
818         <class id="csc" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::sms_carrier" oils_persist:tablename="config.sms_carrier" reporter:label="SMS Carrier" oils_persist:field_safe="true">
819                 <fields oils_persist:primary="id" oils_persist:sequence="config.sms_carrier_id_seq">
820                         <field reporter:label="ID" name="id" reporter:datatype="id"/>
821                         <field reporter:label="Region" name="region" reporter:datatype="text" oils_persist:i18n="true"/>
822                         <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
823             <field reporter:label="Active" name="active" reporter:datatype="bool" oils_persist:i18n="true"/>
824                         <field reporter:label="Email Gateway" name="email_gateway" reporter:datatype="text" oils_persist:i18n="true"/>
825                 </fields>
826                 <links/>
827         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
828             <actions>
829                 <create permission="ADMIN_SMS_CARRIER" global_required="true"/>
830                 <retrieve/>
831                 <update permission="ADMIN_SMS_CARRIER" global_required="true"/>
832                 <delete permission="ADMIN_SMS_CARRIER" global_required="true"/>
833             </actions>
834         </permacrud>
835         </class>
836
837         <class id="ccraed" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::composite_attr_entry_definition" oils_persist:tablename="config.composite_attr_entry_definition" reporter:label="Composite Attribute Definitions" oils_persist:field_safe="true">
838                 <fields oils_persist:primary="coded_value">
839                         <field reporter:label="Coded Value" name="coded_value" reporter:datatype="id" oils_obj:required="true"/>
840                         <field reporter:label="Defintion" name="definition" reporter:datatype="text"  oils_obj:required="true"/>
841                 </fields>
842                 <links>
843                         <link field="coded_value" reltype="has_a" key="id" map="" class="ccvm"/>
844                 </links>
845         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
846             <actions>
847                 <create permission="ADMIN_CODED_VALUE" global_required="true"/>
848                 <retrieve/>
849                 <update permission="ADMIN_CODED_VALUE" global_required="true"/>
850                 <delete permission="ADMIN_CODED_VALUE" global_required="true"/>
851             </actions>
852         </permacrud>
853         </class>
854
855         <class id="murav" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="metabib::uncontrolled_record_attr_value" oils_persist:tablename="metabib.uncontrolled_record_attr_value" reporter:label="Uncontrolled Record Attribute Values" oils_persist:field_safe="true">
856                 <fields oils_persist:primary="id" oils_persist:sequence="metabib.uncontrolled_record_attr_value_id_seq">
857                         <field reporter:label="ID" name="id" reporter:datatype="id" oils_obj:required="true"/>
858                         <field reporter:label="Attribute" name="attr" reporter:datatype="text"  oils_obj:required="true"/>
859                         <field reporter:label="Value" name="value" reporter:datatype="text"  oils_obj:required="true"/>
860                 </fields>
861                 <links>
862                         <link field="attr" reltype="has_a" key="name" map="" class="crad"/>
863                 </links>
864         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
865             <actions>
866                 <retrieve/>
867             </actions>
868         </permacrud>
869         </class>
870
871
872         <class id="mrs" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="metabib::record_sorter" oils_persist:tablename="metabib.record_sorter" reporter:label="Record Sort Values" oils_persist:field_safe="true">
873                 <fields oils_persist:primary="id" oils_persist:sequence="metabib.record_sorter_id_seq">
874                         <field reporter:label="ID" name="id" reporter:datatype="id" oils_obj:required="true"/>
875                         <field reporter:label="Bib Record ID" name="source" reporter:datatype="int" oils_obj:required="true"/>
876                         <field reporter:label="Attribute" name="attr" reporter:datatype="text"  oils_obj:required="true"/>
877                         <field reporter:label="Value" name="value" reporter:datatype="text"  oils_obj:required="true"/>
878                 </fields>
879                 <links>
880                         <link field="source" reltype="has_a" key="id" map="" class="bre"/>
881                         <link field="attr" reltype="has_a" key="name" map="" class="crad"/>
882                 </links>
883         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
884             <actions>
885                 <retrieve/>
886             </actions>
887         </permacrud>
888         </class>
889
890
891         <class id="mravl" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="metabib::record_attr_vector_list" oils_persist:tablename="metabib.record_attr_vector_list" reporter:label="MVF Record Attribute Vectors" oils_persist:field_safe="true">
892                 <fields oils_persist:primary="source">
893                         <field reporter:label="Record ID" name="source" reporter:datatype="id" oils_obj:required="true"/>
894                         <field reporter:label="Vector" name="vlist" reporter:datatype="text"  oils_obj:required="true"/> <!-- Actually an int[], but this is the best we can do in fm_IDL.xml -->
895                 </fields>
896                 <links>
897                         <link field="source" reltype="has_a" key="id" map="" class="bre"/>
898                 </links>
899         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
900             <actions>
901                 <retrieve/>
902             </actions>
903         </permacrud>
904         </class>
905
906         <class id="mraf" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="metabib::record_attr_flat" oils_persist:tablename="metabib.record_attr_flat" reporter:label="MVF Record Attribute Flat List" oils_persist:field_safe="true">
907                 <fields>
908                         <field reporter:label="Record ID" name="id" reporter:datatype="id" oils_obj:required="true"/>
909                         <field reporter:label="Attribute" name="attr" reporter:datatype="text"  oils_obj:required="true"/>
910                         <field reporter:label="Value" name="value" reporter:datatype="text"  oils_obj:required="true"/>
911                 </fields>
912                 <links>
913                         <link field="source" reltype="has_a" key="id" map="" class="bre"/>
914                 </links>
915         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
916             <actions>
917                 <retrieve/>
918             </actions>
919         </permacrud>
920         </class>
921
922         <class id="mra" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="metabib::record_attr" oils_persist:tablename="metabib.record_attr" reporter:label="SVF Record Attribute" oils_persist:field_safe="true" oils_persist:readonly="true">
923                 <fields oils_persist:primary="id">
924                         <field reporter:label="Record ID" name="id" reporter:datatype="id" oils_obj:required="true"/>
925                         <field reporter:label="Attributes" name="attrs" reporter:datatype="text"  oils_obj:required="true"/>
926                 </fields>
927                 <links>
928                         <link field="id" reltype="has_a" key="id" map="" class="bre"/>
929                 </links>
930         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
931             <actions>
932                 <retrieve/>
933             </actions>
934         </permacrud>
935         </class>
936
937         <class id="crainm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::record_attr_index_norm_map" oils_persist:tablename="config.record_attr_index_norm_map" reporter:label="SVF Record Attribute to Indexing Normalizer Map" oils_persist:field_safe="true">
938                 <fields oils_persist:primary="id" oils_persist:sequence="config.record_attr_index_norm_map_id_seq">
939                         <field reporter:label="ID" name="id" reporter:datatype="id"/>
940                         <field reporter:label="SVF Attribute" name="attr" reporter:datatype="link"/>
941                         <field reporter:label="Normalizer" name="norm" reporter:datatype="link"/>
942                         <field reporter:label="Parameters (JSON Array)" name="params" reporter:datatype="text"/>
943                         <field reporter:label="Order of Application" name="pos" reporter:datatype="int"/>
944                 </fields>
945                 <links>
946                         <link field="attr" reltype="has_a" key="name" map="" class="crad"/>
947                         <link field="norm" reltype="has_a" key="id" map="" class="cin"/>
948                 </links>
949         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
950             <actions>
951                 <create permission="ADMIN_INDEX_NORMALIZER" global_required="true"/>
952                 <retrieve/>
953                 <update permission="ADMIN_INDEX_NORMALIZER" global_required="true"/>
954                 <delete permission="ADMIN_INDEX_NORMALIZER" global_required="true"/>
955             </actions>
956         </permacrud>
957         </class>
958
959         <class id="ccvm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::coded_value_map" oils_persist:tablename="config.coded_value_map" reporter:label="SVF Record Attribute Coded Value Map" oils_persist:field_safe="true">
960                 <fields oils_persist:primary="id" oils_persist:sequence="config.coded_value_map_id_seq">
961                         <field reporter:label="ID" name="id" reporter:datatype="id"  oils_obj:required="true" reporter:selector="value"/>
962                         <field reporter:label="SVF Attribute" name="ctype" reporter:datatype="link"  oils_obj:required="true"/>
963                         <field reporter:label="Code" name="code" reporter:datatype="text"  oils_obj:required="true"/>
964                         <field reporter:label="Value" name="value" reporter:datatype="text"  oils_obj:required="true" oils_persist:i18n="true"/>
965                         <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true"/>
966                         <field reporter:label="OPAC Visible" name="opac_visible" reporter:datatype="bool"/>
967                         <field reporter:label="Search Label" name="search_label" reporter:datatype="text" oils_persist:i18n="true"/>
968             <field reporter:label="Is Simple Selector" name="is_simple" reporter:datatype="bool"/>
969             <field reporter:label="Composite Definition" name="composite_def" oils_persist:virtual="true" reporter:datatype="link"/>
970                 </fields>
971                 <links>
972                         <link field="ctype" reltype="has_a" key="name" map="" class="crad"/>
973                         <link field="composite_def" reltype="might_have" key="coded_value" map="" class="ccraed"/>
974                 </links>
975         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
976             <actions>
977                 <create permission="ADMIN_CODED_VALUE" global_required="true"/>
978                 <retrieve/>
979                 <update permission="ADMIN_CODED_VALUE" global_required="true"/>
980                 <delete permission="ADMIN_CODED_VALUE" global_required="true"/>
981             </actions>
982         </permacrud>
983         </class>
984
985         <class id="cracct" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::remote_account" oils_persist:tablename="config.remote_account" reporter:label="Remote (3rd party) Account">
986                 <fields oils_persist:primary="id" oils_persist:sequence="config.remote_account_id_seq">
987                         <field name="id"            reporter:datatype="id"   reporter:label="ID"/>
988                         <field name="label"         reporter:datatype="text" reporter:label="Label"/>
989                         <field name="host"          reporter:datatype="text" reporter:label="Host"/>
990                         <field name="username"      reporter:datatype="text" reporter:label="Username"/>
991                         <field name="password"      reporter:datatype="text" reporter:label="Password"/>
992                         <field name="account"       reporter:datatype="text" reporter:label="Account"/>
993                         <field name="path"          reporter:datatype="text" reporter:label="Path"/>
994                         <field name="owner"         reporter:datatype="link" reporter:label="Owner"/>
995                         <field name="last_activity" reporter:datatype="timestamp" reporter:label="Last Activity"/>
996                 </fields>
997                 <links>
998                         <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
999                 </links>
1000         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1001             <actions>
1002                 <create   permission="ADMIN_CONFIG_REMOTE_ACCOUNT" context_field="owner"/>
1003                 <retrieve permission="ADMIN_CONFIG_REMOTE_ACCOUNT" context_field="owner"/>
1004                 <update   permission="ADMIN_CONFIG_REMOTE_ACCOUNT" context_field="owner"/>
1005                 <delete   permission="ADMIN_CONFIG_REMOTE_ACCOUNT" context_field="owner"/>
1006             </actions>
1007         </permacrud>
1008         </class>
1009
1010     <class id="czs" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::z3950_source" oils_persist:tablename="config.z3950_source" reporter:label="Z39.50 Source">
1011         <fields oils_persist:primary="name">
1012             <field reporter:label="Z39.50 Source" name="name" reporter:datatype="id"/>
1013             <field reporter:label="Label" name="label" reporter:datatype="text" oils_persist:i18n="true"/>
1014             <field reporter:label="Host" name="host"  reporter:datatype="text"/>
1015             <field reporter:label="Port" name="port"  reporter:datatype="int"/>
1016             <field reporter:label="DB" name="db"  reporter:datatype="text"/>
1017             <field reporter:label="Record Format" name="record_format"  reporter:datatype="text"/>
1018             <field reporter:label="Transmission Format" name="transmission_format"  reporter:datatype="text"/>
1019             <field reporter:label="Auth" name="auth"  reporter:datatype="bool"/>
1020             <field reporter:label="Attrs" name="attrs" oils_persist:virtual="true"  reporter:datatype="link"/>
1021             <field reporter:label="Use Permission" name="use_perm"  reporter:datatype="link"/>
1022         </fields>
1023         <links>
1024             <link field="attrs" reltype="has_many" key="source" map="" class="cza"/>
1025             <link field="use_perm" reltype="has_a" key="id" map="" class="ppl"/>
1026         </links>
1027         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1028             <actions>
1029                 <create permission="ADMIN_Z3950_SOURCE" global_required="true"/>
1030                 <retrieve/>
1031                 <update permission="ADMIN_Z3950_SOURCE" global_required="true"/>
1032                 <delete permission="ADMIN_Z3950_SOURCE" global_required="true"/>
1033             </actions>
1034         </permacrud>
1035     </class>
1036
1037     <class id="cza" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::z3950_attr" oils_persist:tablename="config.z3950_attr" reporter:label="Z39.50 Attribute">
1038         <fields oils_persist:primary="id" oils_persist:sequence="config.z3950_attr_id_seq">
1039             <field reporter:label="Z39.50 Attribute ID" name="id" reporter:datatype="id" reporter:selector="label"/>
1040             <field reporter:label="Z39.50 Source" name="source" reporter:datatype="link"/>
1041             <field reporter:label="Name" name="name" reporter:datatype="text"/>
1042             <field reporter:label="Label" name="label" reporter:datatype="text" oils_persist:i18n="true"/>
1043             <field reporter:label="Code" name="code"  reporter:datatype="int"/>
1044             <field reporter:label="Format" name="format"  reporter:datatype="int"/>
1045             <field reporter:label="Truncation" name="truncation"  reporter:datatype="int"/>
1046         </fields>
1047         <links>
1048             <link field="source" reltype="has_a" key="name" map="" class="czs"/>
1049         </links>
1050         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1051             <actions>
1052                 <create permission="ADMIN_Z3950_SOURCE" global_required="true"/>
1053                 <retrieve/>
1054                 <update permission="ADMIN_Z3950_SOURCE" global_required="true"/>
1055                 <delete permission="ADMIN_Z3950_SOURCE" global_required="true"/>
1056             </actions>
1057         </permacrud>
1058     </class>
1059
1060     <class id="czifm" controller="open-ils.cstore open-ils.pcrud" 
1061                         oils_obj:fieldmapper="config::z3950_index_field_map" 
1062                         oils_persist:tablename="config.z3950_index_field_map" 
1063                         reporter:label="Z39.50 Index Field Map">
1064         <fields oils_persist:primary="id" oils_persist:sequence="config.z3950_index_field_map_id_seq">
1065             <field reporter:label="Map ID" name="id" reporter:datatype="id"/>
1066             <field reporter:label="Label" name="label" reporter:datatype="text" oils_persist:i18n="true"/>
1067             <field reporter:label="Metabib Field" name="metabib_field" reporter:datatype="link"/>
1068             <field reporter:label="Record Attribute" name="record_attr" reporter:datatype="link"/>
1069             <field reporter:label="Z39.50 Attribute" name="z3950_attr"  reporter:datatype="link"/>
1070             <field reporter:label="Z39.50 Attribute Type" name="z3950_attr_type" reporter:datatype="text"/>
1071         </fields>
1072         <links>
1073             <link field="metabib_field" reltype="has_a" key="id" map="" class="cmf"/>
1074             <link field="record_attr" reltype="has_a" key="name" map="" class="crad"/>
1075             <link field="z3950_attr" reltype="has_a" key="id" map="" class="cza"/>
1076         </links>
1077         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1078             <actions>
1079                 <create permission="ADMIN_Z3950_SOURCE" global_required="true"/>
1080                 <retrieve/>
1081                 <update permission="ADMIN_Z3950_SOURCE" global_required="true"/>
1082                 <delete permission="ADMIN_Z3950_SOURCE" global_required="true"/>
1083             </actions>
1084         </permacrud>
1085     </class>
1086
1087
1088         <class id="ateo" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="action_trigger::event_output" oils_persist:tablename="action_trigger.event_output" reporter:label="Event Output">
1089                 <fields oils_persist:primary="id" oils_persist:sequence="action_trigger.event_output_id_seq">
1090                         <field reporter:label="Output ID" name="id" reporter:datatype="id"/>
1091                         <field reporter:label="Create Date/Time" name="create_time" reporter:datatype="timestamp"/>
1092                         <field reporter:label="Data" name="data" reporter:datatype="text"/>
1093                         <field reporter:label="Is Error" name="is_error" reporter:datatype="bool"/>
1094                         <field reporter:label="Events" name="events" oils_persist:virtual="true"  reporter:datatype="link"/>
1095                         <field reporter:label="Error Events" name="error_events" oils_persist:virtual="true"  reporter:datatype="link"/>
1096                 </fields>
1097                 <links>
1098             <link field="events" reltype="has_many" key="template_output" map="" class="atev"/>
1099             <link field="error_events" reltype="has_many" key="error_output" map="" class="atev"/>
1100                 </links>
1101                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1102                         <actions>
1103                                 <retrieve/>
1104                                 <delete permission="ADMIN_TRIGGER_TEMPLATE_OUTPUT DELETE_TRIGGER_TEMPLATE_OUTPUT" global_required="true"/>
1105                         </actions>
1106                 </permacrud>
1107         </class>
1108
1109         <class id="ath" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="action_trigger::hook" oils_persist:tablename="action_trigger.hook" reporter:label="Trigger Hook Point">
1110                 <fields oils_persist:primary="key">
1111                         <field reporter:label="Hook Key" name="key" reporter:datatype="text"/>
1112                         <field reporter:label="Core Type" name="core_type" reporter:datatype="text"/>
1113                         <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true"/>
1114                         <field reporter:label="Passive" name="passive"  reporter:datatype="bool"/>
1115                 </fields>
1116                 <links/>
1117                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1118                         <actions>
1119                                 <create permission="ADMIN_TRIGGER_HOOK CREATE_TRIGGER_HOOK" global_required="true"/>
1120                                 <retrieve/>
1121                                 <update permission="ADMIN_TRIGGER_HOOK UPDATE_TRIGGER_HOOK" global_required="true"/>
1122                                 <delete permission="ADMIN_TRIGGER_HOOK DELETE_TRIGGER_HOOK" global_required="true"/>
1123                         </actions>
1124                 </permacrud>
1125         </class>
1126
1127         <class id="atcol" controller="open-ils.cstore" oils_obj:fieldmapper="action_trigger::collector" oils_persist:tablename="action_trigger.collector" reporter:label="Trigger Environment Collector">
1128                 <fields oils_persist:primary="module">
1129                         <field reporter:label="Module Name" name="module" reporter:datatype="text"/>
1130                         <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true"/>
1131                 </fields>
1132                 <links/>
1133         </class>
1134
1135         <class id="atval" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="action_trigger::validator" oils_persist:tablename="action_trigger.validator" reporter:label="Trigger Condition Validator">
1136                 <fields oils_persist:primary="module">
1137                         <field reporter:label="Module Name" name="module" reporter:datatype="text"/>
1138                         <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true"/>
1139                 </fields>
1140                 <links/>
1141                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1142                         <actions>
1143                                 <create permission="ADMIN_TRIGGER_VALIDATOR CREATE_TRIGGER_VALIDATOR" global_required="true"/>
1144                                 <retrieve/>
1145                                 <update permission="ADMIN_TRIGGER_VALIDATOR UPDATE_TRIGGER_VALIDATOR" global_required="true"/>
1146                                 <delete permission="ADMIN_TRIGGER_VALIDATOR DELETE_TRIGGER_VALIDATOR" global_required="true"/>
1147                         </actions>
1148                 </permacrud>
1149         </class>
1150
1151         <class id="atreact" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="action_trigger::reactor" oils_persist:tablename="action_trigger.reactor" reporter:label="Trigger Event Reactor">
1152                 <fields oils_persist:primary="module">
1153                         <field reporter:label="Module Name" name="module" reporter:datatype="text"/>
1154                         <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true"/>
1155                 </fields>
1156                 <links/>
1157                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1158                         <actions>
1159                                 <create permission="ADMIN_TRIGGER_REACTOR CREATE_TRIGGER_REACTOR" global_required="true"/>
1160                                 <retrieve/>
1161                                 <update permission="ADMIN_TRIGGER_REACTOR UPDATE_TRIGGER_REACTOR" global_required="true"/>
1162                                 <delete permission="ADMIN_TRIGGER_REACTOR DELETE_TRIGGER_REACTOR" global_required="true"/>
1163                         </actions>
1164                 </permacrud>
1165         </class>
1166
1167         <class id="atclean" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="action_trigger::cleanup" oils_persist:tablename="action_trigger.cleanup" reporter:label="Trigger Event Cleanup">
1168                 <fields oils_persist:primary="module">
1169                         <field reporter:label="Module Name" name="module" reporter:datatype="text"/>
1170                         <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true"/>
1171                 </fields>
1172                 <links/>
1173                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1174                         <actions>
1175                                 <create permission="ADMIN_TRIGGER_CLEANUP CREATE_TRIGGER_CLEANUP" global_required="true"/>
1176                                 <retrieve/>
1177                                 <update permission="ADMIN_TRIGGER_CLEANUP UPDATE_TRIGGER_CLEANUP" global_required="true"/>
1178                                 <delete permission="ADMIN_TRIGGER_CLEANUP DELETE_TRIGGER_CLEANUP" global_required="true"/>
1179                         </actions>
1180                 </permacrud>
1181         </class>
1182
1183         <class id="atenv" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="action_trigger::environment" oils_persist:tablename="action_trigger.environment" reporter:label="Trigger Event Environment Entry">
1184                 <fields oils_persist:primary="id" oils_persist:sequence="action_trigger.environment_id_seq">
1185                         <field reporter:label="Environment ID" name="id" reporter:datatype="id"/>
1186                         <field reporter:label="Event Definition" name="event_def" reporter:datatype="link"/>
1187                         <field reporter:label="Field Path" name="path" reporter:datatype="text"/>
1188                         <field reporter:label="Collector" name="collector" reporter:datatype="link"/>
1189                         <field reporter:label="Label" name="label" reporter:datatype="text"/>
1190                 </fields>
1191                 <links>
1192                         <link field="event_def" reltype="has_a" key="id" map="" class="atevdef"/>
1193                         <link field="collector" reltype="has_a" key="id" map="" class="atcol"/>
1194                 </links>
1195                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1196                         <actions>
1197                                 <create permission="ADMIN_TRIGGER_EVENT_DEF CREATE_TRIGGER_EVENT_DEF">
1198                     <context link="event_def" field="owner"/>
1199                 </create>
1200                                 <retrieve permission="ADMIN_TRIGGER_EVENT_DEF VIEW_TRIGGER_EVENT_DEF">
1201                     <context link="event_def" field="owner"/>
1202                 </retrieve>
1203                                 <update permission="ADMIN_TRIGGER_EVENT_DEF UPDATE_TRIGGER_EVENT_DEF">
1204                     <context link="event_def" field="owner"/>
1205                 </update>
1206                                 <delete permission="ADMIN_TRIGGER_EVENT_DEF DELETE_TRIGGER_EVENT_DEF">
1207                     <context link="event_def" field="owner"/>
1208                 </delete>
1209                         </actions>
1210                 </permacrud>
1211         </class>
1212
1213         <class id="atevdef" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="action_trigger::event_definition" oils_persist:tablename="action_trigger.event_definition" reporter:label="Trigger Event Definition">
1214                 <fields oils_persist:primary="id" oils_persist:sequence="action_trigger.event_definition_id_seq">
1215                         <field reporter:label="Definition ID" name="id" reporter:datatype="id"/>
1216                         <field reporter:label="Enabled" name="active" reporter:datatype="bool"/>
1217                         <field reporter:label="Owning Library" name="owner"  reporter:datatype="org_unit"/>
1218                         <field reporter:label="Hook" name="hook"  reporter:datatype="link"/>
1219                         <field reporter:label="Validator" name="validator"  reporter:datatype="link"/>
1220                         <field reporter:label="Reactor" name="reactor"  reporter:datatype="link"/>
1221                         <field reporter:label="Success Cleanup" name="cleanup_success"  reporter:datatype="link"/>
1222                         <field reporter:label="Failure Cleanup" name="cleanup_failure"  reporter:datatype="link"/>
1223                         <field reporter:label="Processing Delay" name="delay"  reporter:datatype="interval"/>
1224                         <field reporter:label="Max Event Validity Delay" name="max_delay"  reporter:datatype="interval"/>
1225                         <field reporter:label="Processing Delay Context Field" name="delay_field"  reporter:datatype="text"/>
1226                         <field reporter:label="Processing Group Context Field" name="group_field"  reporter:datatype="text"/>
1227                         <field reporter:label="Template" name="template"  reporter:datatype="text"/>
1228                         <field reporter:label="Name" name="name"  reporter:datatype="text"/>
1229                         <field reporter:label="Granularity" name="granularity"  reporter:datatype="text"/>
1230                         <field reporter:label="Opt-In User Field" name="usr_field"  reporter:datatype="text"/>
1231                         <field reporter:label="Opt-In Setting Type" name="opt_in_setting"  reporter:datatype="link"/>
1232                         <field reporter:label="Event Repeatability Delay" name="repeat_delay"  reporter:datatype="interval"/>
1233                         <field reporter:label="Message Template" name="message_template" reporter:datatype="text"/>
1234                         <field reporter:label="Message Title" name="message_title" reporter:datatype="text"/>
1235                         <field reporter:label="Message User Path" name="message_usr_path" reporter:datatype="text"/>
1236                         <field reporter:label="Message Library Path" name="message_library_path" reporter:datatype="text"/>
1237                         <field reporter:label="Environment Entries" name="env" oils_persist:virtual="true"  reporter:datatype="link"/>
1238                         <field reporter:label="Parameters" name="params" oils_persist:virtual="true"  reporter:datatype="link"/>
1239                 </fields>
1240                 <links>
1241                         <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
1242                         <link field="hook" reltype="has_a" key="key" map="" class="ath"/>
1243                         <link field="validator" reltype="has_a" key="module" map="" class="atval"/>
1244                         <link field="reactor" reltype="has_a" key="module" map="" class="atreact"/>
1245                         <link field="cleanup_success" reltype="has_a" key="module" map="" class="atclean"/>
1246                         <link field="cleanup_failure" reltype="has_a" key="module" map="" class="atclean"/>
1247                         <link field="env" reltype="has_many" key="event_def" map="" class="atenv"/>
1248                         <link field="params" reltype="has_many" key="event_def" map="" class="atevparam"/>
1249                         <link field="opt_in_setting" reltype="has_a" key="name" map="" class="cust"/>
1250                 </links>
1251                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1252                         <actions>
1253                                 <create permission="ADMIN_TRIGGER_EVENT_DEF CREATE_TRIGGER_EVENT_DEF" context_field="owner"/>
1254                                 <retrieve permission="ADMIN_TRIGGER_EVENT_DEF VIEW_TRIGGER_EVENT_DEF" context_field="owner"/>
1255                                 <update permission="ADMIN_TRIGGER_EVENT_DEF UPDATE_TRIGGER_EVENT_DEF" context_field="owner"/>
1256                                 <delete permission="ADMIN_TRIGGER_EVENT_DEF DELETE_TRIGGER_EVENT_DEF" context_field="owner"/>
1257                         </actions>
1258                 </permacrud>
1259         </class>
1260
1261         <class id="atev" controller="open-ils.cstore" oils_obj:fieldmapper="action_trigger::event" oils_persist:tablename="action_trigger.event" reporter:label="Trigger Event Entry">
1262                 <fields oils_persist:primary="id" oils_persist:sequence="action_trigger.event_id_seq">
1263                         <field reporter:label="Event ID" name="id" reporter:datatype="id"/>
1264                         <field reporter:label="Target ID" name="target" reporter:datatype="int"/>
1265                         <field reporter:label="Event Definition" name="event_def" reporter:datatype="link"/>
1266                         <field reporter:label="Add Time" name="add_time" reporter:datatype="timestamp"/>
1267                         <field reporter:label="Run Time" name="run_time" reporter:datatype="timestamp"/>
1268                         <field reporter:label="Start Time" name="start_time" reporter:datatype="timestamp"/>
1269                         <field reporter:label="Update Time" name="update_time" reporter:datatype="timestamp"/>
1270                         <field reporter:label="Complete Time" name="complete_time" reporter:datatype="timestamp"/>
1271                         <field reporter:label="State" name="state" reporter:datatype="text"/>
1272                         <field reporter:label="User Data" name="user_data" reporter:datatype="text"/>
1273                         <field reporter:label="Template Output" name="template_output" reporter:datatype="link"/>
1274                         <field reporter:label="Error Output" name="error_output" reporter:datatype="text"/>
1275                         <field reporter:label="Asynchronous Output" name="async_output" reporter:datatype="link"/>
1276                         <field reporter:label="Update Process" name="update_process" reporter:datatype="int"/>
1277                 </fields>
1278                 <links>
1279                         <link field="event_def" reltype="has_a" key="id" map="" class="atevdef"/>
1280                         <link field="template_output" reltype="has_a" key="id" map="" class="ateo"/>
1281                         <link field="error_output" reltype="has_a" key="id" map="" class="ateo"/>
1282                         <link field="async_output" reltype="has_a" key="id" map="" class="ateo"/>
1283                 </links>
1284         </class>
1285
1286         <class id="atevparam" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="action_trigger::event_param" oils_persist:tablename="action_trigger.event_params" reporter:label="Trigger Event Parameter">
1287                 <fields oils_persist:primary="id" oils_persist:sequence="action_trigger.event_params_id_seq">
1288                         <field reporter:label="Parameter ID" name="id" reporter:datatype="id"/>
1289                         <field reporter:label="Event Definition" name="event_def" reporter:datatype="link"/>
1290                         <field reporter:label="Parameter Name" name="param" reporter:datatype="text"/>
1291                         <field reporter:label="Parameter Value" name="value" reporter:datatype="text"/>
1292                 </fields>
1293                 <links>
1294                         <link field="event_def" reltype="has_a" key="id" map="" class="atevdef"/>
1295                 </links>
1296                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1297                         <actions>
1298                                 <create permission="ADMIN_TRIGGER_EVENT_DEF CREATE_TRIGGER_EVENT_DEF">
1299                     <context link="event_def" field="owner"/>
1300                 </create>
1301                                 <retrieve permission="ADMIN_TRIGGER_EVENT_DEF VIEW_TRIGGER_EVENT_DEF">
1302                     <context link="event_def" field="owner"/>
1303                 </retrieve>
1304                                 <update permission="ADMIN_TRIGGER_EVENT_DEF UPDATE_TRIGGER_EVENT_DEF">
1305                     <context link="event_def" field="owner"/>
1306                 </update>
1307                                 <delete permission="ADMIN_TRIGGER_EVENT_DEF DELETE_TRIGGER_EVENT_DEF">
1308                     <context link="event_def" field="owner"/>
1309                 </delete>
1310                         </actions>
1311                 </permacrud>
1312         </class>
1313
1314         <class id="atul" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="action_trigger::user_log" reporter:label="Action Trigger User Log" oils_persist:readonly="true">
1315                 <oils_persist:source_definition><![CDATA[
1316                 SELECT  atevdef.hook,
1317                         atevdef.name,
1318                         atevdef.reactor,
1319                         atev.id,
1320                         atev.event_def,
1321                         atev.add_time,
1322                         atev.run_time,
1323                         atev.start_time,
1324                         atev.update_time,
1325                         atev.complete_time,
1326                         atev.update_process,
1327                         atev.state,
1328                         atev.user_data,
1329                         atev.template_output,
1330                         atev.error_output,
1331                         atev.async_output,
1332                         targ_circ.id AS target_circ,
1333                         targ_ahr.id AS target_hold,
1334                         COALESCE(
1335                                 targ_circ.circ_lib,
1336                                 targ_ahr.pickup_lib
1337                         ) AS perm_lib
1338                 FROM action_trigger.event atev
1339                 JOIN action_trigger.event_definition atevdef ON
1340                         (atevdef.id = atev.event_def)
1341                 JOIN action_trigger.hook ath ON
1342                         (ath.key = atevdef.hook)
1343                 LEFT JOIN action.circulation targ_circ ON
1344                         (ath.core_type = 'circ' AND targ_circ.id = atev.target)
1345                 LEFT JOIN action.hold_request targ_ahr ON
1346                         (ath.core_type = 'ahr' AND targ_ahr.id = atev.target)
1347                 WHERE atev.add_time > NOW() - (SELECT MAX(value) FROM (
1348                         SELECT value::INTERVAL FROM actor.org_unit_ancestor_setting(
1349                                 'circ.staff.max_visible_event_age',
1350                                 COALESCE(targ_circ.circ_lib, targ_ahr.pickup_lib)
1351                         ) UNION
1352                         SELECT '1000 YEARS'::INTERVAL AS value
1353                 ) ous)
1354                 ]]></oils_persist:source_definition>
1355                 <fields oils_persist:primary="id">
1356                         <field reporter:label="Hook" name="hook" reporter:datatype="link" />
1357                         <field reporter:label="Name" name="name" reporter:datatype="text" />
1358                         <field reporter:label="Reactor" name="reactor" reporter:datatype="text" />
1359                         <field reporter:label="Event ID" name="id" reporter:datatype="id" />
1360                         <field reporter:label="Event Definition ID" name="event_def" reporter:datatype="int" />
1361                         <field reporter:label="Event Add Time" name="add_time" reporter:datatype="timestamp" />
1362                         <field reporter:label="Event Run Time" name="run_time" reporter:datatype="timestamp" />
1363                         <field reporter:label="Event Start Time" name="start_time" reporter:datatype="timestamp" />
1364                         <field reporter:label="Event Update Time" name="update_time" reporter:datatype="timestamp" />
1365                         <field reporter:label="Event Complete Time" name="complete_time" reporter:datatype="timestamp" />
1366                         <field reporter:label="Event Update PID" name="update_process" reporter:datatype="int" />
1367                         <field reporter:label="Event State" name="state" reporter:datatype="text" />
1368                         <field reporter:label="Event User Data" name="user_data" reporter:datatype="text" />
1369                         <field reporter:label="Event Template Output" name="template_output" reporter:datatype="link" />
1370                         <field reporter:label="Event Error Output" name="error_output" reporter:datatype="link" />
1371                         <field reporter:label="Event Async Output" name="async_output" reporter:datatype="link" />
1372                         <field reporter:label="Target Circulation" name="target_circ" reporter:datatype="link" />
1373                         <field reporter:label="Target Hold" name="target_hold" reporter:datatype="link" />
1374                         <field reporter:label="Permission Context" name="perm_lib" reporter:datatype="org_unit" />
1375                 </fields>
1376                 <links>
1377                         <link field="hook" reltype="has_a" key="key" map="" class="ath" />
1378                         <link field="template_output" reltype="has_a" key="id" map="" class="ateo" />
1379                         <link field="error_output" reltype="has_a" key="id" map="" class="ateo" />
1380                         <link field="async_output" reltype="has_a" key="id" map="" class="ateo" />
1381                         <link field="target_circ" reltype="has_a" key="id" map="" class="circ" />
1382                         <link field="target_hold" reltype="has_a" key="id" map="" class="ahr" />
1383                         <link field="perm_lib" reltype="has_a" key="id" map="" class="aou" />
1384                 </links>
1385                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1386                         <actions>
1387                                 <retrieve permission="VIEW_TRIGGER_EVENT" context_field="perm_lib" />
1388                         </actions>
1389                 </permacrud>
1390         </class>
1391
1392         <class id="aws" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="actor::workstation" oils_persist:tablename="actor.workstation" reporter:label="Workstation">
1393                 <fields oils_persist:primary="id" oils_persist:sequence="actor.workstation_id_seq">
1394                         <field reporter:label="Workstation ID" name="id" reporter:datatype="id"/>
1395                         <field reporter:label="Workstation Name" name="name" reporter:datatype="text"/>
1396                         <field reporter:label="Owning Library" name="owning_lib"  reporter:datatype="org_unit"/>
1397                         <field reporter:label="Toolbars" name="toolbars" oils_persist:virtual="true" reporter:datatype="link"/>
1398                         <field reporter:label="Circulations" name="circulations" oils_persist:virtual="true" reporter:datatype="link"/>
1399                 </fields>
1400                 <links>
1401                         <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
1402                         <link field="toolbars" reltype="has_many" key="ws" map="" class="atb"/>
1403                         <link field="circulations" reltype="has_many" key="workstation" map="" class="circ"/>
1404                 </links>
1405                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1406                         <actions>
1407                                 <retrieve permission="STAFF_LOGIN" context_field="owning_lib" />
1408                         </actions>
1409                 </permacrud>
1410         </class>
1411
1412         <class id="ccm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::circ_modifier" oils_persist:tablename="config.circ_modifier" reporter:label="Circulation Modifier">
1413                 <fields oils_persist:primary="code">
1414                         <field reporter:label="Code" name="code" reporter:selector="name" reporter:datatype="id"/>
1415                         <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
1416                         <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true"/>
1417                         <field reporter:label="SIP2 Media Type" name="sip2_media_type" reporter:datatype="text" oils_persist:i18n="true"/>
1418                         <field reporter:label="Magnetic Media" name="magnetic_media" reporter:datatype="bool"/>
1419                         <field reporter:label="Average Wait Time" name="avg_wait_time" reporter:datatype="interval"/>
1420                 </fields>
1421                 <links/>
1422         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1423             <actions>
1424                 <create permission="ADMIN_CIRC_MOD" global_required="true"/>
1425                 <retrieve/>
1426                 <update permission="ADMIN_CIRC_MOD" global_required="true"/>
1427                 <delete permission="ADMIN_CIRC_MOD" global_required="true"/>
1428             </actions>
1429         </permacrud>
1430         </class>
1431
1432         <class id="aiit" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::invoice_item_type" oils_persist:tablename="acq.invoice_item_type" reporter:label="Non-bibliographic Invoice Item Type" oils_persist:field_safe="true">
1433                 <fields oils_persist:primary="code">
1434                         <field reporter:label="Code" name="code" reporter:selector="name" reporter:datatype="id"/>
1435                         <field reporter:label="Label" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
1436                         <field reporter:label="Prorate?" name="prorate" reporter:datatype="bool"/>
1437                 </fields>
1438                 <links/>
1439         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1440             <actions>
1441                 <create permission="CREATE_INVOICE_ITEM_TYPE" global_required="true"/>
1442                 <retrieve/>
1443                 <update permission="UPDATE_INVOICE_ITEM_TYPE" global_required="true"/>
1444                 <delete permission="DELETE_INVOICE_ITEM_TYPE" global_required="true"/>
1445             </actions>
1446         </permacrud>
1447         </class>
1448
1449         <class id="acqim" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::invoice_method" oils_persist:tablename="acq.invoice_method" reporter:label="Invoice Method used by Vendor" oils_persist:field_safe="true">
1450                 <fields oils_persist:primary="code">
1451                         <field reporter:label="Code" name="code" reporter:selector="name" reporter:datatype="id"/>
1452                         <field reporter:label="Label" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
1453                 </fields>
1454                 <links/>
1455         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1456             <actions>
1457                 <create permission="ADMIN_INVOICE_METHOD CREATE_INVOICE_METHOD" global_required="true"/>
1458                 <retrieve/>
1459                 <update permission="ADMIN_INVOICE_METHOD UPDATE_INVOICE_METHOD" global_required="true"/>
1460                 <delete permission="ADMIN_INVOICE_METHOD DELETE_INVOICE_METHOD" global_required="true"/>
1461             </actions>
1462         </permacrud>
1463         </class>
1464
1465         <class id="ccpbt" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="container::copy_bucket_type" oils_persist:tablename="container.copy_bucket_type" reporter:label="Copy Bucket Type" oils_persist:field_safe="true">
1466                 <fields oils_persist:primary="code">
1467                         <field reporter:label="Code" name="code" reporter:selector="name" reporter:datatype="id"/>
1468                         <field reporter:label="Label" name="label" reporter:datatype="text" oils_persist:i18n="true"/>
1469                 </fields>
1470                 <links/>
1471         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1472             <actions>
1473                 <create permission="CREATE_COPY_BTYPE" global_required="true"/>
1474                 <retrieve/>
1475                 <update permission="UPDATE_COPY_BTYPE" global_required="true"/>
1476                 <delete permission="DELETE_COPY_BTYPE" global_required="true"/>
1477             </actions>
1478         </permacrud>
1479         </class>
1480
1481         <class id="ccnbt" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="container::call_number_bucket_type" oils_persist:tablename="container.call_number_bucket_type" reporter:label="Call Number Bucket Type" oils_persist:field_safe="true">
1482                 <fields oils_persist:primary="code">
1483                         <field reporter:label="Code" name="code" reporter:selector="name" reporter:datatype="id"/>
1484                         <field reporter:label="Label" name="label" reporter:datatype="text" oils_persist:i18n="true"/>
1485                 </fields>
1486                 <links/>
1487         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1488             <actions>
1489                 <create permission="CREATE_CN_BTYPE" global_required="true"/>
1490                 <retrieve/>
1491                 <update permission="UPDATE_CN_BTYPE" global_required="true"/>
1492                 <delete permission="DELETE_CN_BTYPE" global_required="true"/>
1493             </actions>
1494         </permacrud>
1495         </class>
1496
1497         <class id="bpt" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="biblio::peer_type" oils_persist:tablename="biblio.peer_type" reporter:label="Bibliographic Record Peer Type" oils_persist:field_safe="true">
1498                 <fields oils_persist:primary="id" oils_persist:sequence="biblio.peer_type_id_seq">
1499                         <field reporter:label="ID" name="id" reporter:selector="name" reporter:datatype="id"/>
1500                         <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
1501                 </fields>
1502                 <links/>
1503         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1504             <actions>
1505                 <create permission="CREATE_BIB_PTYPE" global_required="true"/>
1506                 <retrieve/>
1507                 <update permission="UPDATE_BIB_PTYPE" global_required="true"/>
1508                 <delete permission="DELETE_BIB_PTYPE" global_required="true"/>
1509             </actions>
1510         </permacrud>
1511         </class>
1512
1513         <class id="bpbcm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="biblio::peer_bib_copy_map" oils_persist:tablename="biblio.peer_bib_copy_map" reporter:label="Bibliographic Record Peer Copy Map">
1514                 <fields oils_persist:primary="id" oils_persist:sequence="biblio.peer_bib_copy_map_id_seq">
1515                         <field reporter:label="ID" name="id" reporter:selector="name" reporter:datatype="id"/>
1516                         <field reporter:label="Peer Type" name="peer_type" reporter:datatype="link"/>
1517                         <field reporter:label="Peer Record" name="peer_record" reporter:datatype="link"/>
1518                         <field reporter:label="Target Copy" name="target_copy" reporter:datatype="link"/>
1519                 </fields>
1520         <links>
1521             <link field="peer_type" reltype="has_a" key="id" map="" class="bpt"/>
1522             <link field="peer_record" reltype="has_a" key="id" map="" class="bre"/>
1523             <link field="target_copy" reltype="has_a" key="id" map="" class="acp"/>
1524         </links>
1525         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1526             <actions>
1527                 <create permission="UPDATE_COPY">
1528                     <context link="target_copy" field="circ_lib"/>
1529                 </create>
1530                 <retrieve/>
1531                 <update permission="UPDATE_COPY">
1532                     <context link="target_copy" field="circ_lib"/>
1533                 </update>
1534                 <delete permission="UPDATE_COPY">
1535                     <context link="target_copy" field="circ_lib"/>
1536                 </delete>
1537             </actions>
1538         </permacrud>
1539         </class>
1540
1541         <class id="cbrebt" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="container::biblio_record_entry_bucket_type" oils_persist:tablename="container.biblio_record_entry_bucket_type" reporter:label="Bibliographic Record Bucket Type" oils_persist:field_safe="true">
1542                 <fields oils_persist:primary="code">
1543                         <field reporter:label="Code" name="code" reporter:selector="name" reporter:datatype="id"/>
1544                         <field reporter:label="Label" name="label" reporter:datatype="text" oils_persist:i18n="true"/>
1545                 </fields>
1546                 <links/>
1547         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1548             <actions>
1549                 <create permission="CREATE_BIB_BTYPE" global_required="true"/>
1550                 <retrieve/>
1551                 <update permission="UPDATE_BIB_BTYPE" global_required="true"/>
1552                 <delete permission="DELETE_BIB_BTYPE" global_required="true"/>
1553             </actions>
1554         </permacrud>
1555         </class>
1556
1557         <class id="cubt" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="container::user_bucket_type" oils_persist:tablename="container.user_bucket_type" reporter:label="User Bucket Type" oils_persist:field_safe="true">
1558                 <fields oils_persist:primary="code">
1559                         <field reporter:label="Code" name="code" reporter:selector="name" reporter:datatype="id"/>
1560                         <field reporter:label="Label" name="label" reporter:datatype="text" oils_persist:i18n="true"/>
1561                 </fields>
1562                 <links/>
1563         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1564             <actions>
1565                 <create permission="CREATE_USER_BTYPE" global_required="true"/>
1566                 <retrieve/>
1567                 <update permission="UPDATE_USER_BTYPE" global_required="true"/>
1568                 <delete permission="DELETE_USER_BTYPE" global_required="true"/>
1569             </actions>
1570         </permacrud>
1571         </class>
1572
1573         <class id="cvrfm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::videorecording_format_map" oils_persist:tablename="config.videorecording_format_map" reporter:label="Videorecording Format" oils_persist:field_safe="true">
1574                 <fields oils_persist:primary="code">
1575                         <field reporter:label="Code" name="code" reporter:selector="value" reporter:datatype="id"/>
1576                         <field reporter:label="Format" name="value" reporter:datatype="text" oils_persist:i18n="true"/>
1577                 </fields>
1578                 <links/>
1579         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1580             <actions>
1581                 <create permission="ADMIN_MARC_CODE" global_required="true"/>
1582                 <retrieve/>
1583                 <update permission="ADMIN_MARC_CODE" global_required="true"/>
1584                 <delete permission="ADMIN_MARC_CODE" global_required="true"/>
1585             </actions>
1586         </permacrud>
1587         </class>
1588
1589     <class id="chmw" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::hold_matrix_weights" oils_persist:tablename="config.hold_matrix_weights" reporter:label="Hold Matrix Weights">
1590         <fields oils_persist:primary="id" oils_persist:sequence="config.hold_matrix_weights_id_seq">
1591             <field reporter:label="Hold Weights ID" name="id" reporter:datatype="id" reporter:selector="name"/>
1592             <field reporter:label="Name" name="name" reporter:datatype="text"/>
1593             <field reporter:label="User Home Library" name="user_home_ou" reporter:datatype="float"/>
1594             <field reporter:label="Request Library" name="request_ou" reporter:datatype="float"/>
1595             <field reporter:label="Pickup Library" name="pickup_ou" reporter:datatype="float"/>
1596             <field reporter:label="Owning Library" name="item_owning_ou" reporter:datatype="float"/>
1597             <field reporter:label="Item Circ Library" name="item_circ_ou" reporter:datatype="float"/>
1598             <field reporter:label="User Permission Group" name="usr_grp" reporter:datatype="float"/>
1599             <field reporter:label="Requestor Permission Group" name="requestor_grp" reporter:datatype="float"/>
1600             <field reporter:label="Circulation Modifier" name="circ_modifier" oils_persist:primitive="string" reporter:datatype="float"/>
1601             <field reporter:label="MARC Type" name="marc_type" oils_persist:primitive="string" reporter:datatype="float"/>
1602             <field reporter:label="MARC Form" name="marc_form" oils_persist:primitive="string" reporter:datatype="float"/>
1603             <field reporter:label="MARC Bib Level" name="marc_bib_level" oils_persist:primitive="string" reporter:datatype="float"/>
1604             <field reporter:label="Videorecording Format" name="marc_vr_format" oils_persist:primitive="string" reporter:datatype="float"/>
1605             <field reporter:label="Juvenile?" name="juvenile_flag" oils_persist:primitive="string" reporter:datatype="float"/>
1606             <field reporter:label="Reference?" name="ref_flag" reporter:datatype="float"/>
1607             <field reporter:label="Item Age &lt;" name="item_age" reporter:datatype="float"/>
1608         </fields>
1609         <links/>
1610         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1611             <actions>
1612                 <create permission="ADMIN_HOLD_MATRIX_MATCHPOINT" global_required="true"/>
1613                 <retrieve/>
1614                 <update permission="ADMIN_HOLD_MATRIX_MATCHPOINT" global_required="true"/>
1615                 <delete permission="ADMIN_HOLD_MATRIX_MATCHPOINT" global_required="true"/>
1616             </actions>
1617         </permacrud>
1618     </class>
1619
1620     <class id="ccmw" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::circ_matrix_weights" oils_persist:tablename="config.circ_matrix_weights" reporter:label="Circ Matrix Weights">
1621         <fields oils_persist:primary="id" oils_persist:sequence="config.circ_matrix_weights_id_seq">
1622             <field reporter:label="Circ Weights ID" name="id" reporter:datatype="id" reporter:selector="name"/>
1623             <field reporter:label="Name" name="name" reporter:datatype="text"/>
1624             <field reporter:label="Renewal?" name="is_renewal" reporter:datatype="float"/>
1625             <field reporter:label="Org Unit" name="org_unit" reporter:datatype="float"/>
1626             <field reporter:label="Copy Circ Lib" name="copy_circ_lib" reporter:datatype="float"/>
1627             <field reporter:label="Copy Owning Lib" name="copy_owning_lib" reporter:datatype="float"/>
1628             <field reporter:label="User Home Lib" name="user_home_ou" reporter:datatype="float"/>
1629             <field reporter:label="Permission Group" name="grp" reporter:datatype="float"/>
1630             <field reporter:label="Circulation Modifier" name="circ_modifier" reporter:datatype="float"/>
1631             <field reporter:label="Copy Location" name="copy_location" reporter:datatype="float"/>
1632             <field reporter:label="MARC Type" name="marc_type" reporter:datatype="float"/>
1633             <field reporter:label="MARC Form" name="marc_form" reporter:datatype="float"/>
1634             <field reporter:label="MARC Bib Level" name="marc_bib_level" reporter:datatype="float"/>
1635             <field reporter:label="Videorecording Format" name="marc_vr_format" reporter:datatype="float"/>
1636             <field reporter:label="Reference?" name="ref_flag" reporter:datatype="float"/>
1637             <field reporter:label="Juvenile?" name="juvenile_flag" reporter:datatype="float"/>
1638             <field reporter:label="User Age: Lower Bound" name="usr_age_lower_bound" reporter:datatype="float"/>
1639             <field reporter:label="User Age: Upper Bound" name="usr_age_upper_bound" reporter:datatype="float"/>
1640             <field reporter:label="Item Age &lt;" name="item_age" reporter:datatype="float"/>
1641         </fields>
1642         <links/>
1643         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1644             <actions>
1645                 <create permission="ADMIN_CIRC_MATRIX_MATCHPOINT" global_required="true"/>
1646                 <retrieve/>
1647                 <update permission="ADMIN_CIRC_MATRIX_MATCHPOINT" global_required="true"/>
1648                 <delete permission="ADMIN_CIRC_MATRIX_MATCHPOINT" global_required="true"/>
1649             </actions>
1650         </permacrud>
1651     </class>
1652
1653     <class id="cwa" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::weight_assoc" oils_persist:tablename="config.weight_assoc" reporter:label="Matrix Weight Association">
1654         <fields oils_persist:primary="id" oils_persist:sequence="config.weight_assoc_id_seq">
1655             <field reporter:label="Assoc ID" name="id" reporter:datatype="id"/>
1656             <field reporter:label="Active?" name="active" reporter:datatype="bool"/>
1657             <field reporter:label="Org Unit" name="org_unit" reporter:datatype="org_unit"/>
1658             <field reporter:label="Circ Weights" name="circ_weights" reporter:datatype="link"/>
1659             <field reporter:label="Hold Weights" name="hold_weights" reporter:datatype="link"/>
1660         </fields>
1661         <links>
1662             <link field="org_unit" reltype="has_a" key="id" map="" class="aou"/>
1663             <link field="circ_weights" reltype="has_a" key="id" map="" class="ccmw"/>
1664             <link field="hold_weights" reltype="has_a" key="id" map="" class="chmw"/>
1665         </links>
1666         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1667             <actions>
1668                 <create permission="ADMIN_CIRC_MATRIX_MATCHPOINT ADMIN_HOLD_MATRIX_MATCHPOINT" context_field='org_unit'/>
1669                 <retrieve permission="ADMIN_CIRC_MATRIX_MATCHPOINT ADMIN_HOLD_MATRIX_MATCHPOINT VIEW_CIRC_MATRIX_MATCHPOINT VIEW_HOLD_MATRIX_MATCHPOINT" context_field='org_unit'/>
1670                 <update permission="ADMIN_CIRC_MATRIX_MATCHPOINT ADMIN_HOLD_MATRIX_MATCHPOINT" context_field='org_unit'/>
1671                 <delete permission="ADMIN_CIRC_MATRIX_MATCHPOINT ADMIN_HOLD_MATRIX_MATCHPOINT" context_field='org_unit'/>
1672             </actions>
1673         </permacrud>
1674     </class>
1675
1676         <class id="chmm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::hold_matrix_matchpoint" oils_persist:tablename="config.hold_matrix_matchpoint" reporter:label="Hold Matrix Matchpoint">
1677                 <fields oils_persist:primary="id" oils_persist:sequence="config.hold_matrix_matchpoint_id_seq">
1678                         <field reporter:label="Matchpoint ID" name="id" reporter:datatype="id"/>
1679                         <field reporter:label="Active?" name="active" reporter:datatype="bool"/>
1680                         <field reporter:label="Strict OU matches?" name="strict_ou_match" reporter:datatype="bool"/>
1681                         <field reporter:label="User Home Library" name="user_home_ou" reporter:datatype="org_unit"/>
1682                         <field reporter:label="Request Library" name="request_ou" reporter:datatype="org_unit"/>
1683                         <field reporter:label="Pickup Library" name="pickup_ou" reporter:datatype="org_unit"/>
1684                         <field reporter:label="Owning Library" name="item_owning_ou" reporter:datatype="org_unit"/>
1685                         <field reporter:label="Item Circ Library" name="item_circ_ou" reporter:datatype="org_unit"/>
1686                         <field reporter:label="User Permission Group" name="usr_grp" reporter:datatype="link"/>
1687                         <field reporter:label="Requestor Permission Group" name="requestor_grp" reporter:datatype="link"/>
1688                         <field reporter:label="Circulation Modifier" name="circ_modifier" oils_persist:primitive="string" reporter:datatype="link"/>
1689                         <field reporter:label="MARC Type" name="marc_type" oils_persist:primitive="string" reporter:datatype="link"/>
1690                         <field reporter:label="MARC Form" name="marc_form" oils_persist:primitive="string" reporter:datatype="link"/>
1691                         <field reporter:label="MARC Bib Level" name="marc_bib_level" oils_persist:primitive="string" reporter:datatype="link"/>
1692                         <field reporter:label="Videorecording Format" name="marc_vr_format" oils_persist:primitive="string" reporter:datatype="link"/>
1693                         <field reporter:label="Reference?" name="ref_flag" reporter:datatype="bool"/>
1694             <field reporter:label="Item Age &lt;" name="item_age" reporter:datatype="text"/>
1695                         <field reporter:label="Holdable?" name="holdable" reporter:datatype="bool"/>
1696                         <field reporter:label="Range is from Owning Lib?" name="distance_is_from_owner" reporter:datatype="bool"/>
1697                         <field reporter:label="Transit Range" name="transit_range" reporter:datatype="link"/>
1698                         <field reporter:label="Max Holds" name="max_holds" reporter:datatype="int"/>
1699                         <field reporter:label="Max includes Frozen" name="include_frozen_holds" reporter:datatype="bool"/>
1700                         <field reporter:label="Copy Age Hold Protection Rule" name="age_hold_protect_rule" reporter:datatype="link"/>
1701                 </fields>
1702                 <links>
1703                         <link field="user_home_ou" reltype="has_a" key="id" map="" class="aou"/>
1704                         <link field="request_ou" reltype="has_a" key="id" map="" class="aou"/>
1705                         <link field="pickup_ou" reltype="has_a" key="id" map="" class="aou"/>
1706                         <link field="item_owning_ou" reltype="has_a" key="id" map="" class="aou"/>
1707                         <link field="item_circ_ou" reltype="has_a" key="id" map="" class="aou"/>
1708                         <link field="usr_grp" reltype="has_a" key="id" map="" class="pgt"/>
1709                         <link field="requestor_grp" reltype="has_a" key="id" map="" class="pgt"/>
1710                         <link field="circ_modifier" reltype="has_a" key="code" map="" class="ccm"/>
1711                         <link field="marc_type" reltype="has_a" key="code" map="" class="citm"/>
1712                         <link field="marc_form" reltype="has_a" key="code" map="" class="cifm"/>
1713                         <link field="marc_bib_level" reltype="has_a" key="code" map="" class="cblvl"/>
1714                         <link field="marc_vr_format" reltype="has_a" key="code" map="" class="cvrfm"/>
1715                         <link field="age_hold_protect_rule" reltype="has_a" key="id" map="" class="crahp"/>
1716             <link field="transit_range" reltype="has_a" key="id" map="" class="aout"/>
1717                 </links>
1718         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1719             <actions>
1720                 <create permission="ADMIN_HOLD_MATRIX_MATCHPOINT" global_required="true"/>
1721                 <retrieve permission="ADMIN_HOLD_MATRIX_MATCHPOINT VIEW_HOLD_MATRIX_MATCHPOINT" global_required="true"/>
1722                 <update permission="ADMIN_HOLD_MATRIX_MATCHPOINT" global_required="true"/>
1723                 <delete permission="ADMIN_HOLD_MATRIX_MATCHPOINT" global_required="true"/>
1724             </actions>
1725         </permacrud>
1726         </class>
1727
1728         <class id="ccmm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::circ_matrix_matchpoint" oils_persist:tablename="config.circ_matrix_matchpoint" reporter:label="Circulation Matrix Matchpoint">
1729                 <fields oils_persist:primary="id" oils_persist:sequence="config.circ_matrix_matchpoint_id_seq">
1730                         <field reporter:label="Matchpoint ID" name="id" reporter:datatype="id"/>
1731                         <field reporter:label="Renewal?" name="is_renewal" reporter:datatype="bool"/>
1732                         <field reporter:label="Active?" name="active" reporter:datatype="bool"/>
1733                         <field reporter:label="Org Unit" name="org_unit" reporter:datatype="org_unit" oils_obj:required="true"/>
1734                         <field reporter:label="Copy Circ Lib" name="copy_circ_lib" reporter:datatype="org_unit"/>
1735                         <field reporter:label="Copy Owning Lib" name="copy_owning_lib" reporter:datatype="org_unit"/>
1736                         <field reporter:label="User Home Lib" name="user_home_ou" reporter:datatype="org_unit"/>
1737                         <field reporter:label="Permission Group" name="grp" reporter:datatype="link" oils_obj:required="true"/>
1738                         <field reporter:label="Circulation Modifier" name="circ_modifier" oils_persist:primitive="string" reporter:datatype="link"/>
1739                         <field reporter:label="Copy Location" name="copy_location" reporter:datatype="link"/>
1740                         <field reporter:label="MARC Type" name="marc_type" oils_persist:primitive="string" reporter:datatype="link"/>
1741                         <field reporter:label="MARC Form" name="marc_form" oils_persist:primitive="string" reporter:datatype="link"/>
1742                         <field reporter:label="MARC Bib Level" name="marc_bib_level" oils_persist:primitive="string" reporter:datatype="link"/>
1743                         <field reporter:label="Videorecording Format" name="marc_vr_format" oils_persist:primitive="string" reporter:datatype="link"/>
1744                         <field reporter:label="Reference?" name="ref_flag" reporter:datatype="bool"/>
1745             <field reporter:label="Juvenile?" name="juvenile_flag" reporter:datatype="bool"/>
1746                         <field reporter:label="User Age: Lower Bound" name="usr_age_lower_bound" reporter:datatype="text"/>
1747                         <field reporter:label="User Age: Upper Bound" name="usr_age_upper_bound" reporter:datatype="text"/>
1748             <field reporter:label="Item Age &lt;" name="item_age" reporter:datatype="text"/>
1749                         <field reporter:label="Circulate?" name="circulate" reporter:datatype="bool"/>
1750                         <field reporter:label="Duration Rule" name="duration_rule" reporter:datatype="link"/>
1751                         <field reporter:label="Recurring Fine Rule" name="recurring_fine_rule" reporter:datatype="link"/>
1752                         <field reporter:label="Max Fine Rule" name="max_fine_rule" reporter:datatype="link"/>
1753             <field reporter:label="Hard Due Date" name="hard_due_date" reporter:datatype="link"/>
1754             <field reporter:label="Renewals Override" name="renewals" reporter:datatype="int"/>
1755             <field reporter:label="Grace Period Override" name="grace_period" reporter:datatype="interval"/>
1756                         <field reporter:label="Script Test" name="script_test" reporter:datatype="text"/>
1757                         <field name="total_copy_hold_ratio" reporter:datatype="float" reporter:label="Minimum Total Copy/Hold Ratio"/>
1758                         <field name="available_copy_hold_ratio" reporter:datatype="float" reporter:label="Minimum Available Copy/Hold Ratio"/>
1759                 </fields>
1760                 <links>
1761                         <link field="org_unit" reltype="has_a" key="id" map="" class="aou"/>
1762                         <link field="copy_circ_lib" reltype="has_a" key="id" map="" class="aou"/>
1763                         <link field="copy_owning_lib" reltype="has_a" key="id" map="" class="aou"/>
1764                         <link field="user_home_ou" reltype="has_a" key="id" map="" class="aou"/>
1765                         <link field="grp" reltype="has_a" key="id" map="" class="pgt"/>
1766                         <link field="circ_modifier" reltype="has_a" key="code" map="" class="ccm"/>
1767                         <link field="copy_location" reltype="has_a" key="id" map="" class="acpl"/>
1768                         <link field="marc_type" reltype="has_a" key="code" map="" class="citm"/>
1769                         <link field="marc_form" reltype="has_a" key="code" map="" class="cifm"/>
1770                         <link field="marc_bib_level" reltype="has_a" key="code" map="" class="cblvl"/>
1771                         <link field="marc_vr_format" reltype="has_a" key="code" map="" class="cvrfm"/>
1772                         <link field="duration_rule" reltype="has_a" key="id" map="" class="crcd"/>
1773                         <link field="max_fine_rule" reltype="has_a" key="id" map="" class="crmf"/>
1774                         <link field="recurring_fine_rule" reltype="has_a" key="id" map="" class="crrf"/>
1775             <link field="hard_due_date" reltype="has_a" key="id" map="" class="chdd"/>
1776                 </links>
1777         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1778             <actions>
1779                 <create permission="ADMIN_CIRC_MATRIX_MATCHPOINT" context_field='org_unit'/>
1780                 <retrieve permission="ADMIN_CIRC_MATRIX_MATCHPOINT VIEW_CIRC_MATRIX_MATCHPOINT" context_field='org_unit'/>
1781                 <update permission="ADMIN_CIRC_MATRIX_MATCHPOINT" context_field='org_unit'/>
1782                 <delete permission="ADMIN_CIRC_MATRIX_MATCHPOINT" context_field='org_unit'/>
1783             </actions>
1784         </permacrud>
1785         </class>
1786
1787     <class id="cclg" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::circ_limit_group" oils_persist:tablename="config.circ_limit_group" reporter:label="Circulation Limit Group">
1788         <fields oils_persist:primary="id" oils_persist:sequence="config.circ_limit_group_id_seq">
1789             <field reporter:label="ID" name="id" reporter:datatype="id" reporter:selector="name"/>
1790             <field reporter:label="Name" name="name" reporter:datatype="text"/>
1791             <field reporter:label="Description" name="description" reporter:datatype="text"/>
1792         </fields>
1793         <links/>
1794         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1795             <actions>
1796                 <create permission="ADMIN_CIRC_MATRIX_MATCHPOINT" global_required="true"/>
1797                 <retrieve/>
1798                 <update permission="ADMIN_CIRC_MATRIX_MATCHPOINT" global_required="true"/>
1799                 <delete permission="ADMIN_CIRC_MATRIX_MATCHPOINT" global_required="true"/>
1800             </actions>
1801         </permacrud>
1802     </class>
1803
1804     <class id="ccls" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::circ_limit_set" oils_persist:tablename="config.circ_limit_set" reporter:label="Circulation Limit Set">
1805         <fields oils_persist:primary="id" oils_persist:sequence="config.circ_limit_set_id_seq">
1806             <field reporter:label="ID" name="id" reporter:datatype="id" reporter:selector="name"/>
1807             <field reporter:label="Name" name="name" reporter:datatype="text"/>
1808             <field reporter:label="Owning Library" name="owning_lib"  reporter:datatype="org_unit"/>
1809             <field reporter:label="Items Out" name="items_out" reporter:datatype="int"/>
1810             <field reporter:label="Min Depth" name="depth" reporter:datatype="int"/>
1811             <field reporter:label="Global" name="global" reporter:datatype="bool"/>
1812             <field reporter:label="Description" name="description" reporter:datatype="text"/>
1813         </fields>
1814         <links>
1815             <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
1816         </links>
1817         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1818             <actions>
1819                 <create permission="ADMIN_CIRC_MATRIX_MATCHPOINT" context_field="owning_lib"/>
1820                 <retrieve/>
1821                 <update permission="ADMIN_CIRC_MATRIX_MATCHPOINT" context_field="owning_lib"/>
1822                 <delete permission="ADMIN_CIRC_MATRIX_MATCHPOINT" context_field="owning_lib"/>
1823             </actions>
1824         </permacrud>
1825     </class>
1826
1827     <class id="ccmlsm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::circ_matrix_limit_set_map" oils_persist:tablename="config.circ_matrix_limit_set_map" reporter:label="Circulation Matrix Limit Set Map">
1828         <fields oils_persist:primary="id" oils_persist:sequence="config.circ_matrix_limit_set_map_id_seq">
1829             <field reporter:label="ID" name="id" reporter:datatype="id"/>
1830             <field reporter:label="Matchpoint" name="matchpoint" reporter:datatype="link"/>
1831             <field reporter:label="Limit Set" name="limit_set" reporter:datatype="link"/>
1832             <field reporter:label="Fallthrough" name="fallthrough" reporter:datatype="bool"/>
1833             <field reporter:label="Active" name="active" reporter:datatype="bool"/>
1834         </fields>
1835         <links>
1836             <link field="matchpoint" reltype="has_a" key="id" map="" class="ccmm"/>
1837             <link field="limit_set" reltype="has_a" key="id" map="" class="ccls"/>
1838         </links>
1839         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1840             <actions>
1841                 <create permission="ADMIN_CIRC_MATRIX_MATCHPOINT">
1842                     <context link="matchpoint" field="org_unit"/>
1843                 </create>
1844                 <retrieve/>
1845                 <update permission="ADMIN_CIRC_MATRIX_MATCHPOINT">
1846                     <context link="matchpoint" field="org_unit"/>
1847                 </update>
1848                 <delete permission="ADMIN_CIRC_MATRIX_MATCHPOINT">
1849                     <context link="matchpoint" field="org_unit"/>
1850                 </delete>
1851             </actions>
1852         </permacrud>
1853     </class>
1854
1855     <class id="cclscmm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::circ_limit_set_circ_mod_map" oils_persist:tablename="config.circ_limit_set_circ_mod_map" reporter:label="Circulation Limit Set Circ Mod Map">
1856         <fields oils_persist:primary="id" oils_persist:sequence="config.circ_limit_set_circ_mod_map_id_seq">
1857             <field reporter:label="ID" name="id" reporter:datatype="id"/>
1858             <field reporter:label="Limit Set" name="limit_set" reporter:datatype="link"/>
1859             <field reporter:label="Circulation Modifier" name="circ_mod" reporter:datatype="link"/>
1860         </fields>
1861         <links>
1862             <link field="limit_set" reltype="has_a" key="id" map="" class="ccls"/>
1863             <link field="circ_mod" reltype="has_a" key="code" map="" class="ccm"/>
1864         </links>
1865         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1866             <actions>
1867                 <create permission="ADMIN_CIRC_MATRIX_MATCHPOINT">
1868                     <context link="limit_set" field="owning_lib"/>
1869                 </create>
1870                 <retrieve/>
1871                 <update permission="ADMIN_CIRC_MATRIX_MATCHPOINT">
1872                     <context link="limit_set" field="owning_lib"/>
1873                 </update>
1874                 <delete permission="ADMIN_CIRC_MATRIX_MATCHPOINT">
1875                     <context link="limit_set" field="owning_lib"/>
1876                 </delete>
1877             </actions>
1878         </permacrud>
1879     </class>
1880     <class id="cclsacpl" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::circ_limit_set_copy_loc_map" oils_persist:tablename="config.circ_limit_set_copy_loc_map" reporter:label="Circulation Limit Set Copy Location Map">
1881         <fields oils_persist:primary="id" oils_persist:sequence="config.circ_limit_set_copy_loc_map_id_seq">
1882             <field reporter:label="ID" name="id" reporter:datatype="id"/>
1883             <field reporter:label="Limit Set" name="limit_set" reporter:datatype="link"/>
1884             <field reporter:label="Copy Location" name="copy_loc" reporter:datatype="link"/>
1885         </fields>
1886         <links>
1887             <link field="limit_set" reltype="has_a" key="id" map="" class="ccls"/>
1888             <link field="copy_loc" reltype="has_a" key="id" map="" class="acpl"/>
1889         </links>
1890         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1891             <actions>
1892                 <create permission="ADMIN_CIRC_MATRIX_MATCHPOINT">
1893                     <context link="limit_set" field="owning_lib"/>
1894                 </create>
1895                 <retrieve/>
1896                 <update permission="ADMIN_CIRC_MATRIX_MATCHPOINT">
1897                     <context link="limit_set" field="owning_lib"/>
1898                 </update>
1899                 <delete permission="ADMIN_CIRC_MATRIX_MATCHPOINT">
1900                     <context link="limit_set" field="owning_lib"/>
1901                 </delete>
1902             </actions>
1903         </permacrud>
1904     </class>
1905
1906     <class id="cclsgm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::circ_limit_set_group_map" oils_persist:tablename="config.circ_limit_set_group_map" reporter:label="Circulation Limit Set Group Map">
1907         <fields oils_persist:primary="id" oils_persist:sequence="config.circ_limit_set_group_map_id_seq">
1908             <field reporter:label="ID" name="id" reporter:datatype="id"/>
1909             <field reporter:label="Limit Set" name="limit_set" reporter:datatype="link"/>
1910             <field reporter:label="Limit Group" name="limit_group" reporter:datatype="link"/>
1911             <field reporter:label="Check Only" name="check_only" reporter:datatype="bool"/>
1912         </fields>
1913         <links>
1914             <link field="limit_set" reltype="has_a" key="id" map="" class="ccls"/>
1915             <link field="limit_group" reltype="has_a" key="id" map="" class="cclg"/>
1916         </links>
1917         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1918             <actions>
1919                 <create permission="ADMIN_CIRC_MATRIX_MATCHPOINT">
1920                     <context link="limit_set" field="owning_lib"/>
1921                 </create>
1922                 <retrieve/>
1923                 <update permission="ADMIN_CIRC_MATRIX_MATCHPOINT">
1924                     <context link="limit_set" field="owning_lib"/>
1925                 </update>
1926                 <delete permission="ADMIN_CIRC_MATRIX_MATCHPOINT">
1927                     <context link="limit_set" field="owning_lib"/>
1928                 </delete>
1929             </actions>
1930         </permacrud>
1931     </class>
1932
1933         <class id="cit" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::identification_type" oils_persist:tablename="config.identification_type" reporter:label="Identification Type">
1934                 <fields oils_persist:primary="id" oils_persist:sequence="config.identification_type_id_seq">
1935                         <field reporter:label="Identification ID" name="id" reporter:selector="name" reporter:datatype="id"/>
1936                         <field reporter:label="Identification Name" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
1937                 </fields>
1938                 <links/>
1939         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1940             <actions>
1941                 <create permission="ADMIN_IDENT_TYPE" global_required="true"/>
1942                 <retrieve/>
1943                 <update permission="ADMIN_IDENT_TYPE" global_required="true"/>
1944                 <delete permission="ADMIN_IDENT_TYPE" global_required="true"/>
1945             </actions>
1946         </permacrud>
1947         </class>
1948
1949         <class id="asvq" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="action::survey_question" oils_persist:tablename="action.survey_question" reporter:label="User Survey Question">
1950                 <fields oils_persist:primary="id" oils_persist:sequence="action.survey_question_id_seq">
1951                         <field reporter:label="Answers" name="answers" oils_persist:virtual="true" reporter:datatype="link"/>
1952                         <field reporter:label="Responses" name="responses" oils_persist:virtual="true" reporter:datatype="link"/>
1953                         <field reporter:label="Question ID" name="id" reporter:datatype="id" />
1954                         <field reporter:label="Question" name="question" reporter:datatype="text"/>
1955                         <field reporter:label="Survey" name="survey" reporter:datatype="link"/>
1956                 </fields>
1957                 <links>
1958                         <link field="survey" reltype="has_a" key="id" map="" class="asv"/>
1959                         <link field="responses" reltype="has_many" key="question" map="" class="asvr"/>
1960                         <link field="answers" reltype="has_many" key="question" map="" class="asva"/>
1961                 </links>
1962         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1963             <actions>
1964                 <create permission="ADMIN_SURVEY">
1965                     <context link="survey" field="owner"/>
1966                 </create>
1967                 <retrieve/>
1968                 <update permission="ADMIN_SURVEY">
1969                     <context link="survey" field="owner"/>
1970                 </update>
1971                 <delete permission="ADMIN_SURVEY">
1972                     <context link="survey" field="owner"/>
1973                 </delete>
1974             </actions>
1975         </permacrud>
1976         </class>
1977         <class id="mbts" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="money::billable_transaction_summary" oils_persist:tablename="money.materialized_billable_xact_summary" reporter:label="Billable Transaction Summary" oils_persist:readonly="true">
1978                 <fields oils_persist:primary="id" oils_persist:sequence="">
1979                         <field reporter:label="Balance Owed" name="balance_owed" reporter:datatype="money"/>
1980                         <field reporter:label="Transaction ID" name="id" reporter:datatype="id"/>
1981                         <field reporter:label="Last Billing Note" name="last_billing_note" reporter:datatype="text"/>
1982                         <field reporter:label="Last Billing Timestamp" name="last_billing_ts" reporter:datatype="timestamp"/>
1983                         <field reporter:label="Last Billing Type" name="last_billing_type" reporter:datatype="text"/>
1984                         <field reporter:label="Last Payment Note" name="last_payment_note" reporter:datatype="text"/>
1985                         <field reporter:label="Last Payment Timestamp" name="last_payment_ts" reporter:datatype="timestamp"/>
1986                         <field reporter:label="Last Payment Type" name="last_payment_type" reporter:datatype="text"/>
1987                         <field reporter:label="Total Owed" name="total_owed" reporter:datatype="money"/>
1988                         <field reporter:label="Total Paid" name="total_paid" reporter:datatype="money"/>
1989                         <field reporter:label="Billed User" name="usr" reporter:datatype="link"/>
1990                         <field reporter:label="Transaction Finish Time" name="xact_finish" reporter:datatype="timestamp" />
1991                         <field reporter:label="Transaction Start Time" name="xact_start" reporter:datatype="timestamp" />
1992                         <field reporter:label="Transaction Type" name="xact_type" reporter:datatype="text"/>
1993                 </fields>
1994                 <links>
1995                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
1996                 </links>
1997                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1998                         <actions>
1999                                 <retrieve permission="VIEW_USER_TRANSACTIONS">
2000                                         <context link="usr" field="home_ou" />
2001                                 </retrieve>
2002                         </actions>
2003                 </permacrud>
2004         </class>
2005         <class id="mbtslv" controller="open-ils.cstore" oils_obj:fieldmapper="money::billable_transaction_summary_location_view" oils_persist:tablename="money.billable_xact_summary_location_view" reporter:label="Billable Transaction Summary with Billing Location" oils_persist:readonly="true" reporter:core="true">
2006                 <fields oils_persist:primary="id" oils_persist:sequence="">
2007                         <field reporter:label="Balance Owed" name="balance_owed" reporter:datatype="money"/>
2008                         <field reporter:label="Transaction ID" name="id" reporter:datatype="id"/>
2009                         <field reporter:label="Last Billing Note" name="last_billing_note" reporter:datatype="text"/>
2010                         <field reporter:label="Last Billing Timestamp" name="last_billing_ts" reporter:datatype="timestamp"/>
2011                         <field reporter:label="Last Billing Type" name="last_billing_type" reporter:datatype="text"/>
2012                         <field reporter:label="Last Payment Note" name="last_payment_note" reporter:datatype="text"/>
2013                         <field reporter:label="Last Payment Timestamp" name="last_payment_ts" reporter:datatype="timestamp"/>
2014                         <field reporter:label="Last Payment Type" name="last_payment_type" reporter:datatype="text"/>
2015                         <field reporter:label="Total Owed" name="total_owed" reporter:datatype="money"/>
2016                         <field reporter:label="Total Paid" name="total_paid" reporter:datatype="money"/>
2017                         <field reporter:label="Billed User" name="usr" reporter:datatype="link"/>
2018                         <field reporter:label="Transaction Finish Time" name="xact_finish" reporter:datatype="timestamp" />
2019                         <field reporter:label="Transaction Start Time" name="xact_start" reporter:datatype="timestamp" />
2020                         <field reporter:label="Transaction Type" name="xact_type" reporter:datatype="text"/>
2021                         <field reporter:label="Billing Location" name="billing_location" reporter:datatype="link"/>
2022                 </fields>
2023                 <links>
2024                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
2025                         <link field="billing_location" reltype="has_a" key="id" map="" class="aou"/>
2026                 </links>
2027         </class>
2028         <class id="aum" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="actor::usr_message" oils_persist:tablename="actor.usr_message" reporter:label="User Message">
2029                 <fields oils_persist:primary="id" oils_persist:sequence="actor.usr_message_id_seq">
2030                         <field reporter:label="Creation Date/Time" name="create_date" reporter:datatype="timestamp"/>
2031                         <field reporter:label="Read Date/Time" name="read_date" reporter:datatype="timestamp"/>
2032                         <field reporter:label="Creating Library" name="sending_lib" reporter:datatype="link"/>
2033                         <field reporter:label="Message ID" name="id" reporter:datatype="id" />
2034                         <field reporter:label="Deleted?" name="deleted" reporter:datatype="bool"/>
2035                         <field reporter:label="Title" name="title" reporter:datatype="text"/>
2036                         <field reporter:label="User" name="usr" reporter:datatype="link" />
2037                         <field reporter:label="Message" name="message" reporter:datatype="text"/>
2038                 </fields>
2039                 <links>
2040                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
2041                         <link field="sending_lib" reltype="has_a" key="id" map="" class="aou"/>
2042                 </links>
2043                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2044                         <actions> <!-- created magically, so no create action -->
2045                                 <retrieve permission="VIEW_USER" context_field="sending_lib" />
2046                                 <update permission="UPDATE_USER" context_field="sending_lib" />
2047                                 <delete permission="UPDATE_USER" context_field="sending_lib" />
2048                         </actions>
2049                 </permacrud>
2050         </class>
2051         <class id="auml" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="actor::usr_message_limited" oils_persist:tablename="actor.usr_message_limited" reporter:label="User Message (Limited Access)">
2052                 <fields oils_persist:primary="id" oils_persist:sequence="actor.usr_message_id_seq">
2053                         <field reporter:label="Creation Date/Time" name="create_date" reporter:datatype="timestamp"/>
2054                         <field reporter:label="Read Date/Time" name="read_date" reporter:datatype="timestamp"/>
2055                         <field reporter:label="Creating Library" name="sending_lib" reporter:datatype="link"/>
2056                         <field reporter:label="Message ID" name="id" reporter:datatype="id" />
2057                         <field reporter:label="Deleted?" name="deleted" reporter:datatype="bool"/>
2058                         <field reporter:label="Title" name="title" reporter:datatype="text"/>
2059                         <field reporter:label="User" name="usr" reporter:datatype="link" />
2060                         <field reporter:label="Message" name="message" reporter:datatype="text"/>
2061                 </fields>
2062                 <links>
2063                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
2064                         <link field="sending_lib" reltype="has_a" key="id" map="" class="aou"/>
2065                 </links>
2066                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2067                         <actions> <!-- created magically, so no create action -->
2068                                 <retrieve permission="UPDATE_USER" context_field="sending_lib" owning_user="usr"/>
2069                                 <update   permission="UPDATE_USER" context_field="sending_lib" owning_user="usr"/>
2070                         </actions>
2071                 </permacrud>
2072         </class>
2073         <class id="aun" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="actor::usr_note" oils_persist:tablename="actor.usr_note" reporter:label="User Note">
2074                 <fields oils_persist:primary="id" oils_persist:sequence="actor.usr_note_id_seq">
2075                         <field reporter:label="Creation Date/Time" name="create_date" reporter:datatype="timestamp"/>
2076                         <field reporter:label="Creating Staff" name="creator" reporter:datatype="link"/>
2077                         <field reporter:label="Note ID" name="id" reporter:datatype="id" />
2078                         <field reporter:label="Is OPAC Visible?" name="pub" reporter:datatype="bool"/>
2079                         <field reporter:label="Note Title" name="title" reporter:datatype="text"/>
2080                         <field reporter:label="User" name="usr" reporter:datatype="link" />
2081                         <field reporter:label="Note Content" name="value" reporter:datatype="text"/>
2082                 </fields>
2083                 <links>
2084                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
2085                         <link field="creator" reltype="has_a" key="id" map="" class="au"/>
2086                 </links>
2087         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2088             <actions>
2089                 <create permission="UPDATE_USER" context_field="owner">
2090                     <context link="usr" field="home_ou"/>
2091                 </create>
2092                                 <!-- note: public notes are still accessible via API -->
2093                 <retrieve permission="UPDATE_USER">
2094                     <context link="usr" field="home_ou"/>
2095                                 </retrieve>
2096                 <update permission="UPDATE_USER">
2097                     <context link="usr" field="home_ou"/>
2098                                 </update>
2099                 <delete permission="UPDATE_USER">
2100                     <context link="usr" field="home_ou"/>
2101                                 </delete>
2102             </actions>
2103         </permacrud>
2104         </class>
2105         <class id="aupr" controller="open-ils.cstore" oils_obj:fieldmapper="actor::usr_password_reset" oils_persist:tablename="actor.usr_password_reset" reporter:label="User password reset requests">
2106                 <fields oils_persist:primary="id" oils_persist:sequence="actor.usr_password_reset_id_seq">
2107                         <field reporter:label="Request ID" name="id" reporter:datatype="id"/>
2108                         <field reporter:label="UUID" name="uuid" reporter:datatype="text"/>
2109                         <field reporter:label="User" name="usr" reporter:datatype="link"/>
2110                         <field reporter:label="Request Time" name="request_time" reporter:datatype="timestamp"/>
2111                         <field reporter:label="Was Reset?" name="has_been_reset" reporter:datatype="bool"/>
2112                 </fields>
2113                 <links>
2114                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
2115                 </links>
2116         </class>
2117         <class id="aus" controller="open-ils.cstore" oils_obj:fieldmapper="actor::user_setting" oils_persist:tablename="actor.usr_setting" reporter:label="User Setting">
2118                 <fields oils_persist:primary="id" oils_persist:sequence="actor.usr_setting_id_seq">
2119                         <field reporter:label="Setting ID" name="id" reporter:datatype="id" />
2120                         <field reporter:label="Name" name="name" reporter:datatype="link"/>
2121                         <field reporter:label="User" name="usr" reporter:datatype="link"/>
2122                         <field reporter:label="Value" name="value" reporter:datatype="text"/>
2123                 </fields>
2124                 <links>
2125                         <link field="name" reltype="has_a" key="name" map="" class="cust"/>
2126                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
2127                 </links>
2128         </class>
2129         <class id="mafe" controller="open-ils.cstore" oils_obj:fieldmapper="metabib::author_field_entry" oils_persist:tablename="metabib.author_field_entry" reporter:label="Author Field Entry">
2130                 <fields oils_persist:primary="id" oils_persist:sequence="metabib.author_field_entry_id_seq">
2131                         <field name="field" reporter:datatype="link"/>
2132                         <field name="id" reporter:datatype="id" />
2133                         <field name="source" reporter:datatype="link"/>
2134                         <field name="value" reporter:datatype="text"/>
2135                 </fields>
2136                 <links>
2137                         <link field="source" reltype="has_a" key="id" map="" class="bre"/>
2138                         <link field="field" reltype="has_a" key="id" map="" class="cmf"/>
2139                 </links>
2140         </class>
2141         <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">
2142                 <fields oils_persist:primary="id" oils_persist:sequence="action.in_house_use_id_seq">
2143                         <field reporter:label="Use ID" name="id" reporter:datatype="id" />
2144                         <field reporter:label="Item" name="item" reporter:datatype="int" />
2145                         <field reporter:label="Using Library" name="org_unit" reporter:datatype="org_unit"/>
2146                         <field reporter:label="Recording Staff" name="staff" reporter:datatype="link"/>
2147                         <field reporter:label="Use Date/Time" name="use_time" reporter:datatype="timestamp"/>
2148                 </fields>
2149                 <links>
2150                         <link field="item" reltype="has_a" key="id" map="" class="acp"/>
2151                         <link field="staff" reltype="has_a" key="id" map="" class="au"/>
2152                         <link field="org_unit" reltype="has_a" key="id" map="" class="aou"/>
2153                 </links>
2154         </class>
2155         <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">
2156                 <fields oils_persist:primary="id" oils_persist:sequence="action.non_cat_in_house_use_id_seq">
2157                         <field reporter:label="Use ID" name="id" reporter:datatype="id" />
2158                         <field reporter:label="Item Type" name="item_type" reporter:datatype="link"/>
2159                         <field reporter:label="Using Library" name="org_unit" reporter:datatype="org_unit"/>
2160                         <field reporter:label="Recording Staff" name="staff" reporter:datatype="link"/>
2161                         <field reporter:label="Use Date/Time" name="use_time" reporter:datatype="timestamp"/>
2162                 </fields>
2163                 <links>
2164                         <link field="item_type" reltype="has_a" key="id" map="" class="cnct"/>
2165                         <link field="staff" reltype="has_a" key="id" map="" class="au"/>
2166                         <link field="org_unit" reltype="has_a" key="id" map="" class="aou"/>
2167                 </links>
2168         </class>
2169         <class id="atc" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="action::transit_copy" oils_persist:tablename="action.transit_copy" reporter:core="true" reporter:label="Copy Transit">
2170                 <fields oils_persist:primary="id" oils_persist:sequence="action.transit_copy_id_seq">
2171                         <field reporter:label="Pretransit Copy Status" name="copy_status" reporter:datatype="bool"/>
2172                         <field reporter:label="Destination" name="dest" reporter:datatype="link"/>
2173                         <field reporter:label="Receive Date/Time" name="dest_recv_time" reporter:datatype="timestamp"/>
2174                         <field reporter:label="Transit ID" name="id" reporter:datatype="id"/>
2175                         <field reporter:label="Is Persistent? (unused)" name="persistant_transfer" reporter:datatype="bool"/>
2176                         <field reporter:label="Previous Hop (unused)" name="prev_hop" reporter:datatype="link"/>
2177                         <field reporter:label="Source" name="source" reporter:datatype="link"/>
2178                         <field reporter:label="Prev Destination" name="prev_dest" reporter:datatype="org_unit"/>
2179                         <field reporter:label="Send Date/Time" name="source_send_time" reporter:datatype="timestamp"/>
2180                         <field reporter:label="Transited Copy" name="target_copy" reporter:datatype="link"/>
2181                         <field reporter:label="Hold Transit" name="hold_transit_copy" oils_persist:virtual="true" reporter:datatype="link"/>
2182                 </fields>
2183                 <links>
2184                         <link field="hold_transit_copy" reltype="might_have" key="id" map="" class="ahtc"/>
2185                         <link field="source" reltype="has_a" key="id" map="" class="aou"/>
2186                         <link field="prev_dest" reltype="has_a" key="id" map="" class="aou"/>
2187                         <link field="copy_status" reltype="has_a" key="id" map="" class="ccs"/>
2188                         <link field="dest" reltype="has_a" key="id" map="" class="aou"/>
2189                         <link field="target_copy" reltype="has_a" key="id" map="" class="acp"/>
2190                 </links>
2191         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2192             <actions>
2193                 <create permission="TRANSIT_COPY" context_field="owner">
2194                     <context link="target_copy" field="circ_lib"/>
2195                 </create>
2196                 <retrieve/>
2197                 <update permission="UPDATE_TRANSIT" context_field="dest source"/>
2198                 <delete permission="DELETE_TRANSIT" context_field="dest source"/>
2199             </actions>
2200         </permacrud>
2201         </class>
2202         <class id="asvr" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="action::survey_response" oils_persist:tablename="action.survey_response" reporter:label="Survey Response">
2203                 <fields oils_persist:primary="id" oils_persist:sequence="action.survey_response_id_seq">
2204                         <field reporter:label="Answer" name="answer" reporter:datatype="link"/>
2205                         <field reporter:label="Answer Date/Time" name="answer_date" reporter:datatype="timestamp"/>
2206                         <field reporter:label="Effective Answer Date/Time" name="effective_date" reporter:datatype="timestamp"/>
2207                         <field reporter:label="Answer ID" name="id" reporter:datatype="id" />
2208                         <field reporter:label="Question" name="question" reporter:datatype="link"/>
2209                         <field reporter:label="Response Group ID" name="response_group_id" reporter:datatype="int" />
2210                         <field reporter:label="Survey" name="survey" reporter:datatype="link"/>
2211                         <field reporter:label="Responding User" name="usr" reporter:datatype="link"/>
2212                 </fields>
2213                 <links>
2214                         <link field="question" reltype="has_a" key="id" map="" class="asvq"/>
2215                         <link field="survey" reltype="has_a" key="id" map="" class="asv"/>
2216                         <link field="answer" reltype="has_a" key="id" map="" class="asva"/>
2217                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
2218                 </links>
2219         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2220             <actions>
2221                 <create permission="ADMIN_SURVEY">
2222                     <context link="survey" field="owner"/>
2223                 </create>
2224                 <retrieve/>
2225                 <update permission="ADMIN_SURVEY">
2226                     <context link="survey" field="owner"/>
2227                 </update>
2228                 <delete permission="ADMIN_SURVEY">
2229                     <context link="survey" field="owner"/>
2230                 </delete>
2231             </actions>
2232         </permacrud>
2233         </class>
2234         <class id="ccbi" controller="open-ils.cstore" oils_obj:fieldmapper="container::copy_bucket_item" oils_persist:tablename="container.copy_bucket_item" reporter:label="Copy Bucket Item">
2235                 <fields oils_persist:primary="id" oils_persist:sequence="container.copy_bucket_item_id_seq">
2236                         <field name="bucket" />
2237                         <field name="id" reporter:datatype="id" />
2238                         <field name="target_copy" reporter:datatype="link"/>
2239                         <field name="create_time" reporter:datatype="timestamp" />
2240                         <field name="pos" reporter:datatype="int" />
2241                         <field name="notes" oils_persist:virtual="true" reporter:datatype="link" />
2242                 </fields>
2243                 <links>
2244                         <link field="target_copy" reltype="has_a" key="id" map="" class="acp"/>
2245                         <link field="bucket" reltype="has_a" key="id" map="" class="ccb"/>
2246             <link field="notes" reltype="has_many" map="" key="item" class="ccbin"/>
2247                 </links>
2248         </class>
2249         <class id="ccbin" controller="open-ils.cstore" oils_obj:fieldmapper="container::copy_bucket_item_note" oils_persist:tablename="container.copy_bucket_item_note" reporter:label="Copy Bucket Item Note">
2250                 <fields oils_persist:primary="id" oils_persist:sequence="container.copy_bucket_item_note_id_seq">
2251                         <field name="id" reporter:datatype="id" />
2252                         <field name="item" reporter:datatype="link"/>
2253                         <field name="note" reporter:datatype="text" />
2254                 </fields>
2255                 <links>
2256                         <link field="item" reltype="has_a" key="id" map="" class="ccbi"/>
2257                 </links>
2258         </class>
2259
2260         <class id="acs" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="authority::control_set" oils_persist:tablename="authority.control_set" reporter:label="Authority Control Set" oils_persist:field_safe="true">
2261                 <fields oils_persist:primary="id" oils_persist:sequence="authority.control_set_id_seq">
2262                         <field reporter:label="Control Set ID" name="id" reporter:datatype="id" reporter:selector="name"/>
2263                         <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true" oils_obj:required="true" />
2264                         <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true" />
2265                         <field reporter:label="Controlling Authority Fields" name="authority_fields" reporter:datatype="link" oils_persist:virtual="true"/>
2266                         <field reporter:label="Thesauri" name="thesauri" reporter:datatype="link" oils_persist:virtual="true"/>
2267                 </fields>
2268                 <links>
2269                         <link field="authority_fields" reltype="has_many" key="control_set" map="" class="acsaf"/>
2270                         <link field="thesauri" reltype="has_many" key="control_set" map="" class="at"/>
2271                 </links>
2272                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2273                         <actions>
2274                                 <create permission="CREATE_AUTHORITY_CONTROL_SET" global_required="true"/>
2275                                 <retrieve/>
2276                                 <update permission="UPDATE_AUTHORITY_CONTROL_SET" global_required="true"/>
2277                                 <delete permission="DELETE_AUTHORITY_CONTROL_SET" global_required="true"/>
2278                         </actions>
2279                 </permacrud>
2280         </class>
2281
2282         <class id="acsaf" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="authority::control_set_authority_field" oils_persist:tablename="authority.control_set_authority_field" reporter:label="Authority Control Set Authority Field" oils_persist:field_safe="true">
2283                 <fields oils_persist:primary="id" oils_persist:sequence="authority.control_set_authority_field_id_seq">
2284                         <field reporter:label="Control Set Authority Field ID" name="id" reporter:datatype="id" reporter:selector="name"/>
2285                         <field reporter:label="Main Entry" name="main_entry" reporter:datatype="link"/>
2286                         <field reporter:label="Control Set" name="control_set" reporter:datatype="link"/>
2287                         <field reporter:label="Tag" name="tag" reporter:datatype="text" oils_obj:required="true" oils_obj:validate="^.{3}$"/>
2288                         <field reporter:label="Subfield List" name="sf_list" reporter:datatype="text" />
2289                         <field reporter:label="Subfield List for Display" name="display_sf_list" reporter:datatype="text" />
2290                         <field reporter:label="Non-filing Indicator" name="nfi" reporter:datatype="text" />
2291                         <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true" oils_obj:required="true" />
2292                         <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true" />
2293                         <field reporter:label="Linking Subfield" name="linking_subfield" reporter:datatype="text" />
2294                         <field reporter:label="Subordinate Entries" name="sub_entries" reporter:datatype="link" oils_persist:virtual="true"/>
2295                         <field reporter:label="Controlled Bib Fields" name="bib_fields" reporter:datatype="link" oils_persist:virtual="true"/>
2296                         <field reporter:label="Thesauri" name="thesauri" reporter:datatype="link" oils_persist:virtual="true"/>
2297                         <field reporter:label="Browse Axis Maps" name="axis_maps" reporter:datatype="link" oils_persist:virtual="true"/>
2298                         <field reporter:label="Joiner" name="joiner" reporter:datatype="text" />
2299                 </fields>
2300                 <links>
2301                         <link field="axis_maps" reltype="has_many" key="field" map="" class="abaafm"/>
2302                         <link field="control_set" reltype="has_a" key="id" map="" class="acs"/>
2303                         <link field="bib_fields" reltype="has_many" key="authority_field" map="" class="acsbf"/>
2304                         <link field="thesauri" reltype="has_many" key="control_set" map="" class="at"/>
2305                         <link field="main_entry" reltype="has_a" key="id" map="" class="acsaf"/>
2306                         <link field="sub_entries" reltype="has_many" key="main_entry" map="" class="acsaf"/>
2307                 </links>
2308                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2309                         <actions>
2310                                 <create permission="CREATE_AUTHORITY_CONTROL_SET" global_required="true"/>
2311                                 <retrieve/>
2312                                 <update permission="UPDATE_AUTHORITY_CONTROL_SET" global_required="true"/>
2313                                 <delete permission="UPDATE_AUTHORITY_CONTROL_SET" global_required="true"/>
2314                         </actions>
2315                 </permacrud>
2316         </class>
2317
2318         <class id="acsbf" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="authority::control_set_bib_field" oils_persist:tablename="authority.control_set_bib_field" reporter:label="Authority Control Set Bib Field" oils_persist:field_safe="true">
2319                 <fields oils_persist:primary="id" oils_persist:sequence="authority.control_set_bib_field_id_seq">
2320                         <field reporter:label="Controlled Bib Field ID" name="id" reporter:datatype="id" reporter:selector="name"/>
2321                         <field reporter:label="Controlling Authority Field" name="authority_field" reporter:datatype="link"/>
2322                         <field reporter:label="Tag" name="tag" reporter:datatype="text" oils_obj:required="true" oils_obj:validate="^.{3}$"/>
2323                 </fields>
2324                 <links>
2325                         <link field="authority_field" reltype="has_a" key="id" map="" class="acsaf"/>
2326                 </links>
2327                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2328                         <actions>
2329                                 <create permission="CREATE_AUTHORITY_CONTROL_SET" global_required="true"/>
2330                                 <retrieve/>
2331                                 <update permission="UPDATE_AUTHORITY_CONTROL_SET" global_required="true"/>
2332                                 <delete permission="UPDATE_AUTHORITY_CONTROL_SET" global_required="true"/>
2333                         </actions>
2334                 </permacrud>
2335         </class>
2336
2337         <class id="acsbfmfm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="authority::control_set_bib_field_metabib_field_map" oils_persist:tablename="authority.control_set_bib_field_metabib_field_map" reporter:label="Authority Control Set Bib Field to Metabib Field Map" oils_persist:field_safe="true">
2338                 <fields oils_persist:primary="id" oils_persist:sequence="authority.control_set_bib_field_metabib_field_map_id_seq">
2339                         <field reporter:label="ID" name="id" reporter:datatype="id" reporter:selector="name"/>
2340                         <field reporter:label="Bib Field" name="bib_field" reporter:datatype="link"/>
2341                         <field reporter:label="Metabib Field" name="metabib_field" reporter:datatype="link"/>
2342                 </fields>
2343                 <links>
2344                         <link field="bib_field" reltype="has_a" key="id" map="" class="acsbf"/>
2345                         <link field="metabib_field" reltype="has_a" key="id" map="" class="cmf"/>
2346                 </links>
2347                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2348                         <actions>
2349                                 <create permission="CREATE_AUTHORITY_CONTROL_SET" global_required="true"/>
2350                                 <retrieve/>
2351                                 <update permission="UPDATE_AUTHORITY_CONTROL_SET" global_required="true"/>
2352                                 <delete permission="UPDATE_AUTHORITY_CONTROL_SET" global_required="true"/>
2353                         </actions>
2354                 </permacrud>
2355         </class>
2356
2357         <class id="at" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="authority::thesaurus" oils_persist:tablename="authority.thesaurus" reporter:label="Authority Thesaurus" oils_persist:field_safe="true">
2358                 <fields oils_persist:primary="code">
2359                         <field reporter:label="Thesaurus Code" name="code" reporter:datatype="id" reporter:selector="name"/>
2360                         <field reporter:label="Control Set" name="control_set" reporter:datatype="link"/>
2361                         <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true" oils_obj:required="true" />
2362                         <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true" />
2363                 </fields>
2364                 <links>
2365                         <link field="control_set" reltype="has_a" key="id" map="" class="acs"/>
2366                 </links>
2367                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2368                         <actions>
2369                                 <create permission="CREATE_AUTHORITY_CONTROL_SET" global_required="true"/>
2370                                 <retrieve/>
2371                                 <update permission="UPDATE_AUTHORITY_CONTROL_SET" global_required="true"/>
2372                                 <delete permission="UPDATE_AUTHORITY_CONTROL_SET" global_required="true"/>
2373                         </actions>
2374                 </permacrud>
2375         </class>
2376
2377         <class id="aba" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="authority::browse_axis" oils_persist:tablename="authority.browse_axis" reporter:label="Authority Browse Axis" oils_persist:field_safe="true">
2378                 <fields oils_persist:primary="code">
2379                         <field reporter:label="Code" name="code" reporter:datatype="id" reporter:selector="name" oils_obj:validate="^\S+$"/>
2380                         <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true" oils_obj:required="true"/>
2381                         <field reporter:label="Sorter Attribute" name="sorter" reporter:datatype="link"/>
2382                         <field reporter:label="Description" name="description" reporter:datatype="text"/>
2383                         <field reporter:label="Authority Fields" name="fields" reporter:datatype="link" oils_persist:virtual="true"/>
2384                         <field reporter:label="Authority Field Maps" name="maps" reporter:datatype="link" oils_persist:virtual="true"/>
2385                 </fields>
2386                 <links>
2387                         <link field="sorter" reltype="has_a" key="name" map="" class="crad"/>
2388                         <link field="fields" reltype="has_many" key="axis" map="field" class="abaafm"/>
2389                         <link field="maps" reltype="has_many" key="axis" map="" class="abaafm"/>
2390                 </links>
2391                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2392                         <actions>
2393                                 <create permission="CREATE_AUTHORITY_CONTROL_SET" global_required="true"/>
2394                                 <retrieve/>
2395                                 <update permission="UPDATE_AUTHORITY_CONTROL_SET" global_required="true"/>
2396                                 <delete permission="UPDATE_AUTHORITY_CONTROL_SET" global_required="true"/>
2397                         </actions>
2398                 </permacrud>
2399         </class>
2400
2401     <class id="abaafm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="authority::browse_axis_authority_field_map" oils_persist:tablename="authority.browse_axis_authority_field_map" reporter:label="Authority Browse Axis Field Map" oils_persist:field_safe="true">
2402         <fields oils_persist:primary="id" oils_persist:sequence="authority.browse_axis_authority_field_map_id_seq">
2403             <field reporter:label="Axis Authority Field Map ID" name="id" reporter:datatype="id"/>
2404             <field reporter:label="Authority Field" name="field" oils_obj:required="true" reporter:datatype="link"/>
2405             <field reporter:label="Axis" name="axis" reporter:datatype="link" oils_obj:required="true"/>
2406         </fields>
2407         <links>
2408             <link field="field" reltype="has_a" key="id" map="" class="acsaf"/>
2409             <link field="axis" reltype="has_a" key="code" map="" class="aba"/>
2410         </links>
2411         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2412             <actions>
2413                 <create permission="CREATE_AUTHORITY_CONTROL_SET" global_required="true"/>
2414                 <retrieve/>
2415                 <update permission="UPDATE_AUTHORITY_CONTROL_SET" global_required="true"/>
2416                 <delete permission="UPDATE_AUTHORITY_CONTROL_SET" global_required="true"/>
2417             </actions>
2418         </permacrud>
2419     </class>
2420
2421         <class id="are" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="authority::record_entry" oils_persist:tablename="authority.record_entry" reporter:label="Authority Record Entry">
2422                 <fields oils_persist:primary="id" oils_persist:sequence="authority.record_entry_id_seq">
2423                         <field name="active" reporter:datatype="bool"/>
2424                         <field name="create_date" reporter:datatype="timestamp"/>
2425                         <field name="creator" />
2426                         <field name="deleted" reporter:datatype="bool"/>
2427                         <field name="edit_date" reporter:datatype="timestamp"/>
2428                         <field name="editor" />
2429                         <field name="id" reporter:datatype="id" />
2430                         <field name="last_xact_id" />
2431                         <field name="marc" />
2432                         <field name="source" />
2433                         <field reporter:label="Control Set" name="control_set" reporter:datatype="link"/>
2434                         <field reporter:label="Owner" name="owner"  reporter:datatype="org_unit"/>
2435                         <field name="heading" />
2436                         <field name="simple_heading" />
2437                         <field name="fixed_fields" oils_persist:virtual="true" reporter:datatype="link"/>
2438                         <field name="notes" oils_persist:virtual="true" reporter:datatype="link"/>
2439                         <field name="bib_links" oils_persist:virtual="true" reporter:datatype="link"/>
2440                 </fields>
2441                 <links>
2442                         <link field="control_set" reltype="has_a" key="id" map="" class="acs"/>
2443                         <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
2444                         <link field="editor" reltype="has_a" key="id" map="" class="au"/>
2445                         <link field="creator" reltype="has_a" key="id" map="" class="au"/>
2446                         <link field="notes" reltype="has_many" key="record" map="" class="arn"/>
2447                         <link field="bib_links" reltype="has_many" key="authority" map="" class="abl"/>
2448                         <link field="fixed_fields" reltype="might_have" key="record" map="" class="ard"/>
2449                 </links>
2450                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2451                         <actions>
2452                                 <create permission="CREATE_MARC IMPORT_MARC" global_required="true"/>
2453                                 <retrieve/>
2454                                 <update permission="UPDATE_MARC" global_required="true"/>
2455                                 <delete permission="UPDATE_MARC" global_required="true"/>
2456                         </actions>
2457                 </permacrud>
2458         </class>
2459         <class id="ard" controller="open-ils.cstore" oils_obj:fieldmapper="authority::record_descriptor" oils_persist:tablename="authority.rec_descriptor" reporter:label="Authority Record Descriptor">
2460                 <fields oils_persist:primary="id" oils_persist:sequence="authority.rec_descriptor_id_seq">
2461                         <field name="char_encoding" />
2462                         <field name="id" />
2463                         <field name="record" />
2464                         <field name="record_status" />
2465                         <field name="thesaurus" />
2466                 </fields>