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