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