Merge branch 'master' of git.evergreen-ils.org:Evergreen into template-toolkit-opac...
[working/Evergreen.git] / Open-ILS / examples / fm_IDL.xml
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <!--
3
4 Copyright (C) 2006-2008 Georgia Public Library Service
5 Copyright (C) 2008 Equinox Software, Inc
6 Author: Mike Rylander <miker@esilibrary.com>
7
8 This program is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public License
10 as published by the Free Software Foundation; either version 2
11 of the License, or (at your option) any later version.
12
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
21
22 -->
23
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             <field reporter:label="Use Permission" name="use_perm"  reporter:datatype="link"/>
823         </fields>
824         <links>
825             <link field="attrs" reltype="has_many" key="source" map="" class="cza"/>
826             <link field="use_perm" reltype="has_a" key="id" map="" class="ppl"/>
827         </links>
828         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
829             <actions>
830                 <create permission="ADMIN_Z3950_SOURCE" global_required="true"/>
831                 <retrieve/>
832                 <update permission="ADMIN_Z3950_SOURCE" global_required="true"/>
833                 <delete permission="ADMIN_Z3950_SOURCE" global_required="true"/>
834             </actions>
835         </permacrud>
836     </class>
837
838     <class id="cza" controller="open-ils.cstore" oils_obj:fieldmapper="config::z3950_attr" oils_persist:tablename="config.z3950_attr" reporter:label="Z39.50 Attribute">
839         <fields oils_persist:primary="id" oils_persist:sequence="config.z3950_attr_id_seq">
840             <field reporter:label="Z39.50 Attribute ID" name="id" reporter:datatype="id"/>
841             <field reporter:label="Z39.50 Source" name="source" reporter:datatype="link"/>
842             <field reporter:label="Name" name="name" reporter:datatype="text"/>
843             <field reporter:label="Label" name="label" reporter:datatype="text" oils_persist:i18n="true"/>
844             <field reporter:label="Code" name="code"  reporter:datatype="int"/>
845             <field reporter:label="Format" name="format"  reporter:datatype="int"/>
846             <field reporter:label="Truncation" name="truncation"  reporter:datatype="int"/>
847         </fields>
848         <links>
849             <link field="source" reltype="has_a" key="name" map="" class="czs"/>
850         </links>
851     </class>
852
853         <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">
854                 <fields oils_persist:primary="id" oils_persist:sequence="action_trigger.event_output_id_seq">
855                         <field reporter:label="Output ID" name="id" reporter:datatype="id"/>
856                         <field reporter:label="Create Date/Time" name="create_time" reporter:datatype="timestamp"/>
857                         <field reporter:label="Data" name="data" reporter:datatype="text"/>
858                         <field reporter:label="Is Error" name="is_error" reporter:datatype="bool"/>
859                         <field reporter:label="Events" name="events" oils_persist:virtual="true"  reporter:datatype="link"/>
860                         <field reporter:label="Error Events" name="error_events" oils_persist:virtual="true"  reporter:datatype="link"/>
861                 </fields>
862                 <links>
863             <link field="events" reltype="has_many" key="template_output" map="" class="atev"/>
864             <link field="error_events" reltype="has_many" key="error_output" map="" class="atev"/>
865                 </links>
866                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
867                         <actions>
868                                 <retrieve/>
869                                 <delete permission="ADMIN_TRIGGER_TEMPLATE_OUTPUT DELETE_TRIGGER_TEMPLATE_OUTPUT" global_required="true"/>
870                         </actions>
871                 </permacrud>
872         </class>
873
874         <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">
875                 <fields oils_persist:primary="key">
876                         <field reporter:label="Hook Key" name="key" reporter:datatype="text"/>
877                         <field reporter:label="Core Type" name="core_type" reporter:datatype="text"/>
878                         <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true"/>
879                         <field reporter:label="Passive" name="passive"  reporter:datatype="bool"/>
880                 </fields>
881                 <links/>
882                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
883                         <actions>
884                                 <create permission="ADMIN_TRIGGER_HOOK CREATE_TRIGGER_HOOK" global_required="true"/>
885                                 <retrieve/>
886                                 <update permission="ADMIN_TRIGGER_HOOK UPDATE_TRIGGER_HOOK" global_required="true"/>
887                                 <delete permission="ADMIN_TRIGGER_HOOK DELETE_TRIGGER_HOOK" global_required="true"/>
888                         </actions>
889                 </permacrud>
890         </class>
891
892         <class id="atcol" controller="open-ils.cstore" oils_obj:fieldmapper="action_trigger::collector" oils_persist:tablename="action_trigger.collector" reporter:label="Trigger Environment Collector">
893                 <fields oils_persist:primary="module">
894                         <field reporter:label="Module Name" name="module" reporter:datatype="text"/>
895                         <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true"/>
896                 </fields>
897                 <links/>
898         </class>
899
900         <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">
901                 <fields oils_persist:primary="module">
902                         <field reporter:label="Module Name" name="module" reporter:datatype="text"/>
903                         <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true"/>
904                 </fields>
905                 <links/>
906                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
907                         <actions>
908                                 <create permission="ADMIN_TRIGGER_VALIDATOR CREATE_TRIGGER_VALIDATOR" global_required="true"/>
909                                 <retrieve/>
910                                 <update permission="ADMIN_TRIGGER_VALIDATOR UPDATE_TRIGGER_VALIDATOR" global_required="true"/>
911                                 <delete permission="ADMIN_TRIGGER_VALIDATOR DELETE_TRIGGER_VALIDATOR" global_required="true"/>
912                         </actions>
913                 </permacrud>
914         </class>
915
916         <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">
917                 <fields oils_persist:primary="module">
918                         <field reporter:label="Module Name" name="module" reporter:datatype="text"/>
919                         <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true"/>
920                 </fields>
921                 <links/>
922                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
923                         <actions>
924                                 <create permission="ADMIN_TRIGGER_REACTOR CREATE_TRIGGER_REACTOR" global_required="true"/>
925                                 <retrieve/>
926                                 <update permission="ADMIN_TRIGGER_REACTOR UPDATE_TRIGGER_REACTOR" global_required="true"/>
927                                 <delete permission="ADMIN_TRIGGER_REACTOR DELETE_TRIGGER_REACTOR" global_required="true"/>
928                         </actions>
929                 </permacrud>
930         </class>
931
932         <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">
933                 <fields oils_persist:primary="module">
934                         <field reporter:label="Module Name" name="module" reporter:datatype="text"/>
935                         <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true"/>
936                 </fields>
937                 <links/>
938                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
939                         <actions>
940                                 <create permission="ADMIN_TRIGGER_CLEANUP CREATE_TRIGGER_CLEANUP" global_required="true"/>
941                                 <retrieve/>
942                                 <update permission="ADMIN_TRIGGER_CLEANUP UPDATE_TRIGGER_CLEANUP" global_required="true"/>
943                                 <delete permission="ADMIN_TRIGGER_CLEANUP DELETE_TRIGGER_CLEANUP" global_required="true"/>
944                         </actions>
945                 </permacrud>
946         </class>
947
948         <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">
949                 <fields oils_persist:primary="id" oils_persist:sequence="action_trigger.environment_id_seq">
950                         <field reporter:label="Definition ID" name="id" reporter:datatype="id"/>
951                         <field reporter:label="Event Definition" name="event_def" reporter:datatype="link"/>
952                         <field reporter:label="Field Path" name="path" reporter:datatype="text"/>
953                         <field reporter:label="Collector" name="collector" reporter:datatype="link"/>
954                         <field reporter:label="Label" name="label" reporter:datatype="text"/>
955                 </fields>
956                 <links>
957                         <link field="event_def" reltype="has_a" key="id" map="" class="atevdef"/>
958                         <link field="collector" reltype="has_a" key="id" map="" class="atcol"/>
959                 </links>
960                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
961                         <actions>
962                                 <create permission="ADMIN_TRIGGER_EVENT_DEF CREATE_TRIGGER_EVENT_DEF">
963                     <context link="event_def" field="owner"/>
964                 </create>
965                                 <retrieve permission="ADMIN_TRIGGER_EVENT_DEF VIEW_TRIGGER_EVENT_DEF">
966                     <context link="event_def" field="owner"/>
967                 </retrieve>
968                                 <update permission="ADMIN_TRIGGER_EVENT_DEF UPDATE_TRIGGER_EVENT_DEF">
969                     <context link="event_def" field="owner"/>
970                 </update>
971                                 <delete permission="ADMIN_TRIGGER_EVENT_DEF DELETE_TRIGGER_EVENT_DEF">
972                     <context link="event_def" field="owner"/>
973                 </delete>
974                         </actions>
975                 </permacrud>
976         </class>
977
978         <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">
979                 <fields oils_persist:primary="id" oils_persist:sequence="action_trigger.event_definition_id_seq">
980                         <field reporter:label="Definition ID" name="id" reporter:datatype="id"/>
981                         <field reporter:label="Enabled" name="active" reporter:datatype="bool"/>
982                         <field reporter:label="Owning Library" name="owner"  reporter:datatype="org_unit"/>
983                         <field reporter:label="Hook" name="hook"  reporter:datatype="link"/>
984                         <field reporter:label="Validator" name="validator"  reporter:datatype="link"/>
985                         <field reporter:label="Reactor" name="reactor"  reporter:datatype="link"/>
986                         <field reporter:label="Success Cleanup" name="cleanup_success"  reporter:datatype="link"/>
987                         <field reporter:label="Failure Cleanup" name="cleanup_failure"  reporter:datatype="link"/>
988                         <field reporter:label="Processing Delay" name="delay"  reporter:datatype="interval"/>
989                         <field reporter:label="Max Event Validity Delay" name="max_delay"  reporter:datatype="interval"/>
990                         <field reporter:label="Processing Delay Context Field" name="delay_field"  reporter:datatype="text"/>
991                         <field reporter:label="Processing Group Context Field" name="group_field"  reporter:datatype="text"/>
992                         <field reporter:label="Template" name="template"  reporter:datatype="text"/>
993                         <field reporter:label="Name" name="name"  reporter:datatype="text"/>
994                         <field reporter:label="Granularity" name="granularity"  reporter:datatype="text"/>
995                         <field reporter:label="Opt-In User Field" name="usr_field"  reporter:datatype="text"/>
996                         <field reporter:label="Opt-In Setting Type" name="opt_in_setting"  reporter:datatype="link"/>
997                         <field reporter:label="Environment Entries" name="env" oils_persist:virtual="true"  reporter:datatype="link"/>
998                         <field reporter:label="Parameters" name="params" oils_persist:virtual="true"  reporter:datatype="link"/>
999                 </fields>
1000                 <links>
1001                         <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
1002                         <link field="hook" reltype="has_a" key="key" map="" class="ath"/>
1003                         <link field="validator" reltype="has_a" key="module" map="" class="atval"/>
1004                         <link field="reactor" reltype="has_a" key="module" map="" class="atreact"/>
1005                         <link field="cleanup_success" reltype="has_a" key="module" map="" class="atclean"/>
1006                         <link field="cleanup_failure" reltype="has_a" key="module" map="" class="atclean"/>
1007                         <link field="env" reltype="has_many" key="event_def" map="" class="atenv"/>
1008                         <link field="params" reltype="has_many" key="event_def" map="" class="atevparam"/>
1009                         <link field="opt_in_setting" reltype="has_a" key="name" map="" class="cust"/>
1010                 </links>
1011                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1012                         <actions>
1013                                 <create permission="ADMIN_TRIGGER_EVENT_DEF CREATE_TRIGGER_EVENT_DEF" context_field="owner"/>
1014                                 <retrieve permission="ADMIN_TRIGGER_EVENT_DEF VIEW_TRIGGER_EVENT_DEF" context_field="owner"/>
1015                                 <update permission="ADMIN_TRIGGER_EVENT_DEF UPDATE_TRIGGER_EVENT_DEF" context_field="owner"/>
1016                                 <delete permission="ADMIN_TRIGGER_EVENT_DEF DELETE_TRIGGER_EVENT_DEF" context_field="owner"/>
1017                         </actions>
1018                 </permacrud>
1019         </class>
1020
1021         <class id="atev" controller="open-ils.cstore" oils_obj:fieldmapper="action_trigger::event" oils_persist:tablename="action_trigger.event" reporter:label="Trigger Event Entry">
1022                 <fields oils_persist:primary="id" oils_persist:sequence="action_trigger.event_id_seq">
1023                         <field reporter:label="Event ID" name="id" reporter:datatype="id"/>
1024                         <field reporter:label="Target ID" name="target" reporter:datatype="int"/>
1025                         <field reporter:label="Event Definition" name="event_def" reporter:datatype="link"/>
1026                         <field reporter:label="Add Time" name="add_time" reporter:datatype="timestamp"/>
1027                         <field reporter:label="Run Time" name="run_time" reporter:datatype="timestamp"/>
1028                         <field reporter:label="Start Time" name="start_time" reporter:datatype="timestamp"/>
1029                         <field reporter:label="Update Time" name="update_time" reporter:datatype="timestamp"/>
1030                         <field reporter:label="Complete Time" name="complete_time" reporter:datatype="timestamp"/>
1031                         <field reporter:label="State" name="state" reporter:datatype="text"/>
1032                         <field reporter:label="User Data" name="user_data" reporter:datatype="text"/>
1033                         <field reporter:label="Template Output" name="template_output" reporter:datatype="link"/>
1034                         <field reporter:label="Error Output" name="error_output" reporter:datatype="text"/>
1035                         <field reporter:label="Asynchronous Output" name="async_output" reporter:datatype="link"/>
1036                         <field reporter:label="Update Process" name="update_process" reporter:datatype="int"/>
1037                 </fields>
1038                 <links>
1039                         <link field="event_def" reltype="has_a" key="id" map="" class="atevdef"/>
1040                         <link field="template_output" reltype="has_a" key="id" map="" class="ateo"/>
1041                         <link field="error_output" reltype="has_a" key="id" map="" class="ateo"/>
1042                         <link field="async_output" reltype="has_a" key="id" map="" class="ateo"/>
1043                 </links>
1044         </class>
1045
1046         <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">
1047                 <fields oils_persist:primary="id" oils_persist:sequence="action_trigger.event_params_id_seq">
1048                         <field reporter:label="Event ID" name="id" reporter:datatype="id"/>
1049                         <field reporter:label="Event Definition" name="event_def" reporter:datatype="link"/>
1050                         <field reporter:label="Parameter Name" name="param" reporter:datatype="text"/>
1051                         <field reporter:label="Parameter Value" name="value" reporter:datatype="text"/>
1052                 </fields>
1053                 <links>
1054                         <link field="event_def" reltype="has_a" key="id" map="" class="atevdef"/>
1055                 </links>
1056                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1057                         <actions>
1058                                 <create permission="ADMIN_TRIGGER_EVENT_DEF CREATE_TRIGGER_EVENT_DEF">
1059                     <context link="event_def" field="owner"/>
1060                 </create>
1061                                 <retrieve permission="ADMIN_TRIGGER_EVENT_DEF VIEW_TRIGGER_EVENT_DEF">
1062                     <context link="event_def" field="owner"/>
1063                 </retrieve>
1064                                 <update permission="ADMIN_TRIGGER_EVENT_DEF UPDATE_TRIGGER_EVENT_DEF">
1065                     <context link="event_def" field="owner"/>
1066                 </update>
1067                                 <delete permission="ADMIN_TRIGGER_EVENT_DEF DELETE_TRIGGER_EVENT_DEF">
1068                     <context link="event_def" field="owner"/>
1069                 </delete>
1070                         </actions>
1071                 </permacrud>
1072         </class>
1073
1074         <class id="aws" controller="open-ils.cstore" oils_obj:fieldmapper="actor::workstation" oils_persist:tablename="actor.workstation" reporter:label="Workstation">
1075                 <fields oils_persist:primary="id" oils_persist:sequence="actor.workstation_id_seq">
1076                         <field reporter:label="Workstation ID" name="id" reporter:datatype="id"/>
1077                         <field reporter:label="Workstation Name" name="name" reporter:datatype="text"/>
1078                         <field reporter:label="Owning Library" name="owning_lib"  reporter:datatype="org_unit"/>
1079                         <field reporter:label="Circulations" name="circulations" oils_persist:virtual="true" reporter:datatype="link"/>
1080                 </fields>
1081                 <links>
1082                         <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
1083                         <link field="circulations" reltype="has_many" key="workstation" map="" class="circ"/>
1084                 </links>
1085         </class>
1086
1087         <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">
1088                 <fields oils_persist:primary="code">
1089                         <field reporter:label="Code" name="code" reporter:selector="name" reporter:datatype="id"/>
1090                         <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
1091                         <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true"/>
1092                         <field reporter:label="SIP2 Media Type" name="sip2_media_type" reporter:datatype="text" oils_persist:i18n="true"/>
1093                         <field reporter:label="Magnetic Media" name="magnetic_media" reporter:datatype="bool"/>
1094                         <field reporter:label="Average Wait Time" name="avg_wait_time" reporter:datatype="interval"/>
1095                 </fields>
1096                 <links/>
1097         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1098             <actions>
1099                 <create permission="ADMIN_CIRC_MOD" global_required="true"/>
1100                 <retrieve/>
1101                 <update permission="ADMIN_CIRC_MOD" global_required="true"/>
1102                 <delete permission="ADMIN_CIRC_MOD" global_required="true"/>
1103             </actions>
1104         </permacrud>
1105         </class>
1106
1107         <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">
1108                 <fields oils_persist:primary="code">
1109                         <field reporter:label="Code" name="code" reporter:selector="name" reporter:datatype="id"/>
1110                         <field reporter:label="Label" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
1111                         <field reporter:label="Prorate?" name="prorate" reporter:datatype="bool"/>
1112                 </fields>
1113                 <links/>
1114         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1115             <actions>
1116                 <create permission="CREATE_INVOICE_ITEM_TYPE" global_required="true"/>
1117                 <retrieve/>
1118                 <update permission="UPDATE_INVOICE_ITEM_TYPE" global_required="true"/>
1119                 <delete permission="DELETE_INVOICE_ITEM_TYPE" global_required="true"/>
1120             </actions>
1121         </permacrud>
1122         </class>
1123
1124         <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">
1125                 <fields oils_persist:primary="code">
1126                         <field reporter:label="Code" name="code" reporter:selector="name" reporter:datatype="id"/>
1127                         <field reporter:label="Label" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
1128                 </fields>
1129                 <links/>
1130         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1131             <actions>
1132                 <create permission="ADMIN_INVOICE_METHOD CREATE_INVOICE_METHOD" global_required="true"/>
1133                 <retrieve/>
1134                 <update permission="ADMIN_INVOICE_METHOD UPDATE_INVOICE_METHOD" global_required="true"/>
1135                 <delete permission="ADMIN_INVOICE_METHOD DELETE_INVOICE_METHOD" global_required="true"/>
1136             </actions>
1137         </permacrud>
1138         </class>
1139
1140         <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">
1141                 <fields oils_persist:primary="code">
1142                         <field reporter:label="Code" name="code" reporter:selector="name" reporter:datatype="id"/>
1143                         <field reporter:label="Label" name="label" reporter:datatype="text" oils_persist:i18n="true"/>
1144                 </fields>
1145                 <links/>
1146         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1147             <actions>
1148                 <create permission="CREATE_COPY_BTYPE" global_required="true"/>
1149                 <retrieve/>
1150                 <update permission="UPDATE_COPY_BTYPE" global_required="true"/>
1151                 <delete permission="DELETE_COPY_BTYPE" global_required="true"/>
1152             </actions>
1153         </permacrud>
1154         </class>
1155
1156         <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">
1157                 <fields oils_persist:primary="code">
1158                         <field reporter:label="Code" name="code" reporter:selector="name" reporter:datatype="id"/>
1159                         <field reporter:label="Label" name="label" reporter:datatype="text" oils_persist:i18n="true"/>
1160                 </fields>
1161                 <links/>
1162         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1163             <actions>
1164                 <create permission="CREATE_CN_BTYPE" global_required="true"/>
1165                 <retrieve/>
1166                 <update permission="UPDATE_CN_BTYPE" global_required="true"/>
1167                 <delete permission="DELETE_CN_BTYPE" global_required="true"/>
1168             </actions>
1169         </permacrud>
1170         </class>
1171
1172         <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">
1173                 <fields oils_persist:primary="id" oils_persist:sequence="biblio.peer_type_id_seq">
1174                         <field reporter:label="ID" name="id" reporter:selector="name" reporter:datatype="id"/>
1175                         <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
1176                 </fields>
1177                 <links/>
1178         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1179             <actions>
1180                 <create permission="CREATE_BIB_PTYPE" global_required="true"/>
1181                 <retrieve/>
1182                 <update permission="UPDATE_BIB_PTYPE" global_required="true"/>
1183                 <delete permission="DELETE_BIB_PTYPE" global_required="true"/>
1184             </actions>
1185         </permacrud>
1186         </class>
1187
1188         <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">
1189                 <fields oils_persist:primary="id" oils_persist:sequence="biblio.peer_bib_copy_map_id_seq">
1190                         <field reporter:label="ID" name="id" reporter:selector="name" reporter:datatype="id"/>
1191                         <field reporter:label="Peer Type" name="peer_type" reporter:datatype="link"/>
1192                         <field reporter:label="Peer Record" name="peer_record" reporter:datatype="link"/>
1193                         <field reporter:label="Target Copy" name="target_copy" reporter:datatype="link"/>
1194                 </fields>
1195         <links>
1196             <link field="peer_type" reltype="has_a" key="id" map="" class="bpt"/>
1197             <link field="peer_record" reltype="has_a" key="id" map="" class="bre"/>
1198             <link field="target_copy" reltype="has_a" key="id" map="" class="acp"/>
1199         </links>
1200         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1201             <actions>
1202                 <create permission="UPDATE_COPY">
1203                     <context link="target_copy" field="circ_lib"/>
1204                 </create>
1205                 <retrieve/>
1206                 <update permission="UPDATE_COPY">
1207                     <context link="target_copy" field="circ_lib"/>
1208                 </update>
1209                 <delete permission="UPDATE_COPY">
1210                     <context link="target_copy" field="circ_lib"/>
1211                 </delete>
1212             </actions>
1213         </permacrud>
1214         </class>
1215
1216         <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">
1217                 <fields oils_persist:primary="code">
1218                         <field reporter:label="Code" name="code" reporter:selector="name" reporter:datatype="id"/>
1219                         <field reporter:label="Label" name="label" reporter:datatype="text" oils_persist:i18n="true"/>
1220                 </fields>
1221                 <links/>
1222         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1223             <actions>
1224                 <create permission="CREATE_BIB_BTYPE" global_required="true"/>
1225                 <retrieve/>
1226                 <update permission="UPDATE_BIB_BTYPE" global_required="true"/>
1227                 <delete permission="DELETE_BIB_BTYPE" global_required="true"/>
1228             </actions>
1229         </permacrud>
1230         </class>
1231
1232         <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">
1233                 <fields oils_persist:primary="code">
1234                         <field reporter:label="Code" name="code" reporter:selector="name" reporter:datatype="id"/>
1235                         <field reporter:label="Label" name="label" reporter:datatype="text" oils_persist:i18n="true"/>
1236                 </fields>
1237                 <links/>
1238         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1239             <actions>
1240                 <create permission="CREATE_USER_BTYPE" global_required="true"/>
1241                 <retrieve/>
1242                 <update permission="UPDATE_USER_BTYPE" global_required="true"/>
1243                 <delete permission="DELETE_USER_BTYPE" global_required="true"/>
1244             </actions>
1245         </permacrud>
1246         </class>
1247
1248         <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">
1249                 <fields oils_persist:primary="code">
1250                         <field reporter:label="Code" name="code" reporter:selector="value" reporter:datatype="id"/>
1251                         <field reporter:label="Format" name="value" reporter:datatype="text" oils_persist:i18n="true"/>
1252                 </fields>
1253                 <links/>
1254         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1255             <actions>
1256                 <create permission="ADMIN_MARC_CODE" global_required="true"/>
1257                 <retrieve/>
1258                 <update permission="ADMIN_MARC_CODE" global_required="true"/>
1259                 <delete permission="ADMIN_MARC_CODE" global_required="true"/>
1260             </actions>
1261         </permacrud>
1262         </class>
1263
1264     <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">
1265         <fields oils_persist:primary="id" oils_persist:sequence="config.hold_matrix_weights_id_seq">
1266             <field reporter:label="Hold Weights ID" name="id" reporter:datatype="id" reporter:selector="name"/>
1267             <field reporter:label="Name" name="name" reporter:datatype="text"/>
1268             <field reporter:label="User Home Library" name="user_home_ou" reporter:datatype="float"/>
1269             <field reporter:label="Request Library" name="request_ou" reporter:datatype="float"/>
1270             <field reporter:label="Pickup Library" name="pickup_ou" reporter:datatype="float"/>
1271             <field reporter:label="Owning Library" name="item_owning_ou" reporter:datatype="float"/>
1272             <field reporter:label="Item Circ Library" name="item_circ_ou" reporter:datatype="float"/>
1273             <field reporter:label="User Permission Group" name="usr_grp" reporter:datatype="float"/>
1274             <field reporter:label="Requestor Permission Group" name="requestor_grp" reporter:datatype="float"/>
1275             <field reporter:label="Circulation Modifier" name="circ_modifier" oils_persist:primitive="string" reporter:datatype="float"/>
1276             <field reporter:label="MARC Type" name="marc_type" oils_persist:primitive="string" reporter:datatype="float"/>
1277             <field reporter:label="MARC Form" name="marc_form" oils_persist:primitive="string" reporter:datatype="float"/>
1278             <field reporter:label="Videorecording Format" name="marc_vr_format" oils_persist:primitive="string" reporter:datatype="float"/>
1279             <field reporter:label="Reference?" name="ref_flag" reporter:datatype="float"/>
1280             <field reporter:label="Item Age &lt;" name="item_age" reporter:datatype="float"/>
1281         </fields>
1282         <links/>
1283         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1284             <actions>
1285                 <create permission="ADMIN_HOLD_MATRIX_MATCHPOINT" global_required="true"/>
1286                 <retrieve/>
1287                 <update permission="ADMIN_HOLD_MATRIX_MATCHPOINT" global_required="true"/>
1288                 <delete permission="ADMIN_HOLD_MATRIX_MATCHPOINT" global_required="true"/>
1289             </actions>
1290         </permacrud>
1291     </class>
1292
1293     <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">
1294         <fields oils_persist:primary="id" oils_persist:sequence="config.circ_matrix_weights_id_seq">
1295             <field reporter:label="Circ Weights ID" name="id" reporter:datatype="id" reporter:selector="name"/>
1296             <field reporter:label="Name" name="name" reporter:datatype="text"/>
1297             <field reporter:label="Org Unit" name="org_unit" reporter:datatype="float"/>
1298             <field reporter:label="Copy Circ Lib" name="copy_circ_lib" reporter:datatype="float"/>
1299             <field reporter:label="Copy Owning Lib" name="copy_owning_lib" reporter:datatype="float"/>
1300             <field reporter:label="User Home Lib" name="user_home_ou" reporter:datatype="float"/>
1301             <field reporter:label="Permission Group" name="grp" reporter:datatype="float"/>
1302             <field reporter:label="Circulation Modifier" name="circ_modifier" reporter:datatype="float"/>
1303             <field reporter:label="MARC Type" name="marc_type" reporter:datatype="float"/>
1304             <field reporter:label="MARC Form" name="marc_form" reporter:datatype="float"/>
1305             <field reporter:label="Videorecording Format" name="marc_vr_format" reporter:datatype="float"/>
1306             <field reporter:label="Reference?" name="ref_flag" reporter:datatype="float"/>
1307             <field reporter:label="User Age: Lower Bound" name="usr_age_lower_bound" reporter:datatype="float"/>
1308             <field reporter:label="User Age: Upper Bound" name="usr_age_upper_bound" reporter:datatype="float"/>
1309             <field reporter:label="Item Age &lt;" name="item_age" reporter:datatype="float"/>
1310         </fields>
1311         <links/>
1312         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1313             <actions>
1314                 <create permission="ADMIN_CIRC_MATRIX_MATCHPOINT" global_required="true"/>
1315                 <retrieve/>
1316                 <update permission="ADMIN_CIRC_MATRIX_MATCHPOINT" global_required="true"/>
1317                 <delete permission="ADMIN_CIRC_MATRIX_MATCHPOINT" global_required="true"/>
1318             </actions>
1319         </permacrud>
1320     </class>
1321
1322     <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">
1323         <fields oils_persist:primary="id" oils_persist:sequence="config.weight_assoc_id_seq">
1324             <field reporter:label="Assoc ID" name="id" reporter:datatype="id"/>
1325             <field reporter:label="Active?" name="active" reporter:datatype="bool"/>
1326             <field reporter:label="Org Unit" name="org_unit" reporter:datatype="org_unit"/>
1327             <field reporter:label="Circ Weights" name="circ_weights" reporter:datatype="link"/>
1328             <field reporter:label="Hold Weights" name="hold_weights" reporter:datatype="link"/>
1329         </fields>
1330         <links>
1331             <link field="org_unit" reltype="has_a" key="id" map="" class="aou"/>
1332             <link field="circ_weights" reltype="has_a" key="id" map="" class="ccmw"/>
1333             <link field="hold_weights" reltype="has_a" key="id" map="" class="chmw"/>
1334         </links>
1335         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1336             <actions>
1337                 <create permission="ADMIN_CIRC_MATRIX_MATCHPOINT ADMIN_HOLD_MATRIX_MATCHPOINT" context_field='org_unit'/>
1338                 <retrieve permission="ADMIN_CIRC_MATRIX_MATCHPOINT ADMIN_HOLD_MATRIX_MATCHPOINT VIEW_CIRC_MATRIX_MATCHPOINT VIEW_HOLD_MATRIX_MATCHPOINT" context_field='org_unit'/>
1339                 <update permission="ADMIN_CIRC_MATRIX_MATCHPOINT ADMIN_HOLD_MATRIX_MATCHPOINT" context_field='org_unit'/>
1340                 <delete permission="ADMIN_CIRC_MATRIX_MATCHPOINT ADMIN_HOLD_MATRIX_MATCHPOINT" context_field='org_unit'/>
1341             </actions>
1342         </permacrud>
1343     </class>
1344
1345         <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">
1346                 <fields oils_persist:primary="id" oils_persist:sequence="config.hold_matrix_matchpoint_id_seq">
1347                         <field reporter:label="Matchpoint ID" name="id" reporter:datatype="id"/>
1348                         <field reporter:label="Active?" name="active" reporter:datatype="bool"/>
1349                         <field reporter:label="Strict OU matches?" name="strict_ou_match" reporter:datatype="bool"/>
1350                         <field reporter:label="User Home Library" name="user_home_ou" reporter:datatype="org_unit"/>
1351                         <field reporter:label="Request Library" name="request_ou" reporter:datatype="org_unit"/>
1352                         <field reporter:label="Pickup Library" name="pickup_ou" reporter:datatype="org_unit"/>
1353                         <field reporter:label="Owning Library" name="item_owning_ou" reporter:datatype="org_unit"/>
1354                         <field reporter:label="Item Circ Library" name="item_circ_ou" reporter:datatype="org_unit"/>
1355                         <field reporter:label="User Permission Group" name="usr_grp" reporter:datatype="link"/>
1356                         <field reporter:label="Requestor Permission Group" name="requestor_grp" reporter:datatype="link"/>
1357                         <field reporter:label="Circulation Modifier" name="circ_modifier" oils_persist:primitive="string" reporter:datatype="link"/>
1358                         <field reporter:label="MARC Type" name="marc_type" oils_persist:primitive="string" reporter:datatype="link"/>
1359                         <field reporter:label="MARC Form" name="marc_form" oils_persist:primitive="string" reporter:datatype="link"/>
1360                         <field reporter:label="MARC Bib Level" name="marc_bib_level" oils_persist:primitive="string" reporter:datatype="link"/>
1361                         <field reporter:label="Videorecording Format" name="marc_vr_format" oils_persist:primitive="string" reporter:datatype="link"/>
1362                         <field reporter:label="Reference?" name="ref_flag" reporter:datatype="bool"/>
1363             <field reporter:label="Item Age &lt;" name="item_age" reporter:datatype="text"/>
1364                         <field reporter:label="Holdable?" name="holdable" reporter:datatype="bool"/>
1365                         <field reporter:label="Range is from Owning Lib?" name="distance_is_from_owner" reporter:datatype="bool"/>
1366                         <field reporter:label="Transit Range" name="transit_range" reporter:datatype="link"/>
1367                         <field reporter:label="Max Holds" name="max_holds" reporter:datatype="int"/>
1368                         <field reporter:label="Max includes Frozen" name="include_frozen_holds" reporter:datatype="bool"/>
1369                         <field reporter:label="Copy Age Hold Protection Rule" name="age_hold_protect_rule" reporter:datatype="link"/>
1370                 </fields>
1371                 <links>
1372                         <link field="user_home_ou" reltype="has_a" key="id" map="" class="aou"/>
1373                         <link field="request_ou" reltype="has_a" key="id" map="" class="aou"/>
1374                         <link field="pickup_ou" reltype="has_a" key="id" map="" class="aou"/>
1375                         <link field="item_owning_ou" reltype="has_a" key="id" map="" class="aou"/>
1376                         <link field="item_circ_ou" reltype="has_a" key="id" map="" class="aou"/>
1377                         <link field="usr_grp" reltype="has_a" key="id" map="" class="pgt"/>
1378                         <link field="requestor_grp" reltype="has_a" key="id" map="" class="pgt"/>
1379                         <link field="circ_modifier" reltype="has_a" key="code" map="" class="ccm"/>
1380                         <link field="marc_type" reltype="has_a" key="code" map="" class="citm"/>
1381                         <link field="marc_form" reltype="has_a" key="code" map="" class="cifm"/>
1382                         <link field="marc_bib_level" reltype="has_a" key="code" map="" class="cblvl"/>
1383                         <link field="marc_vr_format" reltype="has_a" key="code" map="" class="cvrfm"/>
1384                         <link field="age_hold_protect_rule" reltype="has_a" key="id" map="" class="crahp"/>
1385             <link field="transit_range" reltype="has_a" key="id" map="" class="aout"/>
1386                 </links>
1387         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1388             <actions>
1389                 <create permission="ADMIN_HOLD_MATRIX_MATCHPOINT" global_required="true"/>
1390                 <retrieve permission="ADMIN_HOLD_MATRIX_MATCHPOINT VIEW_HOLD_MATRIX_MATCHPOINT" global_required="true"/>
1391                 <update permission="ADMIN_HOLD_MATRIX_MATCHPOINT" global_required="true"/>
1392                 <delete permission="ADMIN_HOLD_MATRIX_MATCHPOINT" global_required="true"/>
1393             </actions>
1394         </permacrud>
1395         </class>
1396
1397         <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">
1398                 <fields oils_persist:primary="id" oils_persist:sequence="config.circ_matrix_matchpoint_id_seq">
1399                         <field reporter:label="Matchpoint ID" name="id" reporter:datatype="id"/>
1400                         <field reporter:label="Renewal?" name="is_renewal" reporter:datatype="bool"/>
1401                         <field reporter:label="Active?" name="active" reporter:datatype="bool"/>
1402                         <field reporter:label="Org Unit" name="org_unit" reporter:datatype="org_unit" oils_obj:required="true"/>
1403                         <field reporter:label="Copy Circ Lib" name="copy_circ_lib" reporter:datatype="org_unit"/>
1404                         <field reporter:label="Copy Owning Lib" name="copy_owning_lib" reporter:datatype="org_unit"/>
1405                         <field reporter:label="User Home Lib" name="user_home_ou" reporter:datatype="org_unit"/>
1406                         <field reporter:label="Permission Group" name="grp" reporter:datatype="link" oils_obj:required="true"/>
1407                         <field reporter:label="Circulation Modifier" name="circ_modifier" oils_persist:primitive="string" reporter:datatype="link"/>
1408                         <field reporter:label="MARC Type" name="marc_type" oils_persist:primitive="string" reporter:datatype="link"/>
1409                         <field reporter:label="MARC Form" name="marc_form" oils_persist:primitive="string" reporter:datatype="link"/>
1410                         <field reporter:label="MARC Bib Level" name="marc_bib_level" oils_persist:primitive="string" reporter:datatype="link"/>
1411                         <field reporter:label="Videorecording Format" name="marc_vr_format" oils_persist:primitive="string" reporter:datatype="link"/>
1412                         <field reporter:label="Reference?" name="ref_flag" reporter:datatype="bool"/>
1413             <field reporter:label="Juvenile?" name="juvenile_flag" reporter:datatype="bool"/>
1414                         <field reporter:label="User Age: Lower Bound" name="usr_age_lower_bound" reporter:datatype="text"/>
1415                         <field reporter:label="User Age: Upper Bound" name="usr_age_upper_bound" reporter:datatype="text"/>
1416             <field reporter:label="Item Age &lt;" name="item_age" reporter:datatype="text"/>
1417                         <field reporter:label="Circulate?" name="circulate" reporter:datatype="bool"/>
1418                         <field reporter:label="Duration Rule" name="duration_rule" reporter:datatype="link"/>
1419                         <field reporter:label="Recurring Fine Rule" name="recurring_fine_rule" reporter:datatype="link"/>
1420                         <field reporter:label="Max Fine Rule" name="max_fine_rule" reporter:datatype="link"/>
1421             <field reporter:label="Hard Due Date" name="hard_due_date" reporter:datatype="link"/>
1422             <field reporter:label="Renewals Override" name="renewals" reporter:datatype="int"/>
1423             <field reporter:label="Grace Period Override" name="grace_period" reporter:datatype="interval"/>
1424                         <field reporter:label="Script Test" name="script_test" reporter:datatype="text"/>
1425                         <field name="total_copy_hold_ratio" reporter:datatype="float" reporter:label="Minimum Total Copy/Hold Ratio"/>
1426                         <field name="available_copy_hold_ratio" reporter:datatype="float" reporter:label="Minimum Available Copy/Hold Ratio"/>
1427                 </fields>
1428                 <links>
1429                         <link field="org_unit" reltype="has_a" key="id" map="" class="aou"/>
1430                         <link field="copy_circ_lib" reltype="has_a" key="id" map="" class="aou"/>
1431                         <link field="copy_owning_lib" reltype="has_a" key="id" map="" class="aou"/>
1432                         <link field="user_home_ou" reltype="has_a" key="id" map="" class="aou"/>
1433                         <link field="grp" reltype="has_a" key="id" map="" class="pgt"/>
1434                         <link field="circ_modifier" reltype="has_a" key="code" map="" class="ccm"/>
1435                         <link field="marc_type" reltype="has_a" key="code" map="" class="citm"/>
1436                         <link field="marc_form" reltype="has_a" key="code" map="" class="cifm"/>
1437                         <link field="marc_bib_level" reltype="has_a" key="code" map="" class="cblvl"/>
1438                         <link field="marc_vr_format" reltype="has_a" key="code" map="" class="cvrfm"/>
1439                         <link field="duration_rule" reltype="has_a" key="id" map="" class="crcd"/>
1440                         <link field="max_fine_rule" reltype="has_a" key="id" map="" class="crmf"/>
1441                         <link field="recurring_fine_rule" reltype="has_a" key="id" map="" class="crrf"/>
1442             <link field="hard_due_date" reltype="has_a" key="id" map="" class="chdd"/>
1443                 </links>
1444         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1445             <actions>
1446                 <create permission="ADMIN_CIRC_MATRIX_MATCHPOINT" context_field='org_unit'/>
1447                 <retrieve permission="ADMIN_CIRC_MATRIX_MATCHPOINT VIEW_CIRC_MATRIX_MATCHPOINT" context_field='org_unit'/>
1448                 <update permission="ADMIN_CIRC_MATRIX_MATCHPOINT" context_field='org_unit'/>
1449                 <delete permission="ADMIN_CIRC_MATRIX_MATCHPOINT" context_field='org_unit'/>
1450             </actions>
1451         </permacrud>
1452         </class>
1453
1454         <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">
1455                 <fields oils_persist:primary="id" oils_persist:sequence="config.circ_matrix_circ_mod_test_id_seq">
1456                         <field reporter:label="Test ID" name="id" reporter:datatype="id"/>
1457                         <field reporter:label="Matchpoint ID" name="matchpoint" reporter:datatype="link"/>
1458                         <field reporter:label="Items Out" name="items_out" reporter:datatype="int"/>
1459                 </fields>
1460                 <links>
1461                         <link field="matchpoint" reltype="has_a" key="id" map="" class="ccmm"/>
1462                 </links>
1463         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1464             <actions>
1465                 <create permission="ADMIN_CIRC_MATRIX_MATCHPOINT">
1466                     <context link="matchpoint" field="org_unit"/>
1467                 </create>
1468                 <retrieve/>
1469                 <update permission="ADMIN_CIRC_MATRIX_MATCHPOINT">
1470                     <context link="matchpoint" field="org_unit"/>
1471                 </update>
1472                 <delete permission="ADMIN_CIRC_MATRIX_MATCHPOINT">
1473                     <context link="matchpoint" field="org_unit"/>
1474                 </delete>
1475             </actions>
1476         </permacrud>
1477         </class>
1478
1479         <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">
1480                 <fields oils_persist:primary="id" oils_persist:sequence="config.circ_matrix_circ_mod_test_map_id_seq">
1481                         <field reporter:label="Entry ID" name="id" reporter:datatype="id"/>
1482                         <field reporter:label="Circulation Modifier Subtest ID" name="circ_mod_test" reporter:datatype="link"/>
1483                         <field reporter:label="Circulation Modifier" name="circ_mod" reporter:datatype="link"/>
1484                 </fields>
1485                 <links>
1486                         <link field="circ_mod_test" reltype="has_a" key="id" map="" class="ccmcmt"/>
1487                         <link field="circ_mod" reltype="has_a" key="code" map="" class="ccm"/>
1488                 </links>
1489         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1490             <actions>
1491                 <create permission="ADMIN_CIRC_MATRIX_MATCHPOINT">
1492                     <context link="circ_mod_test" jump="matchpoint" field="org_unit"/>
1493                 </create>
1494                 <retrieve/>
1495                 <update permission="ADMIN_CIRC_MATRIX_MATCHPOINT">
1496                     <context link="circ_mod_test" jump="matchpoint" field="org_unit"/>
1497                 </update>
1498                 <delete permission="ADMIN_CIRC_MATRIX_MATCHPOINT">
1499                     <context link="circ_mod_test" jump="matchpoint" field="org_unit"/>
1500                 </delete>
1501             </actions>
1502         </permacrud>
1503         </class>
1504
1505         <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">
1506                 <fields oils_persist:primary="id" oils_persist:sequence="config.identification_type_id_seq">
1507                         <field reporter:label="Identification ID" name="id" reporter:selector="name" reporter:datatype="id"/>
1508                         <field reporter:label="Identification Name" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
1509                 </fields>
1510                 <links/>
1511         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1512             <actions>
1513                 <create permission="ADMIN_IDENT_TYPE" global_required="true"/>
1514                 <retrieve/>
1515                 <update permission="ADMIN_IDENT_TYPE" global_required="true"/>
1516                 <delete permission="ADMIN_IDENT_TYPE" global_required="true"/>
1517             </actions>
1518         </permacrud>
1519         </class>
1520
1521         <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">
1522                 <fields oils_persist:primary="id" oils_persist:sequence="action.survey_question_id_seq">
1523                         <field reporter:label="Answers" name="answers" oils_persist:virtual="true" reporter:datatype="link"/>
1524                         <field reporter:label="Responses" name="responses" oils_persist:virtual="true" reporter:datatype="link"/>
1525                         <field reporter:label="Question ID" name="id" reporter:datatype="id" />
1526                         <field reporter:label="Question" name="question" reporter:datatype="text"/>
1527                         <field reporter:label="Survey" name="survey" reporter:datatype="link"/>
1528                 </fields>
1529                 <links>
1530                         <link field="survey" reltype="has_a" key="id" map="" class="asv"/>
1531                         <link field="responses" reltype="has_many" key="question" map="" class="asvr"/>
1532                         <link field="answers" reltype="has_many" key="question" map="" class="asva"/>
1533                 </links>
1534         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1535             <actions>
1536                 <create permission="ADMIN_SURVEY">
1537                     <context link="survey" field="owner"/>
1538                 </create>
1539                 <retrieve/>
1540                 <update permission="ADMIN_SURVEY">
1541                     <context link="survey" field="owner"/>
1542                 </update>
1543                 <delete permission="ADMIN_SURVEY">
1544                     <context link="survey" field="owner"/>
1545                 </delete>
1546             </actions>
1547         </permacrud>
1548         </class>
1549         <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">
1550                 <fields oils_persist:primary="id" oils_persist:sequence="">
1551                         <field reporter:label="Balance Owed" name="balance_owed" reporter:datatype="money"/>
1552                         <field reporter:label="Transaction ID" name="id" reporter:datatype="id"/>
1553                         <field reporter:label="Last Billing Note" name="last_billing_note" reporter:datatype="text"/>
1554                         <field reporter:label="Last Billing Timestamp" name="last_billing_ts" reporter:datatype="timestamp"/>
1555                         <field reporter:label="Last Billing Type" name="last_billing_type" reporter:datatype="text"/>
1556                         <field reporter:label="Last Payment Note" name="last_payment_note" reporter:datatype="text"/>
1557                         <field reporter:label="Last Payment Timestamp" name="last_payment_ts" reporter:datatype="timestamp"/>
1558                         <field reporter:label="Last Payment Type" name="last_payment_type" reporter:datatype="text"/>
1559                         <field reporter:label="Total Owed" name="total_owed" reporter:datatype="money"/>
1560                         <field reporter:label="Total Paid" name="total_paid" reporter:datatype="money"/>
1561                         <field reporter:label="Billed User" name="usr" reporter:datatype="link"/>
1562                         <field reporter:label="Transaction Finish Time" name="xact_finish" reporter:datatype="timestamp" />
1563                         <field reporter:label="Transaction Start Time" name="xact_start" reporter:datatype="timestamp" />
1564                         <field reporter:label="Transaction Type" name="xact_type" reporter:datatype="text"/>
1565                 </fields>
1566                 <links>
1567                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
1568                 </links>
1569         </class>
1570         <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">
1571                 <fields oils_persist:primary="id" oils_persist:sequence="">
1572                         <field reporter:label="Balance Owed" name="balance_owed" reporter:datatype="money"/>
1573                         <field reporter:label="Transaction ID" name="id" reporter:datatype="id"/>
1574                         <field reporter:label="Last Billing Note" name="last_billing_note" reporter:datatype="text"/>
1575                         <field reporter:label="Last Billing Timestamp" name="last_billing_ts" reporter:datatype="timestamp"/>
1576                         <field reporter:label="Last Billing Type" name="last_billing_type" reporter:datatype="text"/>
1577                         <field reporter:label="Last Payment Note" name="last_payment_note" reporter:datatype="text"/>
1578                         <field reporter:label="Last Payment Timestamp" name="last_payment_ts" reporter:datatype="timestamp"/>
1579                         <field reporter:label="Last Payment Type" name="last_payment_type" reporter:datatype="text"/>
1580                         <field reporter:label="Total Owed" name="total_owed" reporter:datatype="money"/>
1581                         <field reporter:label="Total Paid" name="total_paid" reporter:datatype="money"/>
1582                         <field reporter:label="Billed User" name="usr" reporter:datatype="link"/>
1583                         <field reporter:label="Transaction Finish Time" name="xact_finish" reporter:datatype="timestamp" />
1584                         <field reporter:label="Transaction Start Time" name="xact_start" reporter:datatype="timestamp" />
1585                         <field reporter:label="Transaction Type" name="xact_type" reporter:datatype="text"/>
1586                         <field reporter:label="Billing Location" name="billing_location" reporter:datatype="link"/>
1587                 </fields>
1588                 <links>
1589                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
1590                         <link field="billing_location" reltype="has_a" key="id" map="" class="aou"/>
1591                 </links>
1592         </class>
1593         <class id="aun" controller="open-ils.cstore" oils_obj:fieldmapper="actor::usr_note" oils_persist:tablename="actor.usr_note" reporter:label="User Note">
1594                 <fields oils_persist:primary="id" oils_persist:sequence="actor.usr_note_id_seq">
1595                         <field reporter:label="Creation Date/Time" name="create_date" reporter:datatype="timestamp"/>
1596                         <field reporter:label="Creating Staff" name="creator" reporter:datatype="link"/>
1597                         <field reporter:label="Note ID" name="id" reporter:datatype="id" />
1598                         <field reporter:label="Is OPAC Visible?" name="pub" reporter:datatype="bool"/>
1599                         <field reporter:label="Note Title" name="title" reporter:datatype="text"/>
1600                         <field reporter:label="User" name="usr" reporter:datatype="link" />
1601                         <field reporter:label="Note Content" name="value" reporter:datatype="text"/>
1602                 </fields>
1603                 <links>
1604                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
1605                         <link field="creator" reltype="has_a" key="id" map="" class="au"/>
1606                 </links>
1607         </class>
1608         <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">
1609                 <fields oils_persist:primary="id" oils_persist:sequence="actor.usr_password_reset_id_seq">
1610                         <field reporter:label="Request ID" name="id" reporter:datatype="id"/>
1611                         <field reporter:label="UUID" name="uuid" reporter:datatype="text"/>
1612                         <field reporter:label="User" name="usr" reporter:datatype="link"/>
1613                         <field reporter:label="Request Time" name="request_time" reporter:datatype="timestamp"/>
1614                         <field reporter:label="Was Reset?" name="has_been_reset" reporter:datatype="bool"/>
1615                 </fields>
1616                 <links>
1617                         <link field="usr" reltype="has_a" key="id" class="au"/>
1618                 </links>
1619         </class>
1620         <class id="aus" controller="open-ils.cstore" oils_obj:fieldmapper="actor::user_setting" oils_persist:tablename="actor.usr_setting" reporter:label="User Setting">
1621                 <fields oils_persist:primary="id" oils_persist:sequence="actor.usr_setting_id_seq">
1622                         <field reporter:label="Setting ID" name="id" reporter:datatype="id" />
1623                         <field reporter:label="Name" name="name" reporter:datatype="link"/>
1624                         <field reporter:label="User" name="usr" reporter:datatype="link"/>
1625                         <field reporter:label="Value" name="value" reporter:datatype="text"/>
1626                 </fields>
1627                 <links>
1628                         <link field="name" reltype="has_a" key="name" map="" class="cust"/>
1629                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
1630                 </links>
1631         </class>
1632         <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">
1633                 <fields oils_persist:primary="id" oils_persist:sequence="metabib.author_field_entry_id_seq">
1634                         <field name="field" reporter:datatype="link"/>
1635                         <field name="id" reporter:datatype="id" />
1636                         <field name="source" reporter:datatype="link"/>
1637                         <field name="value" reporter:datatype="text"/>
1638                 </fields>
1639                 <links>
1640                         <link field="source" reltype="has_a" key="id" map="" class="bre"/>
1641                         <link field="field" reltype="has_a" key="id" map="" class="cmf"/>
1642                 </links>
1643         </class>
1644         <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">
1645                 <fields oils_persist:primary="id" oils_persist:sequence="action.in_house_use_id_seq">
1646                         <field reporter:label="Use ID" name="id" reporter:datatype="id" />
1647                         <field reporter:label="Item" name="item" reporter:datatype="int" />
1648                         <field reporter:label="Using Library" name="org_unit" reporter:datatype="org_unit"/>
1649                         <field reporter:label="Recording Staff" name="staff" reporter:datatype="link"/>
1650                         <field reporter:label="Use Date/Time" name="use_time" reporter:datatype="timestamp"/>
1651                 </fields>
1652                 <links>
1653                         <link field="item" reltype="has_a" key="id" map="" class="acp"/>
1654                         <link field="staff" reltype="has_a" key="id" map="" class="au"/>
1655                         <link field="org_unit" reltype="has_a" key="id" map="" class="aou"/>
1656                 </links>
1657         </class>
1658         <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">
1659                 <fields oils_persist:primary="id" oils_persist:sequence="action.non_cat_in_house_use_id_seq">
1660                         <field reporter:label="Use ID" name="id" reporter:datatype="id" />
1661                         <field reporter:label="Item Type" name="item_type" reporter:datatype="link"/>
1662                         <field reporter:label="Using Library" name="org_unit" reporter:datatype="org_unit"/>
1663                         <field reporter:label="Recording Staff" name="staff" reporter:datatype="link"/>
1664                         <field reporter:label="Use Date/Time" name="use_time" reporter:datatype="timestamp"/>
1665                 </fields>
1666                 <links>
1667                         <link field="item_type" reltype="has_a" key="id" map="" class="cnct"/>
1668                         <link field="staff" reltype="has_a" key="id" map="" class="au"/>
1669                         <link field="org_unit" reltype="has_a" key="id" map="" class="aou"/>
1670                 </links>
1671         </class>
1672         <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">
1673                 <fields oils_persist:primary="id" oils_persist:sequence="action.transit_copy_id_seq">
1674                         <field reporter:label="Pretransit Copy Status" name="copy_status" reporter:datatype="bool"/>
1675                         <field reporter:label="Destination" name="dest" reporter:datatype="link"/>
1676                         <field reporter:label="Receive Date/Time" name="dest_recv_time" reporter:datatype="timestamp"/>
1677                         <field reporter:label="Transit ID" name="id" reporter:datatype="id"/>
1678                         <field reporter:label="Is Persistent? (unused)" name="persistant_transfer" reporter:datatype="bool"/>
1679                         <field reporter:label="Previous Hop (unused)" name="prev_hop" reporter:datatype="link"/>
1680                         <field reporter:label="Source" name="source" reporter:datatype="link"/>
1681                         <field reporter:label="Prev Destination" name="prev_dest" reporter:datatype="org_unit"/>
1682                         <field reporter:label="Send Date/Time" name="source_send_time" reporter:datatype="timestamp"/>
1683                         <field reporter:label="Transited Copy" name="target_copy" reporter:datatype="link"/>
1684                         <field reporter:label="Hold Transit" name="hold_transit_copy" oils_persist:virtual="true" reporter:datatype="link"/>
1685                 </fields>
1686                 <links>
1687                         <link field="hold_transit_copy" reltype="might_have" key="id" map="" class="ahtc"/>
1688                         <link field="source" reltype="has_a" key="id" map="" class="aou"/>
1689                         <link field="prev_dest" reltype="has_a" key="id" map="" class="aou"/>
1690                         <link field="copy_status" reltype="has_a" key="id" map="" class="ccs"/>
1691                         <link field="dest" reltype="has_a" key="id" map="" class="aou"/>
1692                         <link field="target_copy" reltype="has_a" key="id" map="" class="acp"/>
1693                 </links>
1694         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1695             <actions>
1696                 <create permission="TRANSIT_COPY" context_field="owner">
1697                     <context link="target_copy" field="circ_lib"/>
1698                 </create>
1699                 <retrieve/>
1700                 <update permission="UPDATE_TRANSIT" context_field="dest source"/>
1701                 <delete permission="DELETE_TRANSIT" context_field="dest source"/>
1702             </actions>
1703         </permacrud>
1704         </class>
1705         <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">
1706                 <fields oils_persist:primary="id" oils_persist:sequence="action.survey_response_id_seq">
1707                         <field reporter:label="Answer" name="answer" reporter:datatype="link"/>
1708                         <field reporter:label="Answer Date/Time" name="answer_date" reporter:datatype="timestamp"/>
1709                         <field reporter:label="Effective Answer Date/Time" name="effective_date" reporter:datatype="timestamp"/>
1710                         <field reporter:label="Answer ID" name="id" reporter:datatype="id" />
1711                         <field reporter:label="Question" name="question" reporter:datatype="link"/>
1712                         <field reporter:label="Response Group ID" name="response_group_id" reporter:datatype="int" />
1713                         <field reporter:label="Survey" name="survey" reporter:datatype="link"/>
1714                         <field reporter:label="Responding User" name="usr" reporter:datatype="link"/>
1715                 </fields>
1716                 <links>
1717                         <link field="question" reltype="has_a" key="id" map="" class="asvq"/>
1718                         <link field="survey" reltype="has_a" key="id" map="" class="asv"/>
1719                         <link field="answer" reltype="has_a" key="id" map="" class="asva"/>
1720                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
1721                 </links>
1722         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1723             <actions>
1724                 <create permission="ADMIN_SURVEY">
1725                     <context link="survey" field="owner"/>
1726                 </create>
1727                 <retrieve/>
1728                 <update permission="ADMIN_SURVEY">
1729                     <context link="survey" field="owner"/>
1730                 </update>
1731                 <delete permission="ADMIN_SURVEY">
1732                     <context link="survey" field="owner"/>
1733                 </delete>
1734             </actions>
1735         </permacrud>
1736         </class>
1737         <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">
1738                 <fields oils_persist:primary="id" oils_persist:sequence="container.copy_bucket_item_id_seq">
1739                         <field name="bucket" />
1740                         <field name="id" reporter:datatype="id" />
1741                         <field name="target_copy" reporter:datatype="link"/>
1742                         <field name="create_time" reporter:datatype="timestamp" />
1743                         <field name="pos" reporter:datatype="int" />
1744                         <field name="notes" oils_persist:virtual="true" reporter:datatype="link" />
1745                 </fields>
1746                 <links>
1747                         <link field="target_copy" reltype="has_a" key="id" map="" class="acp"/>
1748                         <link field="bucket" reltype="has_a" key="id" map="" class="ccb"/>
1749             <link field="notes" reltype="has_many" map="" key="item" class="ccbin"/>
1750                 </links>
1751         </class>
1752         <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">
1753                 <fields oils_persist:primary="id" oils_persist:sequence="container.copy_bucket_item_note_id_seq">
1754                         <field name="id" reporter:datatype="id" />
1755                         <field name="item" reporter:datatype="link"/>
1756                         <field name="note" reporter:datatype="text" />
1757                 </fields>
1758                 <links>
1759                         <link field="item" reltype="has_a" key="id" map="" class="ccbi"/>
1760                 </links>
1761         </class>
1762
1763         <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">
1764                 <fields oils_persist:primary="id" oils_persist:sequence="authority.control_set_id_seq">
1765                         <field reporter:label="Control Set ID" name="id" reporter:datatype="id" reporter:selector="name"/>
1766                         <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true" oils_obj:required="true" />
1767                         <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true" />
1768                         <field reporter:label="Controlling Authority Fields" name="authority_fields" reporter:datatype="link" oils_persist:virtual="true"/>
1769                         <field reporter:label="Thesauri" name="thesauri" reporter:datatype="link" oils_persist:virtual="true"/>
1770                 </fields>
1771                 <links>
1772                         <link field="authority_fields" reltype="has_many" key="control_set" map="" class="acsaf"/>
1773                         <link field="thesauri" reltype="has_many" key="control_set" map="" class="at"/>
1774                 </links>
1775                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1776                         <actions>
1777                                 <create permission="CREATE_AUTHORITY_CONTROL_SET" global_required="true"/>
1778                                 <retrieve/>
1779                                 <update permission="UPDATE_AUTHORITY_CONTROL_SET" global_required="true"/>
1780                                 <delete permission="DELETE_AUTHORITY_CONTROL_SET" global_required="true"/>
1781                         </actions>
1782                 </permacrud>
1783         </class>
1784
1785         <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">
1786                 <fields oils_persist:primary="id" oils_persist:sequence="authority.control_set_authority_field_id_seq">
1787                         <field reporter:label="Control Set Authority Field ID" name="id" reporter:datatype="id" reporter:selector="name"/>
1788                         <field reporter:label="Main Entry" name="main_entry" reporter:datatype="link"/>
1789                         <field reporter:label="Control Set" name="control_set" reporter:datatype="link"/>
1790                         <field reporter:label="Tag" name="tag" reporter:datatype="text" oils_obj:required="true" oils_obj:validate="^.{3}$"/>
1791                         <field reporter:label="Subfield List" name="sf_list" reporter:datatype="text" />
1792                         <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true" oils_obj:required="true" />
1793                         <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true" />
1794                         <field reporter:label="Subordinate Entries" name="sub_entries" reporter:datatype="link" oils_persist:virtual="true"/>
1795                         <field reporter:label="Controlled Bib Fields" name="bib_fields" reporter:datatype="link" oils_persist:virtual="true"/>
1796                         <field reporter:label="Thesauri" name="thesauri" reporter:datatype="link" oils_persist:virtual="true"/>
1797                         <field reporter:label="Browse Axis Maps" name="axis_maps" reporter:datatype="link" oils_persist:virtual="true"/>
1798                 </fields>
1799                 <links>
1800                         <link field="axis_maps" reltype="has_many" key="field" map="" class="abaafm"/>
1801                         <link field="control_set" reltype="has_a" key="id" map="" class="acs"/>
1802                         <link field="bib_fields" reltype="has_many" key="authority_field" map="" class="acsbf"/>
1803                         <link field="thesauri" reltype="has_many" key="control_set" map="" class="at"/>
1804                         <link field="main_entry" reltype="has_a" key="id" map="" class="acsaf"/>
1805                         <link field="sub_entries" reltype="has_many" key="main_entry" map="" class="acsaf"/>
1806                 </links>
1807                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1808                         <actions>
1809                                 <create permission="CREATE_AUTHORITY_CONTROL_SET" global_required="true"/>
1810                                 <retrieve/>
1811                                 <update permission="UPDATE_AUTHORITY_CONTROL_SET" global_required="true"/>
1812                                 <delete permission="UPDATE_AUTHORITY_CONTROL_SET" global_required="true"/>
1813                         </actions>
1814                 </permacrud>
1815         </class>
1816
1817         <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">
1818                 <fields oils_persist:primary="id" oils_persist:sequence="authority.control_set_bib_field_id_seq">
1819                         <field reporter:label="Controlled Bib Field ID" name="id" reporter:datatype="id" reporter:selector="name"/>
1820                         <field reporter:label="Controlling Authority Field" name="authority_field" reporter:datatype="link"/>
1821                         <field reporter:label="Tag" name="tag" reporter:datatype="text" oils_obj:required="true" oils_obj:validate="^.{3}$"/>
1822                 </fields>
1823                 <links>
1824                         <link field="authority_field" reltype="has_a" key="id" map="" class="acsaf"/>
1825                 </links>
1826                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1827                         <actions>
1828                                 <create permission="CREATE_AUTHORITY_CONTROL_SET" global_required="true"/>
1829                                 <retrieve/>
1830                                 <update permission="UPDATE_AUTHORITY_CONTROL_SET" global_required="true"/>
1831                                 <delete permission="UPDATE_AUTHORITY_CONTROL_SET" global_required="true"/>
1832                         </actions>
1833                 </permacrud>
1834         </class>
1835
1836         <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">
1837                 <fields oils_persist:primary="code">
1838                         <field reporter:label="Thesaurus Code" name="code" reporter:datatype="id" reporter:selector="name"/>
1839                         <field reporter:label="Control Set" name="control_set" reporter:datatype="link"/>
1840                         <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true" oils_obj:required="true" />
1841                         <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true" />
1842                 </fields>
1843                 <links>
1844                         <link field="control_set" reltype="has_a" key="id" map="" class="acs"/>
1845                 </links>
1846                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1847                         <actions>
1848                                 <create permission="CREATE_AUTHORITY_CONTROL_SET" global_required="true"/>
1849                                 <retrieve/>
1850                                 <update permission="UPDATE_AUTHORITY_CONTROL_SET" global_required="true"/>
1851                                 <delete permission="UPDATE_AUTHORITY_CONTROL_SET" global_required="true"/>
1852                         </actions>
1853                 </permacrud>
1854         </class>
1855
1856         <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">
1857                 <fields oils_persist:primary="code">
1858                         <field reporter:label="Code" name="code" reporter:datatype="id" reporter:selector="name" oils_obj:validate="^\S+$"/>
1859                         <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true" oils_obj:required="true"/>
1860                         <field reporter:label="Sorter Attribute" name="sorter" reporter:datatype="link"/>
1861                         <field reporter:label="Description" name="description" reporter:datatype="text"/>
1862                         <field reporter:label="Authority Fields" name="fields" reporter:datatype="link" oils_persist:virtual="true"/>
1863                         <field reporter:label="Authority Field Maps" name="maps" reporter:datatype="link" oils_persist:virtual="true"/>
1864                 </fields>
1865                 <links>
1866                         <link field="sorter" reltype="has_a" key="name" map="" class="crad"/>
1867                         <link field="fields" reltype="has_many" key="axis" map="field" class="abaafm"/>
1868                         <link field="maps" reltype="has_many" key="axis" map="" class="abaafm"/>
1869                 </links>
1870                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1871                         <actions>
1872                                 <create permission="CREATE_AUTHORITY_CONTROL_SET" global_required="true"/>
1873                                 <retrieve/>
1874                                 <update permission="UPDATE_AUTHORITY_CONTROL_SET" global_required="true"/>
1875                                 <delete permission="UPDATE_AUTHORITY_CONTROL_SET" global_required="true"/>
1876                         </actions>
1877                 </permacrud>
1878         </class>
1879
1880     <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">
1881         <fields oils_persist:primary="id" oils_persist:sequence="authority.browse_axis_authority_field_map_id_seq">
1882             <field reporter:label="Axis Authority Field Map ID" name="id" reporter:datatype="id"/>
1883             <field reporter:label="Authority Field" name="field" oils_obj:required="true" reporter:datatype="link"/>
1884             <field reporter:label="Axis" name="axis" reporter:datatype="link" oils_obj:required="true"/>
1885         </fields>
1886         <links>
1887             <link field="field" reltype="has_a" key="id" map="" class="acsaf"/>
1888             <link field="axis" reltype="has_a" key="code" map="" class="aba"/>
1889         </links>
1890         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1891             <actions>
1892                 <create permission="CREATE_AUTHORITY_CONTROL_SET" global_required="true"/>
1893                 <retrieve/>
1894                 <update permission="UPDATE_AUTHORITY_CONTROL_SET" global_required="true"/>
1895                 <delete permission="UPDATE_AUTHORITY_CONTROL_SET" global_required="true"/>
1896             </actions>
1897         </permacrud>
1898     </class>
1899
1900         <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">
1901                 <fields oils_persist:primary="id" oils_persist:sequence="authority.record_entry_id_seq">
1902                         <field name="active" reporter:datatype="bool"/>
1903                         <field name="create_date" reporter:datatype="timestamp"/>
1904                         <field name="creator" />
1905                         <field name="deleted" reporter:datatype="bool"/>
1906                         <field name="edit_date" reporter:datatype="timestamp"/>
1907                         <field name="editor" />
1908                         <field name="id" reporter:datatype="id" />
1909                         <field name="last_xact_id" />
1910                         <field name="marc" />
1911                         <field name="source" />
1912                         <field reporter:label="Control Set" name="control_set" reporter:datatype="link"/>
1913                         <field reporter:label="Owner" name="owner"  reporter:datatype="org_unit"/>
1914                         <field name="fixed_fields" oils_persist:virtual="true" reporter:datatype="link"/>
1915                         <field name="notes" oils_persist:virtual="true" reporter:datatype="link"/>
1916                         <field name="bib_links" oils_persist:virtual="true" reporter:datatype="link"/>
1917                 </fields>
1918                 <links>
1919                         <link field="control_set" reltype="has_a" key="id" map="" class="acs"/>
1920                         <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
1921                         <link field="editor" reltype="has_a" key="id" map="" class="au"/>
1922                         <link field="creator" reltype="has_a" key="id" map="" class="au"/>
1923                         <link field="notes" reltype="has_many" key="record" map="" class="arn"/>
1924                         <link field="bib_links" reltype="has_many" key="authority" map="" class="abl"/>
1925                         <link field="fixed_fields" reltype="might_have" key="record" map="" class="ard"/>
1926                 </links>
1927                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1928                         <actions>
1929                                 <create permission="CREATE_MARC IMPORT_MARC" global_required="true"/>
1930                                 <retrieve/>
1931                                 <update permission="UPDATE_MARC" global_required="true"/>
1932                                 <delete permission="UPDATE_MARC" global_required="true"/>
1933                         </actions>
1934                 </permacrud>
1935         </class>
1936         <class id="ard" controller="open-ils.cstore" oils_obj:fieldmapper="authority::record_descriptor" oils_persist:tablename="authority.rec_descriptor" reporter:label="Authority Record Descriptor">
1937                 <fields oils_persist:primary="id" oils_persist:sequence="authority.rec_descriptor_id_seq">
1938                         <field name="char_encoding" />
1939                         <field name="id" />
1940                         <field name="record" />
1941                         <field name="record_status" />
1942                         <field name="thesaurus" />
1943                 </fields>
1944                 <links>
1945                         <link field="record" reltype="has_a" key="id" map="" class="are"/>
1946                         <link field="thesaurus" reltype="might_have" key="code" map="" class="at"/>
1947                 </links>
1948         </class>
1949         <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">
1950                 <fields oils_persist:primary="id" oils_persist:sequence="authority.bib_linking_id_seq">
1951                         <field name="id" reporter:datatype="id" />
1952                         <field name="bib" reporter:datatype="link" />
1953                         <field name="authority" reporter:datatype="link" />
1954                 </fields>
1955                 <links>
1956                         <link field="bib" reltype="has_a" key="id" map="" class="bre"/>
1957                         <link field="authority" reltype="has_a" key="id" map="" class="are"/>
1958                 </links>
1959         </class>
1960         <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">
1961                 <fields oils_persist:primary="code" oils_persist:sequence="">
1962                         <field reporter:label="Language Code" name="code" reporter:selector="value" reporter:datatype="text"/>
1963                         <field reporter:label="Language" name="value" reporter:datatype="text" oils_persist:i18n="true"/>
1964                 </fields>
1965                 <links/>
1966         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1967             <actions>
1968                 <create permission="CREATE_MARC_CODE" global_required="true"/>
1969                 <retrieve/>
1970                 <update permission="UPDATE_MARC_CODE" global_required="true"/>
1971                 <delete permission="DELETE_MARC_CODE" global_required="true"/>
1972             </actions>
1973         </permacrud>
1974         </class>
1975         <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">
1976                 <fields oils_persist:primary="id" oils_persist:sequence="money.payment_id_seq">
1977                         <field name="accepting_usr" />
1978                         <field name="amount" reporter:datatype="money" />
1979                         <field name="amount_collected" reporter:datatype="money" />
1980                         <field name="approval_code" reporter:datatype="text"/>
1981                         <field name="cash_drawer" reporter:datatype="link"/>
1982                         <field name="cc_first_name" reporter:datatype="text"/>
1983                         <field name="cc_last_name" reporter:datatype="text"/>
1984                         <field name="cc_number" reporter:datatype="text"/>
1985                         <field name="cc_order_number" reporter:datatype="text"/>
1986                         <field name="cc_type" reporter:datatype="text"/>
1987                         <field name="cc_processor" reporter:datatype="text"/>
1988                         <field name="expire_month" reporter:datatype="int" />
1989                         <field name="expire_year" reporter:datatype="int" />
1990                         <field name="id" reporter:datatype="id" />
1991                         <field name="note" reporter:datatype="text"/>
1992                         <field name="payment_ts" reporter:datatype="timestamp"/>
1993                         <field name="xact" reporter:datatype="link"/>
1994                         <field name="payment_type" oils_persist:virtual="true" reporter:datatype="text"/>
1995                         <field name="payment" oils_persist:virtual="true" reporter:datatype="link"/>
1996                 </fields>
1997                 <links>
1998                         <link field="payment" reltype="might_have" key="id" map="" class="mp"/>
1999                         <link field="accepting_usr" reltype="has_a" key="id" map="" class="au"/>
2000                         <link field="cash_drawer" reltype="has_a" key="id" map="" class="aws"/>
2001                         <link field="xact" reltype="has_a" key="id" map="" class="mbt"/>
2002                 </links>
2003         </class>
2004         <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">
2005                 <fields oils_persist:primary="name">
2006                         <field reporter:label="Name" name="name" reporter:datatype="text" />
2007                         <field reporter:label="Namespace URI" name="namespace_uri" reporter:datatype="text"/>
2008                         <field reporter:label="Namespace Prefix" name="prefix" reporter:datatype="text"/>
2009                         <field reporter:label="XSLT" name="xslt" reporter:datatype="text" />
2010                 </fields>
2011                 <links/>
2012         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2013             <actions>
2014                 <create permission="CREATE_XML_TRANSFORM" global_required="true"/>
2015                 <retrieve/>
2016                 <update permission="UPDATE_XML_TRANSFORM" global_required="true"/>
2017                 <delete permission="DELETE_XML_TRANSFORM" global_required="true"/>
2018             </actions>
2019         </permacrud>
2020         </class>
2021
2022         <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">
2023                 <fields oils_persist:primary="alias">
2024                         <field reporter:label="Alias (RegExp)" name="alias" reporter:datatype="text"/>
2025                         <field reporter:label="Class" name="field_class" reporter:datatype="link"/>
2026                         <field reporter:label="Field" name="field" reporter:datatype="link"/>
2027                 </fields>
2028                 <links>
2029                         <link field="field_class" reltype="has_a" key="name" map="" class="cmc"/>
2030                         <link field="field" reltype="has_a" key="id" map="" class="cmf"/>
2031                 </links>
2032         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2033             <actions>
2034                 <create permission="CREATE_METABIB_SEARCH_ALIAS" global_required="true"/>
2035                 <retrieve/>
2036                 <update permission="UPDATE_METABIB_SEARCH_ALIAS" global_required="true"/>
2037                 <delete permission="DELETE_METABIB_SEARCH_ALIAS" global_required="true"/>
2038             </actions>
2039         </permacrud>
2040         </class>
2041
2042         <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">
2043                 <fields oils_persist:primary="name">
2044                         <field reporter:label="Name" name="name" reporter:datatype="text"/>
2045                         <field reporter:label="Label" name="label" reporter:datatype="text" oils_persist:i18n="true"/>
2046                         <field reporter:label="Fields" name="fields" reporter:datatype="link" oils_persist:virtual="true"/>
2047                 </fields>
2048                 <links>
2049                         <link field="fields" reltype="has_many" key="name" map="" class="cmf"/>
2050                 </links>
2051         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2052             <actions>
2053                 <create permission="CREATE_METABIB_CLASS" global_required="true"/>
2054                 <retrieve/>
2055                 <update permission="UPDATE_METABIB_CLASS" global_required="true"/>
2056                 <delete permission="DELETE_METABIB_CLASS" global_required="true"/>
2057             </actions>
2058         </permacrud>
2059         </class>
2060
2061         <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">
2062                 <fields oils_persist:primary="id" oils_persist:sequence="config.metabib_field_id_seq">
2063                         <field reporter:label="Class" name="field_class" reporter:datatype="link"/>
2064                         <field reporter:label="ID" name="id" reporter:datatype="id" />
2065                         <field reporter:label="Name" name="name" reporter:datatype="text"/>
2066                         <field reporter:label="Label" name="label" reporter:datatype="text" oils_persist:i18n="true"/>
2067                         <field reporter:label="XPath" name="xpath" reporter:datatype="text"/>
2068                         <field reporter:label="Weight" name="weight" reporter:datatype="int" />
2069                         <field reporter:label="Format" name="format" reporter:datatype="link"/>
2070                         <field reporter:label="Search Field" name="search_field" reporter:datatype="bool" />
2071                         <field reporter:label="Facet Field" name="facet_field" reporter:datatype="bool" />
2072                         <field reporter:label="Facet XPath" name="facet_xpath" reporter:datatype="text" />
2073                 </fields>
2074                 <links>
2075                         <link field="field_class" reltype="has_a" key="name" map="" class="cmc"/>
2076                 </links>
2077         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2078             <actions>
2079                 <create permission="CREATE_METABIB_FIELD" global_required="true"/>
2080                 <retrieve/>
2081                 <update permission="UPDATE_METABIB_FIELD" global_required="true"/>
2082                 <delete permission="DELETE_METABIB_FIELD" global_required="true"/>
2083             </actions>
2084         </permacrud>
2085         </class>
2086         <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">
2087                 <fields oils_persist:primary="id" oils_persist:sequence="config.biblio_fingerprint_id_seq">
2088                         <field name="id" reporter:datatype="id" />
2089                         <field name="name" reporter:datatype="text"/>
2090                         <field name="xpath" reporter:datatype="text"/>
2091                         <field name="format" reporter:datatype="link"/>
2092                         <field name="first_word" reporter:datatype="bool" />
2093                 </fields>
2094                 <links/>
2095         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2096             <actions>
2097                 <create permission="CREATE_BIBLIO_FINGERPRINT" global_required="true"/>
2098                 <retrieve/>
2099                 <update permission="UPDATE_BIBLIO_FINGERPRINT" global_required="true"/>
2100                 <delete permission="DELETE_BIBLIO_FINGERPRINT" global_required="true"/>
2101             </actions>
2102         </permacrud>
2103         </class>
2104         <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">
2105                 <fields oils_persist:primary="code" oils_persist:sequence="">
2106                         <field reporter:label="Audience Code" name="code" reporter:selector="value" reporter:datatype="text"/>
2107                         <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true" />
2108                         <field reporter:label="Audience" name="value"  reporter:datatype="text" oils_persist:i18n="true"/>
2109                 </fields>
2110                 <links/>
2111         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2112             <actions>
2113                 <create permission="CREATE_MARC_CODE" global_required="true"/>
2114                 <retrieve/>
2115                 <update permission="UPDATE_MARC_CODE" global_required="true"/>
2116                 <delete permission="DELETE_MARC_CODE" global_required="true"/>
2117             </actions>
2118         </permacrud>
2119         </class>
2120         <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">
2121                 <fields oils_persist:primary="code" oils_persist:sequence="">
2122                         <field reporter:label="Item Form Code" name="code" reporter:selector="value" reporter:datatype="text"/>
2123                         <field reporter:label="Item Form" name="value"  reporter:datatype="text" oils_persist:i18n="true"/>
2124                 </fields>
2125                 <links/>
2126         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2127             <actions>
2128                 <create permission="ADMIN_MARC_CODE" global_required="true"/>
2129                 <retrieve/>
2130                 <update permission="ADMIN_MARC_CODE" global_required="true"/>
2131                 <delete permission="ADMIN_MARC_CODE" global_required="true"/>
2132             </actions>
2133         </permacrud>
2134         </class>
2135     <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">
2136         <fields oils_persist:primary="id" oils_persist:sequence="asset.call_number_class_id_seq">
2137             <field reporter:label="Call number class ID" name="id" reporter_datatype="id"/>
2138             <field reporter:label="Name" name="name" reporter:datatype="text"/>
2139             <field reporter:label="Normalizer function" name="normalizer" reporter:datatype="text"/>
2140             <field reporter:label="Call number fields" name="field" reporter:datatype="text"/>
2141         </fields>
2142         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2143             <actions>
2144                 <retrieve/>
2145             </actions>
2146         </permacrud>
2147     </class>
2148         <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">
2149                 <fields oils_persist:primary="id" oils_persist:sequence="asset.call_number_suffix_id_seq">
2150                         <field reporter:label="ID" name="id" reporter:datatype="id" />
2151                         <field reporter:label="Label" name="label" reporter:datatype="text"/>
2152                         <field reporter:label="Label Sort Key" name="label_sortkey" reporter:datatype="text"/>
2153                         <field reporter:label="Owning Library" name="owning_lib"  reporter:datatype="org_unit"/>
2154                 </fields>
2155                 <links>
2156                         <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
2157                 </links>
2158         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2159             <actions>
2160                 <create permission="CREATE_VOLUME_SUFFIX" context_field="owning_lib"/>
2161                 <retrieve/>
2162                 <update permission="UPDATE_VOLUME_SUFFIX" context_field="owning_lib"/>
2163                 <delete permission="DELETE_VOLUME_SUFFIX" context_field="owning_lib"/>
2164             </actions>
2165         </permacrud>
2166         </class>
2167         <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">
2168                 <fields oils_persist:primary="id" oils_persist:sequence="asset.call_number_prefix_id_seq">
2169                         <field reporter:label="ID" name="id" reporter:datatype="id" />
2170                         <field reporter:label="Label" name="label" reporter:datatype="text"/>
2171                         <field reporter:label="Label Sort Key" name="label_sortkey" reporter:datatype="text"/>
2172                         <field reporter:label="Owning Library" name="owning_lib"  reporter:datatype="org_unit"/>
2173                 </fields>
2174                 <links>
2175                         <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
2176                 </links>
2177         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2178             <actions>
2179                 <create permission="CREATE_VOLUME_PREFIX" context_field="owning_lib"/>
2180                 <retrieve/>
2181                 <update permission="UPDATE_VOLUME_PREFIX" context_field="owning_lib"/>
2182                 <delete permission="DELETE_VOLUME_PREFIX" context_field="owning_lib"/>
2183             </actions>
2184         </permacrud>
2185         </class>
2186         <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">
2187                 <fields oils_persist:primary="id" oils_persist:sequence="asset.call_number_id_seq">
2188                         <field reporter:label="Copies" name="copies" oils_persist:virtual="true" reporter:datatype="link"/>
2189                         <field reporter:label="Create Date/Time" name="create_date" reporter:datatype="timestamp"/>
2190                         <field reporter:label="Creating User" name="creator" reporter:datatype="link"/>
2191                         <field reporter:label="Is Deleted" name="deleted" reporter:datatype="bool"/>
2192                         <field reporter:label="Last Edit Date/Time" name="edit_date" reporter:datatype="timestamp"/>
2193                         <field reporter:label="Last Editing User" name="editor" reporter:datatype="link"/>
2194                         <field reporter:label="Call Number/Volume ID" name="id" reporter:datatype="id" />
2195                         <field reporter:label="Call Number Label" name="label" reporter:datatype="text"/>
2196                         <field reporter:label="Owning Library" name="owning_lib"  reporter:datatype="org_unit"/>
2197                         <field reporter:label="Bib Record" name="record" reporter:datatype="link"/>
2198                         <field reporter:label="Notes" name="notes" oils_persist:virtual="true" reporter:datatype="link"/>
2199                         <field reporter:label="URI Maps" name="uri_maps" oils_persist:virtual="true" reporter:datatype="link"/>
2200                         <field reporter:label="URIs" name="uris" oils_persist:virtual="true" reporter:datatype="link"/>
2201                         <field reporter:label="Sort Key" name="label_sortkey" reporter:datatype="text"/>
2202                         <field reporter:label="Classification Scheme" name="label_class" reporter:datatype="link"/>
2203                         <field reporter:label="Prefix" name="prefix" reporter:datatype="link"/>
2204                         <field reporter:label="Suffix" name="suffix" reporter:datatype="link"/>
2205                 </fields>
2206                 <links>
2207                         <link field="editor" reltype="has_a" key="id" map="" class="au"/>
2208                         <link field="creator" reltype="has_a" key="id" map="" class="au"/>
2209                         <link field="record" reltype="has_a" key="id" map="" class="bre"/>
2210                         <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
2211                         <link field="notes" reltype="has_many" key="call_number" map="" class="acnn"/>
2212                         <link field="copies" reltype="has_many" key="call_number" map="" class="acp"/>
2213                         <link field="uris" reltype="has_many" key="call_number" map="uri" class="auricnm"/>
2214                         <link field="uri_maps" reltype="has_many" key="call_number" map="" class="auricnm"/>
2215                         <link field="label_class" reltype="has_a" key="id" map="" class="acnc"/>
2216                         <link field="prefix" reltype="has_a" key="id" map="" class="acnp"/>
2217                         <link field="suffix" reltype="has_a" key="id" map="" class="acns"/>
2218                 </links>
2219         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2220             <actions>
2221                 <create permission="CREATE_VOLUME" context_field="owning_lib"/>
2222                 <retrieve/>
2223                 <update permission="UPDATE_VOLUME" context_field="owning_lib"/>
2224                 <delete permission="DELETE_VOLUME" context_field="owning_lib"/>
2225             </actions>
2226         </permacrud>
2227         </class>
2228         <class id="auri" controller="open-ils.cstore" oils_obj:fieldmapper="asset::uri" oils_persist:tablename="asset.uri" reporter:label="Electronic Access URI">
2229                 <fields oils_persist:primary="id" oils_persist:sequence="asset.uri_id_seq">
2230                         <field reporter:label="URI ID" name="id" reporter:datatype="id"/>
2231                         <field reporter:label="URI" name="href" reporter:datatype="text"/>
2232                         <field reporter:label="Label" name="label" reporter:datatype="text"/>
2233                         <field reporter:label="Use Information" name="use_restriction" reporter:datatype="text"/>
2234                         <field reporter:label="Active" name="active" reporter:datatype="bool"/>
2235                         <field reporter:label="Call Number Maps" name="call_number_maps" oils_persist:virtual="true" reporter:datatype="link"/>
2236                         <field reporter:label="Call Numbers" name="call_numbers" oils_persist:virtual="true" reporter:datatype="link"/>
2237                 </fields>
2238                 <links>
2239                         <link field="call_numbers" reltype="has_many" key="uri" map="call_number" class="auricnm"/>
2240                         <link field="call_number_maps" reltype="has_many" key="uri" map="" class="auricnm"/>
2241         </links>
2242         </class>
2243         <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">
2244                 <fields oils_persist:primary="id" oils_persist:sequence="asset.uri_call_number_map_id_seq">
2245                         <field reporter:label="ID" name="id" reporter:datatype="id"/>
2246                         <field reporter:label="URI" name="uri" reporter:datatype="int"/>
2247                         <field reporter:label="Call Number" name="call_number" reporter:datatype="text"/>
2248                 </fields>
2249                 <links>
2250                         <link field="uri" reltype="has_a" key="id" map="" class="auri"/>
2251                         <link field="call_number" reltype="has_a" key="id" map="" class="acn"/>
2252                 </links>
2253         </class>
2254         <class id="cst" controller="open-ils.cstore" oils_obj:fieldmapper="config::standing" oils_persist:tablename="config.standing" reporter:label="Standing Penalty">
2255                 <fields oils_persist:primary="id" oils_persist:sequence="config.standing_id_seq">
2256                         <field name="id" reporter:datatype="id" />
2257                         <field name="value" oils_persist:i18n="true" />
2258                 </fields>
2259                 <links/>
2260         </class>
2261         <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">
2262                 <fields oils_persist:primary="usr" oils_persist:sequence="">
2263                         <field name="balance_owed" reporter:datatype="money" />
2264                         <field name="total_owed" reporter:datatype="money" />
2265                         <field name="total_paid" reporter:datatype="money" />
2266                         <field name="usr" reporter:datatype="link"/>
2267                 </fields>
2268                 <links>
2269                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
2270         </links>
2271         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2272             <actions>
2273                 <retrieve permission="VIEW_USER">
2274                     <context link="usr" field="home_ou"/>
2275                 </retrieve>
2276             </actions>
2277         </permacrud>
2278         </class>
2279         <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">
2280                 <fields oils_persist:primary="id" oils_persist:sequence="money.collections_tracker_id_seq">
2281                         <field name="collector" />
2282                         <field name="enter_time" reporter:datatype="timestamp"/>
2283                         <field name="id" reporter:datatype="id" />
2284                         <field name="location" reporter:datatype="link"/>
2285                         <field name="usr" reporter:datatype="link"/>
2286                 </fields>
2287                 <links>
2288                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
2289                         <link field="collector" reltype="has_a" key="id" map="" class="au"/>
2290                         <link field="location" reltype="has_a" key="id" map="" class="aou"/>
2291                 </links>
2292         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2293             <actions>
2294                 <create permission="money.collections_tracker.create" context_field="location"/>
2295                 <retrieve permission="money.collections_tracker.create" context_field="location"/> 
2296                 <delete permission="money.collections_tracker.create" context_field="location"/>
2297             </actions>
2298         </permacrud>
2299         </class>
2300         <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">
2301                 <fields oils_persist:primary="id" oils_persist:sequence="biblio.record_entry_id_seq">
2302                         <field reporter:label="Call Numbers" name="call_numbers" oils_persist:virtual="true" reporter:datatype="link"/>
2303                         <field reporter:label="Fixed Field Entry" name="fixed_fields" oils_persist:virtual="true" reporter:datatype="link"/>
2304                         <field reporter:label="Is Active?" name="active" reporter:datatype="bool"/>
2305                         <field reporter:label="Record Creation Date/Time" name="create_date" reporter:datatype="timestamp"/>
2306                         <field reporter:label="Record Creator" name="creator" reporter:datatype="link"/>
2307                         <field reporter:label="Is Deleted?" name="deleted" reporter:datatype="bool"/>
2308                         <field reporter:label="Last Edit Data/Time" name="edit_date" reporter:datatype="timestamp"/>
2309                         <field reporter:label="Last Editing User" name="editor" reporter:datatype="link"/>
2310                         <field reporter:label="Fingerprint" name="fingerprint"  reporter:datatype="text"/>
2311                         <field reporter:label="Record ID" name="id" reporter:datatype="id" />
2312                         <field reporter:label="Last Transaction ID" name="last_xact_id"  reporter:datatype="text"/>
2313                         <field reporter:label="MARC21Slim" name="marc"  reporter:datatype="text"/>
2314                         <field reporter:label="Overall Quality" name="quality" reporter:datatype="int" />
2315                         <field reporter:label="Record Source" name="source" reporter:datatype="link"/>
2316                         <field reporter:label="TCN Source" name="tcn_source"  reporter:datatype="text"/>
2317                         <field reporter:label="TCN Value" name="tcn_value"  reporter:datatype="text"/>
2318                         <field reporter:label="Owner" name="owner"  reporter:datatype="org_unit"/>
2319                         <field reporter:label="Share Depth" name="share_depth"  reporter:datatype="int"/>
2320                         <field reporter:label="Metarecord" name="metarecord" oils_persist:virtual="true" reporter:datatype="link"/>
2321                         <field reporter:label="Language Code" name="language" oils_persist:virtual="true" reporter:datatype="link"/>
2322                         <field reporter:label="Non-MARC Record Notes" name="notes" oils_persist:virtual="true" reporter:datatype="link"/>
2323                         <field reporter:label="Indexed Keyword Field Entries" name="keyword_field_entries" oils_persist:virtual="true" reporter:datatype="link"/>
2324                         <field reporter:label="Indexed Subject Field Entries" name="subject_field_entries" oils_persist:virtual="true" reporter:datatype="link"/>
2325                         <field reporter:label="Indexed Title Field Entries" name="title_field_entries" oils_persist:virtual="true" reporter:datatype="link"/>
2326                         <field reporter:label="Indexed Identifier Field Entries" name="identifier_field_entries" oils_persist:virtual="true" reporter:datatype="link"/>
2327                         <field reporter:label="Indexed Author Field Entries" name="author_field_entries" oils_persist:virtual="true" reporter:datatype="link"/>
2328                         <field reporter:label="Indexed Series Field Entries" name="series_field_entries" oils_persist:virtual="true" reporter:datatype="link"/>
2329                         <field reporter:label="Flattened MARC Fields " name="full_record_entries" oils_persist:virtual="true" reporter:datatype="link"/>
2330                         <field reporter:label="Simple Record Extracts " name="simple_record" oils_persist:virtual="true" reporter:datatype="link"/>
2331                         <field reporter:label="Authority Links" name="authority_links" oils_persist:virtual="true" reporter:datatype="link"/>
2332                         <field reporter:label="Subscriptions" name="subscriptions" oils_persist:virtual="true" reporter:datatype="link"/>
2333                         <field reporter:label="SVF Attributes" name="attrs" oils_persist:virtual="true" reporter:datatype="link"/>
2334                 </fields>
2335                 <links>
2336                         <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
2337                         <link field="editor" reltype="has_a" key="id" map="" class="au"/>
2338                         <link field="creator" reltype="has_a" key="id" map="" class="au"/>
2339                         <link field="simple_record" reltype="might_have" key="id" map="" class="rmsr"/>
2340                         <link field="metarecord" reltype="might_have" key="source" map="metarecord" class="mmrsm"/>
2341                         <link field="call_numbers" reltype="has_many" key="record" map="" class="acn"/>
2342                         <link field="keyword_field_entries" reltype="has_many" key="source" map="" class="mkfe"/>
2343                         <link field="fixed_fields" reltype="might_have" key="record" map="" class="mrd"/>
2344                         <link field="language" reltype="might_have" key="record" map="item_lang" class="mrd"/>
2345                         <link field="subject_field_entries" reltype="has_many" key="source" map="" class="msfe"/>
2346                         <link field="title_field_entries" reltype="has_many" key="source" map="" class="mtfe"/>
2347                         <link field="identifier_field_entries" reltype="has_many" key="source" map="" class="mife"/>
2348                         <link field="notes" reltype="has_many" key="record" map="" class="bren"/>
2349                         <link field="author_field_entries" reltype="has_many" key="source" map="" class="mafe"/>
2350                         <link field="series_field_entries" reltype="has_many" key="source" map="" class="msefe"/>
2351                         <link field="full_record_entries" reltype="has_many" key="record" map="" class="mfr"/>
2352                         <link field="authority_links" reltype="has_many" key="bib" map="" class="abl"/>
2353                         <link field="subscriptions" reltype="has_many" key="record_entry" map="" class="ssub"/>
2354                         <link field="attrs" reltype="might_have" key="id" map="" class="mra"/>
2355                 </links>
2356         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2357             <actions>
2358                 <create permission="CREATE_MARC IMPORT_MARC" global_required="true"/>
2359                 <retrieve/>
2360                 <update permission="UPDATE_MARC" global_required="true"/>
2361             </actions>
2362         </permacrud>
2363         </class>
2364         <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">
2365                 <fields oils_persist:primary="id">
2366                         <field name="dow_0_close" />
2367                         <field name="dow_0_open" />
2368                         <field name="dow_1_close" />
2369                         <field name="dow_1_open" />
2370                         <field name="dow_2_close" />
2371                         <field name="dow_2_open" />
2372                         <field name="dow_3_close" />
2373                         <field name="dow_3_open" />
2374                         <field name="dow_4_close" />
2375                         <field name="dow_4_open" />
2376                         <field name="dow_5_close" />
2377                         <field name="dow_5_open" />
2378                         <field name="dow_6_close" />
2379                         <field name="dow_6_open" />
2380                         <field name="id" reporter:datatype="id" />
2381                         <field name="org_unit" oils_persist:virtual="true" reporter:datatype="org_unit"/>
2382                 </fields>
2383                 <links>
2384                         <link field="id" reltype="might_have" key="id" map="" class="aou"/>
2385                 </links>
2386         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2387             <actions>
2388                 <create permission="CREATE_HOURS_OF_OPERATION" context_field="id"/>
2389                 <retrieve/>
2390                 <update permission="UPDATE_HOURS_OF_OPERATION" context_field="id"/>
2391                 <delete permission="DELETE_HOURS_OF_OPERATION" context_field="id"/>
2392             </actions>
2393         </permacrud>
2394         </class>
2395         <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">
2396                 <fields oils_persist:primary="id" oils_persist:sequence="biblio.monograph_part_id_seq">
2397                         <field name="id" reporter:datatype="id" />
2398                         <field name="record" reporter:datatype="link"/>
2399                         <field name="label" reporter:datatype="text"/>
2400                         <field name="label_sortkey" reporter:datatype="text"/>
2401                 </fields>
2402                 <links>
2403                         <link field="record" reltype="has_a" key="id" map="" class="bre"/>
2404                 </links>
2405         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2406             <actions>
2407                 <create permission="CREATE_MONOGRAPH_PART" global_required="true"/>
2408                 <retrieve/>
2409                 <update permission="UPDATE_MONOGRAPH_PART" global_required="true"/>
2410                 <delete permission="DELETE_MONOGRAPH_PART" global_required="true"/>
2411             </actions>
2412         </permacrud>
2413         </class>
2414         <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">
2415                 <fields oils_persist:primary="id" oils_persist:sequence="asset.copy_part_map_id_seq">
2416                         <field name="id" reporter:datatype="id" />
2417                         <field name="target_copy" reporter:datatype="link" />
2418                         <field name="part" reporter:datatype="link"/>
2419                 </fields>
2420                 <links>
2421                         <link field="target_copy" reltype="has_a" key="id" map="" class="acp"/>
2422                         <link field="part" reltype="has_a" key="id" map="" class="bmp"/>
2423                 </links>
2424         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2425             <actions>
2426                 <create permission="MAP_MONOGRAPH_PART" global_required="true"/>
2427                 <retrieve/>
2428                 <update permission="MAP_MONOGRAPH_PART" global_required="true"/>
2429                 <delete permission="MAP_MONOGRAPH_PART" global_required="true"/>
2430             </actions>
2431         </permacrud>
2432         </class>
2433         <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">
2434                 <fields oils_persist:primary="id" oils_persist:sequence="actor.org_unit_closed_id_seq">
2435       &n