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