Allow combined search to be optional per class
[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"/>
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 permission="CREATE_IMPORT_TRASH_FIELD UPDATE_IMPORT_TRASH_FIELD DELETE_IMPORT_TRASH_FIELD">
231                     <context link="grp" field="owner"/>
232                 </retrieve>
233                                 <update permission="UPDATE_IMPORT_TRASH_FIELD">
234                     <context link="grp" field="owner"/>
235                 </update>
236                                 <delete permission="DELETE_IMPORT_TRASH_FIELD">
237                     <context link="grp" field="owner"/>
238                 </delete>
239                         </actions>
240                 </permacrud>
241         </class>
242
243         <class  id="vibtg" 
244             controller="open-ils.cstore open-ils.pcrud" 
245             oils_obj:fieldmapper="vandelay::import_bib_trash_group" 
246             oils_persist:tablename="vandelay.import_bib_trash_group" 
247             reporter:label="Import/Overlay Field Groups for Removal">
248                 <fields oils_persist:primary="id" 
249                 oils_persist:sequence="vandelay.import_bib_trash_group_id_seq">
250                         <field reporter:label="ID" name="id" reporter:datatype="id" reporter:selector="name"/>
251                         <field reporter:label="Owner" name="owner" reporter:datatype="link"/>
252                         <field reporter:label="Label" name="label" reporter:datatype="text"/>
253                         <field reporter:label="Always Apply" name="always_apply" reporter:datatype="bool"/>
254                 </fields>
255                 <links>
256                         <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
257                 </links>
258                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
259                         <actions>
260                                 <create permission="CREATE_IMPORT_TRASH_FIELD" context_field="owner"/>
261                                 <retrieve permission="CREATE_IMPORT_TRASH_FIELD UPDATE_IMPORT_TRASH_FIELD DELETE_IMPORT_TRASH_FIELD" context_field="owner"/>
262                                 <update permission="UPDATE_IMPORT_TRASH_FIELD" context_field="owner"/>
263                                 <delete permission="DELETE_IMPORT_TRASH_FIELD" context_field="owner"/>
264                         </actions>
265                 </permacrud>
266         </class>
267
268
269         <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">
270                 <fields oils_persist:primary="id" oils_persist:sequence="vandelay.import_item_id_seq">
271                         <field reporter:label="Import Item ID" name="id" reporter:datatype="id"/>
272                         <field reporter:label="Import Record" name="record" reporter:datatype="link"/>
273                         <field reporter:label="Attribute Definition" name="definition" reporter:datatype="link"/>
274                         <field reporter:label="Import Error" name="import_error" reporter:datatype="link"/>
275                         <field reporter:label="Import Error Detail" name="error_detail" reporter:datatype="text"/>
276                         <field reporter:label="Final Target Copy" name="imported_as" reporter:datatype="link"/>
277                         <field reporter:label="Import Time" name="import_time" reporter:datatype="timestamp"/>
278                         <field reporter:label="Owning Library" name="owning_lib" reporter:datatype="int"/>
279                         <field reporter:label="Circulating Library" name="circ_lib" reporter:datatype="int"/>
280                         <field reporter:label="Call Number" name="call_number" reporter:datatype="text"/>
281                         <field reporter:label="Copy Number" name="copy_number" reporter:datatype="int"/>
282                         <field reporter:label="Status" name="status" reporter:datatype="int"/>
283                         <field reporter:label="Shelving Location" name="location" reporter:datatype="int"/>
284                         <field reporter:label="Circulate" name="circulate" reporter:datatype="bool"/>
285                         <field reporter:label="Deposit" name="deposit" reporter:datatype="bool"/>
286                         <field reporter:label="Deposit Amount" name="deposit_amount" reporter:datatype="money"/>
287                         <field reporter:label="Reference" name="ref" reporter:datatype="bool"/>
288                         <field reporter:label="Holdable" name="holdable" reporter:datatype="bool"/>
289                         <field reporter:label="Price" name="price" reporter:datatype="money"/>
290                         <field reporter:label="Barcode" name="barcode" reporter:datatype="text"/>
291                         <field reporter:label="Circulation Modifier" name="circ_modifier" reporter:datatype="text"/>
292                         <field reporter:label="Circulate As MARC Type" name="circ_as_type" reporter:datatype="text"/>
293                         <field reporter:label="Alert Message" name="alert_message" reporter:datatype="text"/>
294                         <field reporter:label="Public Note" name="pub_note" reporter:datatype="text"/>
295                         <field reporter:label="Private Note" name="priv_note" reporter:datatype="text"/>
296                         <field reporter:label="OPAC Visible" name="opac_visible" reporter:datatype="bool"/>
297                         <field reporter:label="Overlay Match ID" name="internal_id" reporter:datatype="int"/>
298                 </fields>
299                 <links>
300                         <link field="import_error" reltype="has_a" key="code" map="" class="vie"/>
301                         <link field="record" reltype="has_a" key="id" map="" class="vqbr"/>
302                         <link field="definition" reltype="has_a" key="id" map="" class="viiad"/>
303                         <link field="imported_as" reltype="has_a" key="id" map="" class="acp"/>
304                 </links>
305                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
306                         <actions>
307                                 <create permission="CREATE_IMPORT_ITEM">
308                     <context link="definition" field="owner"/>
309                                 </create>
310                                 <retrieve permission="CREATE_IMPORT_ITEM UPDATE_IMPORT_ITEM DELETE_IMPORT_ITEM">
311                     <context link="definition" field="owner"/>
312                                 </retrieve>
313                                 <update permission="UPDATE_IMPORT_ITEM">
314                     <context link="definition" field="owner"/>
315                                 </update>
316                                 <delete permission="DELETE_IMPORT_ITEM">
317                     <context link="definition" field="owner"/>
318                                 </delete>
319                         </actions>
320                 </permacrud>
321         </class>
322
323         <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">
324                 <fields oils_persist:primary="id" oils_persist:sequence="vandelay.import_item_attr_definition_id_seq">
325                         <field reporter:label="Definition ID" name="id" reporter:datatype="id"/>
326                         <field reporter:label="Owner" name="owner" reporter:datatype="link"/>
327                         <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
328                         <field reporter:label="Tag" name="tag" reporter:datatype="text"/>
329                         <field reporter:label="Keep" name="keep" reporter:datatype="bool"/>
330                         <field reporter:label="Owning Library" name="owning_lib" reporter:datatype="text"/>
331                         <field reporter:label="Circulating Library" name="circ_lib" reporter:datatype="text"/>
332                         <field reporter:label="Call Number" name="call_number" reporter:datatype="text"/>
333                         <field reporter:label="Status" name="status" reporter:datatype="text"/>
334                         <field reporter:label="Shelving Location" name="location" reporter:datatype="text"/>
335                         <field reporter:label="Circulate" name="circulate" reporter:datatype="text"/>
336                         <field reporter:label="Deposit" name="deposit" reporter:datatype="text"/>
337                         <field reporter:label="Deposit Amount" name="deposit_amount" reporter:datatype="text"/>
338                         <field reporter:label="Reference" name="ref" reporter:datatype="text"/>
339                         <field reporter:label="Holdable" name="holdable" reporter:datatype="text"/>
340                         <field reporter:label="Price" name="price" reporter:datatype="text"/>
341                         <field reporter:label="Barcode" name="barcode" reporter:datatype="text"/>
342                         <field reporter:label="Circulation Modifier" name="circ_modifier" reporter:datatype="text"/>
343                         <field reporter:label="Circulate As MARC Type" name="circ_as_type" reporter:datatype="text"/>
344                         <field reporter:label="Alert Message" name="alert_message" reporter:datatype="text"/>
345                         <field reporter:label="Public Note" name="pub_note" reporter:datatype="text"/>
346                         <field reporter:label="Private Note" name="priv_note" reporter:datatype="text"/>
347                         <field reporter:label="OPAC Visible" name="opac_visible" reporter:datatype="text"/>
348                         <field reporter:label="Copy Number" name="copy_number" reporter:datatype="text"/>
349                         <field reporter:label="Overlay Match ID" name="internal_id" reporter:datatype="text"/>
350                 </fields>
351                 <links>
352                         <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
353                 </links>
354                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
355                         <actions>
356                                 <create permission="CREATE_IMPORT_ITEM_ATTR_DEF ADMIN_IMPORT_ITEM_ATTR_DEF" context_field="owner"/>
357                                 <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"/>
358                                 <update permission="UPDATE_IMPORT_ITEM_ATTR_DEF ADMIN_IMPORT_ITEM_ATTR_DEF" context_field="owner"/>
359                                 <delete permission="DELETE_IMPORT_ITEM_ATTR_DEF ADMIN_IMPORT_ITEM_ATTR_DEF" context_field="owner"/>
360                         </actions>
361                 </permacrud>
362         </class>
363
364         <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">
365                 <fields oils_persist:primary="id" oils_persist:sequence="vandelay.queue_id_seq">
366                         <field reporter:label="Queue ID" name="id" reporter:selector="name" reporter:datatype="id"/>
367                         <field reporter:label="Owner" name="owner" reporter:datatype="link"/>
368                         <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
369                         <field reporter:label="Complete" name="complete" reporter:datatype="bool"/>
370                         <field reporter:label="Type" name="queue_type" reporter:datatype="text"/>
371                         <field reporter:label="Match Set" name="match_set" reporter:datatype="link"/>
372                         <field reporter:label="Item Import Attribute Definition" name="item_attr_def" reporter:datatype="link"/>
373                 </fields>
374                 <links>
375                         <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
376                         <link field="item_attr_def" reltype="has_a" key="id" map="" class="viiad"/>
377                         <link field="match_set" reltype="has_a" key="id" map="" class="vms"/>
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                 </fields>
606                 <links>
607                         <link field="queued_record" reltype="has_a" key="id" map="" class="vqbr"/>
608                         <link field="eg_record" reltype="has_a" key="id" map="" class="bre"/>
609                 </links>
610                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
611                         <actions>
612                                 <create permission="CREATE_AUTHORITY_IMPORT_QUEUE" global_required="true"/>
613                                 <retrieve permission="CREATE_AUTHORITY_IMPORT_QUEUE UPDATE_AUTHORITY_IMPORT_QUEUE DELETE_AUTHORITY_IMPORT_QUEUE" global_required="true"/>
614                                 <update permission="UPDATE_AUTHORITY_IMPORT_QUEUE" global_required="true"/>
615                                 <delete permission="DELETE_AUTHORITY_IMPORT_QUEUE" global_required="true"/>
616                         </actions>
617                 </permacrud>
618         </class>
619
620         <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">
621                 <fields oils_persist:primary="id" oils_persist:sequence="vandelay.match_set_id_seq">
622                         <field reporter:label="Match Set ID" name="id" reporter:datatype="id" reporter:selector="name"/>
623                         <field reporter:label="Name" name="name" reporter:datatype="text"/>
624                         <field reporter:label="Owning Library" name="owner" reporter:datatype="link"/>
625                         <field reporter:label="Match Set Type" name="mtype" reporter:datatype="text"/>
626                 </fields>
627                 <links>
628                         <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
629                 </links>
630                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
631                         <actions>
632                                 <create permission="ADMIN_IMPORT_MATCH_SET" context_field="owner"/>
633                                 <retrieve permission="ADMIN_IMPORT_MATCH_SET VIEW_IMPORT_MATCH_SET" context_field="owner"/>
634                                 <update permission="ADMIN_IMPORT_MATCH_SET" context_field="owner"/>
635                                 <delete permission="ADMIN_IMPORT_MATCH_SET" context_field="owner"/>
636                         </actions>
637                 </permacrud>
638         </class>
639
640         <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">
641                 <fields oils_persist:primary="id" oils_persist:sequence="vandelay.match_set_point_id_seq">
642                         <field reporter:label="Match Definition ID" name="id" reporter:datatype="id"/>
643                         <field reporter:label="Expression Tree Parent" name="parent" reporter:datatype="link"/>
644                         <field reporter:label="Match Set" name="match_set" reporter:datatype="link"/>
645                         <field reporter:label="Boolean Operator" name="bool_op" reporter:datatype="text"/>
646                         <field reporter:label="Coded Field" name="svf" reporter:datatype="link"/>
647                         <field reporter:label="Tag" name="tag" reporter:datatype="text"/>
648                         <field reporter:label="Subfield" name="subfield" reporter:datatype="text"/>
649             <field reporter:label="Negate" name="negate"  reporter:datatype="bool"/>
650                         <field reporter:label="Importance" name="quality" reporter:datatype="int"/>
651                         <field reporter:label="Expression Tree Children" name="children" oils_persist:virtual="true" reporter:datatype="link"/>
652                 </fields>
653                 <links>
654                         <link field="parent" reltype="has_a" key="id" map="" class="vmsp"/>
655                         <link field="match_set" reltype="has_a" key="id" map="" class="vms"/>
656                         <link field="svf" reltype="has_a" key="id" map="" class="crad"/>
657                         <link field="children" reltype="has_many" key="parent" map="" class="vmsp"/>
658                 </links>
659                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
660                         <actions>
661                                 <create permission="ADMIN_IMPORT_MATCH_SET">
662                     <context link="match_set" field="owner"/>
663                                 </create>
664                                 <retrieve permission="ADMIN_IMPORT_MATCH_SET VIEW_IMPORT_MATCH_SET">
665                     <context link="match_set" field="owner"/>
666                                 </retrieve>
667                                 <update permission="ADMIN_IMPORT_MATCH_SET">
668                     <context link="match_set" field="owner"/>
669                                 </update>
670                                 <delete permission="ADMIN_IMPORT_MATCH_SET">
671                     <context link="match_set" field="owner"/>
672                                 </delete>
673                         </actions>
674                 </permacrud>
675         </class>
676
677         <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">
678                 <fields oils_persist:primary="id" oils_persist:sequence="vandelay.match_set_quality_id_seq">
679                         <field reporter:label="Quality Metric ID" name="id" reporter:datatype="id"/>
680                         <field reporter:label="Match Set" name="match_set" reporter:datatype="link"/>
681                         <field reporter:label="Record Attribute" name="svf" reporter:datatype="text"/>
682                         <field reporter:label="Tag" name="tag" reporter:datatype="text"/>
683                         <field reporter:label="Subfield" name="subfield" reporter:datatype="text"/>
684                         <field reporter:label="Value" name="value" reporter:datatype="text"/>
685                         <field reporter:label="Quality" name="quality" reporter:datatype="int"/>
686                 </fields>
687                 <links>
688                         <link field="match_set" reltype="has_a" key="id" map="" class="vms"/>
689                 </links>
690                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
691                         <actions>
692                                 <create permission="ADMIN_IMPORT_MATCH_SET">
693                     <context link="match_set" field="owner"/>
694                                 </create>
695                                 <retrieve permission="ADMIN_IMPORT_MATCH_SET">
696                     <context link="match_set" field="owner"/>
697                                 </retrieve>
698                                 <update permission="ADMIN_IMPORT_MATCH_SET">
699                     <context link="match_set" field="owner"/>
700                                 </update>
701                                 <delete permission="ADMIN_IMPORT_MATCH_SET">
702                     <context link="match_set" field="owner"/>
703                                 </delete>
704                         </actions>
705                 </permacrud>
706         </class>
707
708         <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">
709                 <fields oils_persist:primary="id" oils_persist:sequence="actor.usr_org_unit_opt_in_id_seq">
710                         <field reporter:label="Opt-in ID" name="id" reporter:datatype="id"/>
711                         <field reporter:label="Workstation" name="opt_in_ws" reporter:datatype="link"/>
712                         <field reporter:label="Staff Member" name="staff" reporter:datatype="link"/>
713                         <field reporter:label="User" name="usr" reporter:datatype="link"/>
714                         <field reporter:label="Allowed Org Unit" name="org_unit" reporter:datatype="link"/>
715                         <field reporter:label="Opt-in Date/Time" name="opt_in_ts" reporter:datatype="timestamp"/>
716                 </fields>
717                 <links>
718                         <link field="org_unit" reltype="has_a" key="id" map="" class="aou"/>
719                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
720                         <link field="staff" reltype="has_a" key="id" map="" class="au"/>
721                         <link field="opt_in_ws" reltype="has_a" key="id" map="" class="aws"/>
722                 </links>
723         </class>
724
725     <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">
726         <fields oils_persist:primary="name">
727             <field reporter:label="Name" name="name" reporter:datatype="text"/>
728             <field reporter:label="Label" name="label"  reporter:datatype="text" oils_persist:i18n="true"/>
729             <field reporter:label="Value" name="value"  reporter:datatype="text"/>
730             <field reporter:label="Enabled" name="enabled"  reporter:datatype="bool"/>
731         </fields>
732         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
733             <actions>
734                 <create   permission="ADMIN_GLOBAL_FLAG" global_required="true"/>
735                 <retrieve permission="ADMIN_GLOBAL_FLAG" global_required="true"/>
736                 <update   permission="ADMIN_GLOBAL_FLAG" global_required="true"/>
737                 <delete   permission="ADMIN_GLOBAL_FLAG" global_required="true"/>
738             </actions>
739         </permacrud>
740     </class>
741
742     <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">
743         <fields oils_persist:primary="id">
744             <field reporter:label="ID" name="id" reporter:datatype="id"/>
745             <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
746             <field reporter:label="Description" name="description"  reporter:datatype="text" oils_persist:i18n="true"/>
747             <field reporter:label="Function" name="func"  reporter:datatype="text"/>
748             <field reporter:label="Required Parameter Count" name="param_count"  reporter:datatype="int"/>
749         </fields>
750         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
751             <actions>
752                 <create permission="ADMIN_INDEX_NORMALIZER" global_required="true"/>
753                 <retrieve/>
754                 <update permission="ADMIN_INDEX_NORMALIZER" global_required="true"/>
755                 <delete permission="ADMIN_INDEX_NORMALIZER" global_required="true"/>
756             </actions>
757         </permacrud>
758     </class>
759
760         <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">
761                 <fields oils_persist:primary="id" oils_persist:sequence="config.metabib_field_index_norm_map_id_seq">
762                         <field reporter:label="ID" name="id" reporter:datatype="id"/>
763                         <field reporter:label="Metabib Field" name="field" reporter:datatype="link"/>
764                         <field reporter:label="Normalizer" name="norm" reporter:datatype="link"/>
765                         <field reporter:label="Parameters (JSON Array)" name="params" reporter:datatype="text"/>
766                         <field reporter:label="Order of Application" name="pos" reporter:datatype="int"/>
767                 </fields>
768                 <links>
769                         <link field="field" reltype="has_a" key="id" map="" class="cmf"/>
770                         <link field="norm" reltype="has_a" key="id" map="" class="cin"/>
771                 </links>
772         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
773             <actions>
774                 <create permission="ADMIN_INDEX_NORMALIZER" global_required="true"/>
775                 <retrieve/>
776                 <update permission="ADMIN_INDEX_NORMALIZER" global_required="true"/>
777                 <delete permission="ADMIN_INDEX_NORMALIZER" global_required="true"/>
778             </actions>
779         </permacrud>
780         </class>
781
782         <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">
783                 <fields oils_persist:primary="name">
784                         <field reporter:label="Name" name="name" reporter:datatype="id" reporter:selector="label"  oils_obj:required="true"/>
785                         <field reporter:label="Label" name="label" reporter:datatype="text"  oils_obj:required="true"/>
786                         <field reporter:label="Description" name="description" reporter:datatype="text" />
787                         <field reporter:label="Filter?" name="filter" reporter:datatype="bool"/>
788                         <field reporter:label="Sorter?" name="sorter" reporter:datatype="bool"/>
789                         <field reporter:label="MARC Tag" name="tag" reporter:datatype="text"/>
790                         <field reporter:label="MARC Subfields" name="sf_list" reporter:datatype="text"/>
791                         <field reporter:label="Joiner" name="joiner" reporter:datatype="text"/>
792                         <field reporter:label="XPath" name="xpath" reporter:datatype="text"/>
793                         <field reporter:label="Format" name="format" reporter:datatype="link"/>
794                         <field reporter:label="Starting Position" name="start_pos" reporter:datatype="int"/>
795                         <field reporter:label="String Length" name="string_len" reporter:datatype="int"/>
796                         <field reporter:label="Fixed Field" name="fixed_field" reporter:datatype="text"/>
797                         <field reporter:label="Physical Characteristic" name="phys_char_sf" reporter:datatype="text"/>
798                         <field reporter:label="Normalizers" name="normalizers" reporter:datatype="link" oils_persist:virtual="true"/>
799                 </fields>
800                 <links>
801                         <link field="format" reltype="has_a" key="name" map="" class="cxt"/>
802                         <link field="normalizers" reltype="has_many" key="name" map="" class="crainm"/>
803                 </links>
804         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
805             <actions>
806                 <create permission="ADMIN_SVF" global_required="true"/>
807                 <retrieve/>
808                 <update permission="ADMIN_SVF" global_required="true"/>
809                 <delete permission="ADMIN_SVF" global_required="true"/>
810             </actions>
811         </permacrud>
812         </class>
813
814         <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">
815                 <fields oils_persist:primary="id" oils_persist:sequence="config.sms_carrier_id_seq">
816                         <field reporter:label="ID" name="id" reporter:datatype="id"/>
817                         <field reporter:label="Region" name="region" reporter:datatype="text" oils_persist:i18n="true"/>
818                         <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
819             <field reporter:label="Active" name="active" reporter:datatype="bool" oils_persist:i18n="true"/>
820                         <field reporter:label="Email Gateway" name="email_gateway" reporter:datatype="text" oils_persist:i18n="true"/>
821                 </fields>
822                 <links/>
823         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
824             <actions>
825                 <create permission="ADMIN_SMS_CARRIER" global_required="true"/>
826                 <retrieve/>
827                 <update permission="ADMIN_SMS_CARRIER" global_required="true"/>
828                 <delete permission="ADMIN_SMS_CARRIER" global_required="true"/>
829             </actions>
830         </permacrud>
831         </class>
832
833         <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">
834                 <fields oils_persist:primary="id">
835                         <field reporter:label="Record ID" name="id" reporter:datatype="id" oils_obj:required="true"/>
836                         <field reporter:label="Attributes" name="attrs" reporter:datatype="text"  oils_obj:required="true"/>
837                 </fields>
838                 <links>
839                         <link field="id" reltype="has_a" key="id" map="" class="bre"/>
840                 </links>
841         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
842             <actions>
843                 <retrieve/>
844             </actions>
845         </permacrud>
846         </class>
847
848         <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">
849                 <fields oils_persist:primary="id" oils_persist:sequence="config.record_attr_index_norm_map_id_seq">
850                         <field reporter:label="ID" name="id" reporter:datatype="id"/>
851                         <field reporter:label="SVF Attribute" name="attr" reporter:datatype="link"/>
852                         <field reporter:label="Normalizer" name="norm" reporter:datatype="link"/>
853                         <field reporter:label="Parameters (JSON Array)" name="params" reporter:datatype="text"/>
854                         <field reporter:label="Order of Application" name="pos" reporter:datatype="int"/>
855                 </fields>
856                 <links>
857                         <link field="attr" reltype="has_a" key="name" map="" class="crad"/>
858                         <link field="norm" reltype="has_a" key="id" map="" class="cin"/>
859                 </links>
860         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
861             <actions>
862                 <create permission="ADMIN_INDEX_NORMALIZER" global_required="true"/>
863                 <retrieve/>
864                 <update permission="ADMIN_INDEX_NORMALIZER" global_required="true"/>
865                 <delete permission="ADMIN_INDEX_NORMALIZER" global_required="true"/>
866             </actions>
867         </permacrud>
868         </class>
869
870         <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">
871                 <fields oils_persist:primary="id" oils_persist:sequence="config.coded_value_map_id_seq">
872                         <field reporter:label="ID" name="id" reporter:datatype="id"  oils_obj:required="true"/>
873                         <field reporter:label="SVF Attribute" name="ctype" reporter:datatype="link"  oils_obj:required="true"/>
874                         <field reporter:label="Code" name="code" reporter:datatype="text"  oils_obj:required="true"/>
875                         <field reporter:label="Value" name="value" reporter:datatype="text"  oils_obj:required="true" oils_persist:i18n="true"/>
876                         <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true"/>
877                         <field reporter:label="OPAC Visible" name="opac_visible" reporter:datatype="bool"/>
878                         <field reporter:label="Search Label" name="search_label" reporter:datatype="text" oils_persist:i18n="true"/>
879             <field reporter:label="Is Simple Selector" name="is_simple" reporter:datatype="bool"/>
880                 </fields>
881                 <links>
882                         <link field="ctype" reltype="has_a" key="name" map="" class="crad"/>
883                 </links>
884         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
885             <actions>
886                 <create permission="ADMIN_CODED_VALUE" global_required="true"/>
887                 <retrieve/>
888                 <update permission="ADMIN_CODED_VALUE" global_required="true"/>
889                 <delete permission="ADMIN_CODED_VALUE" global_required="true"/>
890             </actions>
891         </permacrud>
892         </class>
893
894         <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">
895                 <fields oils_persist:primary="id" oils_persist:sequence="config.remote_account_id_seq">
896                         <field name="id"            reporter:datatype="id"   reporter:label="ID"/>
897                         <field name="label"         reporter:datatype="text" reporter:label="Label"/>
898                         <field name="host"          reporter:datatype="text" reporter:label="Host"/>
899                         <field name="username"      reporter:datatype="text" reporter:label="Username"/>
900                         <field name="password"      reporter:datatype="text" reporter:label="Password"/>
901                         <field name="account"       reporter:datatype="text" reporter:label="Account"/>
902                         <field name="path"          reporter:datatype="text" reporter:label="Path"/>
903                         <field name="owner"         reporter:datatype="link" reporter:label="Owner"/>
904                         <field name="last_activity" reporter:datatype="timestamp" reporter:label="Last Activity"/>
905                 </fields>
906                 <links>
907                         <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
908                 </links>
909         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
910             <actions>
911                 <create   permission="ADMIN_CONFIG_REMOTE_ACCOUNT" context_field="owner"/>
912                 <retrieve permission="ADMIN_CONFIG_REMOTE_ACCOUNT" context_field="owner"/>
913                 <update   permission="ADMIN_CONFIG_REMOTE_ACCOUNT" context_field="owner"/>
914                 <delete   permission="ADMIN_CONFIG_REMOTE_ACCOUNT" context_field="owner"/>
915             </actions>
916         </permacrud>
917         </class>
918
919     <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">
920         <fields oils_persist:primary="name">
921             <field reporter:label="Z39.50 Source" name="name" reporter:datatype="id"/>
922             <field reporter:label="Label" name="label" reporter:datatype="text" oils_persist:i18n="true"/>
923             <field reporter:label="Host" name="host"  reporter:datatype="text"/>
924             <field reporter:label="Port" name="port"  reporter:datatype="int"/>
925             <field reporter:label="DB" name="db"  reporter:datatype="text"/>
926             <field reporter:label="Record Format" name="record_format"  reporter:datatype="text"/>
927             <field reporter:label="Transmission Format" name="transmission_format"  reporter:datatype="text"/>
928             <field reporter:label="Auth" name="auth"  reporter:datatype="bool"/>
929             <field reporter:label="Attrs" name="attrs" oils_persist:virtual="true"  reporter:datatype="link"/>
930             <field reporter:label="Use Permission" name="use_perm"  reporter:datatype="link"/>
931         </fields>
932         <links>
933             <link field="attrs" reltype="has_many" key="source" map="" class="cza"/>
934             <link field="use_perm" reltype="has_a" key="id" map="" class="ppl"/>
935         </links>
936         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
937             <actions>
938                 <create permission="ADMIN_Z3950_SOURCE" global_required="true"/>
939                 <retrieve/>
940                 <update permission="ADMIN_Z3950_SOURCE" global_required="true"/>
941                 <delete permission="ADMIN_Z3950_SOURCE" global_required="true"/>
942             </actions>
943         </permacrud>
944     </class>
945
946     <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">
947         <fields oils_persist:primary="id" oils_persist:sequence="config.z3950_attr_id_seq">
948             <field reporter:label="Z39.50 Attribute ID" name="id" reporter:datatype="id"/>
949             <field reporter:label="Z39.50 Source" name="source" reporter:datatype="link"/>
950             <field reporter:label="Name" name="name" reporter:datatype="text"/>
951             <field reporter:label="Label" name="label" reporter:datatype="text" oils_persist:i18n="true"/>
952             <field reporter:label="Code" name="code"  reporter:datatype="int"/>
953             <field reporter:label="Format" name="format"  reporter:datatype="int"/>
954             <field reporter:label="Truncation" name="truncation"  reporter:datatype="int"/>
955         </fields>
956         <links>
957             <link field="source" reltype="has_a" key="name" map="" class="czs"/>
958         </links>
959         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
960             <actions>
961                 <create permission="ADMIN_Z3950_SOURCE" global_required="true"/>
962                 <retrieve/>
963                 <update permission="ADMIN_Z3950_SOURCE" global_required="true"/>
964                 <delete permission="ADMIN_Z3950_SOURCE" global_required="true"/>
965             </actions>
966         </permacrud>
967     </class>
968
969         <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">
970                 <fields oils_persist:primary="id" oils_persist:sequence="action_trigger.event_output_id_seq">
971                         <field reporter:label="Output ID" name="id" reporter:datatype="id"/>
972                         <field reporter:label="Create Date/Time" name="create_time" reporter:datatype="timestamp"/>
973                         <field reporter:label="Data" name="data" reporter:datatype="text"/>
974                         <field reporter:label="Is Error" name="is_error" reporter:datatype="bool"/>
975                         <field reporter:label="Events" name="events" oils_persist:virtual="true"  reporter:datatype="link"/>
976                         <field reporter:label="Error Events" name="error_events" oils_persist:virtual="true"  reporter:datatype="link"/>
977                 </fields>
978                 <links>
979             <link field="events" reltype="has_many" key="template_output" map="" class="atev"/>
980             <link field="error_events" reltype="has_many" key="error_output" map="" class="atev"/>
981                 </links>
982                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
983                         <actions>
984                                 <retrieve/>
985                                 <delete permission="ADMIN_TRIGGER_TEMPLATE_OUTPUT DELETE_TRIGGER_TEMPLATE_OUTPUT" global_required="true"/>
986                         </actions>
987                 </permacrud>
988         </class>
989
990         <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">
991                 <fields oils_persist:primary="key">
992                         <field reporter:label="Hook Key" name="key" reporter:datatype="text"/>
993                         <field reporter:label="Core Type" name="core_type" reporter:datatype="text"/>
994                         <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true"/>
995                         <field reporter:label="Passive" name="passive"  reporter:datatype="bool"/>
996                 </fields>
997                 <links/>
998                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
999                         <actions>
1000                                 <create permission="ADMIN_TRIGGER_HOOK CREATE_TRIGGER_HOOK" global_required="true"/>
1001                                 <retrieve/>
1002                                 <update permission="ADMIN_TRIGGER_HOOK UPDATE_TRIGGER_HOOK" global_required="true"/>
1003                                 <delete permission="ADMIN_TRIGGER_HOOK DELETE_TRIGGER_HOOK" global_required="true"/>
1004                         </actions>
1005                 </permacrud>
1006         </class>
1007
1008         <class id="atcol" controller="open-ils.cstore" oils_obj:fieldmapper="action_trigger::collector" oils_persist:tablename="action_trigger.collector" reporter:label="Trigger Environment Collector">
1009                 <fields oils_persist:primary="module">
1010                         <field reporter:label="Module Name" name="module" reporter:datatype="text"/>
1011                         <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true"/>
1012                 </fields>
1013                 <links/>
1014         </class>
1015
1016         <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">
1017                 <fields oils_persist:primary="module">
1018                         <field reporter:label="Module Name" name="module" reporter:datatype="text"/>
1019                         <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true"/>
1020                 </fields>
1021                 <links/>
1022                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1023                         <actions>
1024                                 <create permission="ADMIN_TRIGGER_VALIDATOR CREATE_TRIGGER_VALIDATOR" global_required="true"/>
1025                                 <retrieve/>
1026                                 <update permission="ADMIN_TRIGGER_VALIDATOR UPDATE_TRIGGER_VALIDATOR" global_required="true"/>
1027                                 <delete permission="ADMIN_TRIGGER_VALIDATOR DELETE_TRIGGER_VALIDATOR" global_required="true"/>
1028                         </actions>
1029                 </permacrud>
1030         </class>
1031
1032         <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">
1033                 <fields oils_persist:primary="module">
1034                         <field reporter:label="Module Name" name="module" reporter:datatype="text"/>
1035                         <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true"/>
1036                 </fields>
1037                 <links/>
1038                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1039                         <actions>
1040                                 <create permission="ADMIN_TRIGGER_REACTOR CREATE_TRIGGER_REACTOR" global_required="true"/>
1041                                 <retrieve/>
1042                                 <update permission="ADMIN_TRIGGER_REACTOR UPDATE_TRIGGER_REACTOR" global_required="true"/>
1043                                 <delete permission="ADMIN_TRIGGER_REACTOR DELETE_TRIGGER_REACTOR" global_required="true"/>
1044                         </actions>
1045                 </permacrud>
1046         </class>
1047
1048         <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">
1049                 <fields oils_persist:primary="module">
1050                         <field reporter:label="Module Name" name="module" reporter:datatype="text"/>
1051                         <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true"/>
1052                 </fields>
1053                 <links/>
1054                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1055                         <actions>
1056                                 <create permission="ADMIN_TRIGGER_CLEANUP CREATE_TRIGGER_CLEANUP" global_required="true"/>
1057                                 <retrieve/>
1058                                 <update permission="ADMIN_TRIGGER_CLEANUP UPDATE_TRIGGER_CLEANUP" global_required="true"/>
1059                                 <delete permission="ADMIN_TRIGGER_CLEANUP DELETE_TRIGGER_CLEANUP" global_required="true"/>
1060                         </actions>
1061                 </permacrud>
1062         </class>
1063
1064         <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">
1065                 <fields oils_persist:primary="id" oils_persist:sequence="action_trigger.environment_id_seq">
1066                         <field reporter:label="Definition ID" name="id" reporter:datatype="id"/>
1067                         <field reporter:label="Event Definition" name="event_def" reporter:datatype="link"/>
1068                         <field reporter:label="Field Path" name="path" reporter:datatype="text"/>
1069                         <field reporter:label="Collector" name="collector" reporter:datatype="link"/>
1070                         <field reporter:label="Label" name="label" reporter:datatype="text"/>
1071                 </fields>
1072                 <links>
1073                         <link field="event_def" reltype="has_a" key="id" map="" class="atevdef"/>
1074                         <link field="collector" reltype="has_a" key="id" map="" class="atcol"/>
1075                 </links>
1076                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1077                         <actions>
1078                                 <create permission="ADMIN_TRIGGER_EVENT_DEF CREATE_TRIGGER_EVENT_DEF">
1079                     <context link="event_def" field="owner"/>
1080                 </create>
1081                                 <retrieve permission="ADMIN_TRIGGER_EVENT_DEF VIEW_TRIGGER_EVENT_DEF">
1082                     <context link="event_def" field="owner"/>
1083                 </retrieve>
1084                                 <update permission="ADMIN_TRIGGER_EVENT_DEF UPDATE_TRIGGER_EVENT_DEF">
1085                     <context link="event_def" field="owner"/>
1086                 </update>
1087                                 <delete permission="ADMIN_TRIGGER_EVENT_DEF DELETE_TRIGGER_EVENT_DEF">
1088                     <context link="event_def" field="owner"/>
1089                 </delete>
1090                         </actions>
1091                 </permacrud>
1092         </class>
1093
1094         <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">
1095                 <fields oils_persist:primary="id" oils_persist:sequence="action_trigger.event_definition_id_seq">
1096                         <field reporter:label="Definition ID" name="id" reporter:datatype="id"/>
1097                         <field reporter:label="Enabled" name="active" reporter:datatype="bool"/>
1098                         <field reporter:label="Owning Library" name="owner"  reporter:datatype="org_unit"/>
1099                         <field reporter:label="Hook" name="hook"  reporter:datatype="link"/>
1100                         <field reporter:label="Validator" name="validator"  reporter:datatype="link"/>
1101                         <field reporter:label="Reactor" name="reactor"  reporter:datatype="link"/>
1102                         <field reporter:label="Success Cleanup" name="cleanup_success"  reporter:datatype="link"/>
1103                         <field reporter:label="Failure Cleanup" name="cleanup_failure"  reporter:datatype="link"/>
1104                         <field reporter:label="Processing Delay" name="delay"  reporter:datatype="interval"/>
1105                         <field reporter:label="Max Event Validity Delay" name="max_delay"  reporter:datatype="interval"/>
1106                         <field reporter:label="Processing Delay Context Field" name="delay_field"  reporter:datatype="text"/>
1107                         <field reporter:label="Processing Group Context Field" name="group_field"  reporter:datatype="text"/>
1108                         <field reporter:label="Template" name="template"  reporter:datatype="text"/>
1109                         <field reporter:label="Name" name="name"  reporter:datatype="text"/>
1110                         <field reporter:label="Granularity" name="granularity"  reporter:datatype="text"/>
1111                         <field reporter:label="Opt-In User Field" name="usr_field"  reporter:datatype="text"/>
1112                         <field reporter:label="Opt-In Setting Type" name="opt_in_setting"  reporter:datatype="link"/>
1113                         <field reporter:label="Environment Entries" name="env" oils_persist:virtual="true"  reporter:datatype="link"/>
1114                         <field reporter:label="Parameters" name="params" oils_persist:virtual="true"  reporter:datatype="link"/>
1115                 </fields>
1116                 <links>
1117                         <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
1118                         <link field="hook" reltype="has_a" key="key" map="" class="ath"/>
1119                         <link field="validator" reltype="has_a" key="module" map="" class="atval"/>
1120                         <link field="reactor" reltype="has_a" key="module" map="" class="atreact"/>
1121                         <link field="cleanup_success" reltype="has_a" key="module" map="" class="atclean"/>
1122                         <link field="cleanup_failure" reltype="has_a" key="module" map="" class="atclean"/>
1123                         <link field="env" reltype="has_many" key="event_def" map="" class="atenv"/>
1124                         <link field="params" reltype="has_many" key="event_def" map="" class="atevparam"/>
1125                         <link field="opt_in_setting" reltype="has_a" key="name" map="" class="cust"/>
1126                 </links>
1127                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1128                         <actions>
1129                                 <create permission="ADMIN_TRIGGER_EVENT_DEF CREATE_TRIGGER_EVENT_DEF" context_field="owner"/>
1130                                 <retrieve permission="ADMIN_TRIGGER_EVENT_DEF VIEW_TRIGGER_EVENT_DEF" context_field="owner"/>
1131                                 <update permission="ADMIN_TRIGGER_EVENT_DEF UPDATE_TRIGGER_EVENT_DEF" context_field="owner"/>
1132                                 <delete permission="ADMIN_TRIGGER_EVENT_DEF DELETE_TRIGGER_EVENT_DEF" context_field="owner"/>
1133                         </actions>
1134                 </permacrud>
1135         </class>
1136
1137         <class id="atev" controller="open-ils.cstore" oils_obj:fieldmapper="action_trigger::event" oils_persist:tablename="action_trigger.event" reporter:label="Trigger Event Entry">
1138                 <fields oils_persist:primary="id" oils_persist:sequence="action_trigger.event_id_seq">
1139                         <field reporter:label="Event ID" name="id" reporter:datatype="id"/>
1140                         <field reporter:label="Target ID" name="target" reporter:datatype="int"/>
1141                         <field reporter:label="Event Definition" name="event_def" reporter:datatype="link"/>
1142                         <field reporter:label="Add Time" name="add_time" reporter:datatype="timestamp"/>
1143                         <field reporter:label="Run Time" name="run_time" reporter:datatype="timestamp"/>
1144                         <field reporter:label="Start Time" name="start_time" reporter:datatype="timestamp"/>
1145                         <field reporter:label="Update Time" name="update_time" reporter:datatype="timestamp"/>
1146                         <field reporter:label="Complete Time" name="complete_time" reporter:datatype="timestamp"/>
1147                         <field reporter:label="State" name="state" reporter:datatype="text"/>
1148                         <field reporter:label="User Data" name="user_data" reporter:datatype="text"/>
1149                         <field reporter:label="Template Output" name="template_output" reporter:datatype="link"/>
1150                         <field reporter:label="Error Output" name="error_output" reporter:datatype="text"/>
1151                         <field reporter:label="Asynchronous Output" name="async_output" reporter:datatype="link"/>
1152                         <field reporter:label="Update Process" name="update_process" reporter:datatype="int"/>
1153                 </fields>
1154                 <links>
1155                         <link field="event_def" reltype="has_a" key="id" map="" class="atevdef"/>
1156                         <link field="template_output" reltype="has_a" key="id" map="" class="ateo"/>
1157                         <link field="error_output" reltype="has_a" key="id" map="" class="ateo"/>
1158                         <link field="async_output" reltype="has_a" key="id" map="" class="ateo"/>
1159                 </links>
1160         </class>
1161
1162         <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">
1163                 <fields oils_persist:primary="id" oils_persist:sequence="action_trigger.event_params_id_seq">
1164                         <field reporter:label="Event ID" name="id" reporter:datatype="id"/>
1165                         <field reporter:label="Event Definition" name="event_def" reporter:datatype="link"/>
1166                         <field reporter:label="Parameter Name" name="param" reporter:datatype="text"/>
1167                         <field reporter:label="Parameter Value" name="value" reporter:datatype="text"/>
1168                 </fields>
1169                 <links>
1170                         <link field="event_def" reltype="has_a" key="id" map="" class="atevdef"/>
1171                 </links>
1172                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1173                         <actions>
1174                                 <create permission="ADMIN_TRIGGER_EVENT_DEF CREATE_TRIGGER_EVENT_DEF">
1175                     <context link="event_def" field="owner"/>
1176                 </create>
1177                                 <retrieve permission="ADMIN_TRIGGER_EVENT_DEF VIEW_TRIGGER_EVENT_DEF">
1178                     <context link="event_def" field="owner"/>
1179                 </retrieve>
1180                                 <update permission="ADMIN_TRIGGER_EVENT_DEF UPDATE_TRIGGER_EVENT_DEF">
1181                     <context link="event_def" field="owner"/>
1182                 </update>
1183                                 <delete permission="ADMIN_TRIGGER_EVENT_DEF DELETE_TRIGGER_EVENT_DEF">
1184                     <context link="event_def" field="owner"/>
1185                 </delete>
1186                         </actions>
1187                 </permacrud>
1188         </class>
1189
1190         <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">
1191                 <oils_persist:source_definition><![CDATA[
1192                 SELECT  atevdef.hook,
1193                         atevdef.name,
1194                         atevdef.reactor,
1195                         atev.id,
1196                         atev.event_def,
1197                         atev.add_time,
1198                         atev.run_time,
1199                         atev.start_time,
1200                         atev.update_time,
1201                         atev.complete_time,
1202                         atev.update_process,
1203                         atev.state,
1204                         atev.user_data,
1205                         atev.template_output,
1206                         atev.error_output,
1207                         atev.async_output,
1208                         targ_circ.id AS target_circ,
1209                         targ_ahr.id AS target_hold,
1210                         COALESCE(
1211                                 targ_circ.circ_lib,
1212                                 targ_ahr.pickup_lib
1213                         ) AS perm_lib
1214                 FROM action_trigger.event atev
1215                 JOIN action_trigger.event_definition atevdef ON
1216                         (atevdef.id = atev.event_def)
1217                 JOIN action_trigger.hook ath ON
1218                         (ath.key = atevdef.hook)
1219                 LEFT JOIN action.circulation targ_circ ON
1220                         (ath.core_type = 'circ' AND targ_circ.id = atev.target)
1221                 LEFT JOIN action.hold_request targ_ahr ON
1222                         (ath.core_type = 'ahr' AND targ_ahr.id = atev.target)
1223                 WHERE atev.add_time > NOW() - (SELECT MAX(value) FROM (
1224                         SELECT value::INTERVAL FROM actor.org_unit_ancestor_setting(
1225                                 'circ.staff.max_visible_event_age',
1226                                 COALESCE(targ_circ.circ_lib, targ_ahr.pickup_lib)
1227                         ) UNION
1228                         SELECT '1000 YEARS'::INTERVAL AS value
1229                 ) ous)
1230                 ]]></oils_persist:source_definition>
1231                 <fields oils_persist:primary="id">
1232                         <field reporter:label="Hook" name="hook" reporter:datatype="link" />
1233                         <field reporter:label="Name" name="name" reporter:datatype="text" />
1234                         <field reporter:label="Reactor" name="reactor" reporter:datatype="text" />
1235                         <field reporter:label="Event ID" name="id" reporter:datatype="id" />
1236                         <field reporter:label="Event Definition ID" name="event_def" reporter:datatype="int" />
1237                         <field reporter:label="Event Add Time" name="add_time" reporter:datatype="timestamp" />
1238                         <field reporter:label="Event Run Time" name="run_time" reporter:datatype="timestamp" />
1239                         <field reporter:label="Event Start Time" name="start_time" reporter:datatype="timestamp" />
1240                         <field reporter:label="Event Update Time" name="update_time" reporter:datatype="timestamp" />
1241                         <field reporter:label="Event Complete Time" name="complete_time" reporter:datatype="timestamp" />
1242                         <field reporter:label="Event Update PID" name="update_process" reporter:datatype="int" />
1243                         <field reporter:label="Event State" name="state" reporter:datatype="text" />
1244                         <field reporter:label="Event User Data" name="user_data" reporter:datatype="text" />
1245                         <field reporter:label="Event Template Output" name="template_output" reporter:datatype="link" />
1246                         <field reporter:label="Event Error Output" name="error_output" reporter:datatype="link" />
1247                         <field reporter:label="Event Async Output" name="async_output" reporter:datatype="link" />
1248                         <field reporter:label="Target Circulation" name="target_circ" reporter:datatype="link" />
1249                         <field reporter:label="Target Hold" name="target_hold" reporter:datatype="link" />
1250                         <field reporter:label="Permission Context" name="perm_lib" reporter:datatype="org_unit" />
1251                 </fields>
1252                 <links>
1253                         <link field="hook" reltype="has_a" key="key" map="" class="ath" />
1254                         <link field="template_output" reltype="has_a" key="id" map="" class="ateo" />
1255                         <link field="error_output" reltype="has_a" key="id" map="" class="ateo" />
1256                         <link field="async_output" reltype="has_a" key="id" map="" class="ateo" />
1257                         <link field="target_circ" reltype="has_a" key="id" map="" class="circ" />
1258                         <link field="target_hold" reltype="has_a" key="id" map="" class="ahr" />
1259                         <link field="perm_lib" reltype="has_a" key="id" map="" class="aou" />
1260                 </links>
1261                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1262                         <actions>
1263                                 <retrieve permission="VIEW_TRIGGER_EVENT" context_field="perm_lib" />
1264                         </actions>
1265                 </permacrud>
1266         </class>
1267
1268         <class id="aws" controller="open-ils.cstore" oils_obj:fieldmapper="actor::workstation" oils_persist:tablename="actor.workstation" reporter:label="Workstation">
1269                 <fields oils_persist:primary="id" oils_persist:sequence="actor.workstation_id_seq">
1270                         <field reporter:label="Workstation ID" name="id" reporter:datatype="id"/>
1271                         <field reporter:label="Workstation Name" name="name" reporter:datatype="text"/>
1272                         <field reporter:label="Owning Library" name="owning_lib"  reporter:datatype="org_unit"/>
1273                         <field reporter:label="Toolbars" name="toolbars" oils_persist:virtual="true" reporter:datatype="link"/>
1274                         <field reporter:label="Circulations" name="circulations" oils_persist:virtual="true" reporter:datatype="link"/>
1275                 </fields>
1276                 <links>
1277                         <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
1278                         <link field="toolbars" reltype="has_many" key="ws" map="" class="atb"/>
1279                         <link field="circulations" reltype="has_many" key="workstation" map="" class="circ"/>
1280                 </links>
1281         </class>
1282
1283         <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">
1284                 <fields oils_persist:primary="code">
1285                         <field reporter:label="Code" name="code" reporter:selector="name" reporter:datatype="id"/>
1286                         <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
1287                         <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true"/>
1288                         <field reporter:label="SIP2 Media Type" name="sip2_media_type" reporter:datatype="text" oils_persist:i18n="true"/>
1289                         <field reporter:label="Magnetic Media" name="magnetic_media" reporter:datatype="bool"/>
1290                         <field reporter:label="Average Wait Time" name="avg_wait_time" reporter:datatype="interval"/>
1291                 </fields>
1292                 <links/>
1293         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1294             <actions>
1295                 <create permission="ADMIN_CIRC_MOD" global_required="true"/>
1296                 <retrieve/>
1297                 <update permission="ADMIN_CIRC_MOD" global_required="true"/>
1298                 <delete permission="ADMIN_CIRC_MOD" global_required="true"/>
1299             </actions>
1300         </permacrud>
1301         </class>
1302
1303         <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">
1304                 <fields oils_persist:primary="code">
1305                         <field reporter:label="Code" name="code" reporter:selector="name" reporter:datatype="id"/>
1306                         <field reporter:label="Label" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
1307                         <field reporter:label="Prorate?" name="prorate" reporter:datatype="bool"/>
1308                 </fields>
1309                 <links/>
1310         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1311             <actions>
1312                 <create permission="CREATE_INVOICE_ITEM_TYPE" global_required="true"/>
1313                 <retrieve/>
1314                 <update permission="UPDATE_INVOICE_ITEM_TYPE" global_required="true"/>
1315                 <delete permission="DELETE_INVOICE_ITEM_TYPE" global_required="true"/>
1316             </actions>
1317         </permacrud>
1318         </class>
1319
1320         <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">
1321                 <fields oils_persist:primary="code">
1322                         <field reporter:label="Code" name="code" reporter:selector="name" reporter:datatype="id"/>
1323                         <field reporter:label="Label" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
1324                 </fields>
1325                 <links/>
1326         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1327             <actions>
1328                 <create permission="ADMIN_INVOICE_METHOD CREATE_INVOICE_METHOD" global_required="true"/>
1329                 <retrieve/>
1330                 <update permission="ADMIN_INVOICE_METHOD UPDATE_INVOICE_METHOD" global_required="true"/>
1331                 <delete permission="ADMIN_INVOICE_METHOD DELETE_INVOICE_METHOD" global_required="true"/>
1332             </actions>
1333         </permacrud>
1334         </class>
1335
1336         <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">
1337                 <fields oils_persist:primary="code">
1338                         <field reporter:label="Code" name="code" reporter:selector="name" reporter:datatype="id"/>
1339                         <field reporter:label="Label" name="label" reporter:datatype="text" oils_persist:i18n="true"/>
1340                 </fields>
1341                 <links/>
1342         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1343             <actions>
1344                 <create permission="CREATE_COPY_BTYPE" global_required="true"/>
1345                 <retrieve/>
1346                 <update permission="UPDATE_COPY_BTYPE" global_required="true"/>
1347                 <delete permission="DELETE_COPY_BTYPE" global_required="true"/>
1348             </actions>
1349         </permacrud>
1350         </class>
1351
1352         <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">
1353                 <fields oils_persist:primary="code">
1354                         <field reporter:label="Code" name="code" reporter:selector="name" reporter:datatype="id"/>
1355                         <field reporter:label="Label" name="label" reporter:datatype="text" oils_persist:i18n="true"/>
1356                 </fields>
1357                 <links/>
1358         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1359             <actions>
1360                 <create permission="CREATE_CN_BTYPE" global_required="true"/>
1361                 <retrieve/>
1362                 <update permission="UPDATE_CN_BTYPE" global_required="true"/>
1363                 <delete permission="DELETE_CN_BTYPE" global_required="true"/>
1364             </actions>
1365         </permacrud>
1366         </class>
1367
1368         <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">
1369                 <fields oils_persist:primary="id" oils_persist:sequence="biblio.peer_type_id_seq">
1370                         <field reporter:label="ID" name="id" reporter:selector="name" reporter:datatype="id"/>
1371                         <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
1372                 </fields>
1373                 <links/>
1374         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1375             <actions>
1376                 <create permission="CREATE_BIB_PTYPE" global_required="true"/>
1377                 <retrieve/>
1378                 <update permission="UPDATE_BIB_PTYPE" global_required="true"/>
1379                 <delete permission="DELETE_BIB_PTYPE" global_required="true"/>
1380             </actions>
1381         </permacrud>
1382         </class>
1383
1384         <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">
1385                 <fields oils_persist:primary="id" oils_persist:sequence="biblio.peer_bib_copy_map_id_seq">
1386                         <field reporter:label="ID" name="id" reporter:selector="name" reporter:datatype="id"/>
1387                         <field reporter:label="Peer Type" name="peer_type" reporter:datatype="link"/>
1388                         <field reporter:label="Peer Record" name="peer_record" reporter:datatype="link"/>
1389                         <field reporter:label="Target Copy" name="target_copy" reporter:datatype="link"/>
1390                 </fields>
1391         <links>
1392             <link field="peer_type" reltype="has_a" key="id" map="" class="bpt"/>
1393             <link field="peer_record" reltype="has_a" key="id" map="" class="bre"/>
1394             <link field="target_copy" reltype="has_a" key="id" map="" class="acp"/>
1395         </links>
1396         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1397             <actions>
1398                 <create permission="UPDATE_COPY">
1399                     <context link="target_copy" field="circ_lib"/>
1400                 </create>
1401                 <retrieve/>
1402                 <update permission="UPDATE_COPY">
1403                     <context link="target_copy" field="circ_lib"/>
1404                 </update>
1405                 <delete permission="UPDATE_COPY">
1406                     <context link="target_copy" field="circ_lib"/>
1407                 </delete>
1408             </actions>
1409         </permacrud>
1410         </class>
1411
1412         <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">
1413                 <fields oils_persist:primary="code">
1414                         <field reporter:label="Code" name="code" reporter:selector="name" reporter:datatype="id"/>
1415                         <field reporter:label="Label" name="label" reporter:datatype="text" oils_persist:i18n="true"/>
1416                 </fields>
1417                 <links/>
1418         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1419             <actions>
1420                 <create permission="CREATE_BIB_BTYPE" global_required="true"/>
1421                 <retrieve/>
1422                 <update permission="UPDATE_BIB_BTYPE" global_required="true"/>
1423                 <delete permission="DELETE_BIB_BTYPE" global_required="true"/>
1424             </actions>
1425         </permacrud>
1426         </class>
1427
1428         <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">
1429                 <fields oils_persist:primary="code">
1430                         <field reporter:label="Code" name="code" reporter:selector="name" reporter:datatype="id"/>
1431                         <field reporter:label="Label" name="label" reporter:datatype="text" oils_persist:i18n="true"/>
1432                 </fields>
1433                 <links/>
1434         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1435             <actions>
1436                 <create permission="CREATE_USER_BTYPE" global_required="true"/>
1437                 <retrieve/>
1438                 <update permission="UPDATE_USER_BTYPE" global_required="true"/>
1439                 <delete permission="DELETE_USER_BTYPE" global_required="true"/>
1440             </actions>
1441         </permacrud>
1442         </class>
1443
1444         <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">
1445                 <fields oils_persist:primary="code">
1446                         <field reporter:label="Code" name="code" reporter:selector="value" reporter:datatype="id"/>
1447                         <field reporter:label="Format" name="value" reporter:datatype="text" oils_persist:i18n="true"/>
1448                 </fields>
1449                 <links/>
1450         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1451             <actions>
1452                 <create permission="ADMIN_MARC_CODE" global_required="true"/>
1453                 <retrieve/>
1454                 <update permission="ADMIN_MARC_CODE" global_required="true"/>
1455                 <delete permission="ADMIN_MARC_CODE" global_required="true"/>
1456             </actions>
1457         </permacrud>
1458         </class>
1459
1460     <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">
1461         <fields oils_persist:primary="id" oils_persist:sequence="config.hold_matrix_weights_id_seq">
1462             <field reporter:label="Hold Weights ID" name="id" reporter:datatype="id" reporter:selector="name"/>
1463             <field reporter:label="Name" name="name" reporter:datatype="text"/>
1464             <field reporter:label="User Home Library" name="user_home_ou" reporter:datatype="float"/>
1465             <field reporter:label="Request Library" name="request_ou" reporter:datatype="float"/>
1466             <field reporter:label="Pickup Library" name="pickup_ou" reporter:datatype="float"/>
1467             <field reporter:label="Owning Library" name="item_owning_ou" reporter:datatype="float"/>
1468             <field reporter:label="Item Circ Library" name="item_circ_ou" reporter:datatype="float"/>
1469             <field reporter:label="User Permission Group" name="usr_grp" reporter:datatype="float"/>
1470             <field reporter:label="Requestor Permission Group" name="requestor_grp" reporter:datatype="float"/>
1471             <field reporter:label="Circulation Modifier" name="circ_modifier" oils_persist:primitive="string" reporter:datatype="float"/>
1472             <field reporter:label="MARC Type" name="marc_type" oils_persist:primitive="string" reporter:datatype="float"/>
1473             <field reporter:label="MARC Form" name="marc_form" oils_persist:primitive="string" reporter:datatype="float"/>
1474             <field reporter:label="MARC Bib Level" name="marc_bib_level" oils_persist:primitive="string" reporter:datatype="float"/>
1475             <field reporter:label="Videorecording Format" name="marc_vr_format" oils_persist:primitive="string" reporter:datatype="float"/>
1476             <field reporter:label="Juvenile?" name="juvenile_flag" oils_persist:primitive="string" reporter:datatype="float"/>
1477             <field reporter:label="Reference?" name="ref_flag" reporter:datatype="float"/>
1478             <field reporter:label="Item Age &lt;" name="item_age" reporter:datatype="float"/>
1479         </fields>
1480         <links/>
1481         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1482             <actions>
1483                 <create permission="ADMIN_HOLD_MATRIX_MATCHPOINT" global_required="true"/>
1484                 <retrieve/>
1485                 <update permission="ADMIN_HOLD_MATRIX_MATCHPOINT" global_required="true"/>
1486                 <delete permission="ADMIN_HOLD_MATRIX_MATCHPOINT" global_required="true"/>
1487             </actions>
1488         </permacrud>
1489     </class>
1490
1491     <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">
1492         <fields oils_persist:primary="id" oils_persist:sequence="config.circ_matrix_weights_id_seq">
1493             <field reporter:label="Circ Weights ID" name="id" reporter:datatype="id" reporter:selector="name"/>
1494             <field reporter:label="Name" name="name" reporter:datatype="text"/>
1495             <field reporter:label="Renewal?" name="is_renewal" reporter:datatype="float"/>
1496             <field reporter:label="Org Unit" name="org_unit" reporter:datatype="float"/>
1497             <field reporter:label="Copy Circ Lib" name="copy_circ_lib" reporter:datatype="float"/>
1498             <field reporter:label="Copy Owning Lib" name="copy_owning_lib" reporter:datatype="float"/>
1499             <field reporter:label="User Home Lib" name="user_home_ou" reporter:datatype="float"/>
1500             <field reporter:label="Permission Group" name="grp" reporter:datatype="float"/>
1501             <field reporter:label="Circulation Modifier" name="circ_modifier" reporter:datatype="float"/>
1502             <field reporter:label="Copy Location" name="copy_location" reporter:datatype="float"/>
1503             <field reporter:label="MARC Type" name="marc_type" reporter:datatype="float"/>
1504             <field reporter:label="MARC Form" name="marc_form" reporter:datatype="float"/>
1505             <field reporter:label="MARC Bib Level" name="marc_bib_level" reporter:datatype="float"/>
1506             <field reporter:label="Videorecording Format" name="marc_vr_format" reporter:datatype="float"/>
1507             <field reporter:label="Reference?" name="ref_flag" reporter:datatype="float"/>
1508             <field reporter:label="Juvenile?" name="juvenile_flag" reporter:datatype="float"/>
1509             <field reporter:label="User Age: Lower Bound" name="usr_age_lower_bound" reporter:datatype="float"/>
1510             <field reporter:label="User Age: Upper Bound" name="usr_age_upper_bound" reporter:datatype="float"/>
1511             <field reporter:label="Item Age &lt;" name="item_age" reporter:datatype="float"/>
1512         </fields>
1513         <links/>
1514         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1515             <actions>
1516                 <create permission="ADMIN_CIRC_MATRIX_MATCHPOINT" global_required="true"/>
1517                 <retrieve/>
1518                 <update permission="ADMIN_CIRC_MATRIX_MATCHPOINT" global_required="true"/>
1519                 <delete permission="ADMIN_CIRC_MATRIX_MATCHPOINT" global_required="true"/>
1520             </actions>
1521         </permacrud>
1522     </class>
1523
1524     <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">
1525         <fields oils_persist:primary="id" oils_persist:sequence="config.weight_assoc_id_seq">
1526             <field reporter:label="Assoc ID" name="id" reporter:datatype="id"/>
1527             <field reporter:label="Active?" name="active" reporter:datatype="bool"/>
1528             <field reporter:label="Org Unit" name="org_unit" reporter:datatype="org_unit"/>
1529             <field reporter:label="Circ Weights" name="circ_weights" reporter:datatype="link"/>
1530             <field reporter:label="Hold Weights" name="hold_weights" reporter:datatype="link"/>
1531         </fields>
1532         <links>
1533             <link field="org_unit" reltype="has_a" key="id" map="" class="aou"/>
1534             <link field="circ_weights" reltype="has_a" key="id" map="" class="ccmw"/>
1535             <link field="hold_weights" reltype="has_a" key="id" map="" class="chmw"/>
1536         </links>
1537         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1538             <actions>
1539                 <create permission="ADMIN_CIRC_MATRIX_MATCHPOINT ADMIN_HOLD_MATRIX_MATCHPOINT" context_field='org_unit'/>
1540                 <retrieve permission="ADMIN_CIRC_MATRIX_MATCHPOINT ADMIN_HOLD_MATRIX_MATCHPOINT VIEW_CIRC_MATRIX_MATCHPOINT VIEW_HOLD_MATRIX_MATCHPOINT" context_field='org_unit'/>
1541                 <update permission="ADMIN_CIRC_MATRIX_MATCHPOINT ADMIN_HOLD_MATRIX_MATCHPOINT" context_field='org_unit'/>
1542                 <delete permission="ADMIN_CIRC_MATRIX_MATCHPOINT ADMIN_HOLD_MATRIX_MATCHPOINT" context_field='org_unit'/>
1543             </actions>
1544         </permacrud>
1545     </class>
1546
1547         <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">
1548                 <fields oils_persist:primary="id" oils_persist:sequence="config.hold_matrix_matchpoint_id_seq">
1549                         <field reporter:label="Matchpoint ID" name="id" reporter:datatype="id"/>
1550                         <field reporter:label="Active?" name="active" reporter:datatype="bool"/>
1551                         <field reporter:label="Strict OU matches?" name="strict_ou_match" reporter:datatype="bool"/>
1552                         <field reporter:label="User Home Library" name="user_home_ou" reporter:datatype="org_unit"/>
1553                         <field reporter:label="Request Library" name="request_ou" reporter:datatype="org_unit"/>
1554                         <field reporter:label="Pickup Library" name="pickup_ou" reporter:datatype="org_unit"/>
1555                         <field reporter:label="Owning Library" name="item_owning_ou" reporter:datatype="org_unit"/>
1556                         <field reporter:label="Item Circ Library" name="item_circ_ou" reporter:datatype="org_unit"/>
1557                         <field reporter:label="User Permission Group" name="usr_grp" reporter:datatype="link"/>
1558                         <field reporter:label="Requestor Permission Group" name="requestor_grp" reporter:datatype="link"/>
1559                         <field reporter:label="Circulation Modifier" name="circ_modifier" oils_persist:primitive="string" reporter:datatype="link"/>
1560                         <field reporter:label="MARC Type" name="marc_type" oils_persist:primitive="string" reporter:datatype="link"/>
1561                         <field reporter:label="MARC Form" name="marc_form" oils_persist:primitive="string" reporter:datatype="link"/>
1562                         <field reporter:label="MARC Bib Level" name="marc_bib_level" oils_persist:primitive="string" reporter:datatype="link"/>
1563                         <field reporter:label="Videorecording Format" name="marc_vr_format" oils_persist:primitive="string" reporter:datatype="link"/>
1564                         <field reporter:label="Reference?" name="ref_flag" reporter:datatype="bool"/>
1565             <field reporter:label="Item Age &lt;" name="item_age" reporter:datatype="text"/>
1566                         <field reporter:label="Holdable?" name="holdable" reporter:datatype="bool"/>
1567                         <field reporter:label="Range is from Owning Lib?" name="distance_is_from_owner" reporter:datatype="bool"/>
1568                         <field reporter:label="Transit Range" name="transit_range" reporter:datatype="link"/>
1569                         <field reporter:label="Max Holds" name="max_holds" reporter:datatype="int"/>
1570                         <field reporter:label="Max includes Frozen" name="include_frozen_holds" reporter:datatype="bool"/>
1571                         <field reporter:label="Copy Age Hold Protection Rule" name="age_hold_protect_rule" reporter:datatype="link"/>
1572                 </fields>
1573                 <links>
1574                         <link field="user_home_ou" reltype="has_a" key="id" map="" class="aou"/>
1575                         <link field="request_ou" reltype="has_a" key="id" map="" class="aou"/>
1576                         <link field="pickup_ou" reltype="has_a" key="id" map="" class="aou"/>
1577                         <link field="item_owning_ou" reltype="has_a" key="id" map="" class="aou"/>
1578                         <link field="item_circ_ou" reltype="has_a" key="id" map="" class="aou"/>
1579                         <link field="usr_grp" reltype="has_a" key="id" map="" class="pgt"/>
1580                         <link field="requestor_grp" reltype="has_a" key="id" map="" class="pgt"/>
1581                         <link field="circ_modifier" reltype="has_a" key="code" map="" class="ccm"/>
1582                         <link field="marc_type" reltype="has_a" key="code" map="" class="citm"/>
1583                         <link field="marc_form" reltype="has_a" key="code" map="" class="cifm"/>
1584                         <link field="marc_bib_level" reltype="has_a" key="code" map="" class="cblvl"/>
1585                         <link field="marc_vr_format" reltype="has_a" key="code" map="" class="cvrfm"/>
1586                         <link field="age_hold_protect_rule" reltype="has_a" key="id" map="" class="crahp"/>
1587             <link field="transit_range" reltype="has_a" key="id" map="" class="aout"/>
1588                 </links>
1589         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1590             <actions>
1591                 <create permission="ADMIN_HOLD_MATRIX_MATCHPOINT" global_required="true"/>
1592                 <retrieve permission="ADMIN_HOLD_MATRIX_MATCHPOINT VIEW_HOLD_MATRIX_MATCHPOINT" global_required="true"/>
1593                 <update permission="ADMIN_HOLD_MATRIX_MATCHPOINT" global_required="true"/>
1594                 <delete permission="ADMIN_HOLD_MATRIX_MATCHPOINT" global_required="true"/>
1595             </actions>
1596         </permacrud>
1597         </class>
1598
1599         <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">
1600                 <fields oils_persist:primary="id" oils_persist:sequence="config.circ_matrix_matchpoint_id_seq">
1601                         <field reporter:label="Matchpoint ID" name="id" reporter:datatype="id"/>
1602                         <field reporter:label="Renewal?" name="is_renewal" reporter:datatype="bool"/>
1603                         <field reporter:label="Active?" name="active" reporter:datatype="bool"/>
1604                         <field reporter:label="Org Unit" name="org_unit" reporter:datatype="org_unit" oils_obj:required="true"/>
1605                         <field reporter:label="Copy Circ Lib" name="copy_circ_lib" reporter:datatype="org_unit"/>
1606                         <field reporter:label="Copy Owning Lib" name="copy_owning_lib" reporter:datatype="org_unit"/>
1607                         <field reporter:label="User Home Lib" name="user_home_ou" reporter:datatype="org_unit"/>
1608                         <field reporter:label="Permission Group" name="grp" reporter:datatype="link" oils_obj:required="true"/>
1609                         <field reporter:label="Circulation Modifier" name="circ_modifier" oils_persist:primitive="string" reporter:datatype="link"/>
1610                         <field reporter:label="Copy Location" name="copy_location" reporter:datatype="link"/>
1611                         <field reporter:label="MARC Type" name="marc_type" oils_persist:primitive="string" reporter:datatype="link"/>
1612                         <field reporter:label="MARC Form" name="marc_form" oils_persist:primitive="string" reporter:datatype="link"/>
1613                         <field reporter:label="MARC Bib Level" name="marc_bib_level" oils_persist:primitive="string" reporter:datatype="link"/>
1614                         <field reporter:label="Videorecording Format" name="marc_vr_format" oils_persist:primitive="string" reporter:datatype="link"/>
1615                         <field reporter:label="Reference?" name="ref_flag" reporter:datatype="bool"/>
1616             <field reporter:label="Juvenile?" name="juvenile_flag" reporter:datatype="bool"/>
1617                         <field reporter:label="User Age: Lower Bound" name="usr_age_lower_bound" reporter:datatype="text"/>
1618                         <field reporter:label="User Age: Upper Bound" name="usr_age_upper_bound" reporter:datatype="text"/>
1619             <field reporter:label="Item Age &lt;" name="item_age" reporter:datatype="text"/>
1620                         <field reporter:label="Circulate?" name="circulate" reporter:datatype="bool"/>
1621                         <field reporter:label="Duration Rule" name="duration_rule" reporter:datatype="link"/>
1622                         <field reporter:label="Recurring Fine Rule" name="recurring_fine_rule" reporter:datatype="link"/>
1623                         <field reporter:label="Max Fine Rule" name="max_fine_rule" reporter:datatype="link"/>
1624             <field reporter:label="Hard Due Date" name="hard_due_date" reporter:datatype="link"/>
1625             <field reporter:label="Renewals Override" name="renewals" reporter:datatype="int"/>
1626             <field reporter:label="Grace Period Override" name="grace_period" reporter:datatype="interval"/>
1627                         <field reporter:label="Script Test" name="script_test" reporter:datatype="text"/>
1628                         <field name="total_copy_hold_ratio" reporter:datatype="float" reporter:label="Minimum Total Copy/Hold Ratio"/>
1629                         <field name="available_copy_hold_ratio" reporter:datatype="float" reporter:label="Minimum Available Copy/Hold Ratio"/>
1630                 </fields>
1631                 <links>
1632                         <link field="org_unit" reltype="has_a" key="id" map="" class="aou"/>
1633                         <link field="copy_circ_lib" reltype="has_a" key="id" map="" class="aou"/>
1634                         <link field="copy_owning_lib" reltype="has_a" key="id" map="" class="aou"/>
1635                         <link field="user_home_ou" reltype="has_a" key="id" map="" class="aou"/>
1636                         <link field="grp" reltype="has_a" key="id" map="" class="pgt"/>
1637                         <link field="circ_modifier" reltype="has_a" key="code" map="" class="ccm"/>
1638                         <link field="copy_location" reltype="has_a" key="id" map="" class="acpl"/>
1639                         <link field="marc_type" reltype="has_a" key="code" map="" class="citm"/>
1640                         <link field="marc_form" reltype="has_a" key="code" map="" class="cifm"/>
1641                         <link field="marc_bib_level" reltype="has_a" key="code" map="" class="cblvl"/>
1642                         <link field="marc_vr_format" reltype="has_a" key="code" map="" class="cvrfm"/>
1643                         <link field="duration_rule" reltype="has_a" key="id" map="" class="crcd"/>
1644                         <link field="max_fine_rule" reltype="has_a" key="id" map="" class="crmf"/>
1645                         <link field="recurring_fine_rule" reltype="has_a" key="id" map="" class="crrf"/>
1646             <link field="hard_due_date" reltype="has_a" key="id" map="" class="chdd"/>
1647                 </links>
1648         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1649             <actions>
1650                 <create permission="ADMIN_CIRC_MATRIX_MATCHPOINT" context_field='org_unit'/>
1651                 <retrieve permission="ADMIN_CIRC_MATRIX_MATCHPOINT VIEW_CIRC_MATRIX_MATCHPOINT" context_field='org_unit'/>
1652                 <update permission="ADMIN_CIRC_MATRIX_MATCHPOINT" context_field='org_unit'/>
1653                 <delete permission="ADMIN_CIRC_MATRIX_MATCHPOINT" context_field='org_unit'/>
1654             </actions>
1655         </permacrud>
1656         </class>
1657
1658     <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">
1659         <fields oils_persist:primary="id" oils_persist:sequence="config.circ_limit_group_id_seq">
1660             <field reporter:label="ID" name="id" reporter:datatype="id" reporter:selector="name"/>
1661             <field reporter:label="Name" name="name" reporter:datatype="text"/>
1662             <field reporter:label="Description" name="description" reporter:datatype="text"/>
1663         </fields>
1664         <links/>
1665         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1666             <actions>
1667                 <create permission="ADMIN_CIRC_MATRIX_MATCHPOINT" global_required="true"/>
1668                 <retrieve/>
1669                 <update permission="ADMIN_CIRC_MATRIX_MATCHPOINT" global_required="true"/>
1670                 <delete permission="ADMIN_CIRC_MATRIX_MATCHPOINT" global_required="true"/>
1671             </actions>
1672         </permacrud>
1673     </class>
1674
1675     <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">
1676         <fields oils_persist:primary="id" oils_persist:sequence="config.circ_limit_set_id_seq">
1677             <field reporter:label="ID" name="id" reporter:datatype="id" reporter:selector="name"/>
1678             <field reporter:label="Name" name="name" reporter:datatype="text"/>
1679             <field reporter:label="Owning Library" name="owning_lib"  reporter:datatype="org_unit"/>
1680             <field reporter:label="Items Out" name="items_out" reporter:datatype="int"/>
1681             <field reporter:label="Min Depth" name="depth" reporter:datatype="int"/>
1682             <field reporter:label="Global" name="global" reporter:datatype="bool"/>
1683             <field reporter:label="Description" name="description" reporter:datatype="text"/>
1684         </fields>
1685         <links>
1686             <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
1687         </links>
1688         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1689             <actions>
1690                 <create permission="ADMIN_CIRC_MATRIX_MATCHPOINT" context_field="owning_lib"/>
1691                 <retrieve/>
1692                 <update permission="ADMIN_CIRC_MATRIX_MATCHPOINT" context_field="owning_lib"/>
1693                 <delete permission="ADMIN_CIRC_MATRIX_MATCHPOINT" context_field="owning_lib"/>
1694             </actions>
1695         </permacrud>
1696     </class>
1697
1698     <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">
1699         <fields oils_persist:primary="id" oils_persist:sequence="config.circ_matrix_limit_set_map_id_seq">
1700             <field reporter:label="ID" name="id" reporter:datatype="id"/>
1701             <field reporter:label="Matchpoint" name="matchpoint" reporter:datatype="link"/>
1702             <field reporter:label="Limit Set" name="limit_set" reporter:datatype="link"/>
1703             <field reporter:label="Fallthrough" name="fallthrough" reporter:datatype="bool"/>
1704             <field reporter:label="Active" name="active" reporter:datatype="bool"/>
1705         </fields>
1706         <links>
1707             <link field="matchpoint" reltype="has_a" key="id" map="" class="ccmm"/>
1708             <link field="limit_set" reltype="has_a" key="id" map="" class="ccls"/>
1709         </links>
1710         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1711             <actions>
1712                 <create permission="ADMIN_CIRC_MATRIX_MATCHPOINT">
1713                     <context link="matchpoint" field="org_unit"/>
1714                 </create>
1715                 <retrieve/>
1716                 <update permission="ADMIN_CIRC_MATRIX_MATCHPOINT">
1717                     <context link="matchpoint" field="org_unit"/>
1718                 </update>
1719                 <delete permission="ADMIN_CIRC_MATRIX_MATCHPOINT">
1720                     <context link="matchpoint" field="org_unit"/>
1721                 </delete>
1722             </actions>
1723         </permacrud>
1724     </class>
1725
1726     <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">
1727         <fields oils_persist:primary="id" oils_persist:sequence="config.circ_limit_set_circ_mod_map_id_seq">
1728             <field reporter:label="ID" name="id" reporter:datatype="id"/>
1729             <field reporter:label="Limit Set" name="limit_set" reporter:datatype="link"/>
1730             <field reporter:label="Circulation Modifier" name="circ_mod" reporter:datatype="link"/>
1731         </fields>
1732         <links>
1733             <link field="limit_set" reltype="has_a" key="id" map="" class="ccls"/>
1734             <link field="circ_mod" reltype="has_a" key="code" map="" class="ccm"/>
1735         </links>
1736         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1737             <actions>
1738                 <create permission="ADMIN_CIRC_MATRIX_MATCHPOINT">
1739                     <context link="limit_set" field="owning_lib"/>
1740                 </create>
1741                 <retrieve/>
1742                 <update permission="ADMIN_CIRC_MATRIX_MATCHPOINT">
1743                     <context link="limit_set" field="owning_lib"/>
1744                 </update>
1745                 <delete permission="ADMIN_CIRC_MATRIX_MATCHPOINT">
1746                     <context link="limit_set" field="owning_lib"/>
1747                 </delete>
1748             </actions>
1749         </permacrud>
1750     </class>
1751     <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">
1752         <fields oils_persist:primary="id" oils_persist:sequence="config.circ_limit_set_copy_loc_map_id_seq">
1753             <field reporter:label="ID" name="id" reporter:datatype="id"/>
1754             <field reporter:label="Limit Set" name="limit_set" reporter:datatype="link"/>
1755             <field reporter:label="Copy Location" name="copy_loc" reporter:datatype="link"/>
1756         </fields>
1757         <links>
1758             <link field="limit_set" reltype="has_a" key="id" map="" class="ccls"/>
1759             <link field="copy_loc" reltype="has_a" key="id" map="" class="acpl"/>
1760         </links>
1761         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1762             <actions>
1763                 <create permission="ADMIN_CIRC_MATRIX_MATCHPOINT">
1764                     <context link="limit_set" field="owning_lib"/>
1765                 </create>
1766                 <retrieve/>
1767                 <update permission="ADMIN_CIRC_MATRIX_MATCHPOINT">
1768                     <context link="limit_set" field="owning_lib"/>
1769                 </update>
1770                 <delete permission="ADMIN_CIRC_MATRIX_MATCHPOINT">
1771                     <context link="limit_set" field="owning_lib"/>
1772                 </delete>
1773             </actions>
1774         </permacrud>
1775     </class>
1776
1777     <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">
1778         <fields oils_persist:primary="id" oils_persist:sequence="config.circ_limit_set_group_map_id_seq">
1779             <field reporter:label="ID" name="id" reporter:datatype="id"/>
1780             <field reporter:label="Limit Set" name="limit_set" reporter:datatype="link"/>
1781             <field reporter:label="Limit Group" name="limit_group" reporter:datatype="link"/>
1782             <field reporter:label="Check Only" name="check_only" reporter:datatype="bool"/>
1783         </fields>
1784         <links>
1785             <link field="limit_set" reltype="has_a" key="id" map="" class="ccls"/>
1786             <link field="limit_group" reltype="has_a" key="id" map="" class="cclg"/>
1787         </links>
1788         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1789             <actions>
1790                 <create permission="ADMIN_CIRC_MATRIX_MATCHPOINT">
1791                     <context link="limit_set" field="owning_lib"/>
1792                 </create>
1793                 <retrieve/>
1794                 <update permission="ADMIN_CIRC_MATRIX_MATCHPOINT">
1795                     <context link="limit_set" field="owning_lib"/>
1796                 </update>
1797                 <delete permission="ADMIN_CIRC_MATRIX_MATCHPOINT">
1798                     <context link="limit_set" field="owning_lib"/>
1799                 </delete>
1800             </actions>
1801         </permacrud>
1802     </class>
1803
1804         <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">
1805                 <fields oils_persist:primary="id" oils_persist:sequence="config.identification_type_id_seq">
1806                         <field reporter:label="Identification ID" name="id" reporter:selector="name" reporter:datatype="id"/>
1807                         <field reporter:label="Identification Name" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
1808                 </fields>
1809                 <links/>
1810         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1811             <actions>
1812                 <create permission="ADMIN_IDENT_TYPE" global_required="true"/>
1813                 <retrieve/>
1814                 <update permission="ADMIN_IDENT_TYPE" global_required="true"/>
1815                 <delete permission="ADMIN_IDENT_TYPE" global_required="true"/>
1816             </actions>
1817         </permacrud>
1818         </class>
1819
1820         <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">
1821                 <fields oils_persist:primary="id" oils_persist:sequence="action.survey_question_id_seq">
1822                         <field reporter:label="Answers" name="answers" oils_persist:virtual="true" reporter:datatype="link"/>
1823                         <field reporter:label="Responses" name="responses" oils_persist:virtual="true" reporter:datatype="link"/>
1824                         <field reporter:label="Question ID" name="id" reporter:datatype="id" />
1825                         <field reporter:label="Question" name="question" reporter:datatype="text"/>
1826                         <field reporter:label="Survey" name="survey" reporter:datatype="link"/>
1827                 </fields>
1828                 <links>
1829                         <link field="survey" reltype="has_a" key="id" map="" class="asv"/>
1830                         <link field="responses" reltype="has_many" key="question" map="" class="asvr"/>
1831                         <link field="answers" reltype="has_many" key="question" map="" class="asva"/>
1832                 </links>
1833         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1834             <actions>
1835                 <create permission="ADMIN_SURVEY">
1836                     <context link="survey" field="owner"/>
1837                 </create>
1838                 <retrieve/>
1839                 <update permission="ADMIN_SURVEY">
1840                     <context link="survey" field="owner"/>
1841                 </update>
1842                 <delete permission="ADMIN_SURVEY">
1843                     <context link="survey" field="owner"/>
1844                 </delete>
1845             </actions>
1846         </permacrud>
1847         </class>
1848         <class id="mbts" controller="open-ils.cstore" oils_obj:fieldmapper="money::billable_transaction_summary" oils_persist:tablename="money.materialized_billable_xact_summary" reporter:label="Billable Transaction Summary" oils_persist:readonly="true">
1849                 <fields oils_persist:primary="id" oils_persist:sequence="">
1850                         <field reporter:label="Balance Owed" name="balance_owed" reporter:datatype="money"/>
1851                         <field reporter:label="Transaction ID" name="id" reporter:datatype="id"/>
1852                         <field reporter:label="Last Billing Note" name="last_billing_note" reporter:datatype="text"/>
1853                         <field reporter:label="Last Billing Timestamp" name="last_billing_ts" reporter:datatype="timestamp"/>
1854                         <field reporter:label="Last Billing Type" name="last_billing_type" reporter:datatype="text"/>
1855                         <field reporter:label="Last Payment Note" name="last_payment_note" reporter:datatype="text"/>
1856                         <field reporter:label="Last Payment Timestamp" name="last_payment_ts" reporter:datatype="timestamp"/>
1857                         <field reporter:label="Last Payment Type" name="last_payment_type" reporter:datatype="text"/>
1858                         <field reporter:label="Total Owed" name="total_owed" reporter:datatype="money"/>
1859                         <field reporter:label="Total Paid" name="total_paid" reporter:datatype="money"/>
1860                         <field reporter:label="Billed User" name="usr" reporter:datatype="link"/>
1861                         <field reporter:label="Transaction Finish Time" name="xact_finish" reporter:datatype="timestamp" />
1862                         <field reporter:label="Transaction Start Time" name="xact_start" reporter:datatype="timestamp" />
1863                         <field reporter:label="Transaction Type" name="xact_type" reporter:datatype="text"/>
1864                 </fields>
1865                 <links>
1866                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
1867                 </links>
1868         </class>
1869         <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">
1870                 <fields oils_persist:primary="id" oils_persist:sequence="">
1871                         <field reporter:label="Balance Owed" name="balance_owed" reporter:datatype="money"/>
1872                         <field reporter:label="Transaction ID" name="id" reporter:datatype="id"/>
1873                         <field reporter:label="Last Billing Note" name="last_billing_note" reporter:datatype="text"/>
1874                         <field reporter:label="Last Billing Timestamp" name="last_billing_ts" reporter:datatype="timestamp"/>
1875                         <field reporter:label="Last Billing Type" name="last_billing_type" reporter:datatype="text"/>
1876                         <field reporter:label="Last Payment Note" name="last_payment_note" reporter:datatype="text"/>
1877                         <field reporter:label="Last Payment Timestamp" name="last_payment_ts" reporter:datatype="timestamp"/>
1878                         <field reporter:label="Last Payment Type" name="last_payment_type" reporter:datatype="text"/>
1879                         <field reporter:label="Total Owed" name="total_owed" reporter:datatype="money"/>
1880                         <field reporter:label="Total Paid" name="total_paid" reporter:datatype="money"/>
1881                         <field reporter:label="Billed User" name="usr" reporter:datatype="link"/>
1882                         <field reporter:label="Transaction Finish Time" name="xact_finish" reporter:datatype="timestamp" />
1883                         <field reporter:label="Transaction Start Time" name="xact_start" reporter:datatype="timestamp" />
1884                         <field reporter:label="Transaction Type" name="xact_type" reporter:datatype="text"/>
1885                         <field reporter:label="Billing Location" name="billing_location" reporter:datatype="link"/>
1886                 </fields>
1887                 <links>
1888                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
1889                         <link field="billing_location" reltype="has_a" key="id" map="" class="aou"/>
1890                 </links>
1891         </class>
1892         <class id="aun" controller="open-ils.cstore" oils_obj:fieldmapper="actor::usr_note" oils_persist:tablename="actor.usr_note" reporter:label="User Note">
1893                 <fields oils_persist:primary="id" oils_persist:sequence="actor.usr_note_id_seq">
1894                         <field reporter:label="Creation Date/Time" name="create_date" reporter:datatype="timestamp"/>
1895                         <field reporter:label="Creating Staff" name="creator" reporter:datatype="link"/>
1896                         <field reporter:label="Note ID" name="id" reporter:datatype="id" />
1897                         <field reporter:label="Is OPAC Visible?" name="pub" reporter:datatype="bool"/>
1898                         <field reporter:label="Note Title" name="title" reporter:datatype="text"/>
1899                         <field reporter:label="User" name="usr" reporter:datatype="link" />
1900                         <field reporter:label="Note Content" name="value" reporter:datatype="text"/>
1901                 </fields>
1902                 <links>
1903                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
1904                         <link field="creator" reltype="has_a" key="id" map="" class="au"/>
1905                 </links>
1906         </class>
1907         <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">
1908                 <fields oils_persist:primary="id" oils_persist:sequence="actor.usr_password_reset_id_seq">
1909                         <field reporter:label="Request ID" name="id" reporter:datatype="id"/>
1910                         <field reporter:label="UUID" name="uuid" reporter:datatype="text"/>
1911                         <field reporter:label="User" name="usr" reporter:datatype="link"/>
1912                         <field reporter:label="Request Time" name="request_time" reporter:datatype="timestamp"/>
1913                         <field reporter:label="Was Reset?" name="has_been_reset" reporter:datatype="bool"/>
1914                 </fields>
1915                 <links>
1916                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
1917                 </links>
1918         </class>
1919         <class id="aus" controller="open-ils.cstore" oils_obj:fieldmapper="actor::user_setting" oils_persist:tablename="actor.usr_setting" reporter:label="User Setting">
1920                 <fields oils_persist:primary="id" oils_persist:sequence="actor.usr_setting_id_seq">
1921                         <field reporter:label="Setting ID" name="id" reporter:datatype="id" />
1922                         <field reporter:label="Name" name="name" reporter:datatype="link"/>
1923                         <field reporter:label="User" name="usr" reporter:datatype="link"/>
1924                         <field reporter:label="Value" name="value" reporter:datatype="text"/>
1925                 </fields>
1926                 <links>
1927                         <link field="name" reltype="has_a" key="name" map="" class="cust"/>
1928                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
1929                 </links>
1930         </class>
1931         <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">
1932                 <fields oils_persist:primary="id" oils_persist:sequence="metabib.author_field_entry_id_seq">
1933                         <field name="field" reporter:datatype="link"/>
1934                         <field name="id" reporter:datatype="id" />
1935                         <field name="source" reporter:datatype="link"/>
1936                         <field name="value" reporter:datatype="text"/>
1937                 </fields>
1938                 <links>
1939                         <link field="source" reltype="has_a" key="id" map="" class="bre"/>
1940                         <link field="field" reltype="has_a" key="id" map="" class="cmf"/>
1941                 </links>
1942         </class>
1943         <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">
1944                 <fields oils_persist:primary="id" oils_persist:sequence="action.in_house_use_id_seq">
1945                         <field reporter:label="Use ID" name="id" reporter:datatype="id" />
1946                         <field reporter:label="Item" name="item" reporter:datatype="int" />
1947                         <field reporter:label="Using Library" name="org_unit" reporter:datatype="org_unit"/>
1948                         <field reporter:label="Recording Staff" name="staff" reporter:datatype="link"/>
1949                         <field reporter:label="Use Date/Time" name="use_time" reporter:datatype="timestamp"/>
1950                 </fields>
1951                 <links>
1952                         <link field="item" reltype="has_a" key="id" map="" class="acp"/>
1953                         <link field="staff" reltype="has_a" key="id" map="" class="au"/>
1954                         <link field="org_unit" reltype="has_a" key="id" map="" class="aou"/>
1955                 </links>
1956         </class>
1957         <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">
1958                 <fields oils_persist:primary="id" oils_persist:sequence="action.non_cat_in_house_use_id_seq">
1959                         <field reporter:label="Use ID" name="id" reporter:datatype="id" />
1960                         <field reporter:label="Item Type" name="item_type" reporter:datatype="link"/>
1961                         <field reporter:label="Using Library" name="org_unit" reporter:datatype="org_unit"/>
1962                         <field reporter:label="Recording Staff" name="staff" reporter:datatype="link"/>
1963                         <field reporter:label="Use Date/Time" name="use_time" reporter:datatype="timestamp"/>
1964                 </fields>
1965                 <links>
1966                         <link field="item_type" reltype="has_a" key="id" map="" class="cnct"/>
1967                         <link field="staff" reltype="has_a" key="id" map="" class="au"/>
1968                         <link field="org_unit" reltype="has_a" key="id" map="" class="aou"/>
1969                 </links>
1970         </class>
1971         <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">
1972                 <fields oils_persist:primary="id" oils_persist:sequence="action.transit_copy_id_seq">
1973                         <field reporter:label="Pretransit Copy Status" name="copy_status" reporter:datatype="bool"/>
1974                         <field reporter:label="Destination" name="dest" reporter:datatype="link"/>
1975                         <field reporter:label="Receive Date/Time" name="dest_recv_time" reporter:datatype="timestamp"/>
1976                         <field reporter:label="Transit ID" name="id" reporter:datatype="id"/>
1977                         <field reporter:label="Is Persistent? (unused)" name="persistant_transfer" reporter:datatype="bool"/>
1978                         <field reporter:label="Previous Hop (unused)" name="prev_hop" reporter:datatype="link"/>
1979                         <field reporter:label="Source" name="source" reporter:datatype="link"/>
1980                         <field reporter:label="Prev Destination" name="prev_dest" reporter:datatype="org_unit"/>
1981                         <field reporter:label="Send Date/Time" name="source_send_time" reporter:datatype="timestamp"/>
1982                         <field reporter:label="Transited Copy" name="target_copy" reporter:datatype="link"/>
1983                         <field reporter:label="Hold Transit" name="hold_transit_copy" oils_persist:virtual="true" reporter:datatype="link"/>
1984                 </fields>
1985                 <links>
1986                         <link field="hold_transit_copy" reltype="might_have" key="id" map="" class="ahtc"/>
1987                         <link field="source" reltype="has_a" key="id" map="" class="aou"/>
1988                         <link field="prev_dest" reltype="has_a" key="id" map="" class="aou"/>
1989                         <link field="copy_status" reltype="has_a" key="id" map="" class="ccs"/>
1990                         <link field="dest" reltype="has_a" key="id" map="" class="aou"/>
1991                         <link field="target_copy" reltype="has_a" key="id" map="" class="acp"/>
1992                 </links>
1993         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1994             <actions>
1995                 <create permission="TRANSIT_COPY" context_field="owner">
1996                     <context link="target_copy" field="circ_lib"/>
1997                 </create>
1998                 <retrieve/>
1999                 <update permission="UPDATE_TRANSIT" context_field="dest source"/>
2000                 <delete permission="DELETE_TRANSIT" context_field="dest source"/>
2001             </actions>
2002         </permacrud>
2003         </class>
2004         <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">
2005                 <fields oils_persist:primary="id" oils_persist:sequence="action.survey_response_id_seq">
2006                         <field reporter:label="Answer" name="answer" reporter:datatype="link"/>
2007                         <field reporter:label="Answer Date/Time" name="answer_date" reporter:datatype="timestamp"/>
2008                         <field reporter:label="Effective Answer Date/Time" name="effective_date" reporter:datatype="timestamp"/>
2009                         <field reporter:label="Answer ID" name="id" reporter:datatype="id" />
2010                         <field reporter:label="Question" name="question" reporter:datatype="link"/>
2011                         <field reporter:label="Response Group ID" name="response_group_id" reporter:datatype="int" />
2012                         <field reporter:label="Survey" name="survey" reporter:datatype="link"/>
2013                         <field reporter:label="Responding User" name="usr" reporter:datatype="link"/>
2014                 </fields>
2015                 <links>
2016                         <link field="question" reltype="has_a" key="id" map="" class="asvq"/>
2017                         <link field="survey" reltype="has_a" key="id" map="" class="asv"/>
2018                         <link field="answer" reltype="has_a" key="id" map="" class="asva"/>
2019                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
2020                 </links>
2021         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2022             <actions>
2023                 <create permission="ADMIN_SURVEY">
2024                     <context link="survey" field="owner"/>
2025                 </create>
2026                 <retrieve/>
2027                 <update permission="ADMIN_SURVEY">
2028                     <context link="survey" field="owner"/>
2029                 </update>
2030                 <delete permission="ADMIN_SURVEY">
2031                     <context link="survey" field="owner"/>
2032                 </delete>
2033             </actions>
2034         </permacrud>
2035         </class>
2036         <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">
2037                 <fields oils_persist:primary="id" oils_persist:sequence="container.copy_bucket_item_id_seq">
2038                         <field name="bucket" />
2039                         <field name="id" reporter:datatype="id" />
2040                         <field name="target_copy" reporter:datatype="link"/>
2041                         <field name="create_time" reporter:datatype="timestamp" />
2042                         <field name="pos" reporter:datatype="int" />
2043                         <field name="notes" oils_persist:virtual="true" reporter:datatype="link" />
2044                 </fields>
2045                 <links>
2046                         <link field="target_copy" reltype="has_a" key="id" map="" class="acp"/>
2047                         <link field="bucket" reltype="has_a" key="id" map="" class="ccb"/>
2048             <link field="notes" reltype="has_many" map="" key="item" class="ccbin"/>
2049                 </links>
2050         </class>
2051         <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">
2052                 <fields oils_persist:primary="id" oils_persist:sequence="container.copy_bucket_item_note_id_seq">
2053                         <field name="id" reporter:datatype="id" />
2054                         <field name="item" reporter:datatype="link"/>
2055                         <field name="note" reporter:datatype="text" />
2056                 </fields>
2057                 <links>
2058                         <link field="item" reltype="has_a" key="id" map="" class="ccbi"/>
2059                 </links>
2060         </class>
2061
2062         <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">
2063                 <fields oils_persist:primary="id" oils_persist:sequence="authority.control_set_id_seq">
2064                         <field reporter:label="Control Set ID" name="id" reporter:datatype="id" reporter:selector="name"/>
2065                         <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true" oils_obj:required="true" />
2066                         <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true" />
2067                         <field reporter:label="Controlling Authority Fields" name="authority_fields" reporter:datatype="link" oils_persist:virtual="true"/>
2068                         <field reporter:label="Thesauri" name="thesauri" reporter:datatype="link" oils_persist:virtual="true"/>
2069                 </fields>
2070                 <links>
2071                         <link field="authority_fields" reltype="has_many" key="control_set" map="" class="acsaf"/>
2072                         <link field="thesauri" reltype="has_many" key="control_set" map="" class="at"/>
2073                 </links>
2074                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2075                         <actions>
2076                                 <create permission="CREATE_AUTHORITY_CONTROL_SET" global_required="true"/>
2077                                 <retrieve/>
2078                                 <update permission="UPDATE_AUTHORITY_CONTROL_SET" global_required="true"/>
2079                                 <delete permission="DELETE_AUTHORITY_CONTROL_SET" global_required="true"/>
2080                         </actions>
2081                 </permacrud>
2082         </class>
2083
2084         <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">
2085                 <fields oils_persist:primary="id" oils_persist:sequence="authority.control_set_authority_field_id_seq">
2086                         <field reporter:label="Control Set Authority Field ID" name="id" reporter:datatype="id" reporter:selector="name"/>
2087                         <field reporter:label="Main Entry" name="main_entry" reporter:datatype="link"/>
2088                         <field reporter:label="Control Set" name="control_set" reporter:datatype="link"/>
2089                         <field reporter:label="Tag" name="tag" reporter:datatype="text" oils_obj:required="true" oils_obj:validate="^.{3}$"/>
2090                         <field reporter:label="Subfield List" name="sf_list" reporter:datatype="text" />
2091                         <field reporter:label="Non-filing Indicator" name="nfi" reporter:datatype="text" />
2092                         <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true" oils_obj:required="true" />
2093                         <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true" />
2094                         <field reporter:label="Subordinate Entries" name="sub_entries" reporter:datatype="link" oils_persist:virtual="true"/>
2095                         <field reporter:label="Controlled Bib Fields" name="bib_fields" reporter:datatype="link" oils_persist:virtual="true"/>
2096                         <field reporter:label="Thesauri" name="thesauri" reporter:datatype="link" oils_persist:virtual="true"/>
2097                         <field reporter:label="Browse Axis Maps" name="axis_maps" reporter:datatype="link" oils_persist:virtual="true"/>
2098                 </fields>
2099                 <links>
2100                         <link field="axis_maps" reltype="has_many" key="field" map="" class="abaafm"/>
2101                         <link field="control_set" reltype="has_a" key="id" map="" class="acs"/>
2102                         <link field="bib_fields" reltype="has_many" key="authority_field" map="" class="acsbf"/>
2103                         <link field="thesauri" reltype="has_many" key="control_set" map="" class="at"/>
2104                         <link field="main_entry" reltype="has_a" key="id" map="" class="acsaf"/>
2105                         <link field="sub_entries" reltype="has_many" key="main_entry" map="" class="acsaf"/>
2106                 </links>
2107                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2108                         <actions>
2109                                 <create permission="CREATE_AUTHORITY_CONTROL_SET" global_required="true"/>
2110                                 <retrieve/>
2111                                 <update permission="UPDATE_AUTHORITY_CONTROL_SET" global_required="true"/>
2112                                 <delete permission="UPDATE_AUTHORITY_CONTROL_SET" global_required="true"/>
2113                         </actions>
2114                 </permacrud>
2115         </class>
2116
2117         <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">
2118                 <fields oils_persist:primary="id" oils_persist:sequence="authority.control_set_bib_field_id_seq">
2119                         <field reporter:label="Controlled Bib Field ID" name="id" reporter:datatype="id" reporter:selector="name"/>
2120                         <field reporter:label="Controlling Authority Field" name="authority_field" reporter:datatype="link"/>
2121                         <field reporter:label="Tag" name="tag" reporter:datatype="text" oils_obj:required="true" oils_obj:validate="^.{3}$"/>
2122                 </fields>
2123                 <links>
2124                         <link field="authority_field" reltype="has_a" key="id" map="" class="acsaf"/>
2125                 </links>
2126                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2127                         <actions>
2128                                 <create permission="CREATE_AUTHORITY_CONTROL_SET" global_required="true"/>
2129                                 <retrieve/>
2130                                 <update permission="UPDATE_AUTHORITY_CONTROL_SET" global_required="true"/>
2131                                 <delete permission="UPDATE_AUTHORITY_CONTROL_SET" global_required="true"/>
2132                         </actions>
2133                 </permacrud>
2134         </class>
2135
2136         <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">
2137                 <fields oils_persist:primary="code">
2138                         <field reporter:label="Thesaurus Code" name="code" reporter:datatype="id" reporter:selector="name"/>
2139                         <field reporter:label="Control Set" name="control_set" reporter:datatype="link"/>
2140                         <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true" oils_obj:required="true" />
2141                         <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true" />
2142                 </fields>
2143                 <links>
2144                         <link field="control_set" reltype="has_a" key="id" map="" class="acs"/>
2145                 </links>
2146                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2147                         <actions>
2148                                 <create permission="CREATE_AUTHORITY_CONTROL_SET" global_required="true"/>
2149                                 <retrieve/>
2150                                 <update permission="UPDATE_AUTHORITY_CONTROL_SET" global_required="true"/>
2151                                 <delete permission="UPDATE_AUTHORITY_CONTROL_SET" global_required="true"/>
2152                         </actions>
2153                 </permacrud>
2154         </class>
2155
2156         <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">
2157                 <fields oils_persist:primary="code">
2158                         <field reporter:label="Code" name="code" reporter:datatype="id" reporter:selector="name" oils_obj:validate="^\S+$"/>
2159                         <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true" oils_obj:required="true"/>
2160                         <field reporter:label="Sorter Attribute" name="sorter" reporter:datatype="link"/>
2161                         <field reporter:label="Description" name="description" reporter:datatype="text"/>
2162                         <field reporter:label="Authority Fields" name="fields" reporter:datatype="link" oils_persist:virtual="true"/>
2163                         <field reporter:label="Authority Field Maps" name="maps" reporter:datatype="link" oils_persist:virtual="true"/>
2164                 </fields>
2165                 <links>
2166                         <link field="sorter" reltype="has_a" key="name" map="" class="crad"/>
2167                         <link field="fields" reltype="has_many" key="axis" map="field" class="abaafm"/>
2168                         <link field="maps" reltype="has_many" key="axis" map="" class="abaafm"/>
2169                 </links>
2170                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2171                         <actions>
2172                                 <create permission="CREATE_AUTHORITY_CONTROL_SET" global_required="true"/>
2173                                 <retrieve/>
2174                                 <update permission="UPDATE_AUTHORITY_CONTROL_SET" global_required="true"/>
2175                                 <delete permission="UPDATE_AUTHORITY_CONTROL_SET" global_required="true"/>
2176                         </actions>
2177                 </permacrud>
2178         </class>
2179
2180     <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">
2181         <fields oils_persist:primary="id" oils_persist:sequence="authority.browse_axis_authority_field_map_id_seq">
2182             <field reporter:label="Axis Authority Field Map ID" name="id" reporter:datatype="id"/>
2183             <field reporter:label="Authority Field" name="field" oils_obj:required="true" reporter:datatype="link"/>
2184             <field reporter:label="Axis" name="axis" reporter:datatype="link" oils_obj:required="true"/>
2185         </fields>
2186         <links>
2187             <link field="field" reltype="has_a" key="id" map="" class="acsaf"/>
2188             <link field="axis" reltype="has_a" key="code" map="" class="aba"/>
2189         </links>
2190         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2191             <actions>
2192                 <create permission="CREATE_AUTHORITY_CONTROL_SET" global_required="true"/>
2193                 <retrieve/>
2194                 <update permission="UPDATE_AUTHORITY_CONTROL_SET" global_required="true"/>
2195                 <delete permission="UPDATE_AUTHORITY_CONTROL_SET" global_required="true"/>
2196             </actions>
2197         </permacrud>
2198     </class>
2199
2200         <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">
2201                 <fields oils_persist:primary="id" oils_persist:sequence="authority.record_entry_id_seq">
2202                         <field name="active" reporter:datatype="bool"/>
2203                         <field name="create_date" reporter:datatype="timestamp"/>
2204                         <field name="creator" />
2205                         <field name="deleted" reporter:datatype="bool"/>
2206                         <field name="edit_date" reporter:datatype="timestamp"/>
2207                         <field name="editor" />
2208                         <field name="id" reporter:datatype="id" />
2209                         <field name="last_xact_id" />
2210                         <field name="marc" />
2211                         <field name="source" />
2212                         <field reporter:label="Control Set" name="control_set" reporter:datatype="link"/>
2213                         <field reporter:label="Owner" name="owner"  reporter:datatype="org_unit"/>
2214                         <field name="fixed_fields" oils_persist:virtual="true" reporter:datatype="link"/>
2215                         <field name="notes" oils_persist:virtual="true" reporter:datatype="link"/>
2216                         <field name="bib_links" oils_persist:virtual="true" reporter:datatype="link"/>
2217                 </fields>
2218                 <links>
2219                         <link field="control_set" reltype="has_a" key="id" map="" class="acs"/>
2220                         <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
2221                         <link field="editor" reltype="has_a" key="id" map="" class="au"/>
2222                         <link field="creator" reltype="has_a" key="id" map="" class="au"/>
2223                         <link field="notes" reltype="has_many" key="record" map="" class="arn"/>
2224                         <link field="bib_links" reltype="has_many" key="authority" map="" class="abl"/>
2225                         <link field="fixed_fields" reltype="might_have" key="record" map="" class="ard"/>
2226                 </links>
2227                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2228                         <actions>
2229                                 <create permission="CREATE_MARC IMPORT_MARC" global_required="true"/>
2230                                 <retrieve/>
2231                                 <update permission="UPDATE_MARC" global_required="true"/>
2232                                 <delete permission="UPDATE_MARC" global_required="true"/>
2233                         </actions>
2234                 </permacrud>
2235         </class>
2236         <class id="ard" controller="open-ils.cstore" oils_obj:fieldmapper="authority::record_descriptor" oils_persist:tablename="authority.rec_descriptor" reporter:label="Authority Record Descriptor">
2237                 <fields oils_persist:primary="id" oils_persist:sequence="authority.rec_descriptor_id_seq">
2238                         <field name="char_encoding" />
2239                         <field name="id" />
2240                         <field name="record" />
2241                         <field name="record_status" />
2242                         <field name="thesaurus" />
2243                 </fields>
2244                 <links>
2245                         <link field="record" reltype="has_a" key="id" map="" class="are"/>
2246                         <link field="thesaurus" reltype="might_have" key="code" map="" class="at"/>
2247                 </links>
2248         </class>
2249         <class id="abl" controller="open-ils.cstore" oils_obj:fieldmapper="authority::bib_linking" oils_persist:tablename="authority.bib_linking" reporter:label="Authority-Bibliographic Record Link">
2250                 <fields oils_persist:primary="id" oils_persist:sequence="authority.bib_linking_id_seq">
2251                         <field name="id" reporter:datatype="id" />
2252                         <field name="bib" reporter:datatype="link" />
2253                         <field name="authority" reporter:datatype="link" />
2254                 </fields>
2255                 <links>
2256                         <link field="bib" reltype="has_a" key="id" map="" class="bre"/>
2257                         <link field="authority" reltype="has_a" key="id" map="" class="are"/>
2258                 </links>
2259         </class>
2260         <class id="clm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::language_map" oils_persist:tablename="config.language_map" reporter:label="Language Map" oils_persist:field_safe="true">
2261                 <fields oils_persist:primary="code" oils_persist:sequence="">
2262                         <field reporter:label="Language Code" name="code" reporter:selector="value" reporter:datatype="text"/>
2263                         <field reporter:label="Language" name="value" reporter:datatype="text" oils_persist:i18n="true"/>
2264                 </fields>
2265                 <links/>
2266         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2267             <actions>
2268                 <create permission="CREATE_MARC_CODE" global_required="true"/>
2269                 <retrieve/>
2270                 <update permission="UPDATE_MARC_CODE" global_required="true"/>
2271                 <delete permission="DELETE_MARC_CODE" global_required="true"/>
2272             </actions>
2273         </permacrud>
2274         </class>
2275         <class id="mccp" controller="open-ils.cstore" oils_obj:fieldmapper="money::credit_card_payment" oils_persist:tablename="money.credit_card_payment" reporter:label="Credit Card Payment">
2276                 <fields oils_persist:primary="id" oils_persist:sequence="money.payment_id_seq">
2277                         <field name="accepting_usr" />
2278                         <field name="amount" reporter:datatype="money" />
2279                         <field name="amount_collected" reporter:datatype="money" />
2280                         <field name="approval_code" reporter:datatype="text"/>
2281                         <field name="cash_drawer" reporter:datatype="link"/>
2282                         <field name="cc_first_name" reporter:datatype="text"/>
2283                         <field name="cc_last_name" reporter:datatype="text"/>
2284                         <field name="cc_number" reporter:datatype="text"/>
2285                         <field name="cc_order_number" reporter:datatype="text"/>
2286                         <field name="cc_type" reporter:datatype="text"/>
2287                         <field name="cc_processor" reporter:datatype="text"/>
2288                         <field name="expire_month" reporter:datatype="int" />
2289                         <field name="expire_year" reporter:datatype="int" />
2290                         <field name="id" reporter:datatype="id" />
2291                         <field name="note" reporter:datatype="text"/>
2292                         <field name="payment_ts" reporter:datatype="timestamp"/>
2293                         <field name="xact" reporter:datatype="link"/>
2294                         <field name="payment_type" oils_persist:virtual="true" reporter:datatype="text"/>
2295                         <field name="payment" oils_persist:virtual="true" reporter:datatype="link"/>
2296                 </fields>
2297                 <links>
2298                         <link field="payment" reltype="might_have" key="id" map="" class="mp"/>
2299                         <link field="accepting_usr" reltype="has_a" key="id" map="" class="au"/>
2300                         <link field="cash_drawer" reltype="has_a" key="id" map="" class="aws"/>
2301                         <link field="xact" reltype="has_a" key="id" map="" class="mbt"/>
2302                 </links>
2303         </class>
2304         <class id="cxt" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::xml_transform" oils_persist:tablename="config.xml_transform" reporter:label="XML/XSLT Transform Definition">
2305                 <fields oils_persist:primary="name">
2306                         <field reporter:label="Name" name="name" reporter:datatype="text" />
2307                         <field reporter:label="Namespace URI" name="namespace_uri" reporter:datatype="text"/>
2308                         <field reporter:label="Namespace Prefix" name="prefix" reporter:datatype="text"/>
2309                         <field reporter:label="XSLT" name="xslt" reporter:datatype="text" />
2310                 </fields>
2311                 <links/>
2312         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2313             <actions>
2314                 <create permission="CREATE_XML_TRANSFORM" global_required="true"/>
2315                 <retrieve/>
2316                 <update permission="UPDATE_XML_TRANSFORM" global_required="true"/>
2317                 <delete permission="DELETE_XML_TRANSFORM" global_required="true"/>
2318             </actions>
2319         </permacrud>
2320         </class>
2321
2322         <class id="cmsa" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::metabib_search_alias" oils_persist:tablename="config.metabib_search_alias" reporter:label="Metabib Search Alias" oils_persist:field_safe="true">
2323                 <fields oils_persist:primary="alias">
2324                         <field reporter:label="Alias (RegExp)" name="alias" reporter:datatype="text"/>
2325                         <field reporter:label="Class" name="field_class" reporter:datatype="link"/>
2326                         <field reporter:label="Field" name="field" reporter:datatype="link"/>
2327                 </fields>
2328                 <links>
2329                         <link field="field_class" reltype="has_a" key="name" map="" class="cmc"/>
2330                         <link field="field" reltype="has_a" key="id" map="" class="cmf"/>
2331                 </links>
2332         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2333             <actions>
2334                 <create permission="CREATE_METABIB_SEARCH_ALIAS" global_required="true"/>
2335                 <retrieve/>
2336                 <update permission="UPDATE_METABIB_SEARCH_ALIAS" global_required="true"/>
2337                 <delete permission="DELETE_METABIB_SEARCH_ALIAS" global_required="true"/>
2338             </actions>
2339         </permacrud>
2340         </class>
2341
2342         <class id="cmc" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::metabib_class" oils_persist:tablename="config.metabib_class" reporter:label="Metabib Class" oils_persist:field_safe="true">
2343                 <fields oils_persist:primary="name">
2344                         <field reporter:label="Name" name="name" reporter:datatype="text"/>
2345                         <field reporter:label="Label" name="label" reporter:datatype="text" oils_persist:i18n="true"/>
2346                         <field reporter:label="Buoyant?" name="buoyant" reporter:datatype="bool" />
2347                         <field reporter:label="Restrict?" name="restrict" reporter:datatype="bool" />
2348                         <field reporter:label="Combined?" name="combined" reporter:datatype="bool" />
2349                         <field reporter:label="A Weight" name="a_weight" reporter:datatype="float" />
2350                         <field reporter:label="B Weight" name="b_weight" reporter:datatype="float" />
2351                         <field reporter:label="C Weight" name="c_weight" reporter:datatype="float" />
2352                         <field reporter:label="D Weight" name="d_weight" reporter:datatype="float" />
2353                         <field reporter:label="Fields" name="fields" reporter:datatype="link" oils_persist:virtual="true"/>
2354                 </fields>
2355                 <links>
2356                         <link field="fields" reltype="has_many" key="name" map="" class="cmf"/>
2357                 </links>
2358         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2359             <actions>
2360                 <create permission="CREATE_METABIB_CLASS" global_required="true"/>
2361                 <retrieve/>
2362                 <update permission="UPDATE_METABIB_CLASS" global_required="true"/>
2363                 <delete permission="DELETE_METABIB_CLASS" global_required="true"/>
2364             </actions>
2365         </permacrud>
2366         </class>
2367
2368         <class id="cmf" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::metabib_field" oils_persist:tablename="config.metabib_field" reporter:label="Metabib Field" oils_persist:field_safe="true">
2369                 <fields oils_persist:primary="id" oils_persist:sequence="config.metabib_field_id_seq">
2370                         <field reporter:label="Class" name="field_class" reporter:datatype="link"/>
2371                         <field reporter:label="ID" name="id" reporter:datatype="id" />
2372                         <field reporter:label="Name" name="name" reporter:datatype="text"/>
2373                         <field reporter:label="Label" name="label" reporter:datatype="text" oils_persist:i18n="true"/>
2374                         <field reporter:label="XPath" name="xpath" reporter:datatype="text"/>
2375                         <field reporter:label="Weight" name="weight" reporter:datatype="int" />
2376                         <field reporter:label="Format" name="format" reporter:datatype="link"/>
2377                         <field reporter:label="Search Field" name="search_field" reporter:datatype="bool" />
2378                         <field reporter:label="Facet Field" name="facet_field" reporter:datatype="bool" />
2379                         <field reporter:label="Facet XPath" name="facet_xpath" reporter:datatype="text" />
2380                         <field reporter:label="Browse Field" name="browse_field" reporter:datatype="bool" />
2381                         <field reporter:label="Browse XPath" name="browse_xpath" reporter:datatype="text" />
2382                         <field reporter:label="Restrict?" name="restrict" reporter:datatype="bool" />
2383                 </fields>
2384                 <links>
2385                         <link field="field_class" reltype="has_a" key="name" map="" class="cmc"/>
2386                 </links>
2387         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2388             <actions>
2389                 <create permission="CREATE_METABIB_FIELD" global_required="true"/>
2390                 <retrieve/>
2391                 <update permission="UPDATE_METABIB_FIELD" global_required="true"/>
2392                 <delete permission="DELETE_METABIB_FIELD" global_required="true"/>
2393             </actions>
2394         </permacrud>
2395         </class>
2396         <class id="cbho" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::best_hold_order" oils_persist:tablename="config.best_hold_order" reporter:label="Best-Hold Sort Order">
2397                 <fields oils_persist:primary="id" oils_persist:sequence="config.best_hold_order_id_seq">
2398                         <field reporter:label="ID" name="id" reporter:datatype="id" reporter:selector="name" />
2399                         <field reporter:label="Name" name="name" reporter:datatype="text"/>
2400                         <field reporter:label="Capture Lib to Pickup Lib Proximity" name="pprox" reporter:datatype="int" />
2401                         <field reporter:label="Circ Lib to Request Lib Proximity" name="hprox" reporter:datatype="int" />
2402                         <field reporter:label="Adjusted Circ Lib to Pickup Lib Proximity" name="aprox" reporter:datatype="int" />
2403                         <field reporter:label="Adjusted Capture Location to Pickup Lib Proximity" name="approx" reporter:datatype="int" />
2404                         <field reporter:label="Hold Priority" name="priority" reporter:datatype="int" />
2405                         <field reporter:label="Hold Cut-in-line State" name="cut" reporter:datatype="int" />
2406                         <field reporter:label="Hold Selection Depth" name="depth" reporter:datatype="int" />
2407                         <field reporter:label="Copy Has Circulated From Home Lately" name="htime" reporter:datatype="int" />
2408                         <field reporter:label="Hold Request Time" name="rtime" reporter:datatype="int" />
2409                         <field reporter:label="Copy Has Been Home At All Lately" name="shtime" reporter:datatype="int" />
2410                 </fields>
2411                 <links>
2412                 </links>
2413                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2414                         <actions>
2415                                 <create permission="ADMIN_HOLD_CAPTURE_SORT" global_required="true"/>
2416                                 <retrieve permission="ADMIN_HOLD_CAPTURE_SORT" global_required="true"/>
2417                                 <update permission="ADMIN_HOLD_CAPTURE_SORT" global_required="true"/>
2418                                 <delete permission="ADMIN_HOLD_CAPTURE_SORT" global_required="true"/>
2419                         </actions>
2420                 </permacrud>
2421         </class>
2422         <class id="cbfp" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::biblio_fingerprint" oils_persist:tablename="config.biblio_fingerprint" reporter:label="Fingerprint Definition">
2423                 <fields oils_persist:primary="id" oils_persist:sequence="config.biblio_fingerprint_id_seq">
2424                         <field name="id" reporter:datatype="id" />
2425                         <field name="name" reporter:datatype="text"/>
2426                         <field name="xpath" reporter:datatype="text"/>
2427                         <field name="format" reporter:datatype="link"/>
2428                         <field name="first_word" reporter:datatype="bool" />
2429                 </fields>
2430                 <links/>
2431         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2432             <actions>
2433                 <create permission="CREATE_BIBLIO_FINGERPRINT" global_required="true"/>
2434                 <retrieve/>
2435                 <update permission="UPDATE_BIBLIO_FINGERPRINT" global_required="true"/>
2436                 <delete permission="DELETE_BIBLIO_FINGERPRINT" global_required="true"/>
2437             </actions>
2438         </permacrud>
2439         </class>
2440         <class id="cam" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::audience_map" oils_persist:tablename="config.audience_map" reporter:label="Audience Map" oils_persist:field_safe="true">
2441                 <fields oils_persist:primary="code" oils_persist:sequence="">
2442                         <field reporter:label="Audience Code" name="code" reporter:selector="value" reporter:datatype="text"/>
2443                         <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true" />
2444                         <field reporter:label="Audience" name="value"  reporter:datatype="text" oils_persist:i18n="true"/>
2445                 </fields>
2446                 <links/>
2447         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2448             <actions>
2449                 <create permission="CREATE_MARC_CODE" global_required="true"/>
2450                 <retrieve/>
2451                 <update permission="UPDATE_MARC_CODE" global_required="true"/>
2452                 <delete permission="DELETE_MARC_CODE" global_required="true"/>
2453             </actions>
2454         </permacrud>
2455         </class>
2456         <class id="cifm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::item_form_map" oils_persist:tablename="config.item_form_map" reporter:label="Item Form Map" oils_persist:field_safe="true">
2457                 <fields oils_persist:primary="code" oils_persist:sequence="">
2458                         <field reporter:label="Item Form Code" name="code" reporter:selector="value" reporter:datatype="text"/>
2459                         <field reporter:label="Item Form" name="value"  reporter:datatype="text" oils_persist:i18n="true"/>
2460                 </fields>
2461                 <links/>
2462         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2463             <actions>