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