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