]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/examples/fm_IDL.xml
add pcrud controller for ccmcmtm and ccmcmt
[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
116         <!-- Actually in the DB -->
117         <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">
118                 <fields oils_persist:primary="id" oils_persist:sequence="vandelay.import_bib_trash_fields_id_seq">
119                         <field reporter:label="Field ID" name="id" reporter:datatype="id"/>
120                         <field reporter:label="Owner" name="owner" reporter:datatype="link"/>
121                         <field reporter:label="Field" name="field" reporter:datatype="text"/>
122                 </fields>
123                 <links>
124                         <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
125                 </links>
126                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
127                         <actions>
128                                 <create permission="CREATE_IMPORT_TRASH_FIELD" context_field="owner"/>
129                                 <retrieve permission="CREATE_IMPORT_TRASH_FIELD UPDATE_IMPORT_TRASH_FIELD DELETE_IMPORT_TRASH_FIELD" context_field="owner"/>
130                                 <update permission="UPDATE_IMPORT_TRASH_FIELD" context_field="owner"/>
131                                 <delete permission="DELETE_IMPORT_TRASH_FIELD" context_field="owner"/>
132                         </actions>
133                 </permacrud>
134         </class>
135
136         <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 Attribute Definition">
137                 <fields oils_persist:primary="id" oils_persist:sequence="vandelay.import_item_id_seq">
138                         <field reporter:label="Import Item ID" name="id" reporter:datatype="id"/>
139                         <field reporter:label="Import Record" name="record" reporter:datatype="link"/>
140                         <field reporter:label="Attribute Definition" name="definition" reporter:datatype="link"/>
141                         <field reporter:label="Owning Library" name="owning_lib" reporter:datatype="int"/>
142                         <field reporter:label="Circulating Library" name="circ_lib" reporter:datatype="int"/>
143                         <field reporter:label="Call Number" name="call_number" reporter:datatype="text"/>
144                         <field reporter:label="Copy Number" name="copy_number" reporter:datatype="int"/>
145                         <field reporter:label="Status" name="status" reporter:datatype="int"/>
146                         <field reporter:label="Shelving Location" name="location" reporter:datatype="int"/>
147                         <field reporter:label="Circulate" name="circulate" reporter:datatype="bool"/>
148                         <field reporter:label="Deposit" name="deposit" reporter:datatype="bool"/>
149                         <field reporter:label="Deposit Amount" name="deposit_amount" reporter:datatype="money"/>
150                         <field reporter:label="Reference" name="ref" reporter:datatype="bool"/>
151                         <field reporter:label="Holdable" name="holdable" reporter:datatype="bool"/>
152                         <field reporter:label="Price" name="price" reporter:datatype="money"/>
153                         <field reporter:label="Barcode" name="barcode" reporter:datatype="text"/>
154                         <field reporter:label="Circulation Modifier" name="circ_modifier" reporter:datatype="text"/>
155                         <field reporter:label="Circulate As MARC Type" name="circ_as_type" reporter:datatype="text"/>
156                         <field reporter:label="Alert Message" name="alert_message" reporter:datatype="text"/>
157                         <field reporter:label="Public Note" name="pub_note" reporter:datatype="text"/>
158                         <field reporter:label="Private Note" name="priv_note" reporter:datatype="text"/>
159                         <field reporter:label="OPAC Visible" name="opac_visible" reporter:datatype="bool"/>
160                 </fields>
161                 <links>
162                         <link field="record" reltype="has_a" key="id" map="" class="vqbr"/>
163                         <link field="definition" reltype="has_a" key="id" map="" class="viiad"/>
164                 </links>
165                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
166                         <actions>
167                                 <create permission="CREATE_IMPORT_ITEM">
168                     <context link="definition" field="owner"/>
169                                 </create>
170                                 <retrieve permission="CREATE_IMPORT_ITEM UPDATE_IMPORT_ITEM DELETE_IMPORT_ITEM">
171                     <context link="definition" field="owner"/>
172                                 </retrieve>
173                                 <update permission="UPDATE_IMPORT_ITEM">
174                     <context link="definition" field="owner"/>
175                                 </update>
176                                 <delete permission="DELETE_IMPORT_ITEM">
177                     <context link="definition" field="owner"/>
178                                 </delete>
179                         </actions>
180                 </permacrud>
181         </class>
182
183         <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">
184                 <fields oils_persist:primary="id" oils_persist:sequence="vandelay.import_item_attr_definition_id_seq">
185                         <field reporter:label="Definition ID" name="id" reporter:datatype="id"/>
186                         <field reporter:label="Owner" name="owner" reporter:datatype="link"/>
187                         <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
188                         <field reporter:label="Tag" name="tag" reporter:datatype="text"/>
189                         <field reporter:label="Keep" name="keep" reporter:datatype="bool"/>
190                         <field reporter:label="Owning Library" name="owning_lib" reporter:datatype="text"/>
191                         <field reporter:label="Circulating Library" name="circ_lib" reporter:datatype="text"/>
192                         <field reporter:label="Call Number" name="call_number" reporter:datatype="text"/>
193                         <field reporter:label="Status" name="status" reporter:datatype="text"/>
194                         <field reporter:label="Shelving Location" name="location" reporter:datatype="text"/>
195                         <field reporter:label="Circulate" name="circulate" reporter:datatype="text"/>
196                         <field reporter:label="Deposit" name="deposit" reporter:datatype="text"/>
197                         <field reporter:label="Deposit Amount" name="deposit_amount" reporter:datatype="text"/>
198                         <field reporter:label="Reference" name="ref" reporter:datatype="text"/>
199                         <field reporter:label="Holdable" name="holdable" reporter:datatype="text"/>
200                         <field reporter:label="Price" name="price" reporter:datatype="text"/>
201                         <field reporter:label="Barcode" name="barcode" reporter:datatype="text"/>
202                         <field reporter:label="Circulation Modifier" name="circ_modifier" reporter:datatype="text"/>
203                         <field reporter:label="Circulate As MARC Type" name="circ_as_type" reporter:datatype="text"/>
204                         <field reporter:label="Alert Message" name="alert_message" reporter:datatype="text"/>
205                         <field reporter:label="Public Note" name="pub_note" reporter:datatype="text"/>
206                         <field reporter:label="Private Note" name="priv_note" reporter:datatype="text"/>
207                         <field reporter:label="OPAC Visible" name="opac_visible" reporter:datatype="text"/>
208                         <field reporter:label="Copy Number" name="copy_number" reporter:datatype="text"/>
209                 </fields>
210                 <links>
211                         <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
212                 </links>
213                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
214                         <actions>
215                                 <create permission="CREATE_IMPORT_ITEM_ATTR_DEF" context_field="owner"/>
216                                 <retrieve permission="CREATE_IMPORT_ITEM_ATTR_DEF UPDATE_IMPORT_ITEM_ATTR_DEF DELETE_IMPORT_ITEM_ATTR_DEF" context_field="owner"/>
217                                 <update permission="UPDATE_IMPORT_ITEM_ATTR_DEF" context_field="owner"/>
218                                 <delete permission="DELETE_IMPORT_ITEM_ATTR_DEF" context_field="owner"/>
219                         </actions>
220                 </permacrud>
221         </class>
222
223         <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">
224                 <fields oils_persist:primary="id" oils_persist:sequence="vandelay.queue_id_seq">
225                         <field reporter:label="Queue ID" name="id" reporter:selector="name" reporter:datatype="id"/>
226                         <field reporter:label="Owner" name="owner" reporter:datatype="link"/>
227                         <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
228                         <field reporter:label="Complete" name="complete" reporter:datatype="bool"/>
229                         <field reporter:label="Type" name="queue_type" reporter:datatype="text"/>
230                 </fields>
231                 <links>
232                         <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
233                 </links>
234                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
235                         <actions>
236                                 <create permission="CREATE_BIB_IMPORT_QUEUE" global_required="true"/>
237                                 <retrieve permission="CREATE_BIB_IMPORT_QUEUE UPDATE_BIB_IMPORT_QUEUE DELETE_BIB_IMPORT_QUEUE" global_required="true"/>
238                                 <update permission="UPDATE_BIB_IMPORT_QUEUE" global_required="true"/>
239                                 <delete permission="DELETE_BIB_IMPORT_QUEUE" global_required="true"/>
240                         </actions>
241                 </permacrud>
242         </class>
243
244         <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">
245                 <fields oils_persist:primary="id" oils_persist:sequence="vandelay.queued_record_id_seq">
246                         <field reporter:label="Record ID" name="id" reporter:datatype="id"/>
247                         <field reporter:label="Create Time" name="create_time" reporter:datatype="timestamp"/>
248                         <field reporter:label="Import Time" name="import_time" reporter:datatype="timestamp"/>
249                         <field reporter:label="MARC" name="marc" reporter:datatype="text"/>
250                         <field reporter:label="Queue" name="queue" reporter:datatype="link"/>
251                         <field reporter:label="Bib Source" name="bib_source" reporter:datatype="link"/>
252                         <field reporter:label="Final Target Record" name="imported_as" reporter:datatype="link"/>
253                         <field reporter:label="Purpose" name="purpose" reporter:datatype="text"/>
254                         <field reporter:label="Attributes" name="attributes" oils_persist:virtual="true" reporter:datatype="text"/>
255                         <field reporter:label="Matches" name="matches" oils_persist:virtual="true" reporter:datatype="text"/>
256                 </fields>
257                 <links>
258                         <link field="queue" reltype="has_a" key="id" map="" class="vbq"/>
259                         <link field="bib_source" reltype="has_a" key="id" map="" class="cbs"/>
260                         <link field="imported_as" reltype="has_a" key="id" map="" class="bre"/>
261             <link field="attributes" reltype="has_many" key="record" map="" class="vqbra"/>
262             <link field="matches" reltype="has_many" key="queued_record" map="" class="vbm"/>
263                 </links>
264                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
265                         <actions>
266                                 <create permission="CREATE_BIB_IMPORT_QUEUE" global_required="true"/>
267                                 <retrieve permission="CREATE_BIB_IMPORT_QUEUE UPDATE_BIB_IMPORT_QUEUE DELETE_BIB_IMPORT_QUEUE" global_required="true"/>
268                                 <update permission="UPDATE_BIB_IMPORT_QUEUE" global_required="true"/>
269                                 <delete permission="DELETE_BIB_IMPORT_QUEUE" global_required="true"/>
270                         </actions>
271                 </permacrud>
272         </class>
273
274         <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">
275                 <fields oils_persist:primary="id" oils_persist:sequence="vandelay.bib_attr_definition_id_seq">
276                         <field reporter:label="ID" name="id" reporter:datatype="id"/>
277                         <field reporter:label="Code" name="code" reporter:datatype="text"/>
278                         <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true"/>
279                         <field reporter:label="XPath" name="xpath" reporter:datatype="text"/>
280                         <field reporter:label="Remove RegExp" name="remove" reporter:datatype="text"/>
281                         <field reporter:label="Is Identifier?" name="ident" reporter:datatype="bool"/>
282                 </fields>
283                 <links/>
284                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
285                         <actions>
286                                 <create permission="CREATE_BIB_IMPORT_FIELD_DEF" global_required="true"/>
287                 <retrieve/>
288                 <!--
289                                 <retrieve permission="CREATE_BIB_IMPORT_IMPORT_FIELD_DEF UPDATE_BIB_IMPORT_IMPORT_FIELD_DEF DELETE_BIB_IMPORT_IMPORT_FIELD_DEF" global_required="true"/>
290                 -->
291                                 <update permission="UPDATE_BIB_IMPORT_IMPORT_FIELD_DEF" global_required="true"/>
292                                 <delete permission="DELETE_BIB_IMPORT_IMPORT_FIELD_DEF" global_required="true"/>
293                         </actions>
294                 </permacrud>
295         </class>
296
297         <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">
298                 <fields oils_persist:primary="id" oils_persist:sequence="vandelay.queued_bib_record_attr_id_seq">
299                         <field reporter:label="Attribute ID" name="id" reporter:datatype="id"/>
300                         <field reporter:label="Record" name="record" reporter:datatype="link"/>
301                         <field reporter:label="Field" name="field" reporter:datatype="link"/>
302                         <field reporter:label="Value" name="attr_value" reporter:datatype="text"/>
303                 </fields>
304                 <links>
305                         <link field="record" reltype="has_a" key="id" map="" class="vqbr"/>
306                         <link field="field" reltype="has_a" key="id" map="" class="vqbrad"/>
307                 </links>
308                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
309                         <actions>
310                                 <create permission="CREATE_BIB_IMPORT_QUEUE" global_required="true"/>
311                                 <retrieve permission="CREATE_BIB_IMPORT_QUEUE UPDATE_BIB_IMPORT_QUEUE DELETE_BIB_IMPORT_QUEUE" global_required="true"/>
312                                 <update permission="UPDATE_BIB_IMPORT_QUEUE" global_required="true"/>
313                                 <delete permission="DELETE_BIB_IMPORT_QUEUE" global_required="true"/>
314                         </actions>
315                 </permacrud>
316         </class>
317
318         <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">
319                 <fields oils_persist:primary="id" oils_persist:sequence="vandelay.bib_match_id_seq">
320                         <field reporter:label="Match ID" name="id" reporter:datatype="id"/>
321                         <field reporter:label="Queued Record" name="queued_record" reporter:datatype="link"/>
322                         <field reporter:label="Matched Attribute" name="matched_attr" reporter:datatype="link"/>
323                         <field reporter:label="Evergreen Record" name="eg_record" reporter:datatype="link"/>
324                         <field reporter:label="Field Type" name="field_type" reporter:datatype="text"/>
325                 </fields>
326                 <links>
327                         <link field="queued_record" reltype="has_a" key="id" map="" class="vqbr"/>
328                         <link field="eg_record" reltype="has_a" key="id" map="" class="bre"/>
329                         <link field="matched_attr" reltype="has_a" key="id" map="" class="vqbra"/>
330                 </links>
331                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
332                         <actions>
333                                 <create permission="CREATE_BIB_IMPORT_QUEUE" global_required="true"/>
334                                 <retrieve permission="CREATE_BIB_IMPORT_QUEUE UPDATE_BIB_IMPORT_QUEUE DELETE_BIB_IMPORT_QUEUE" global_required="true"/>
335                                 <update permission="UPDATE_BIB_IMPORT_QUEUE" global_required="true"/>
336                                 <delete permission="DELETE_BIB_IMPORT_QUEUE" global_required="true"/>
337                         </actions>
338                 </permacrud>
339         </class>
340
341         <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">
342                 <fields oils_persist:primary="id" oils_persist:sequence="vandelay.queue_id_seq">
343                         <field reporter:label="Queue ID" name="id" reporter:selector="name" reporter:datatype="id"/>
344                         <field reporter:label="Owner" name="owner" reporter:datatype="link"/>
345                         <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
346                         <field reporter:label="Complete" name="complete" reporter:datatype="bool"/>
347                         <field reporter:label="Type" name="queue_type" reporter:datatype="text"/>
348                 </fields>
349                 <links>
350                         <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
351                 </links>
352                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
353                         <actions>
354                                 <create permission="CREATE_AUTHORITY_IMPORT_QUEUE" global_required="true"/>
355                                 <retrieve permission="CREATE_AUTHORITY_IMPORT_QUEUE UPDATE_AUTHORITY_IMPORT_QUEUE DELETE_AUTHORITY_IMPORT_QUEUE" global_required="true"/>
356                                 <update permission="UPDATE_AUTHORITY_IMPORT_QUEUE" global_required="true"/>
357                                 <delete permission="DELETE_AUTHORITY_IMPORT_QUEUE" global_required="true"/>
358                         </actions>
359                 </permacrud>
360         </class>
361
362         <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">
363                 <fields oils_persist:primary="id" oils_persist:sequence="vandelay.queued_record_id_seq">
364                         <field reporter:label="Record ID" name="id" reporter:datatype="id"/>
365                         <field reporter:label="Create Time" name="create_time" reporter:datatype="timestamp"/>
366                         <field reporter:label="Import Time" name="import_time" reporter:datatype="timestamp"/>
367                         <field reporter:label="MARC" name="marc" reporter:datatype="text"/>
368                         <field reporter:label="Queue" name="queue" reporter:datatype="link"/>
369                         <field reporter:label="Final Target Record" name="imported_as" reporter:datatype="link"/>
370                         <field reporter:label="Purpose" name="purpose" reporter:datatype="text"/>
371                         <field reporter:label="Attributes" name="attributes" oils_persist:virtual="true" reporter:datatype="text"/>
372                         <field reporter:label="Matches" name="matches" oils_persist:virtual="true" reporter:datatype="text"/>
373                 </fields>
374                 <links>
375                         <link field="queue" reltype="has_a" key="id" map="" class="vaq"/>
376                         <link field="imported_as" reltype="has_a" key="id" map="" class="are"/>
377             <link field="attributes" reltype="has_many" key="record" map="" class="vqara"/>
378             <link field="matches" reltype="has_many" key="queued_record" map="" class="vam"/>
379                 </links>
380                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
381                         <actions>
382                                 <create permission="CREATE_AUTHORITY_IMPORT_QUEUE" global_required="true"/>
383                                 <retrieve permission="CREATE_AUTHORITY_IMPORT_QUEUE UPDATE_AUTHORITY_IMPORT_QUEUE DELETE_AUTHORITY_IMPORT_QUEUE" global_required="true"/>
384                                 <update permission="UPDATE_AUTHORITY_IMPORT_QUEUE" global_required="true"/>
385                                 <delete permission="DELETE_AUTHORITY_IMPORT_QUEUE" global_required="true"/>
386                         </actions>
387                 </permacrud>
388         </class>
389
390         <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">
391                 <fields oils_persist:primary="id" oils_persist:sequence="vandelay.authority_attr_definition_id_seq">
392                         <field reporter:label="ID" name="id" reporter:datatype="id"/>
393                         <field reporter:label="Code" name="code" reporter:datatype="text"/>
394                         <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true"/>
395                         <field reporter:label="XPath" name="xpath" reporter:datatype="text"/>
396                         <field reporter:label="Remove RegExp" name="remove" reporter:datatype="text"/>
397                         <field reporter:label="Is Identifier?" name="ident" reporter:datatype="bool"/>
398                 </fields>
399                 <links/>
400                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
401                         <actions>
402                                 <create permission="CREATE_AUTHORITY_IMPORT_IMPORT_FIELD_DEF" global_required="true"/>
403                 <retrieve/>
404                 <!--
405                                 <retrieve permission="CREATE_AUTHORITY_IMPORT_IMPORT_FIELD_DEF UPDATE_AUTHORITY_IMPORT_IMPORT_FIELD_DEF DELETE_AUTHORITY_IMPORT_IMPORT_FIELD_DEF" global_required="true"/>
406                 -->
407                                 <update permission="UPDATE_AUTHORITY_IMPORT_IMPORT_FIELD_DEF" global_required="true"/>
408                                 <delete permission="DELETE_AUTHORITY_IMPORT_IMPORT_FIELD_DEF" global_required="true"/>
409                         </actions>
410                 </permacrud>
411         </class>
412
413         <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">
414                 <fields oils_persist:primary="id" oils_persist:sequence="vandelay.queued_authority_record_attr_id_seq">
415                         <field reporter:label="Attribute ID" name="id" reporter:datatype="id"/>
416                         <field reporter:label="Record" name="record" reporter:datatype="link"/>
417                         <field reporter:label="Field" name="field" reporter:datatype="link"/>
418                         <field reporter:label="Value" name="attr_value" reporter:datatype="text"/>
419                 </fields>
420                 <links>
421                         <link field="record" reltype="has_a" key="id" map="" class="vaqr"/>
422                         <link field="field" reltype="has_a" key="id" map="" class="vqarad"/>
423                 </links>
424                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
425                         <actions>
426                                 <create permission="CREATE_AUTHORITY_IMPORT_QUEUE" global_required="true"/>
427                                 <retrieve permission="CREATE_AUTHORITY_IMPORT_QUEUE UPDATE_AUTHORITY_IMPORT_QUEUE DELETE_AUTHORITY_IMPORT_QUEUE" global_required="true"/>
428                                 <update permission="UPDATE_AUTHORITY_IMPORT_QUEUE" global_required="true"/>
429                                 <delete permission="DELETE_AUTHORITY_IMPORT_QUEUE" global_required="true"/>
430                         </actions>
431                 </permacrud>
432         </class>
433
434         <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">
435                 <fields oils_persist:primary="id" oils_persist:sequence="vandelay.authority_match_id_seq">
436                         <field reporter:label="Match ID" name="id" reporter:datatype="id"/>
437                         <field reporter:label="Queued Record" name="queued_record" reporter:datatype="link"/>
438                         <field reporter:label="Matched Attribute" name="matched_attr" reporter:datatype="link"/>
439                         <field reporter:label="Evergreen Record" name="eg_record" reporter:datatype="link"/>
440                 </fields>
441                 <links>
442                         <link field="queued_record" reltype="has_a" key="id" map="" class="vqbr"/>
443                         <link field="eg_record" reltype="has_a" key="id" map="" class="bre"/>
444                         <link field="matched_attr" reltype="has_a" key="id" map="" class="vqbra"/>
445                 </links>
446                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
447                         <actions>
448                                 <create permission="CREATE_AUTHORITY_IMPORT_QUEUE" global_required="true"/>
449                                 <retrieve permission="CREATE_AUTHORITY_IMPORT_QUEUE UPDATE_AUTHORITY_IMPORT_QUEUE DELETE_AUTHORITY_IMPORT_QUEUE" global_required="true"/>
450                                 <update permission="UPDATE_AUTHORITY_IMPORT_QUEUE" global_required="true"/>
451                                 <delete permission="DELETE_AUTHORITY_IMPORT_QUEUE" global_required="true"/>
452                         </actions>
453                 </permacrud>
454         </class>
455
456
457         <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">
458                 <fields oils_persist:primary="id" oils_persist:sequence="actor.usr_org_unit_opt_in_id_seq">
459                         <field reporter:label="Opt-in ID" name="id" reporter:datatype="id"/>
460                         <field reporter:label="Workstation" name="opt_in_ws" reporter:datatype="link"/>
461                         <field reporter:label="Staff Member" name="staff" reporter:datatype="link"/>
462                         <field reporter:label="User" name="usr" reporter:datatype="link"/>
463                         <field reporter:label="Allowed Org Unit" name="org_unit" reporter:datatype="link"/>
464                         <field reporter:label="Opt-in Date/Time" name="opt_in_ts" reporter:datatype="timestamp"/>
465                 </fields>
466                 <links>
467                         <link field="org_unit" reltype="has_a" key="id" map="" class="aou"/>
468                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
469                         <link field="staff" reltype="has_a" key="id" map="" class="au"/>
470                         <link field="opt_in_ws" reltype="has_a" key="id" map="" class="aws"/>
471                 </links>
472         </class>
473
474     <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">
475         <fields oils_persist:primary="name">
476             <field reporter:label="Z39.50 Source" name="name" reporter:datatype="id"/>
477             <field reporter:label="Label" name="label" reporter:datatype="text" oils_persist:i18n="true"/>
478             <field reporter:label="Host" name="host"  reporter:datatype="text"/>
479             <field reporter:label="Port" name="port"  reporter:datatype="int"/>
480             <field reporter:label="DB" name="db"  reporter:datatype="text"/>
481             <field reporter:label="Record Format" name="record_format"  reporter:datatype="text"/>
482             <field reporter:label="Transmission Format" name="transmission_format"  reporter:datatype="text"/>
483             <field reporter:label="Auth" name="auth"  reporter:datatype="bool"/>
484             <field reporter:label="Attrs" name="attrs" oils_persist:virtual="true"  reporter:datatype="link"/>
485         </fields>
486         <links>
487             <link field="attrs" reltype="has_many" key="source" map="" class="cza"/>
488         </links>
489         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
490             <actions>
491                 <create permission="ADMIN_Z3950_SOURCE" global_required="true"/>
492                 <retrieve/>
493                 <update permission="ADMIN_Z3950_SOURCE" global_required="true"/>
494                 <delete permission="ADMIN_Z3950_SOURCE" global_required="true"/>
495             </actions>
496         </permacrud>
497     </class>
498
499     <class id="cza" controller="open-ils.cstore" oils_obj:fieldmapper="config::z3950_attr" oils_persist:tablename="config.z3950_attr" reporter:label="Z39.50 Attribute">
500         <fields oils_persist:primary="id" oils_persist:sequence="config.z3950_attr_id_seq">
501             <field reporter:label="Z39.50 Attribute ID" name="id" reporter:datatype="id"/>
502             <field reporter:label="Z39.50 Source" name="source" reporter:datatype="link"/>
503             <field reporter:label="Name" name="name" reporter:datatype="text"/>
504             <field reporter:label="Label" name="label" reporter:datatype="text" oils_persist:i18n="true"/>
505             <field reporter:label="Code" name="code"  reporter:datatype="int"/>
506             <field reporter:label="Format" name="format"  reporter:datatype="int"/>
507             <field reporter:label="Truncation" name="truncation"  reporter:datatype="int"/>
508         </fields>
509         <links>
510             <link field="source" reltype="has_a" key="name" map="" class="czs"/>
511         </links>
512     </class>
513
514         <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">
515                 <fields oils_persist:primary="id" oils_persist:sequence="action_trigger.event_output_id_seq">
516                         <field reporter:label="Output ID" name="id" reporter:datatype="id"/>
517                         <field reporter:label="Create Date/Time" name="create_time" reporter:datatype="timestamp"/>
518                         <field reporter:label="Data" name="data" reporter:datatype="text"/>
519                         <field reporter:label="Is Error" name="is_error" reporter:datatype="bool"/>
520                         <field reporter:label="Events" name="events" oils_persist:virtual="true"  reporter:datatype="link"/>
521                         <field reporter:label="Events" name="error_events" oils_persist:virtual="true"  reporter:datatype="link"/>
522                 </fields>
523                 <links>
524             <link field="events" reltype="has_many" key="template_output" map="" class="atev"/>
525             <link field="error_events" reltype="has_many" key="error_output" map="" class="atev"/>
526                 </links>
527                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
528                         <actions>
529                                 <retrieve/>
530                                 <delete permission="ADMIN_TRIGGER_TEMPLATE_OUTPUT" global_required="true"/>
531                         </actions>
532                 </permacrud>
533         </class>
534
535         <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">
536                 <fields oils_persist:primary="key">
537                         <field reporter:label="Hook Key" name="key" reporter:datatype="text"/>
538                         <field reporter:label="Core Type" name="core_type" reporter:datatype="text"/>
539                         <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true"/>
540                         <field reporter:label="Passive" name="passive"  reporter:datatype="bool"/>
541                 </fields>
542                 <links/>
543                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
544                         <actions>
545                                 <create permission="ADMIN_TRIGGER_HOOK" global_required="true"/>
546                                 <retrieve/>
547                                 <update permission="ADMIN_TRIGGER_HOOK" global_required="true"/>
548                                 <delete permission="ADMIN_TRIGGER_HOOK" global_required="true"/>
549                         </actions>
550                 </permacrud>
551         </class>
552
553         <class id="atcol" controller="open-ils.cstore" oils_obj:fieldmapper="action_trigger::collector" oils_persist:tablename="action_trigger.collector" reporter:label="Trigger Environment Collector">
554                 <fields oils_persist:primary="module">
555                         <field reporter:label="Module Name" name="module" reporter:datatype="text"/>
556                         <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true"/>
557                 </fields>
558                 <links/>
559         </class>
560
561         <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">
562                 <fields oils_persist:primary="module">
563                         <field reporter:label="Module Name" name="module" reporter:datatype="text"/>
564                         <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true"/>
565                 </fields>
566                 <links/>
567                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
568                         <actions>
569                                 <create permission="ADMIN_TRIGGER_VALIDATOR" global_required="true"/>
570                                 <retrieve/>
571                                 <update permission="ADMIN_TRIGGER_VALIDATOR" global_required="true"/>
572                                 <delete permission="ADMIN_TRIGGER_VALIDATOR" global_required="true"/>
573                         </actions>
574                 </permacrud>
575         </class>
576
577         <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">
578                 <fields oils_persist:primary="module">
579                         <field reporter:label="Module Name" name="module" reporter:datatype="text"/>
580                         <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true"/>
581                 </fields>
582                 <links/>
583                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
584                         <actions>
585                                 <create permission="ADMIN_TRIGGER_REACTOR" global_required="true"/>
586                                 <retrieve/>
587                                 <update permission="ADMIN_TRIGGER_REACTOR" global_required="true"/>
588                                 <delete permission="ADMIN_TRIGGER_REACTOR" global_required="true"/>
589                         </actions>
590                 </permacrud>
591         </class>
592
593         <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">
594                 <fields oils_persist:primary="module">
595                         <field reporter:label="Module Name" name="module" reporter:datatype="text"/>
596                         <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true"/>
597                 </fields>
598                 <links/>
599                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
600                         <actions>
601                                 <create permission="ADMIN_TRIGGER_CLEANUP" global_required="true"/>
602                                 <retrieve/>
603                                 <update permission="ADMIN_TRIGGER_CLEANUP" global_required="true"/>
604                                 <delete permission="ADMIN_TRIGGER_CLEANUP" global_required="true"/>
605                         </actions>
606                 </permacrud>
607         </class>
608
609         <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">
610                 <fields oils_persist:primary="id" oils_persist:sequence="action_trigger.environment_id_seq">
611                         <field reporter:label="Definition ID" name="id" reporter:datatype="id"/>
612                         <field reporter:label="Event Definition" name="event_def" reporter:datatype="link"/>
613                         <field reporter:label="Field Path" name="path" reporter:datatype="text"/>
614                         <field reporter:label="Collector" name="collector" reporter:datatype="link"/>
615                         <field reporter:label="Label" name="label" reporter:datatype="text"/>
616                 </fields>
617                 <links>
618                         <link field="event_def" reltype="has_a" key="id" map="" class="atevdef"/>
619                         <link field="collector" reltype="has_a" key="id" map="" class="atcol"/>
620                 </links>
621                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
622                         <actions>
623                                 <create permission="ADMIN_TRIGGER_EVENT_DEF">
624                     <context link="event_def" field="owner"/>
625                 </create>
626                                 <retrieve permission="ADMIN_TRIGGER_EVENT_DEF">
627                     <context link="event_def" field="owner"/>
628                 </retrieve>
629                                 <update permission="ADMIN_TRIGGER_EVENT_DEF">
630                     <context link="event_def" field="owner"/>
631                 </update>
632                                 <delete permission="ADMIN_TRIGGER_EVENT_DEF">
633                     <context link="event_def" field="owner"/>
634                 </delete>
635                         </actions>
636                 </permacrud>
637         </class>
638
639         <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">
640                 <fields oils_persist:primary="id" oils_persist:sequence="action_trigger.event_definition_id_seq">
641                         <field reporter:label="Definition ID" name="id" reporter:datatype="id"/>
642                         <field reporter:label="Active" name="active" reporter:datatype="bool"/>
643                         <field reporter:label="Owning Library" name="owner"  reporter:datatype="org_unit"/>
644                         <field reporter:label="Hook" name="hook"  reporter:datatype="link"/>
645                         <field reporter:label="Validator" name="validator"  reporter:datatype="link"/>
646                         <field reporter:label="Reactor" name="reactor"  reporter:datatype="link"/>
647                         <field reporter:label="Success Cleanup" name="cleanup_success"  reporter:datatype="link"/>
648                         <field reporter:label="Failure Cleanup" name="cleanup_failure"  reporter:datatype="link"/>
649                         <field reporter:label="Processing Delay" name="delay"  reporter:datatype="interval"/>
650                         <field reporter:label="Processing Delay Context Field" name="delay_field"  reporter:datatype="text"/>
651                         <field reporter:label="Processing Group Context Field" name="group_field"  reporter:datatype="text"/>
652                         <field reporter:label="Template" name="template"  reporter:datatype="text"/>
653                         <field reporter:label="Name" name="name"  reporter:datatype="text"/>
654                         <field reporter:label="Environmet Entries" name="env" oils_persist:virtual="true"  reporter:datatype="link"/>
655                         <field reporter:label="Parameters" name="params" oils_persist:virtual="true"  reporter:datatype="link"/>
656                 </fields>
657                 <links>
658                         <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
659                         <link field="hook" reltype="has_a" key="key" map="" class="ath"/>
660                         <link field="validator" reltype="has_a" key="module" map="" class="atval"/>
661                         <link field="reactor" reltype="has_a" key="module" map="" class="atreact"/>
662                         <link field="cleanup_success" reltype="has_a" key="module" map="" class="atclean"/>
663                         <link field="cleanup_failure" reltype="has_a" key="module" map="" class="atclean"/>
664                         <link field="env" reltype="has_many" key="event_def" map="" class="atenv"/>
665                         <link field="params" reltype="has_many" key="event_def" map="" class="atevparam"/>
666                 </links>
667                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
668                         <actions>
669                                 <create permission="ADMIN_TRIGGER_EVENT_DEF" context_field="owner"/>
670                                 <retrieve permission="ADMIN_TRIGGER_EVENT_DEF" context_field="owner"/>
671                                 <update permission="ADMIN_TRIGGER_EVENT_DEF" context_field="owner"/>
672                                 <delete permission="ADMIN_TRIGGER_EVENT_DEF" context_field="owner"/>
673                         </actions>
674                 </permacrud>
675         </class>
676
677         <class id="atev" controller="open-ils.cstore" oils_obj:fieldmapper="action_trigger::event" oils_persist:tablename="action_trigger.event" reporter:label="Trigger Event Entry">
678                 <fields oils_persist:primary="id" oils_persist:sequence="action_trigger.event_id_seq">
679                         <field reporter:label="Event ID" name="id" reporter:datatype="id"/>
680                         <field reporter:label="Target ID" name="target" reporter:datatype="int"/>
681                         <field reporter:label="Event Definition" name="event_def" reporter:datatype="link"/>
682                         <field reporter:label="Add Time" name="add_time" reporter:datatype="timestamp"/>
683                         <field reporter:label="Run Time" name="run_time" reporter:datatype="timestamp"/>
684                         <field reporter:label="Start Time" name="start_time" reporter:datatype="timestamp"/>
685                         <field reporter:label="Update Time" name="update_time" reporter:datatype="timestamp"/>
686                         <field reporter:label="Complete Time" name="complete_time" reporter:datatype="timestamp"/>
687                         <field reporter:label="State" name="state" reporter:datatype="text"/>
688                         <field reporter:label="Template Output" name="template_output" reporter:datatype="link"/>
689                         <field reporter:label="Error Output" name="error_output" reporter:datatype="text"/>
690                         <field reporter:label="Update Process" name="update_process" reporter:datatype="int"/>
691                 </fields>
692                 <links>
693                         <link field="event_def" reltype="has_a" key="id" map="" class="atevdef"/>
694                         <link field="template_output" reltype="has_a" key="id" map="" class="ateo"/>
695                         <link field="error_output" reltype="has_a" key="id" map="" class="ateo"/>
696                 </links>
697         </class>
698
699         <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">
700                 <fields oils_persist:primary="id" oils_persist:sequence="action_trigger.event_params_id_seq">
701                         <field reporter:label="Event ID" name="id" reporter:datatype="id"/>
702                         <field reporter:label="Event Definition" name="event_def" reporter:datatype="link"/>
703                         <field reporter:label="Parameter Name" name="param" reporter:datatype="text"/>
704                         <field reporter:label="Parameter Value" name="value" reporter:datatype="text"/>
705                 </fields>
706                 <links>
707                         <link field="event_def" reltype="has_a" key="id" map="" class="atevdef"/>
708                 </links>
709                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
710                         <actions>
711                                 <create permission="ADMIN_TRIGGER_EVENT_DEF">
712                     <context link="event_def" field="owner"/>
713                 </create>
714                                 <retrieve permission="ADMIN_TRIGGER_EVENT_DEF">
715                     <context link="event_def" field="owner"/>
716                 </retrieve>
717                                 <update permission="ADMIN_TRIGGER_EVENT_DEF">
718                     <context link="event_def" field="owner"/>
719                 </update>
720                                 <delete permission="ADMIN_TRIGGER_EVENT_DEF">
721                     <context link="event_def" field="owner"/>
722                 </delete>
723                         </actions>
724                 </permacrud>
725         </class>
726
727         <class id="aws" controller="open-ils.cstore" oils_obj:fieldmapper="actor::workstation" oils_persist:tablename="actor.workstation" reporter:label="Workstation">
728                 <fields oils_persist:primary="id" oils_persist:sequence="actor.workstation_id_seq">
729                         <field reporter:label="Workstation ID" name="id" reporter:datatype="id"/>
730                         <field reporter:label="Workstation Name" name="name" reporter:datatype="text"/>
731                         <field reporter:label="Owning Library" name="owning_lib"  reporter:datatype="org_unit"/>
732                 </fields>
733                 <links>
734                         <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
735                 </links>
736         </class>
737
738         <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">
739                 <fields oils_persist:primary="code">
740                         <field reporter:label="Code" name="code" reporter:selector="name" reporter:datatype="id"/>
741                         <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
742                         <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true"/>
743                         <field reporter:label="SIP2 Media Type" name="sip2_media_type" reporter:datatype="text" oils_persist:i18n="true"/>
744                         <field reporter:label="Magnetic Media" name="magnetic_media" reporter:datatype="bool"/>
745                 </fields>
746                 <links/>
747         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
748             <actions>
749                 <create permission="ADMIN_CIRC_MOD" global_required="true"/>
750                 <retrieve/>
751                 <update permission="ADMIN_CIRC_MOD" global_required="true"/>
752                 <delete permission="ADMIN_CIRC_MOD" global_required="true"/>
753             </actions>
754         </permacrud>
755         </class>
756
757         <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">
758                 <fields oils_persist:primary="code">
759                         <field reporter:label="Code" name="code" reporter:selector="name" reporter:datatype="id"/>
760                         <field reporter:label="Label" name="label" reporter:datatype="text" oils_persist:i18n="true"/>
761                 </fields>
762                 <links/>
763         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
764             <actions>
765                 <create permission="CREATE_COPY_BTYPE" global_required="true"/>
766                 <retrieve permission="CREATE_COPY_BTYPE UPDATE_COPY_BTYPE DELETE_COPY_BTYPE" global_required="true"/>
767                 <update permission="UPDATE_COPY_BTYPE" global_required="true"/>
768                 <delete permission="DELETE_COPY_BTYPE" global_required="true"/>
769             </actions>
770         </permacrud>
771         </class>
772
773         <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">
774                 <fields oils_persist:primary="code">
775                         <field reporter:label="Code" name="code" reporter:selector="name" reporter:datatype="id"/>
776                         <field reporter:label="Label" name="label" reporter:datatype="text" oils_persist:i18n="true"/>
777                 </fields>
778                 <links/>
779         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
780             <actions>
781                 <create permission="CREATE_CN_BTYPE" global_required="true"/>
782                 <retrieve permission="CREATE_CN_BTYPE UPDATE_CN_BTYPE DELETE_CN_BTYPE" global_required="true"/>
783                 <update permission="UPDATE_CN_BTYPE" global_required="true"/>
784                 <delete permission="DELETE_CN_BTYPE" global_required="true"/>
785             </actions>
786         </permacrud>
787         </class>
788
789         <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">
790                 <fields oils_persist:primary="code">
791                         <field reporter:label="Code" name="code" reporter:selector="name" reporter:datatype="id"/>
792                         <field reporter:label="Label" name="label" reporter:datatype="text" oils_persist:i18n="true"/>
793                 </fields>
794                 <links/>
795         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
796             <actions>
797                 <create permission="CREATE_BIB_BTYPE" global_required="true"/>
798                 <retrieve permission="CREATE_BIB_BTYPE UPDATE_BIB_BTYPE DELETE_BIB_BTYPE" global_required="true"/>
799                 <update permission="UPDATE_BIB_BTYPE" global_required="true"/>
800                 <delete permission="DELETE_BIB_BTYPE" global_required="true"/>
801             </actions>
802         </permacrud>
803         </class>
804
805         <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">
806                 <fields oils_persist:primary="code">
807                         <field reporter:label="Code" name="code" reporter:selector="name" reporter:datatype="id"/>
808                         <field reporter:label="Label" name="label" reporter:datatype="text" oils_persist:i18n="true"/>
809                 </fields>
810                 <links/>
811         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
812             <actions>
813                 <create permission="CREATE_USER_BTYPE" global_required="true"/>
814                 <retrieve permission="CREATE_USER_BTYPE UPDATE_USER_BTYPE DELETE_USER_BTYPE" global_required="true"/>
815                 <update permission="UPDATE_USER_BTYPE" global_required="true"/>
816                 <delete permission="DELETE_USER_BTYPE" global_required="true"/>
817             </actions>
818         </permacrud>
819         </class>
820
821         <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">
822                 <fields oils_persist:primary="code">
823                         <field reporter:label="Code" name="code" reporter:selector="value" reporter:datatype="id"/>
824                         <field reporter:label="Format" name="value" reporter:datatype="text" oils_persist:i18n="true"/>
825                 </fields>
826                 <links/>
827         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
828             <actions>
829                 <create permission="ADMIN_MARC_CODE" global_required="true"/>
830                 <retrieve/>
831                 <update permission="ADMIN_MARC_CODE" global_required="true"/>
832                 <delete permission="ADMIN_MARC_CODE" global_required="true"/>
833             </actions>
834         </permacrud>
835         </class>
836
837         <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">
838                 <fields oils_persist:primary="id" oils_persist:sequence="config.hold_matrix_matchpoint_id_seq">
839                         <field reporter:label="Matchpoint ID" name="id" reporter:datatype="id"/>
840                         <field reporter:label="Active?" name="active" reporter:datatype="bool"/>
841                         <field reporter:label="User Home Library" name="user_home_ou" reporter:datatype="org_unit"/>
842                         <field reporter:label="Request Library" name="request_ou" reporter:datatype="org_unit"/>
843                         <field reporter:label="Pickup Library" name="pickup_ou" reporter:datatype="org_unit"/>
844                         <field reporter:label="Owning Library" name="item_owning_ou" reporter:datatype="org_unit"/>
845                         <field reporter:label="Item Circ Library" name="item_circ_ou" reporter:datatype="org_unit"/>
846                         <field reporter:label="User Permission Group" name="usr_grp" reporter:datatype="link"/>
847                         <field reporter:label="Requestor Permission Group" name="requestor_grp" reporter:datatype="link"/>
848                         <field reporter:label="Circulation Modifier" name="circ_modifier" oils_persist:primitive="string" reporter:datatype="link"/>
849                         <field reporter:label="MARC Type" name="marc_type" oils_persist:primitive="string" reporter:datatype="link"/>
850                         <field reporter:label="MARC Form" name="marc_form" oils_persist:primitive="string" reporter:datatype="link"/>
851                         <field reporter:label="Videorecording Format" name="marc_vr_format" oils_persist:primitive="string" reporter:datatype="link"/>
852                         <field reporter:label="Reference?" name="ref_flag" reporter:datatype="bool"/>
853                         <field reporter:label="Holdable?" name="holdable" reporter:datatype="bool"/>
854                         <field reporter:label="Range is from Owning Lib?" name="distance_is_from_owner" reporter:datatype="bool"/>
855                         <field reporter:label="Transit Range" name="transit_range" reporter:datatype="int"/>
856                         <field reporter:label="Max Holds" name="max_holds" reporter:datatype="int"/>
857                         <field reporter:label="Max includes Frozen" name="include_frozen_holds" reporter:datatype="bool"/>
858                         <field reporter:label="Copy Age Hold Protection Rule" name="age_hold_protect_rule" reporter:datatype="link"/>
859                 </fields>
860                 <links>
861                         <link field="user_home_ou" reltype="has_a" key="id" map="" class="aou"/>
862                         <link field="request_ou" reltype="has_a" key="id" map="" class="aou"/>
863                         <link field="pickup_ou" reltype="has_a" key="id" map="" class="aou"/>
864                         <link field="item_owning_ou" reltype="has_a" key="id" map="" class="aou"/>
865                         <link field="item_circ_ou" reltype="has_a" key="id" map="" class="aou"/>
866                         <link field="usr_grp" reltype="has_a" key="id" map="" class="pgt"/>
867                         <link field="requestor_grp" reltype="has_a" key="id" map="" class="pgt"/>
868                         <link field="circ_modifier" reltype="has_a" key="code" map="" class="ccm"/>
869                         <link field="marc_type" reltype="has_a" key="code" map="" class="citm"/>
870                         <link field="marc_form" reltype="has_a" key="code" map="" class="cifm"/>
871                         <link field="marc_vr_format" reltype="has_a" key="code" map="" class="cvrfm"/>
872                         <link field="age_hold_protect_rule" reltype="has_a" key="id" map="" class="crahp"/>
873                 </links>
874         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
875             <actions>
876                 <create permission="ADMIN_HOLD_MATRIX_MATCHPOINT" global_required="true"/>
877                 <retrieve permission="ADMIN_HOLD_MATRIX_MATCHPOINT VIEW_HOLD_MATRIX_MATCHPOINT" global_required="true"/>
878                 <update permission="ADMIN_HOLD_MATRIX_MATCHPOINT" global_required="true"/>
879                 <delete permission="ADMIN_HOLD_MATRIX_MATCHPOINT" global_required="true"/>
880             </actions>
881         </permacrud>
882         </class>
883
884         <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">
885                 <fields oils_persist:primary="id" oils_persist:sequence="config.circ_matrix_matchpoint_id_seq">
886                         <field reporter:label="Matchpoint ID" name="id" reporter:datatype="id"/>
887                         <field reporter:label="Active?" name="active" reporter:datatype="bool"/>
888                         <field reporter:label="Org Unit" name="org_unit" reporter:datatype="org_unit"/>
889                         <field reporter:label="Permission Group" name="grp" reporter:datatype="link"/>
890                         <field reporter:label="Circulation Modifier" name="circ_modifier" oils_persist:primitive="string" reporter:datatype="link"/>
891                         <field reporter:label="MARC Type" name="marc_type" oils_persist:primitive="string" reporter:datatype="link"/>
892                         <field reporter:label="MARC Form" name="marc_form" oils_persist:primitive="string" reporter:datatype="link"/>
893                         <field reporter:label="Videorecording Format" name="marc_vr_format" oils_persist:primitive="string" reporter:datatype="link"/>
894                         <field reporter:label="Reference?" name="ref_flag" reporter:datatype="bool"/>
895                         <field reporter:label="User Age: Lower Bound" name="usr_age_lower_bound" reporter:datatype="text"/>
896                         <field reporter:label="User Age: Upper Bound" name="usr_age_upper_bound" reporter:datatype="text"/>
897                         <field reporter:label="Circulate?" name="circulate" reporter:datatype="bool"/>
898                         <field reporter:label="Duration Rule" name="duration_rule" reporter:datatype="link"/>
899                         <field reporter:label="Recurring Fine Rule" name="recurring_fine_rule" reporter:datatype="link"/>
900                         <field reporter:label="Max Fine Rule" name="max_fine_rule" reporter:datatype="link"/>
901                         <field reporter:label="Script Test" name="script_test" reporter:datatype="text"/>
902                 </fields>
903                 <links>
904                         <link field="org_unit" reltype="has_a" key="id" map="" class="aou"/>
905                         <link field="grp" reltype="has_a" key="id" map="" class="pgt"/>
906                         <link field="circ_modifier" reltype="has_a" key="code" map="" class="ccm"/>
907                         <link field="marc_type" reltype="has_a" key="code" map="" class="citm"/>
908                         <link field="marc_form" reltype="has_a" key="code" map="" class="cifm"/>
909                         <link field="marc_vr_format" reltype="has_a" key="code" map="" class="cvrfm"/>
910                         <link field="duration_rule" reltype="has_a" key="id" map="" class="crcd"/>
911                         <link field="max_fine_rule" reltype="has_a" key="id" map="" class="crmf"/>
912                         <link field="recurring_fine_rule" reltype="has_a" key="id" map="" class="crrf"/>
913                 </links>
914         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
915             <actions>
916                 <create permission="ADMIN_CIRC_MATRIX_MATCHPOINT" context_field='org_unit'/>
917                 <retrieve permission="ADMIN_CIRC_MATRIX_MATCHPOINT VIEW_CIRC_MATRIX_MATCHPOINT" context_field='org_unit'/>
918                 <update permission="ADMIN_CIRC_MATRIX_MATCHPOINT" context_field='org_unit'/>
919                 <delete permission="ADMIN_CIRC_MATRIX_MATCHPOINT" context_field='org_unit'/>
920             </actions>
921         </permacrud>
922         </class>
923
924         <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">
925                 <fields oils_persist:primary="id" oils_persist:sequence="config.circ_matrix_circ_mod_test_id_seq">
926                         <field reporter:label="Test ID" name="id" reporter:datatype="id"/>
927                         <field reporter:label="Matchpoint ID" name="matchpoint" reporter:datatype="link"/>
928                         <field reporter:label="Items Out" name="items_out" reporter:datatype="int"/>
929                 </fields>
930                 <links>
931                         <link field="matchpoint" reltype="has_a" key="id" map="" class="ccmm"/>
932                 </links>
933         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
934             <actions>
935                 <create permission="ADMIN_CIRC_MATRIX_MATCHPOINT">
936                     <context link="matchpoint" field="org_unit"/>
937                 </create>
938                 <retrieve/>
939                 <update permission="ADMIN_CIRC_MATRIX_MATCHPOINT">
940                     <context link="matchpoint" field="org_unit"/>
941                 </update>
942                 <delete permission="ADMIN_CIRC_MATRIX_MATCHPOINT">
943                     <context link="matchpoint" field="org_unit"/>
944                 </delete>
945             </actions>
946         </permacrud>
947         </class>
948
949         <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">
950                 <fields oils_persist:primary="id" oils_persist:sequence="config.circ_matrix_circ_mod_test_map_id_seq">
951                         <field reporter:label="Entry ID" name="id" reporter:datatype="id"/>
952                         <field reporter:label="Circulation Modifier Subtest ID" name="circ_mod_test" reporter:datatype="link"/>
953                         <field reporter:label="Circulation Modifier" name="circ_mod" reporter:datatype="link"/>
954                 </fields>
955                 <links>
956                         <link field="circ_mod_test" reltype="has_a" key="id" map="" class="ccmcmt"/>
957                         <link field="circ_mod" reltype="has_a" key="code" map="" class="ccm"/>
958                 </links>
959         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
960             <actions>
961                 <create permission="ADMIN_CIRC_MATRIX_MATCHPOINT">
962                     <context link="circ_mod_test" jump="matchpoint" field="org_unit"/>
963                 </create>
964                 <retrieve/>
965                 <update permission="ADMIN_CIRC_MATRIX_MATCHPOINT">
966                     <context link="circ_mod_test" jump="matchpoint" field="org_unit"/>
967                 </update>
968                 <delete permission="ADMIN_CIRC_MATRIX_MATCHPOINT">
969                     <context link="circ_mod_test" jump="matchpoint" field="org_unit"/>
970                 </delete>
971             </actions>
972         </permacrud>
973         </class>
974
975         <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">
976                 <fields oils_persist:primary="id" oils_persist:sequence="config.identification_type_id_seq">
977                         <field reporter:label="Identification ID" name="id" reporter:selector="name" reporter:datatype="id"/>
978                         <field reporter:label="Identification Name" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
979                 </fields>
980                 <links/>
981         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
982             <actions>
983                 <create permission="ADMIN_IDENT_TYPE" global_required="true"/>
984                 <retrieve/>
985                 <update permission="ADMIN_IDENT_TYPE" global_required="true"/>
986                 <delete permission="ADMIN_IDENT_TYPE" global_required="true"/>
987             </actions>
988         </permacrud>
989         </class>
990
991         <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">
992                 <fields oils_persist:primary="id" oils_persist:sequence="action.survey_question_id_seq">
993                         <field reporter:label="Answers" name="answers" oils_persist:virtual="true" reporter:datatype="link"/>
994                         <field reporter:label="Responses" name="responses" oils_persist:virtual="true" reporter:datatype="link"/>
995                         <field reporter:label="Question ID" name="id" reporter:datatype="id" />
996                         <field reporter:label="Question" name="question" reporter:datatype="text"/>
997                         <field reporter:label="Survey" name="survey" reporter:datatype="link"/>
998                 </fields>
999                 <links>
1000                         <link field="survey" reltype="has_a" key="id" map="" class="asv"/>
1001                         <link field="responses" reltype="has_many" key="question" map="" class="asvr"/>
1002                         <link field="answers" reltype="has_many" key="question" map="" class="asva"/>
1003                 </links>
1004         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1005             <actions>
1006                 <create permission="ADMIN_SURVEY">
1007                     <context link="survey" field="owner"/>
1008                 </create>
1009                 <retrieve/>
1010                 <update permission="ADMIN_SURVEY">
1011                     <context link="survey" field="owner"/>
1012                 </update>
1013                 <delete permission="ADMIN_SURVEY">
1014                     <context link="survey" field="owner"/>
1015                 </delete>
1016             </actions>
1017         </permacrud>
1018         </class>
1019         <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">
1020                 <fields oils_persist:primary="id" oils_persist:sequence="">
1021                         <field reporter:label="Balance Owed" name="balance_owed" reporter:datatype="money"/>
1022                         <field reporter:label="Transaction ID" name="id" reporter:datatype="id"/>
1023                         <field reporter:label="Last Billing Note" name="last_billing_note" reporter:datatype="text"/>
1024                         <field reporter:label="Last Billing Timestamp" name="last_billing_ts" reporter:datatype="timestamp"/>
1025                         <field reporter:label="Last Billing Type" name="last_billing_type" reporter:datatype="text"/>
1026                         <field reporter:label="Last Payment Note" name="last_payment_note" reporter:datatype="text"/>
1027                         <field reporter:label="Last Payment Timestamp" name="last_payment_ts" reporter:datatype="timestamp"/>
1028                         <field reporter:label="Last Payment Type" name="last_payment_type" reporter:datatype="text"/>
1029                         <field reporter:label="Total Owed" name="total_owed" reporter:datatype="money"/>
1030                         <field reporter:label="Total Paid" name="total_paid" reporter:datatype="money"/>
1031                         <field reporter:label="Billed User" name="usr" reporter:datatype="link"/>
1032                         <field reporter:label="Transaction Finish Time" name="xact_finish" reporter:datatype="timestamp" />
1033                         <field reporter:label="Transaction Start Time" name="xact_start" reporter:datatype="timestamp" />
1034                         <field reporter:label="Transaction Type" name="xact_type" reporter:datatype="text"/>
1035                 </fields>
1036                 <links>
1037                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
1038                 </links>
1039         </class>
1040         <class id="aun" controller="open-ils.cstore" oils_obj:fieldmapper="actor::usr_note" oils_persist:tablename="actor.usr_note" reporter:label="User Note">
1041                 <fields oils_persist:primary="id" oils_persist:sequence="actor.usr_note_id_seq">
1042                         <field reporter:label="Creation Date/Time" name="create_date" reporter:datatype="timestamp"/>
1043                         <field reporter:label="Creating Staff" name="creator" reporter:datatype="link"/>
1044                         <field reporter:label="Note ID" name="id" reporter:datatype="id" />
1045                         <field reporter:label="Is OPAC Visible?" name="pub" reporter:datatype="bool"/>
1046                         <field reporter:label="Note Title" name="title" reporter:datatype="text"/>
1047                         <field reporter:label="User" name="usr" reporter:datatype="link" />
1048                         <field reporter:label="Note Content" name="value" reporter:datatype="text"/>
1049                 </fields>
1050                 <links>
1051                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
1052                         <link field="creator" reltype="has_a" key="id" map="" class="au"/>
1053                 </links>
1054         </class>
1055         <class id="aus" controller="open-ils.cstore" oils_obj:fieldmapper="actor::user_setting" oils_persist:tablename="actor.usr_setting" reporter:label="User Setting">
1056                 <fields oils_persist:primary="id" oils_persist:sequence="actor.usr_setting_id_seq">
1057                         <field reporter:label="Setting ID" name="id" reporter:datatype="id" />
1058                         <field reporter:label="Name" name="name" reporter:datatype="text"/>
1059                         <field reporter:label="User" name="usr" reporter:datatype="link"/>
1060                         <field reporter:label="Value" name="value" reporter:datatype="text"/>
1061                 </fields>
1062                 <links>
1063                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
1064                 </links>
1065         </class>
1066         <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">
1067                 <fields oils_persist:primary="id" oils_persist:sequence="metabib.author_field_entry_id_seq">
1068                         <field name="field" reporter:datatype="link"/>
1069                         <field name="id" reporter:datatype="id" />
1070                         <field name="source" reporter:datatype="link"/>
1071                         <field name="value" reporter:datatype="text"/>
1072                 </fields>
1073                 <links>
1074                         <link field="source" reltype="has_a" key="id" map="" class="bre"/>
1075                         <link field="field" reltype="has_a" key="id" map="" class="cmf"/>
1076                 </links>
1077         </class>
1078         <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">
1079                 <fields oils_persist:primary="id" oils_persist:sequence="action.in_house_use_id_seq">
1080                         <field reporter:label="Use ID" name="id" reporter:datatype="id" />
1081                         <field reporter:label="Item" name="item" reporter:datatype="int" />
1082                         <field reporter:label="Using Library" name="org_unit" reporter:datatype="org_unit"/>
1083                         <field reporter:label="Recording Staff" name="staff" reporter:datatype="link"/>
1084                         <field reporter:label="Use Date/Time" name="use_time" reporter:datatype="timestamp"/>
1085                 </fields>
1086                 <links>
1087                         <link field="item" reltype="has_a" key="id" map="" class="acp"/>
1088                         <link field="staff" reltype="has_a" key="id" map="" class="au"/>
1089                         <link field="org_unit" reltype="has_a" key="id" map="" class="aou"/>
1090                 </links>
1091         </class>
1092         <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">
1093                 <fields oils_persist:primary="id" oils_persist:sequence="action.non_cat_in_house_use_id_seq">
1094                         <field reporter:label="Use ID" name="id" reporter:datatype="id" />
1095                         <field reporter:label="Item Type" name="item_type" reporter:datatype="link"/>
1096                         <field reporter:label="Using Library" name="org_unit" reporter:datatype="org_unit"/>
1097                         <field reporter:label="Recording Staff" name="staff" reporter:datatype="link"/>
1098                         <field reporter:label="Use Date/Time" name="use_time" reporter:datatype="timestamp"/>
1099                 </fields>
1100                 <links>
1101                         <link field="item_type" reltype="has_a" key="id" map="" class="cnct"/>
1102                         <link field="staff" reltype="has_a" key="id" map="" class="au"/>
1103                         <link field="org_unit" reltype="has_a" key="id" map="" class="aou"/>
1104                 </links>
1105         </class>
1106         <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">
1107                 <fields oils_persist:primary="id" oils_persist:sequence="action.transit_copy_id_seq">
1108                         <field reporter:label="Pretransit Copy Status" name="copy_status" reporter:datatype="bool"/>
1109                         <field reporter:label="Destination" name="dest" reporter:datatype="link"/>
1110                         <field reporter:label="Receive Date/Time" name="dest_recv_time" reporter:datatype="timestamp"/>
1111                         <field reporter:label="Transit ID" name="id" reporter:datatype="id"/>
1112                         <field reporter:label="Is Persistent? (unused)" name="persistant_transfer" reporter:datatype="bool"/>
1113                         <field reporter:label="Previous Hop (unused)" name="prev_hop" reporter:datatype="link"/>
1114                         <field reporter:label="Source" name="source" reporter:datatype="link"/>
1115                         <field reporter:label="Send Date/Time" name="source_send_time" reporter:datatype="timestamp"/>
1116                         <field reporter:label="Transited Copy" name="target_copy" reporter:datatype="link"/>
1117                         <field reporter:label="Hold Transit" name="hold_transit_copy" oils_persist:virtual="true" reporter:datatype="link"/>
1118                 </fields>
1119                 <links>
1120                         <link field="hold_transit_copy" reltype="might_have" key="id" map="" class="ahtc"/>
1121                         <link field="source" reltype="has_a" key="id" map="" class="aou"/>
1122                         <link field="copy_status" reltype="has_a" key="id" map="" class="ccs"/>
1123                         <link field="dest" reltype="has_a" key="id" map="" class="aou"/>
1124                         <link field="target_copy" reltype="has_a" key="id" map="" class="acp"/>
1125                 </links>
1126         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1127             <actions>
1128                 <create permission="TRANSIT_COPY" context_field="owner">
1129                     <context link="target_copy" field="circ_lib"/>
1130                 </create>
1131                 <retrieve/>
1132                 <update permission="UPDATE_TRANSIT" context_field="dest source"/>
1133                 <delete permission="DELETE_TRANSIT" context_field="dest source"/>
1134             </actions>
1135         </permacrud>
1136         </class>
1137         <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">
1138                 <fields oils_persist:primary="id" oils_persist:sequence="action.survey_response_id_seq">
1139                         <field reporter:label="Answer" name="answer" reporter:datatype="link"/>
1140                         <field reporter:label="Answer Date/Time" name="answer_date" reporter:datatype="timestamp"/>
1141                         <field reporter:label="Effective Answer Date/Time" name="effective_date" reporter:datatype="timestamp"/>
1142                         <field reporter:label="Answer ID" name="id" reporter:datatype="id" />
1143                         <field reporter:label="Question" name="question" reporter:datatype="link"/>
1144                         <field reporter:label="Response Group ID" name="response_group_id" reporter:datatype="int" />
1145                         <field reporter:label="Survey" name="survey" reporter:datatype="link"/>
1146                         <field reporter:label="Responding User" name="usr" reporter:datatype="link"/>
1147                 </fields>
1148                 <links>
1149                         <link field="question" reltype="has_a" key="id" map="" class="asvq"/>
1150                         <link field="survey" reltype="has_a" key="id" map="" class="asv"/>
1151                         <link field="answer" reltype="has_a" key="id" map="" class="asva"/>
1152                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
1153                 </links>
1154         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1155             <actions>
1156                 <create permission="ADMIN_SURVEY">
1157                     <context link="survey" field="owner"/>
1158                 </create>
1159                 <retrieve/>
1160                 <update permission="ADMIN_SURVEY">
1161                     <context link="survey" field="owner"/>
1162                 </update>
1163                 <delete permission="ADMIN_SURVEY">
1164                     <context link="survey" field="owner"/>
1165                 </delete>
1166             </actions>
1167         </permacrud>
1168         </class>
1169         <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">
1170                 <fields oils_persist:primary="id" oils_persist:sequence="container.copy_bucket_item_id_seq">
1171                         <field name="bucket" />
1172                         <field name="id" reporter:datatype="id" />
1173                         <field name="target_copy" reporter:datatype="link"/>
1174                         <field name="create_time" reporter:datatype="timestamp" />
1175                         <field name="pos" reporter:datatype="int" />
1176                         <field name="notes" oils_persist:virtual="true" reporter:datatype="link" />
1177                 </fields>
1178                 <links>
1179                         <link field="target_copy" reltype="has_a" key="id" map="" class="acp"/>
1180                         <link field="bucket" reltype="has_a" key="id" map="" class="ccb"/>
1181             <link field="notes" reltype="has_many" map="" key="item" class="ccbin"/>
1182                 </links>
1183         </class>
1184         <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">
1185                 <fields oils_persist:primary="id" oils_persist:sequence="container.copy_bucket_item_note_id_seq">
1186                         <field name="id" reporter:datatype="id" />
1187                         <field name="item" reporter:datatype="link"/>
1188                         <field name="note" reporter:datatype="text" />
1189                 </fields>
1190                 <links>
1191                         <link field="item" reltype="has_a" key="id" map="" class="ccbi"/>
1192                 </links>
1193         </class>
1194         <class id="are" controller="open-ils.cstore" oils_obj:fieldmapper="authority::record_entry" oils_persist:tablename="authority.record_entry" reporter:label="Authority Record Entry">
1195                 <fields oils_persist:primary="id" oils_persist:sequence="authority.record_entry_id_seq">
1196                         <field name="active" reporter:datatype="bool"/>
1197                         <field name="arn_source" />
1198                         <field name="arn_value" />
1199                         <field name="create_date" reporter:datatype="timestamp"/>
1200                         <field name="creator" />
1201                         <field name="deleted" reporter:datatype="bool"/>
1202                         <field name="edit_date" reporter:datatype="timestamp"/>
1203                         <field name="editor" />
1204                         <field name="id" reporter:datatype="id" />
1205                         <field name="last_xact_id" />
1206                         <field name="marc" />
1207                         <field name="source" />
1208                         <field name="fixed_fields" oils_persist:virtual="true" />
1209                         <field name="notes" oils_persist:virtual="true" />
1210                 </fields>
1211                 <links>
1212                         <link field="editor" reltype="has_a" key="id" map="" class="au"/>
1213                         <link field="creator" reltype="has_a" key="id" map="" class="au"/>
1214                         <link field="notes" reltype="has_many" key="record" map="" class="arn"/>
1215                         <link field="fixed_fields" reltype="might_have" key="record" map="" class="ard"/>
1216                 </links>
1217         </class>
1218         <class id="ard" controller="open-ils.cstore" oils_obj:fieldmapper="authority::record_descriptor" oils_persist:tablename="authority.rec_descriptor" reporter:label="Authority Record Descriptor">
1219                 <fields oils_persist:primary="id" oils_persist:sequence="authority.rec_descriptor_id_seq">
1220                         <field name="char_encoding" />
1221                         <field name="id" />
1222                         <field name="record" />
1223                         <field name="record_status" />
1224                 </fields>
1225                 <links>
1226                         <link field="record" reltype="has_a" key="id" map="" class="are"/>
1227                 </links>
1228         </class>
1229         <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">
1230                 <fields oils_persist:primary="code" oils_persist:sequence="">
1231                         <field reporter:label="Language Code" name="code" reporter:selector="value" reporter:datatype="text"/>
1232                         <field reporter:label="Language" name="value" reporter:datatype="text" oils_persist:i18n="true"/>
1233                 </fields>
1234                 <links/>
1235         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1236             <actions>
1237                 <create permission="CREATE_MARC_CODE" global_required="true"/>
1238                 <retrieve permission="CREATE_MARC_CODE UPDATE_MARC_CODE DELETE_MARC_CODE" global_required="true"/>
1239                 <update permission="UPDATE_MARC_CODE" global_required="true"/>
1240                 <delete permission="DELETE_MARC_CODE" global_required="true"/>
1241             </actions>
1242         </permacrud>
1243         </class>
1244         <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">
1245                 <fields oils_persist:primary="id" oils_persist:sequence="money.payment_id_seq">
1246                         <field name="accepting_usr" />
1247                         <field name="amount" reporter:datatype="money" />
1248                         <field name="amount_collected" reporter:datatype="money" />
1249                         <field name="approval_code" reporter:datatype="text"/>
1250                         <field name="cash_drawer" reporter:datatype="link"/>
1251                         <field name="cc_number" reporter:datatype="text"/>
1252                         <field name="cc_type" reporter:datatype="text"/>
1253                         <field name="expire_month" reporter:datatype="int" />
1254                         <field name="expire_year" reporter:datatype="int" />
1255                         <field name="id" reporter:datatype="id" />
1256                         <field name="note" reporter:datatype="text"/>
1257                         <field name="payment_ts" reporter:datatype="timestamp"/>
1258                         <field name="xact" reporter:datatype="link"/>
1259                         <field name="payment_type" oils_persist:virtual="true" reporter:datatype="text"/>
1260                         <field name="payment" oils_persist:virtual="true" reporter:datatype="link"/>
1261                 </fields>
1262                 <links>
1263                         <link field="payment" reltype="might_have" key="id" map="" class="mp"/>
1264                         <link field="accepting_usr" reltype="has_a" key="id" map="" class="au"/>
1265                         <link field="cash_drawer" reltype="has_a" key="id" map="" class="aws"/>
1266                         <link field="xact" reltype="has_a" key="id" map="" class="mbt"/>
1267                 </links>
1268         </class>
1269         <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">
1270                 <fields oils_persist:primary="name">
1271                         <field name="field_class" />
1272                         <field reporter:label="Name" name="name" reporter:datatype="text" />
1273                         <field reporter:label="Namespace URI" name="namespace_uri" reporter:datatype="text"/>
1274                         <field reporter:label="Namespace Prefix" name="prefix" reporter:datatype="text"/>
1275                         <field reporter:label="XSLT" name="xslt" reporter:datatype="text" />
1276                 </fields>
1277                 <links/>
1278         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1279             <actions>
1280                 <create permission="CREATE_XML_TRANSFORM" global_required="true"/>
1281                 <retrieve/>
1282                 <update permission="UPDATE_XML_TRANSFORM" global_required="true"/>
1283                 <delete permission="DELETE_XML_TRANSFORM" global_required="true"/>
1284             </actions>
1285         </permacrud>
1286         </class>
1287         <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">
1288                 <fields oils_persist:primary="id" oils_persist:sequence="config.metabib_field_id_seq">
1289                         <field name="field_class" />
1290                         <field name="id" reporter:datatype="id" />
1291                         <field name="name" reporter:datatype="text"/>
1292                         <field name="xpath" reporter:datatype="text"/>
1293                         <field name="weight" reporter:datatype="int" />
1294                         <field name="format" reporter:datatype="link"/>
1295                         <field name="search_field" reporter:datatype="bool" />
1296                         <field name="facet_field" reporter:datatype="bool" />
1297                 </fields>
1298                 <links/>
1299         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1300             <actions>
1301                 <create permission="CREATE_METABIB_FIELD" global_required="true"/>
1302                 <retrieve/>
1303                 <update permission="UPDATE_METABIB_FIELD" global_required="true"/>
1304                 <delete permission="DELETE_METABIB_FIELD" global_required="true"/>
1305             </actions>
1306         </permacrud>
1307         </class>
1308         <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">
1309                 <fields oils_persist:primary="code" oils_persist:sequence="">
1310                         <field reporter:label="Audience Code" name="code" reporter:selector="value" reporter:datatype="text"/>
1311                         <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true" />
1312                         <field reporter:label="Audience" name="value"  reporter:datatype="text" oils_persist:i18n="true"/>
1313                 </fields>
1314                 <links/>
1315         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1316             <actions>
1317                 <create permission="CREATE_MARC_CODE" global_required="true"/>
1318                 <retrieve permission="CREATE_MARC_CODE UPDATE_MARC_CODE DELETE_MARC_CODE" global_required="true"/>
1319                 <update permission="UPDATE_MARC_CODE" global_required="true"/>
1320                 <delete permission="DELETE_MARC_CODE" global_required="true"/>
1321             </actions>
1322         </permacrud>
1323         </class>
1324         <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">
1325                 <fields oils_persist:primary="code" oils_persist:sequence="">
1326                         <field reporter:label="Item Form Code" name="code" reporter:selector="value" reporter:datatype="text"/>
1327                         <field reporter:label="Item Form" name="value"  reporter:datatype="text" oils_persist:i18n="true"/>
1328                 </fields>
1329                 <links/>
1330         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1331             <actions>
1332                 <create permission="ADMIN_MARC_CODE" global_required="true"/>
1333                 <retrieve/>
1334                 <update permission="ADMIN_MARC_CODE" global_required="true"/>
1335                 <delete permission="ADMIN_MARC_CODE" global_required="true"/>
1336             </actions>
1337         </permacrud>
1338         </class>
1339         <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">
1340                 <fields oils_persist:primary="id" oils_persist:sequence="asset.call_number_id_seq">
1341                         <field reporter:label="Copies" name="copies" oils_persist:virtual="true" reporter:datatype="link"/>
1342                         <field reporter:label="Create Date/Time" name="create_date" reporter:datatype="timestamp"/>
1343                         <field reporter:label="Creating User" name="creator" reporter:datatype="link"/>
1344                         <field reporter:label="Is Deleted" name="deleted" reporter:datatype="bool"/>
1345                         <field reporter:label="Last Edit Date/Time" name="edit_date" reporter:datatype="timestamp"/>
1346                         <field reporter:label="Last Editing User" name="editor" reporter:datatype="link"/>
1347                         <field reporter:label="Call Number/Volume ID" name="id" reporter:datatype="id" />
1348                         <field reporter:label="Call Number Label" name="label" reporter:datatype="text"/>
1349                         <field reporter:label="Owning Library" name="owning_lib"  reporter:datatype="org_unit"/>
1350                         <field reporter:label="Bib Record" name="record" reporter:datatype="link"/>
1351                         <field reporter:label="Notes" name="notes" oils_persist:virtual="true" reporter:datatype="link"/>
1352                         <field reporter:label="URI Maps" name="uri_maps" oils_persist:virtual="true" reporter:datatype="link"/>
1353                         <field reporter:label="URIs" name="uris" oils_persist:virtual="true" reporter:datatype="link"/>
1354                 </fields>
1355                 <links>
1356                         <link field="editor" reltype="has_a" key="id" map="" class="au"/>
1357                         <link field="creator" reltype="has_a" key="id" map="" class="au"/>
1358                         <link field="record" reltype="has_a" key="id" map="" class="bre"/>
1359                         <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
1360                         <link field="notes" reltype="has_many" key="call_number" map="" class="acnn"/>
1361                         <link field="copies" reltype="has_many" key="call_number" map="" class="acp"/>
1362                         <link field="uris" reltype="has_many" key="call_number" map="uri" class="auricnm"/>
1363                         <link field="uri_maps" reltype="has_many" key="call_number" map="" class="auricnm"/>
1364                 </links>
1365         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1366             <actions>
1367                 <create permission="CREATE_VOLUME" context_field="owning_lib"/>
1368                 <retrieve/>
1369                 <update permission="UPDATE_VOLUME" context_field="owning_lib"/>
1370                 <delete permission="DELETE_VOLUME" context_field="owning_lib"/>
1371             </actions>
1372         </permacrud>
1373         </class>
1374         <class id="auri" controller="open-ils.cstore" oils_obj:fieldmapper="asset::uri" oils_persist:tablename="asset.uri" reporter:label="Electronic Access URI">
1375                 <fields oils_persist:primary="id" oils_persist:sequence="asset.uri_id_seq">
1376                         <field reporter:label="URI ID" name="id" reporter:datatype="id"/>
1377                         <field reporter:label="URI" name="href" reporter:datatype="text"/>
1378                         <field reporter:label="Label" name="label" reporter:datatype="text"/>
1379                         <field reporter:label="Use Information" name="use_restriction" reporter:datatype="text"/>
1380                         <field reporter:label="Active" name="active" reporter:datatype="bool"/>
1381                         <field reporter:label="Call Number Maps" name="call_number_maps" oils_persist:virtual="true" reporter:datatype="link"/>
1382                         <field reporter:label="Call Numbers" name="call_numbers" oils_persist:virtual="true" reporter:datatype="link"/>
1383                 </fields>
1384                 <links>
1385                         <link field="call_numbers" reltype="has_many" key="uri" map="call_number" class="auricnm"/>
1386                         <link field="call_number_maps" reltype="has_many" key="uri" map="" class="auricnm"/>
1387         </links>
1388         </class>
1389         <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">
1390                 <fields oils_persist:primary="id" oils_persist:sequence="asset.uri_call_number_map_id_seq">
1391                         <field reporter:label="ID" name="id" reporter:datatype="id"/>
1392                         <field reporter:label="URI" name="uri" reporter:datatype="int"/>
1393                         <field reporter:label="Call Number" name="call_number" reporter:datatype="text"/>
1394                 </fields>
1395                 <links>
1396                         <link field="uri" reltype="has_a" key="id" map="" class="auri"/>
1397                         <link field="call_number" reltype="has_a" key="id" map="" class="acn"/>
1398                 </links>
1399         </class>
1400         <class id="cst" controller="open-ils.cstore" oils_obj:fieldmapper="config::standing" oils_persist:tablename="config.standing" reporter:label="Standing Penalty">
1401                 <fields oils_persist:primary="id" oils_persist:sequence="config.standing_id_seq">
1402                         <field name="id" reporter:datatype="id" />
1403                         <field name="value" oils_persist:i18n="true" />
1404                 </fields>
1405                 <links/>
1406         </class>
1407         <class id="mous" controller="open-ils.cstore" oils_obj:fieldmapper="money::open_user_summary" oils_persist:tablename="money.open_usr_summary" reporter:label="Open User Summary">
1408                 <fields oils_persist:primary="usr" oils_persist:sequence="">
1409                         <field name="balance_owed" reporter:datatype="money" />
1410                         <field name="total_owed" reporter:datatype="money" />
1411                         <field name="total_paid" reporter:datatype="money" />
1412                         <field name="usr" reporter:datatype="link"/>
1413                 </fields>
1414                 <links/>
1415         </class>
1416         <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">
1417                 <fields oils_persist:primary="id" oils_persist:sequence="money.collections_tracker_id_seq">
1418                         <field name="collector" />
1419                         <field name="enter_time" reporter:datatype="timestamp"/>
1420                         <field name="id" reporter:datatype="id" />
1421                         <field name="location" reporter:datatype="link"/>
1422                         <field name="usr" reporter:datatype="link"/>
1423                 </fields>
1424                 <links>
1425                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
1426                         <link field="collector" reltype="has_a" key="id" map="" class="au"/>
1427                         <link field="location" reltype="has_a" key="id" map="" class="aou"/>
1428                 </links>
1429         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1430             <actions>
1431                 <create permission="money.collections_tracker.create" context_field="location"/>
1432                 <retrieve permission="money.collections_tracker.create" context_field="location"/> 
1433                 <delete permission="money.collections_tracker.create" context_field="location"/>
1434             </actions>
1435         </permacrud>
1436         </class>
1437         <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">
1438                 <fields oils_persist:primary="id" oils_persist:sequence="biblio.record_entry_id_seq">
1439                         <field reporter:label="Call Numbers" name="call_numbers" oils_persist:virtual="true" reporter:datatype="link"/>
1440                         <field reporter:label="Fixed Field Entry" name="fixed_fields" oils_persist:virtual="true" reporter:datatype="link"/>
1441                         <field reporter:label="Is Active?" name="active" reporter:datatype="bool"/>
1442                         <field reporter:label="Record Creation Date/Time" name="create_date" reporter:datatype="timestamp"/>
1443                         <field reporter:label="Record Creator" name="creator" reporter:datatype="link"/>
1444                         <field reporter:label="Is Deleted?" name="deleted" reporter:datatype="bool"/>
1445                         <field reporter:label="Last Edit Data/Time" name="edit_date" reporter:datatype="timestamp"/>
1446                         <field reporter:label="Last Editing User" name="editor" reporter:datatype="link"/>
1447                         <field reporter:label="Fingerprint" name="fingerprint"  reporter:datatype="text"/>
1448                         <field reporter:label="Record ID" name="id" reporter:datatype="id" />
1449                         <field reporter:label="Last Transaction ID" name="last_xact_id"  reporter:datatype="text"/>
1450                         <field reporter:label="MARC21Slim" name="marc"  reporter:datatype="text"/>
1451                         <field reporter:label="Overall Quality" name="quality" reporter:datatype="int" />
1452                         <field reporter:label="Record Source" name="source" reporter:datatype="link"/>
1453                         <field reporter:label="TCN Source" name="tcn_source"  reporter:datatype="text"/>
1454                         <field reporter:label="TCN Value" name="tcn_value"  reporter:datatype="text"/>
1455                         <field reporter:label="Metarecord" name="metarecord" oils_persist:virtual="true" reporter:datatype="link"/>
1456                         <field reporter:label="Language Code" name="language" oils_persist:virtual="true" reporter:datatype="link"/>
1457                         <field reporter:label="Non-MARC Record Notes" name="notes" oils_persist:virtual="true" reporter:datatype="link"/>
1458                         <field reporter:label="Indexed Keyword Field Entries" name="keyword_field_entries" oils_persist:virtual="true" reporter:datatype="link"/>
1459                         <field reporter:label="Indexed Subject Field Entries" name="subject_field_entries" oils_persist:virtual="true" reporter:datatype="link"/>
1460                         <field reporter:label="Indexed Title Field Entries" name="title_field_entries" oils_persist:virtual="true" reporter:datatype="link"/>
1461                         <field reporter:label="Indexed Author Field Entries" name="author_field_entries" oils_persist:virtual="true" reporter:datatype="link"/>
1462                         <field reporter:label="Indexed Series Field Entries" name="series_field_entries" oils_persist:virtual="true" reporter:datatype="link"/>
1463                         <field reporter:label="Flattened MARC Fields " name="full_record_entries" oils_persist:virtual="true" reporter:datatype="link"/>
1464                         <field reporter:label="Simple Record Extracts " name="simple_record" oils_persist:virtual="true" reporter:datatype="link"/>
1465                 </fields>
1466                 <links>
1467                         <link field="editor" reltype="has_a" key="id" map="" class="au"/>
1468                         <link field="creator" reltype="has_a" key="id" map="" class="au"/>
1469                         <link field="simple_record" reltype="might_have" key="id" map="" class="rmsr"/>
1470                         <link field="metarecord" reltype="might_have" key="source" map="metarecord" class="mmrsm"/>
1471                         <link field="call_numbers" reltype="has_many" key="record" map="" class="acn"/>
1472                         <link field="keyword_field_entries" reltype="has_many" key="source" map="" class="mkfe"/>
1473                         <link field="fixed_fields" reltype="might_have" key="record" map="" class="mrd"/>
1474                         <link field="language" reltype="might_have" key="record" map="item_lang" class="mrd"/>
1475                         <link field="subject_field_entries" reltype="has_many" key="source" map="" class="msfe"/>
1476                         <link field="title_field_entries" reltype="has_many" key="source" map="" class="mtfe"/>
1477                         <link field="notes" reltype="has_many" key="record" map="" class="bren"/>
1478                         <link field="author_field_entries" reltype="has_many" key="source" map="" class="mafe"/>
1479                         <link field="series_field_entries" reltype="has_many" key="source" map="" class="msefe"/>
1480                         <link field="full_record_entries" reltype="has_many" key="record" map="" class="mfr"/>
1481                 </links>
1482         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1483             <actions>
1484                 <create permission="CREATE_MARC IMPORT_MARC" global_required="true"/>
1485                 <retrieve/>
1486                 <update permission="UPDATE_MARC" global_required="true"/>
1487             </actions>
1488         </permacrud>
1489         </class>
1490         <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">
1491                 <fields oils_persist:primary="id" oils_persist:sequence="">
1492                         <field name="dow_0_close" />
1493                         <field name="dow_0_open" />
1494                         <field name="dow_1_close" />
1495                         <field name="dow_1_open" />
1496                         <field name="dow_2_close" />
1497                         <field name="dow_2_open" />
1498                         <field name="dow_3_close" />
1499                         <field name="dow_3_open" />
1500                         <field name="dow_4_close" />
1501                         <field name="dow_4_open" />
1502                         <field name="dow_5_close" />
1503                         <field name="dow_5_open" />
1504                         <field name="dow_6_close" />
1505                         <field name="dow_6_open" />
1506                         <field name="id" reporter:datatype="id" />
1507                         <field name="org_unit" oils_persist:virtual="true" reporter:datatype="org_unit"/>
1508                 </fields>
1509                 <links>
1510                         <link field="org_unit" reltype="might_have" key="id" map="" class="aou"/>
1511                 </links>
1512         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1513             <actions>
1514                 <create permission="CREATE_HOURS_OF_OPERATION" context_field="org_unit"/>
1515                 <retrieve/>
1516                 <update permission="UPDATE_HOURS_OF_OPERATION" context_field="org_unit"/>
1517                 <delete permission="DELETE_HOURS_OF_OPERATION" context_field="org_unit"/>
1518             </actions>
1519         </permacrud>
1520         </class>
1521         <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">
1522                 <fields oils_persist:primary="id" oils_persist:sequence="actor.org_unit_closed_id_seq">
1523                         <field name="close_end" reporter:datatype="timestamp" />
1524                         <field name="close_start" reporter:datatype="timestamp" />
1525                         <field name="id" reporter:datatype="id" />
1526                         <field name="org_unit" reporter:datatype="org_unit"/>
1527                         <field name="reason" reporter:datatype="text"/>
1528                 </fields>
1529                 <links>
1530                         <link field="org_unit" reltype="has_a" key="id" map="" class="aou"/>
1531                 </links>
1532         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1533             <actions>
1534                 <create permission="CREATE_ORG_UNIT_CLOSING" context_field="org_unit"/>
1535                 <retrieve/>
1536                 <update permission="UPDATE_ORG_UNIT_CLOSING" context_field="org_unit"/>
1537                 <delete permission="DELETE_ORG_UNIT_CLOSING" context_field="org_unit"/>
1538             </actions>
1539         </permacrud>
1540         </class>
1541         <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">
1542                 <fields oils_persist:primary="id" oils_persist:sequence="config.rule_circ_duration_id_seq">
1543                         <field name="extended" reporter:datatype="interval"/>
1544                         <field name="id" reporter:datatype="id" reporter:selector="name"/>
1545                         <field name="max_renewals" reporter:datatype="int" />
1546                         <field name="name" reporter:datatype="text"/>
1547                         <field name="normal" reporter:datatype="interval"/>
1548                         <field name="shrt" reporter:datatype="interval"/>
1549                 </fields>
1550                 <links>
1551                 </links>
1552         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1553             <actions>
1554                 <create permission="CREATE_CIRC_DURATION" global_required="true"/>
1555                 <retrieve/>
1556                 <update permission="UPDATE_CIRC_DURATION" global_required="true"/>
1557                 <delete permission="DELETE_CIRC_DURATION" global_required="true"/>
1558             </actions>
1559         </permacrud>
1560         </class>
1561         <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">
1562                 <fields oils_persist:primary="id" oils_persist:sequence="">
1563                         <field name="balance_owed" reporter:datatype="money"/>
1564                         <field name="id" reporter:datatype="id" />
1565                         <field name="last_billing_note" reporter:datatype="text"/>
1566                         <field name="last_billing_ts" reporter:datatype="timestamp"/>
1567                         <field name="last_billing_type" reporter:datatype="text"/>
1568                         <field name="last_payment_note" reporter:datatype="text"/>
1569                         <field name="last_payment_ts" reporter:datatype="timestamp"/>
1570                         <field name="last_payment_type" reporter:datatype="text"/>
1571                         <field name="total_owed" reporter:datatype="money"/>
1572                         <field name="total_paid" reporter:datatype="money"/>
1573                         <field name="usr" reporter:datatype="link"/>
1574                         <field name="xact_finish" reporter:datatype="timestamp" />
1575                         <field name="xact_start" reporter:datatype="timestamp" />
1576                         <field name="xact_type" reporter:datatype="text"/>
1577                         <field name="xact" oils_persist:virtual="true" reporter:datatype="link"/>
1578                         <field name="grocery" oils_persist:virtual="true" reporter:datatype="link"/>
1579                         <field name="circulation" oils_persist:virtual="true" reporter:datatype="link"/>
1580                         <field name="billing_location" reporter:datatype="link"/>
1581                 </fields>
1582                 <links>
1583                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
1584                         <link field="xact" reltype="might_have" key="id" map="" class="mbt"/>
1585                         <link field="circulation" reltype="might_have" key="id" map="" class="circ"/>
1586                         <link field="grocery" reltype="might_have" key="id" map="" class="mg"/>
1587                         <link field="billing_location" reltype="has_a" key="id" map="" class="aou"/>
1588                 </links>
1589         </class>
1590         <class id="au" controller="open-ils.cstore" oils_obj:fieldmapper="actor::user" oils_persist:tablename="actor.usr" reporter:core="true" reporter:label="ILS User">
1591                 <fields oils_persist:primary="id" oils_persist:sequence="actor.usr_id_seq">
1592                         <field reporter:label="All Addresses" name="addresses" oils_persist:virtual="true" reporter:datatype="link"/>
1593                         <field reporter:label="All Library Cards" name="cards" oils_persist:virtual="true" reporter:datatype="link"/>
1594                         <field reporter:label="All Circulations" name="checkouts" oils_persist:virtual="true" reporter:datatype="link"/>
1595                         <field reporter:label="All Hold Requests" name="hold_requests" oils_persist:virtual="true" reporter:datatype="link"/>
1596                         <field reporter:label="All Permissions" name="permissions" oils_persist:virtual="true" reporter:datatype="link"/>
1597                         <field reporter:label="All User Settings" name="settings" oils_persist:virtual="true" reporter:datatype="link"/>
1598                         <field reporter:label="Standing Penalties" name="standing_penalties" oils_persist:virtual="true" reporter:datatype="link"/>
1599                         <field reporter:label="Statistical Category Entries" name="stat_cat_entries" oils_persist:virtual="true" reporter:datatype="link"/>
1600                         <field reporter:label="Survey Responses" name="survey_responses" oils_persist:virtual="true" reporter:datatype="link"/>
1601                         <field name="ws_ou" oils_persist:virtual="true" reporter:datatype="link"/>
1602                         <field name="wsid" oils_persist:virtual="true" reporter:datatype="link"/>
1603                         <field reporter:label="Active" name="active" reporter:datatype="bool"/>
1604                         <field reporter:label="Alert Message" name="alert_message"  reporter:datatype="text"/>
1605                         <field reporter:label="Barred" name="barred" reporter:datatype="bool"/>
1606                         <field reporter:label="Physical Address" name="billing_address" reporter:datatype="link"/>
1607                         <field reporter:label="Current Library Card" name="card" reporter:datatype="link"/>
1608                         <field reporter:label="Claims-returned Count" name="claims_returned_count" reporter:datatype="int" />
1609                         <field reporter:label="Record Creation Date/Time" name="create_date" reporter:datatype="timestamp"/>
1610                         <field reporter:label="User Credit Balance" name="credit_forward_balance" reporter:datatype="money" />
1611                         <field reporter:label="Daytime Phone" name="day_phone"  reporter:datatype="text"/>
1612                         <field reporter:label="Date of Birth" name="dob" reporter:datatype="timestamp"/>
1613                         <field reporter:label="Email Address" name="email"  reporter:datatype="text"/>
1614                         <field reporter:label="Evening Phone" name="evening_phone"  reporter:datatype="text"/>
1615                         <field reporter:label="Privilege Expiration Date" name="expire_date" reporter:datatype="timestamp"/>
1616                         <field reporter:label="Last Name" name="family_name"  reporter:datatype="text"/>
1617                         <field reporter:label="First Name" name="first_given_name"  reporter:datatype="text"/>
1618                         <field reporter:label="Home Library" name="home_ou" reporter:datatype="org_unit"/>
1619                         <field reporter:label="User ID" name="id" reporter:datatype="id" />
1620                         <field reporter:label="Primary Identification Type" name="ident_type" reporter:datatype="link"/>
1621                         <field reporter:label="Secondary Identification Type" name="ident_type2" reporter:datatype="link"/>
1622                         <field reporter:label="Primary Identification" name="ident_value"  reporter:datatype="text"/>
1623                         <field reporter:label="Secondary Identification" name="ident_value2"  reporter:datatype="text"/>
1624                         <field name="last_xact_id" reporter:datatype="text"/>
1625                         <field reporter:label="Mailing Address" name="mailing_address" reporter:datatype="link"/>
1626                         <field reporter:label="Is Group Lead Account" name="master_account" reporter:datatype="bool"/>
1627                         <field reporter:label="Internet Access Level" name="net_access_level" reporter:datatype="link"/>
1628                         <field reporter:label="Other Phone" name="other_phone"  reporter:datatype="text"/>
1629                         <field reporter:label="Password" name="passwd"  reporter:datatype="text"/>
1630                         <field reporter:label="Photo URL" name="photo_url"  reporter:datatype="text"/>
1631                         <field reporter:label="Prefix" name="prefix"  reporter:datatype="text"/>
1632                         <field reporter:label="Main (Profile) Permission Group" name="profile" reporter:datatype="link"/>
1633                         <field reporter:label="Middle Name" name="second_given_name"  reporter:datatype="text"/>
1634                         <field reporter:label="Standing (unused)" name="standing" reporter:datatype="link"/>
1635                         <field reporter:label="Suffix/Title" name="suffix"  reporter:datatype="text"/>
1636                         <field reporter:label="Is Super User" name="super_user" reporter:datatype="bool"/>
1637                         <field reporter:label="Family Linkage or other Group" name="usrgroup" reporter:datatype="int"/>
1638                         <field reporter:label="OPAC/Staff Client User Name" name="usrname"  reporter:datatype="text"/>
1639                         <field reporter:label="OPAC/Staff Client Holds Alias" name="alias"  reporter:datatype="text"/>
1640                         <field reporter:label="Juvenile" name="juvenile"  reporter:datatype="bool"/>
1641                         <field reporter:label="Additional Permission Groups" name="groups" oils_persist:virtual="true" reporter:datatype="link"/>
1642                         <field reporter:label="Is Deleted" name="deleted" reporter:datatype="bool"/>
1643                         <field reporter:label="User Notes" name="notes" oils_persist:virtual="true" reporter:datatype="link"/>
1644                         <field reporter:label="Demographic Info" name="demographic" oils_persist:virtual="true" reporter:datatype="link"/>
1645                         <field reporter:label="Billable Transactions" name="billable_transactions" oils_persist:virtual="true" reporter:datatype="link"/>
1646                         <field reporter:label="Checkins" name="checkins" oils_persist:virtual="true" reporter:datatype="link"/>
1647                         <field reporter:label="Circulations Performed as Staff" name="performed_circulations" oils_persist:virtual="true" reporter:datatype="link"/>
1648                 </fields>
1649                 <links>
1650                         <link field="demographic" reltype="might_have" key="id" map="" class="rud"/>
1651                         <link field="net_access_level" reltype="has_a" key="id" map="" class="cnal"/>
1652                         <link field="profile" reltype="has_a" key="id" map="" class="pgt"/>
1653                         <link field="ident_type" reltype="has_a" key="id" map="" class="cit"/>
1654                         <link field="billing_address" reltype="has_a" key="id" map="" class="aua"/>
1655                         <link field="mailing_address" reltype="has_a" key="id" map="" class="aua"/>
1656                         <link field="home_ou" reltype="has_a" key="id" map="" class="aou"/>
1657                         <link field="standing" reltype="has_a" key="id" map="" class="cst"/>
1658                         <link field="card" reltype="has_a" key="id" map="" class="ac"/>
1659                         <link field="ident_type2" reltype="has_a" key="id" map="" class="cit"/>
1660                         <link field="stat_cat_entries" reltype="has_many" key="target_usr" map="" class="actscecm"/>
1661                         <link field="groups" reltype="has_many" key="usr" map="grp" class="pugm"/>
1662                         <link field="usrgroup" reltype="has_many" key="usrgroup" map="" class="au"/>
1663                         <link field="checkouts" reltype="has_many" key="usr" map="" class="circ"/>
1664                         <link field="hold_requests" reltype="has_many" key="usr" map="" class="circ"/>
1665                         <link field="permissions" reltype="has_many" key="usr" map="perm" class="pupm"/>
1666                         <link field="settings" reltype="has_many" key="usr" map="" class="aus"/>
1667                         <link reporter:label="Billable Transactions" field="billable_transactions" reltype="has_many" key="usr" map="" class="mbt"/>
1668                         <link field="standing_penalties" reltype="has_many" key="usr" map="" class="ausp"/>
1669                         <link field="addresses" reltype="has_many" key="usr" map="" class="aua"/>
1670                         <link field="survey_responses" reltype="has_many" key="usr" map="" class="asvr"/>
1671                         <link field="notes" reltype="has_many" key="usr" map="" class="aun"/>
1672                         <link reporter:label="Check-ins Performed as Staff" field="checkins" reltype="has_many" key="checkin_staff" map="" class="circ"/>
1673                         <link field="cards" reltype="has_many" key="usr" map="" class="ac"/>
1674                         <link reporter:label="Circulations Performed as Staff" field="performed_circulations" reltype="has_many" key="circ_staff" map="" class="circ"/>
1675                 </links>
1676         </class>
1677         <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">
1678                 <fields oils_persist:primary="id" oils_persist:sequence="actor.org_unit_setting_id_seq">
1679                         <field name="id" />
1680                         <field name="name"  reporter:datatype="text"/>
1681                         <field name="org_unit" reporter:datatype="org_unit"/>
1682                         <field name="value"  reporter:datatype="text"/>
1683                 </fields>
1684                 <links>
1685                         <link field="org_unit" reltype="has_a" key="id" map="" class="aou"/>
1686                 </links>
1687         </class>
1688         <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">
1689                 <fields oils_persist:primary="id" oils_persist:sequence="asset.copy_note_id_seq">
1690                         <field reporter:label="Note Creation Date/Time" name="create_date" reporter:datatype="timestamp"/>
1691                         <field reporter:label="Note Creator" name="creator" reporter:datatype="link"/>
1692                         <field reporter:label="Note ID" name="id" reporter:datatype="id" />
1693                         <field reporter:label="Copy" name="owning_copy" reporter:datatype="link"/>
1694                         <field reporter:label="Is OPAC Visible?" name="pub" reporter:datatype="bool"/>
1695                         <field reporter:label="Note Title" name="title"  reporter:datatype="text"/>
1696                         <field reporter:label="Note Content" name="value"  reporter:datatype="text"/>
1697                 </fields>
1698                 <links>
1699                         <link field="owning_copy" reltype="has_a" key="id" map="" class="acp"/>
1700                         <link field="creator" reltype="has_a" key="id" map="" class="au"/>
1701                 </links>
1702         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1703             <actions>
1704                 <create permission="CREATE_COPY_NOTE">
1705                     <context link="owning_copy" field="circ_lib"/>
1706                 </create>
1707                 <retrieve permission="VIEW_COPY_NOTES">
1708                     <context link="owning_copy" field="circ_lib"/>
1709                 </retrieve>
1710                 <update permission="UPDATE_COPY_NOTE">
1711                     <context link="owning_copy" field="circ_lib"/>
1712                 </update>
1713                 <delete permission="DELETE_COPY_NOTE">
1714                     <context link="owning_copy" field="circ_lib"/>
1715                 </delete>
1716             </actions>
1717         </permacrud>
1718         </class>
1719         <class id="mfr" controller="open-ils.cstore" oils_obj:fieldmapper="metabib::full_rec" oils_persist:tablename="metabib.full_rec" reporter:label="Flattened MARC Fields">
1720                 <fields oils_persist:primary="id" oils_persist:sequence="metabib.full_rec_id_seq">
1721                         <field reporter:label="Field ID" name="id" reporter:datatype="id" />
1722                         <field reporter:label="Indicator 1" name="ind1" oils_persist:primitive="string"  reporter:datatype="text"/>
1723                         <field reporter:label="Indicator 2" name="ind2" oils_persist:primitive="string"  reporter:datatype="text"/>
1724                         <field reporter:label="Bib Record Entry" name="record" reporter:datatype="link"/>
1725                         <field reporter:label="Subfield" name="subfield" oils_persist:primitive="string"  reporter:datatype="text"/>
1726                         <field reporter:label="Tag" name="tag"  reporter:datatype="text"/>
1727                         <field reporter:label="Normalized Value" name="value"  reporter:datatype="text"/>
1728                 </fields>
1729                 <links>
1730                         <link field="record" reltype="has_a" key="id" map="" class="bre"/>
1731                 </links>
1732         </class>
1733         <class id="mmr" controller="open-ils.cstore" oils_obj:fieldmapper="metabib::metarecord" oils_persist:tablename="metabib.metarecord" reporter:label="Metarecord">
1734                 <fields oils_persist:primary="id" oils_persist:sequence="metabib.metarecord_id_seq">
1735                         <field name="fingerprint"  reporter:datatype="text"/>
1736                         <field name="id" reporter:datatype="id" />
1737                         <field name="master_record" reporter:datatype="link"/>
1738                         <field name="mods"  reporter:datatype="text"/>
1739                         <field name="source_records" oils_persist:virtual="true" reporter:datatype="link"/>
1740                 </fields>
1741                 <links>
1742                         <link field="master_record" reltype="has_a" key="id" map="" class="bre"/>
1743                         <link field="source_records" reltype="has_many" key="metarecord" map="source" class="mmrsm"/>
1744                 </links>
1745         </class>
1746         <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">
1747                 <fields oils_persist:primary="id" oils_persist:sequence="config.net_access_level_id_seq">
1748                         <field name="id" reporter:selector="name" reporter:datatype="id"/>
1749                         <field name="name"  reporter:datatype="text"/>
1750                 </fields>
1751                 <links/>
1752         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1753             <actions>
1754                 <create permission="CREATE_NET_ACCESS_LEVEL" global_required="true"/>
1755                 <retrieve/>
1756                 <update permission="UPDATE_NET_ACCESS_LEVEL" global_required="true"/>
1757                 <delete permission="DELETE_NET_ACCESS_LEVEL" global_required="true"/>
1758             </actions>
1759         </permacrud>
1760         </class>
1761         <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">
1762                 <fields oils_persist:primary="id" oils_persist:sequence="permission.perm_list_id_seq">
1763                         <field name="code"  reporter:datatype="text"/>
1764                         <field name="description"  reporter:datatype="text" oils_persist:i18n="true"/>
1765                         <field name="id" reporter:selector="code" reporter:datatype="id"/>
1766                 </fields>
1767                 <links/>
1768         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1769             <actions>
1770                 <create permission="CREATE_PERM" global_required="true"/>
1771                 <retrieve permission="CREATE_PERM UPDATE_PERM DELETE_PERM" global_required="true"/>
1772                 <update permission="UPDATE_PERM" global_required="true"/>
1773                 <delete permission="DELETE_PERM" global_required="true"/>
1774             </actions>
1775         </permacrud>
1776         </class>
1777         <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">
1778                 <fields oils_persist:primary="id" oils_persist:sequence="metabib.metarecord_source_map_id_seq">
1779                         <field name="id" reporter:datatype="id" />
1780                         <field name="metarecord" reporter:datatype="link"/>
1781                         <field name="source" reporter:datatype="link"/>
1782                 </fields>
1783                 <links>
1784                         <link field="source" reltype="has_a" key="id" map="" class="bre"/>
1785                         <link field="metarecord" reltype="has_a" key="id" map="" class="mmr"/>
1786                 </links>
1787         </class>
1788         <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">
1789                 <fields oils_persist:primary="id" oils_persist:sequence="metabib.keyword_field_entry_id_seq">
1790                         <field name="field" reporter:datatype="link"/>
1791                         <field name="id" reporter:datatype="id" />
1792                         <field name="source" reporter:datatype="link"/>
1793                         <field name="value"  reporter:datatype="text"/>
1794                 </fields>
1795                 <links>
1796                         <link field="source" reltype="has_a" key="id" map="" class="bre"/>
1797                         <link field="field" reltype="has_a" key="id" map="" class="cmf"/>
1798                 </links>
1799         </class>
1800         <class id="mcp" controller="open-ils.cstore" oils_obj:fieldmapper="money::cash_payment" oils_persist:tablename="money.cash_payment" reporter:label="Cash Payment">
1801                 <fields oils_persist:primary="id" oils_persist:sequence="money.payment_id_seq">
1802                         <field name="accepting_usr" reporter:datatype="link"/>
1803                         <field name="amount" reporter:datatype="money" />
1804                         <field name="amount_collected" reporter:datatype="money" />
1805                         <field name="cash_drawer" reporter:datatype="link"/>
1806                         <field name="id" reporter:datatype="id" />
1807                         <field name="note"  reporter:datatype="text"/>
1808                         <field name="payment_ts" reporter:datatype="timestamp"/>
1809                         <field name="xact" reporter:datatype="link"/>
1810                         <field name="payment_type" oils_persist:virtual="true"  reporter:datatype="text"/>
1811                         <field name="payment" oils_persist:virtual="true" reporter:datatype="link"/>
1812                 </fields>
1813                 <links>
1814                         <link field="payment" reltype="might_have" key="id" map="" class="mp"/>
1815                         <link field="accepting_usr" reltype="has_a" key="id" map="" class="au"/>
1816                         <link field="cash_drawer" reltype="has_a" key="id" map="" class="aws"/>
1817                         <link field="xact" reltype="has_a" key="id" map="" class="mbt"/>
1818                 </links>
1819         </class>
1820         <class id="mfp" controller="open-ils.cstore" oils_obj:fieldmapper="money::forgive_payment" oils_persist:tablename="money.forgive_payment" reporter:label="Forgive Payment">
1821                 <fields oils_persist:primary="id" oils_persist:sequence="money.payment_id_seq">
1822                         <field name="accepting_usr" reporter:datatype="link"/>
1823                         <field name="amount" reporter:datatype="money" />
1824                         <field name="amount_collected" reporter:datatype="money" />
1825                         <field name="id" reporter:datatype="id" />
1826                         <field name="note"  reporter:datatype="text"/>
1827                         <field name="payment_ts" reporter:datatype="timestamp"/>
1828                         <field name="xact" reporter:datatype="link"/>
1829                         <field name="payment_type" oils_persist:virtual="true"  reporter:datatype="text"/>
1830                         <field name="payment" oils_persist:virtual="true" reporter:datatype="link"/>
1831                 </fields>
1832                 <links>
1833                         <link field="payment" reltype="might_have" key="id" map="" class="mp"/>
1834                         <link field="accepting_usr" reltype="has_a" key="id" map="" class="au"/>
1835                         <link field="xact" reltype="has_a" key="id" map="" class="mbt"/>
1836                 </links>
1837         </class>
1838         <class id="mrd" controller="open-ils.cstore" oils_obj:fieldmapper="metabib::record_descriptor" oils_persist:tablename="metabib.rec_descriptor" reporter:label="Basic Record Descriptor">
1839                 <fields oils_persist:primary="id" oils_persist:sequence="metabib.rec_descriptor_id_seq">
1840                         <field reporter:label="Audn" name="audience" oils_persist:primitive="string"  reporter:datatype="text"/>
1841                         <field reporter:label="BLvl" name="bib_level" oils_persist:primitive="string"  reporter:datatype="text"/>
1842                         <field reporter:label="Cat Form" name="cat_form" oils_persist:primitive="string"  reporter:datatype="text"/>
1843                         <field reporter:label="Character Encoding" name="char_encoding" oils_persist:primitive="string"  reporter:datatype="text"/>
1844                         <field reporter:label="Ctrl" name="control_type" oils_persist:primitive="string"  reporter:datatype="text"/>
1845                         <field reporter:label="ELvl" name="enc_level" oils_persist:primitive="string"  reporter:datatype="text"/>
1846                         <field reporter:label="Descriptor ID" name="id" reporter:datatype="id" />
1847                         <field reporter:label="Form" name="item_form" oils_persist:primitive="string"  reporter:datatype="text"/>
1848                         <field reporter:label="Lang" name="item_lang" oils_persist:primitive="string"  reporter:datatype="text"/>
1849                         <field reporter:label="Type" name="item_type" oils_persist:primitive="string"  reporter:datatype="text"/>
1850                         <field reporter:label="LitF" name="lit_form" oils_persist:primitive="string"  reporter:datatype="text"/>
1851                         <field reporter:label="Pub Status" name="pub_status" oils_persist:primitive="string"  reporter:datatype="text"/>
1852                         <field reporter:label="Bib Record Entry" name="record" reporter:datatype="link"/>
1853                         <field reporter:label="TMat" name="type_mat" oils_persist:primitive="string"  reporter:datatype="text"/>
1854                         <field reporter:label="Video Recording Format" name="vr_format" oils_persist:primitive="string"  reporter:datatype="text"/>
1855                         <field reporter:label="Date1" name="date1" oils_persist:primitive="string"  reporter:datatype="text"/>
1856                         <field reporter:label="Date2" name="date2" oils_persist:primitive="string"  reporter:datatype="text"/>
1857                 </fields>
1858                 <links>
1859                         <link field="record" reltype="has_a" key="id" map="" class="bre"/>
1860                         <link field="item_lang" reltype="has_a" key="code" map="" class="clm"/>
1861                         <link field="item_type" reltype="has_a" key="code" map="" class="citm"/>
1862                         <link field="bib_level" reltype="has_a" key="code" map="" class="cblvl"/>
1863                         <link field="item_form" reltype="has_a" key="code" map="" class="cifm"/>
1864                         <link field="audience" reltype="has_a" key="code" map="" class="cam"/>
1865                         <link field="lit_form" reltype="has_a" key="code" map="" class="clfm"/>
1866                 </links>
1867         </class>
1868
1869         <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">
1870                 <fields oils_persist:primary="id" oils_persist:sequence="config.standing_penalty_id_seq">
1871                         <field name="id" reporter:selector="name" reporter:datatype="id"/>
1872                         <field name="name"  reporter:datatype="text"/>
1873                         <field name="label"  reporter:datatype="text" oils_persist:i18n="true"/>
1874                         <field name="block_list" reporter:datatype="text"/>
1875                 </fields>
1876                 <links/>
1877         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1878             <actions>
1879                 <create permission="ADMIN_STANDING_PENALTY" global_required="true"/>
1880                 <retrieve permission="ADMIN_STANDING_PENALTY VIEW_STANDING_PENALTY" global_required="true"/>
1881                 <update permission="ADMIN_STANDING_PENALTY" global_required="true"/>
1882                 <delete permission="ADMIN_STANDING_PENALTY" global_required="true"/>
1883             </actions>
1884         </permacrud>
1885         </class>
1886         <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">
1887                 <fields oils_persist:primary="id" oils_persist:sequence="permission.grp_penalty_threshold_id_seq">
1888                         <field name="id" reporter:selector="name" reporter:datatype="id" reporter:label="ID"/>
1889                         <field name="grp"  reporter:datatype="link" reporter:label="Group"/>
1890                         <field name="penalty"  reporter:datatype="link" reporter:label="Penalty"/>
1891                         <field name="threshold" reporter:datatype="float" reporter:label="Threshold"/>
1892                         <field name="org_unit" reporter:datatype="org_unit" reporter:label="Org Unit"/>
1893                 </fields>
1894                 <links>
1895                         <link field="penalty" reltype="has_a" key="id" map="" class="csp"/>
1896                         <link field="grp" reltype="has_a" key="id" map="" class="pgt"/>
1897                         <link field="org_unit" reltype="has_a" key="id" map="" class="aou"/>
1898         </links>
1899         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1900             <actions>
1901                 <create permission="ADMIN_GROUP_PENALTY_THRESHOLD" context_field='org_unit'/>
1902                 <retrieve permission="VIEW_GROUP_PENALTY_THRESHOLD ADMIN_GROUP_PENALTY_THRESHOLD" context_field='org_unit'/>
1903                 <update permission="ADMIN_GROUP_PENALTY_THRESHOLD" context_field='org_unit'/>
1904                 <delete permission="ADMIN_GROUP_PENALTY_THRESHOLD" context_field='org_unit'/>
1905             </actions>
1906         </permacrud>
1907         </class>
1908         <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">
1909                 <fields oils_persist:primary="id" oils_persist:sequence="config.copy_status_id_seq">
1910                         <field name="holdable" reporter:datatype="bool"/>
1911                         <field name="id" reporter:selector="name" reporter:datatype="id"/>
1912                         <field name="name"  reporter:datatype="text" oils_persist:i18n="true"/>
1913                         <field name="opac_visible" reporter:datatype="bool"/>
1914                 </fields>
1915                 <links/>
1916         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1917             <actions>
1918                 <create permission="CREATE_COPY_STATUS" global_required="true"/>
1919                 <retrieve permission="CREATE_COPY_STATUS UPDATE_COPY_STATUS DELETE_COPY_STATUS" global_required="true"/>
1920                 <update permission="UPDATE_COPY_STATUS" global_required="true"/>
1921                 <delete permission="DELETE_COPY_STATUS" global_required="true"/>
1922             </actions>
1923         </permacrud>
1924         </class>
1925         <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">
1926                 <fields oils_persist:primary="id" oils_persist:sequence="actor.usr_standing_penalty_id_seq">
1927                         <field name="id" reporter:datatype="id" reporter:label="ID" />
1928                         <field name="set_date" reporter:datatype="timestamp" reporter:label="Set Date"/>
1929                         <field name="usr" reporter:datatype="link" reporter:label="User"/>
1930                         <field name="staff" reporter:datatype="link" reporter:label="Staff"/>
1931                         <field name="standing_penalty" reporter:datatype="link" reporter:label="Standing Penalty"/>
1932                         <field name="org_unit" reporter:datatype="link" reporter:label="Org Unit"/>
1933                         <field name="stop_date" reporter:datatype="timestamp" reporter:label="Stop Date"/>
1934                         <field name="note" reporter:datatype="text" reporter:label="Note"/>
1935                 </fields>
1936                 <links>
1937                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
1938                         <link field="org_unit" reltype="has_a" key="id" map="" class="aou"/>
1939                         <link field="staff" reltype="has_a" key="id" map="" class="au"/>
1940                         <link field="standing_penalty" reltype="has_a" key="id" map="" class="csp"/>
1941                 </links>
1942                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1943                         <actions>
1944                                 <create permission="UPDATE_USER"><context link="usr" field="home_ou"/></create>
1945                                 <retrieve permission="VIEW_USER"><context link="usr" field="home_ou"/></retrieve>
1946                                 <update permission="UPDATE_USER"><context link="usr" field="home_ou"/></update>
1947                                 <delete permission="UPDATE_USER"><context link="usr" field="home_ou"/></delete>
1948                         </actions>
1949                 </permacrud>
1950         </class>
1951         <class id="aua" controller="open-ils.cstore" oils_obj:fieldmapper="actor::user_address" oils_persist:tablename="actor.usr_address" reporter:label="User Address">
1952                 <fields oils_persist:primary="id" oils_persist:sequence="actor.usr_address_id_seq">
1953                         <field reporter:label="Type" name="address_type"  reporter:datatype="text"/>
1954                         <field reporter:label="City" name="city"  reporter:datatype="text"/>
1955                         <field reporter:label="Country" name="country"  reporter:datatype="text"/>
1956                         <field reporter:label="County" name="county"  reporter:datatype="text"/>
1957                         <field reporter:label="Address ID" name="id" reporter:datatype="id" />
1958                         <field reporter:label="Postal Code" name="post_code" reporter:datatype="text"/>
1959                         <field reporter:label="State" name="state"  reporter:datatype="text"/>
1960                         <field reporter:label="Street (1)" name="street1"  reporter:datatype="text"/>
1961                         <field reporter:label="Street (2)" name="street2"  reporter:datatype="text"/>
1962                         <field reporter:label="User" name="usr" reporter:datatype="link"/>
1963                         <field reporter:label="Valid Address?" name="valid" reporter:datatype="bool"/>
1964                         <field reporter:label="Within City Limits?" name="within_city_limits" reporter:datatype="bool"/>
1965                         <field reporter:label="Replaces" name="replaces" reporter:datatype="link"/>
1966                         <field reporter:label="Pending" name="pending" reporter:datatype="bool"/>
1967                 </fields>
1968                 <links>
1969                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
1970                         <link field="replaces" reltype="has_a" key="id" map="" class="aua"/>
1971                 </links>
1972         </class>
1973         <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">
1974                 <fields oils_persist:primary="id" oils_persist:sequence="asset.call_number_note_id_seq">
1975                         <field name="call_number" />
1976                         <field name="create_date" reporter:datatype="timestamp"/>
1977                         <field name="creator" reporter:datatype="link"/>
1978                         <field name="id" reporter:datatype="id" />
1979                         <field name="pub" reporter:datatype="bool"/>
1980                         <field name="title"  reporter:datatype="text"/>
1981                         <field name="value"  reporter:datatype="text"/>
1982                 </fields>
1983                 <links>
1984                         <link field="call_number" reltype="has_a" key="id" map="" class="acn"/>
1985                 </links>
1986         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
1987             <actions>
1988                 <create permission="CREATE_VOLUME_NOTE">
1989                     <context link="call_number" field="owning_lib"/>
1990                 </create>
1991                 <retrieve permission="VIEW_VOLUME_NOTES">
1992                     <context link="call_number" field="owning_lib"/>
1993                 </retrieve>
1994                 <update permission="UPDATE_VOLUME_NOTE">
1995                     <context link="call_number" field="owning_lib"/>
1996                 </update>
1997                 <delete permission="DELETE_VOLUME_NOTE">
1998                     <context link="call_number" field="owning_lib"/>
1999                 </delete>
2000             </actions>
2001         </permacrud>
2002         </class>
2003         <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">
2004                 <fields oils_persist:primary="id" oils_persist:sequence="authority.record_note_id_seq">
2005                         <field name="create_date" reporter:datatype="timestamp"/>
2006                         <field name="creator" reporter:datatype="link"/>
2007                         <field name="edit_date" reporter:datatype="timestamp"/>
2008                         <field name="editor" reporter:datatype="link"/>
2009                         <field name="id" reporter:datatype="id" />
2010                         <field name="record" reporter:datatype="link"/>
2011                         <field name="value" reporter:datatype="text"/>
2012                 </fields>
2013                 <links>
2014                         <link field="record" reltype="has_a" key="id" map="" class="are"/>
2015                 </links>
2016         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2017             <actions>
2018                 <create permission="CREATE_AUTHORITY_RECORD_NOTE" global_required='true'/>
2019                 <retrieve permission="VIEW_AUTHORITY_RECORD_NOTES" global_required='true'/>
2020                 <update permission="UPDATE_AUTHORITY_RECORD_NOTE" global_required='true'/>
2021                 <delete permission="DELETE_AUTHORITY_RECORD_NOTE" global_required='true'/>
2022             </actions>
2023         </permacrud>
2024         </class>
2025         <class id="circ" controller="open-ils.cstore" oils_obj:fieldmapper="action::circulation" oils_persist:tablename="action.circulation" reporter:core="true" reporter:label="Circulation">
2026                 <fields oils_persist:primary="id" oils_persist:sequence="money.billable_xact_id_seq">
2027                         <field reporter:label="Check In Library" name="checkin_lib" reporter:datatype="org_unit"/>
2028                         <field reporter:label="Check In Staff" name="checkin_staff" reporter:datatype="link"/>
2029                         <field reporter:label="Check In Date/Time" name="checkin_time" reporter:datatype="timestamp"/>
2030                         <field reporter:label="Circulating Library" name="circ_lib"  reporter:datatype="org_unit"/>
2031                         <field reporter:label="Circulating Staff" name="circ_staff" reporter:datatype="link"/>
2032                         <field reporter:label="Desk Renewal" name="desk_renewal" reporter:datatype="bool"/>
2033                         <field reporter:label="Due Date/Time" name="due_date" reporter:datatype="timestamp"/>
2034                         <field reporter:label="Circulation Duration" name="duration" reporter:datatype="interval"/>
2035                         <field reporter:label="Circ Duration Rule" name="duration_rule" reporter:datatype="link"/>
2036                         <field reporter:label="Fine Interval" name="fine_interval" reporter:datatype="interval"/>
2037                         <field reporter:label="Circ ID" name="id" reporter:datatype="id" />
2038                         <field reporter:label="Max Fine Amount" name="max_fine" reporter:datatype="money" />
2039                         <field reporter:label="Max Fine Rule" name="max_fine_rule" reporter:datatype="link"/>
2040                         <field reporter:label="OPAC Renewal" name="opac_renewal" reporter:datatype="bool"/>
2041                         <field reporter:label="Phone Renewal" name="phone_renewal" reporter:datatype="bool"/>
2042                         <field reporter:label="Recurring Fine Amount" name="recuring_fine" reporter:datatype="money" />
2043                         <field reporter:label="Recurring Fine Rule" name="recuring_fine_rule" reporter:datatype="link"/>
2044                         <field reporter:label="Remaining Renewals" name="renewal_remaining" reporter:datatype="int" />
2045                         <field reporter:label="Fine Stop Reason" name="stop_fines" reporter:datatype="text"/>
2046                         <field reporter:label="Fine Stop Date/Time" name="stop_fines_time" reporter:datatype="timestamp"/>
2047                         <field reporter:label="Circulating Item" name="target_copy" reporter:datatype="link"/>
2048                         <field reporter:label="Patron" name="usr" reporter:datatype="link"/>
2049                         <field reporter:label="Transaction Finish Date/Time" name="xact_finish" reporter:datatype="timestamp" />
2050                         <field reporter:label="Check Out Date/Time" name="xact_start" reporter:datatype="timestamp" />
2051                         <field reporter:label="Record Creation Date/Time" name="create_time" reporter:datatype="timestamp" />
2052                         <field reporter:label="Transaction Billings" name="billings" oils_persist:virtual="true" reporter:datatype="link"/>
2053                         <field reporter:label="Transaction Payments" name="payments" oils_persist:virtual="true" reporter:datatype="link"/>
2054                         <field reporter:label="Base Transaction" name="billable_transaction" oils_persist:virtual="true" reporter:datatype="link"/>
2055                         <field reporter:label="Circulation Type" name="circ_type" oils_persist:virtual="true" reporter:datatype="text"/>
2056                         <field reporter:label="Billing Totals" name="billing_total" oils_persist:virtual="true" reporter:datatype="money"/>
2057                         <field reporter:label="Payment Totals" name="payment_total" oils_persist:virtual="true" reporter:datatype="money"/>
2058                 </fields>
2059                 <links>
2060                         <link field="billable_transaction" reltype="might_have" key="id" map="" class="mbt"/>
2061                         <link field="circ_staff" reltype="has_a" key="id" map="" class="au"/>
2062                         <link field="checkin_lib" reltype="has_a" key="id" map="" class="aou"/>
2063                         <link field="target_copy" reltype="has_a" key="id" map="" class="acp"/>
2064                         <link field="checkin_staff" reltype="has_a" key="id" map="" class="au"/>
2065                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
2066                         <link field="circ_lib" reltype="has_a" key="id" map="" class="aou"/>
2067                         <link field="payments" reltype="has_many" key="xact" map="" class="mp"/>
2068                         <link field="billings" reltype="has_many" key="xact" map="" class="mb"/>
2069                         <link field="duration_rule" reltype="has_a" key="name" map="" class="crcd"/>
2070                         <link field="max_fine_rule" reltype="has_a" key="name" map="" class="crmf"/>
2071                         <link field="recuring_fine_rule" reltype="has_a" key="name" map="" class="crrf"/>
2072                         <link field="circ_type" reltype="might_have" key="id" map="" class="rcirct"/>
2073                         <link field="billing_total" reltype="might_have" key="xact" map="" class="rxbt"/>
2074                         <link field="payment_total" reltype="might_have" key="xact" map="" class="rxpt"/>
2075                 </links>
2076         </class>
2077         <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">
2078                 <fields oils_persist:primary="id" oils_persist:sequence="money.billable_xact_id_seq">
2079                         <field reporter:label="Check In Library" name="checkin_lib" reporter:datatype="org_unit"/>
2080                         <field reporter:label="Check In Staff" name="checkin_staff" reporter:datatype="link"/>
2081                         <field reporter:label="Check In Date/Time" name="checkin_time" reporter:datatype="timestamp"/>
2082                         <field reporter:label="Circulating Library" name="circ_lib"  reporter:datatype="org_unit"/>
2083                         <field reporter:label="Circulating Staff" name="circ_staff" reporter:datatype="link"/>
2084                         <field reporter:label="Desk Renewal" name="desk_renewal" reporter:datatype="bool"/>
2085                         <field reporter:label="Due Date/Time" name="due_date" reporter:datatype="timestamp"/>
2086                         <field reporter:label="Circulation Duration" name="duration" reporter:datatype="interval"/>
2087                         <field reporter:label="Circ Duration Rule" name="duration_rule" reporter:datatype="link"/>
2088                         <field reporter:label="Fine Interval" name="fine_interval" reporter:datatype="interval"/>
2089                         <field reporter:label="Circ ID" name="id" reporter:datatype="id" />
2090                         <field reporter:label="Max Fine Amount" name="max_fine" reporter:datatype="money" />
2091                         <field reporter:label="Max Fine Rule" name="max_fine_rule" reporter:datatype="link"/>
2092                         <field reporter:label="OPAC Renewal" name="opac_renewal" reporter:datatype="bool"/>
2093                         <field reporter:label="Phone Renewal" name="phone_renewal" reporter:datatype="bool"/>
2094                         <field reporter:label="Recurring Fine Amount" name="recuring_fine" reporter:datatype="money" />
2095                         <field reporter:label="Recurring Fine Rule" name="recuring_fine_rule" reporter:datatype="link"/>
2096                         <field reporter:label="Remaining Renewals" name="renewal_remaining" reporter:datatype="int" />
2097                         <field reporter:label="Fine Stop Reason" name="stop_fines" reporter:datatype="text"/>
2098                         <field reporter:label="Fine Stop Date/Time" name="stop_fines_time" reporter:datatype="timestamp"/>
2099                         <field reporter:label="Circulating Item" name="target_copy" reporter:datatype="link"/>
2100                         <field reporter:label="Patron ZIP" name="usr_post_code" reporter:datatype="text"/>
2101                         <field reporter:label="Transaction Finish Date/Time" name="xact_finish" reporter:datatype="timestamp" />
2102                         <field reporter:label="Check Out Date/Time" name="xact_start" reporter:datatype="timestamp" />
2103                         <field reporter:label="Record Creation Date/Time" name="create_time" reporter:datatype="timestamp" />
2104                         <field reporter:label="Transaction Billings" name="billings" oils_persist:virtual="true" reporter:datatype="link"/>
2105                         <field reporter:label="Transaction Payments" name="payments" oils_persist:virtual="true" reporter:datatype="link"/>
2106                         <field reporter:label="Base Transaction" name="billable_transaction" oils_persist:virtual="true" reporter:datatype="link"/>
2107                         <field reporter:label="Circulation Type" name="circ_type" oils_persist:virtual="true" reporter:datatype="text"/>
2108                         <field reporter:label="Billing Totals" name="billing_total" oils_persist:virtual="true" reporter:datatype="money"/>
2109                         <field reporter:label="Payment Totals" name="payment_total" oils_persist:virtual="true" reporter:datatype="money"/>
2110                         <field reporter:label="Patron Home Library" name="usr_home_ou" reporter:datatype="link"/>
2111                         <field reporter:label="Patron Profile Group" name="usr_profile" reporter:datatype="link"/>
2112                         <field reporter:label="Patron Birth Year" name="usr_birth_year" reporter:datatype="int"/>
2113                         <field reporter:label="Call Number" name="copy_call_number" reporter:datatype="link"/>
2114                         <field reporter:label="Shelving Location" name="copy_location" reporter:datatype="link"/>
2115                         <field reporter:label="Copy Owning Library" name="copy_owning_lib" reporter:datatype="link"/>
2116                         <field reporter:label="Copy Circulating Library" name="copy_circ_lib" reporter:datatype="link"/>
2117                         <field reporter:label="Bib Record" name="copy_bib_record" reporter:datatype="link"/>
2118                 </fields>
2119                 <links>
2120                         <link field="billable_transaction" reltype="might_have" key="id" map="" class="mbt"/>
2121                         <link field="circ_staff" reltype="has_a" key="id" map="" class="au"/>
2122                         <link field="checkin_lib" reltype="has_a" key="id" map="" class="aou"/>
2123                         <link field="target_copy" reltype="has_a" key="id" map="" class="acp"/>
2124                         <link field="checkin_staff" reltype="has_a" key="id" map="" class="au"/>
2125                         <link field="circ_lib" reltype="has_a" key="id" map="" class="aou"/>
2126                         <link field="payments" reltype="has_many" key="xact" map="" class="mp"/>
2127                         <link field="billings" reltype="has_many" key="xact" map="" class="mb"/>
2128                         <link field="duration_rule" reltype="has_a" key="name" map="" class="crcd"/>
2129                         <link field="max_fine_rule" reltype="has_a" key="name" map="" class="crmf"/>
2130                         <link field="recuring_fine_rule" reltype="has_a" key="name" map="" class="crrf"/>
2131                         <link field="circ_type" reltype="might_have" key="id" map="" class="rcirct"/>
2132                         <link field="billing_total" reltype="might_have" key="xact" map="" class="rxbt"/>
2133                         <link field="payment_total" reltype="might_have" key="xact" map="" class="rxpt"/>
2134                         <link field="copy_call_number" reltype="has_a" key="id" map="" class="acn"/>
2135                         <link field="copy_location" reltype="has_a" key="id" map="" class="acpl"/>
2136                         <link field="copy_owning_lib" reltype="has_a" key="id" map="" class="aou"/>
2137                         <link field="copy_circ_lib" reltype="has_a" key="id" map="" class="aou"/>
2138                         <link field="copy_bib_record" reltype="has_a" key="id" map="" class="bre"/>
2139                 </links>
2140         </class>
2141         <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">
2142                 <fields oils_persist:primary="id" oils_persist:sequence="money.billable_xact_id_seq">
2143                         <field reporter:label="Check In Library" name="checkin_lib" reporter:datatype="org_unit"/>
2144                         <field reporter:label="Check In Staff" name="checkin_staff" reporter:datatype="link"/>
2145                         <field reporter:label="Check In Date/Time" name="checkin_time" reporter:datatype="timestamp"/>
2146                         <field reporter:label="Circulating Library" name="circ_lib"  reporter:datatype="org_unit"/>
2147                         <field reporter:label="Circulating Staff" name="circ_staff" reporter:datatype="link"/>
2148                         <field reporter:label="Desk Renewal" name="desk_renewal" reporter:datatype="bool"/>
2149                         <field reporter:label="Due Date/Time" name="due_date" reporter:datatype="timestamp"/>
2150                         <field reporter:label="Circulation Duration" name="duration" reporter:datatype="interval"/>
2151                         <field reporter:label="Circ Duration Rule" name="duration_rule" reporter:datatype="link"/>
2152                         <field reporter:label="Fine Interval" name="fine_interval" reporter:datatype="interval"/>
2153                         <field reporter:label="Circ ID" name="id" reporter:datatype="id" />
2154                         <field reporter:label="Max Fine Amount" name="max_fine" reporter:datatype="money" />
2155                         <field reporter:label="Max Fine Rule" name="max_fine_rule" reporter:datatype="link"/>
2156                         <field reporter:label="OPAC Renewal" name="opac_renewal" reporter:datatype="bool"/>
2157                         <field reporter:label="Phone Renewal" name="phone_renewal" reporter:datatype="bool"/>
2158                         <field reporter:label="Recurring Fine Amount" name="recuring_fine" reporter:datatype="money" />
2159                         <field reporter:label="Recurring Fine Rule" name="recuring_fine_rule" reporter:datatype="link"/>
2160                         <field reporter:label="Remaining Renewals" name="renewal_remaining" reporter:datatype="int" />
2161                         <field reporter:label="Fine Stop Reason" name="stop_fines" reporter:datatype="text"/>
2162                         <field reporter:label="Fine Stop Date/Time" name="stop_fines_time" reporter:datatype="timestamp"/>
2163                         <field reporter:label="Circulating Item" name="target_copy" reporter:datatype="link"/>
2164                         <field reporter:label="Patron ZIP" name="usr_post_code" reporter:datatype="text"/>
2165                         <field reporter:label="Transaction Finish Date/Time" name="xact_finish" reporter:datatype="timestamp" />
2166                         <field reporter:label="Check Out Date/Time" name="xact_start" reporter:datatype="timestamp" />
2167                         <field reporter:label="Record Creation Date/Time" name="create_time" reporter:datatype="timestamp" />
2168                         <field reporter:label="Transaction Billings" name="billings" oils_persist:virtual="true" reporter:datatype="link"/>
2169                         <field reporter:label="Transaction Payments" name="payments" oils_persist:virtual="true" reporter:datatype="link"/>
2170                         <field reporter:label="Base Transaction" name="billable_transaction" oils_persist:virtual="true" reporter:datatype="link"/>
2171                         <field reporter:label="Circulation Type" name="circ_type" oils_persist:virtual="true" reporter:datatype="text"/>
2172                         <field reporter:label="Billing Totals" name="billing_total" oils_persist:virtual="true" reporter:datatype="money"/>
2173                         <field reporter:label="Payment Totals" name="payment_total" oils_persist:virtual="true" reporter:datatype="money"/>
2174                         <field reporter:label="Patron Home Library" name="usr_home_ou" reporter:datatype="link"/>
2175                         <field reporter:label="Patron Profile Group" name="usr_profile" reporter:datatype="link"/>
2176                         <field reporter:label="Patron Birth Year" name="usr_birth_year" reporter:datatype="int"/>
2177                         <field reporter:label="Call Number" name="copy_call_number" reporter:datatype="link"/>
2178                         <field reporter:label="Shelving Location" name="copy_location" reporter:datatype="link"/>
2179                         <field reporter:label="Copy Owning Library" name="copy_owning_lib" reporter:datatype="link"/>
2180                         <field reporter:label="Copy Circulating Library" name="copy_circ_lib" reporter:datatype="link"/>
2181                         <field reporter:label="Bib Record" name="copy_bib_record" reporter:datatype="link"/>
2182                 </fields>
2183                 <links>
2184                         <link field="billable_transaction" reltype="might_have" key="id" map="" class="mbt"/>
2185                         <link field="circ_staff" reltype="has_a" key="id" map="" class="au"/>
2186                         <link field="checkin_lib" reltype="has_a" key="id" map="" class="aou"/>
2187                         <link field="target_copy" reltype="has_a" key="id" map="" class="acp"/>
2188                         <link field="checkin_staff" reltype="has_a" key="id" map="" class="au"/>
2189                         <link field="circ_lib" reltype="has_a" key="id" map="" class="aou"/>
2190                         <link field="payments" reltype="has_many" key="xact" map="" class="mp"/>
2191                         <link field="billings" reltype="has_many" key="xact" map="" class="mb"/>
2192                         <link field="duration_rule" reltype="has_a" key="name" map="" class="crcd"/>
2193                         <link field="max_fine_rule" reltype="has_a" key="name" map="" class="crmf"/>
2194                         <link field="recuring_fine_rule" reltype="has_a" key="name" map="" class="crrf"/>
2195                         <link field="circ_type" reltype="might_have" key="id" map="" class="rcirct"/>
2196                         <link field="billing_total" reltype="might_have" key="xact" map="" class="rxbt"/>
2197                         <link field="payment_total" reltype="might_have" key="xact" map="" class="rxpt"/>
2198                         <link field="copy_call_number" reltype="has_a" key="id" map="" class="acn"/>
2199                         <link field="copy_location" reltype="has_a" key="id" map="" class="acpl"/>
2200                         <link field="copy_owning_lib" reltype="has_a" key="id" map="" class="aou"/>
2201                         <link field="copy_circ_lib" reltype="has_a" key="id" map="" class="aou"/>
2202                         <link field="copy_bib_record" reltype="has_a" key="id" map="" class="bre"/>
2203                 </links>
2204         </class>
2205         <class id="ccnbi" controller="open-ils.cstore" oils_obj:fieldmapper="container::call_number_bucket_item" oils_persist:tablename="container.call_number_bucket_item" reporter:label="Call Number Bucket Item">
2206                 <fields oils_persist:primary="id" oils_persist:sequence="container.call_number_bucket_item_id_seq">
2207                         <field name="bucket" reporter:datatype="link"/>
2208                         <field name="id" reporter:datatype="id" />
2209                         <field name="target_call_number" reporter:datatype="link" />
2210                         <field name="create_time" reporter:datatype="timestamp" />
2211                         <field name="pos" reporter:datatype="int" />
2212                         <field name="notes" oils_persist:virtual="true" reporter:datatype="link" />
2213                 </fields>
2214                 <links>
2215                         <link field="target_call_number" reltype="has_a" key="id" map="" class="acn"/>
2216                         <link field="bucket" reltype="has_a" key="id" map="" class="ccnb"/>
2217             <link field="notes" reltype="has_many" map="" key="item" class="ccnbin"/>
2218                 </links>
2219         </class>
2220         <class id="ccnbin" controller="open-ils.cstore" oils_obj:fieldmapper="container::call_number_bucket_item_note" oils_persist:tablename="container.call_number_bucket_item_note" reporter:label="Call Number Bucket Item Note">
2221                 <fields oils_persist:primary="id" oils_persist:sequence="container.call_number_bucket_item_note_id_seq">
2222                         <field name="id" reporter:datatype="id" />
2223                         <field name="item" reporter:datatype="link"/>
2224                         <field name="note" reporter:datatype="text" />
2225                 </fields>
2226                 <links>
2227                         <link field="item" reltype="has_a" key="id" map="" class="ccnbi"/>
2228                 </links>
2229         </class>
2230         <class id="cbreb" controller="open-ils.cstore" oils_obj:fieldmapper="container::biblio_record_entry_bucket" oils_persist:tablename="container.biblio_record_entry_bucket" reporter:label="Bibliographic Record Entry Bucket">
2231                 <fields oils_persist:primary="id" oils_persist:sequence="container.biblio_record_entry_bucket_id_seq">
2232                         <field name="items" oils_persist:virtual="true" reporter:datatype="link"/>
2233                         <field name="btype" reporter:datatype="text"/>
2234                         <field name="id" reporter:datatype="id" />
2235                         <field name="name" reporter:datatype="text"/>
2236                         <field name="owner" reporter:datatype="link"/>
2237                         <field name="pub" reporter:datatype="bool"/>
2238                         <field name="create_time" reporter:datatype="timestamp" />
2239                 </fields>
2240                 <links>
2241                         <link field="owner" reltype="has_a" key="id" map="" class="au"/>
2242                         <link field="items" reltype="has_many" key="bucket" map="" class="cbrebi"/>
2243                 </links>
2244         </class>
2245         <class id="cbrebn" controller="open-ils.cstore" oils_obj:fieldmapper="container::biblio_record_entry_bucket_note" oils_persist:tablename="container.biblio_record_entry_bucket_note" reporter:label="Bibliographic Record Entry Bucket Note">
2246                 <fields oils_persist:primary="id" oils_persist:sequence="container.biblio_record_entry_bucket_note_id_seq">
2247                         <field name="id" reporter:datatype="id" />
2248                         <field name="bucket" reporter:datatype="link"/>
2249                         <field name="note" reporter:datatype="text" />
2250                 </fields>
2251                 <links>
2252                         <link field="bucket" reltype="has_a" key="id" map="" class="cbreb"/>
2253                 </links>
2254         </class>
2255         <class id="ahcm" controller="open-ils.cstore" oils_obj:fieldmapper="action::hold_copy_map" oils_persist:tablename="action.hold_copy_map" reporter:label="Hold Copy Map">
2256                 <fields oils_persist:primary="id" oils_persist:sequence="action.hold_copy_map_id_seq">
2257                         <field name="hold" reporter:datatype="link"/>
2258                         <field name="id" reporter:datatype="id" />
2259                         <field name="target_copy" reporter:datatype="link"/>
2260                 </fields>
2261                 <links>
2262                         <link field="hold" reltype="has_a" key="id" map="" class="ahr"/>
2263                         <link field="target_copy" reltype="has_a" key="id" map="" class="acp"/>
2264                 </links>
2265         </class>
2266         <class id="ahn" controller="open-ils.cstore" oils_obj:fieldmapper="action::hold_notification" oils_persist:tablename="action.hold_notification" reporter:label="Hold Notification">
2267                 <fields oils_persist:primary="id" oils_persist:sequence="action.hold_notification_id_seq">
2268                         <field reporter:label="Hold" name="hold" reporter:datatype="link"/>
2269                         <field reporter:label="Notification ID" name="id" reporter:datatype="id" />
2270                         <field reporter:label="Notification Method" name="method"  reporter:datatype="text"/>
2271                         <field reporter:label="Notification Note" name="note"  reporter:datatype="text"/>
2272                         <field reporter:label="Notifying Staff" name="notify_staff" reporter:datatype="link"/>
2273                         <field reporter:label="Notification Date/Time" name="notify_time" reporter:datatype="timestamp"/>
2274                 </fields>
2275                 <links>
2276                         <link field="hold" reltype="has_a" key="id" map="" class="ahr"/>
2277                         <link field="notify_staff" reltype="has_a" key="id" map="" class="au"/>
2278                 </links>
2279         </class>
2280         <class id="acpl" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="asset::copy_location" oils_persist:tablename="asset.copy_location" reporter:label="Copy/Shelving Location">
2281                 <fields oils_persist:primary="id" oils_persist:sequence="asset.copy_location_id_seq">
2282                         <field reporter:label="Can Circulate?" name="circulate"  reporter:datatype="bool"/>
2283                         <field reporter:label="Is Holdable?" name="holdable" reporter:datatype="bool"/>
2284                         <field reporter:label="Hold Capture Requires Verification" name="hold_verify" reporter:datatype="bool"/>
2285                         <field reporter:label="Location ID" name="id" reporter:selector="name" reporter:datatype="id"/>
2286                         <field reporter:label="Name" name="name"  reporter:datatype="text" oils_persist:i18n="true"/>
2287                         <field reporter:label="Is OPAC Visible?" name="opac_visible" reporter:datatype="bool"/>
2288                         <field reporter:label="Owning Org Unit" name="owning_lib"  reporter:datatype="org_unit"/>
2289                 </fields>
2290                 <links>
2291                         <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
2292                         <link field="distribution_formula_entries" reltype="has_many" key="location" map="" class="acqdfe"/>
2293                 </links>
2294         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2295             <actions>
2296                 <create permission="CREATE_COPY_LOCATION" context_field="owning_lib"/>
2297                 <retrieve/>
2298                 <update permission="UPDATE_COPY_LOCATION" context_field="owning_lib"/>
2299                 <delete permission="DELETE_COPY_LOCATION" context_field="owning_lib"/>
2300             </actions>
2301         </permacrud>
2302         </class>
2303         <class id="svr" controller="open-ils.cstore" oils_obj:fieldmapper="serial::virtual_record" oils_persist:virtual="true" reporter:label="Serial Virtual Record">
2304                 <fields>
2305                         <field name="id" oils_persist:virtual="true" />
2306                         <field name="owning_lib" oils_persist:virtual="true" />
2307                         <field name="holdings" oils_persist:virtual="true" />
2308                         <field name="current_holdings" oils_persist:virtual="true" />
2309                         <field name="supplements" oils_persist:virtual="true" />
2310                         <field name="current_supplements" oils_persist:virtual="true" />
2311                         <field name="indexes" oils_persist:virtual="true" />
2312                         <field name="current_indexes" oils_persist:virtual="true" />
2313                         <field name="online" oils_persist:virtual="true" />
2314                         <field name="missing" oils_persist:virtual="true" />
2315                         <field name="incomplete" oils_persist:virtual="true" />
2316                 </fields>
2317         </class>
2318         <class id="sre" controller="open-ils.pcrud open-ils.cstore" oils_obj:fieldmapper="serial::record_entry" oils_persist:tablename="serial.record_entry" reporter:label="Serial Record Entry">
2319                 <fields oils_persist:primary="id" oils_persist:sequence="serial.record_entry_id_seq">
2320                         <field name="active" reporter:datatype="bool"/>
2321                         <field reporter:label="Bib Record" name="record" reporter:datatype="link"/>
2322                         <field name="create_date" reporter:datatype="timestamp"/>
2323                         <field name="creator" />
2324                         <field name="deleted" reporter:datatype="bool"/>
2325                         <field name="edit_date" reporter:datatype="timestamp"/>
2326                         <field name="editor" />
2327                         <field name="id" reporter:datatype="id" />
2328                         <field name="last_xact_id" />
2329                         <field name="marc" />
2330                         <field name="source" />
2331                         <field reporter:label="Owning Org Unit" name="owning_lib" reporter:datatype="org_unit"/>
2332                 </fields>
2333                 <links>
2334                         <link field="record" reltype="has_a" key="id" map="" class="bre"/>
2335                         <link field="editor" reltype="has_a" key="id" map="" class="au"/>
2336                         <link field="creator" reltype="has_a" key="id" map="" class="au"/>
2337                         <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
2338                 </links>
2339                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2340                         <actions>
2341                                 <create permission="CREATE_MFHD_RECORD" context_field="owning_lib"/>
2342                                 <retrieve/>
2343                                 <update permission="UPDATE_MFHD_RECORD" context_field="owning_lib"/>
2344                                 <delete permission="DELETE_MFHD_RECORD" context_field="owning_lib"/>
2345                         </actions>
2346                 </permacrud>
2347         </class>
2348         <class id="sfr" controller="open-ils.cstore" oils_obj:fieldmapper="serial::full_rec" oils_persist:tablename="serial.full_rec" reporter:label="Serial Full Record">
2349                 <fields oils_persist:primary="id" oils_persist:sequence="serial.full_rec_id_seq">
2350                         <field name="id" reporter:datatype="id" />
2351                         <field name="ind1" />
2352                         <field name="ind2" />
2353                         <field name="record" />
2354                         <field name="subfield" />
2355                         <field name="tag" />
2356                         <field name="value" />
2357                 </fields>
2358                 <links>
2359                         <link field="record" reltype="has_a" key="id" map="" class="sre"/>
2360                 </links>
2361         </class>
2362         <class id="ssub" controller="open-ils.cstore" oils_obj:fieldmapper="serial::subscription" oils_persist:tablename="serial.subscription" reporter:label="Subscription">
2363                 <fields oils_persist:primary="id" oils_persist:sequence="serial.subscription_id_seq">
2364                         <field name="active" reporter:datatype="bool"/>
2365                         <field reporter:label="Call Number" name="call_number" reporter:datatype="link"/>
2366                         <field reporter:label="URI" name="uri" reporter:datatype="link"/>
2367                         <field reporter:label="Start date" name="start_date" reporter:datatype="timestamp"/>
2368                         <field reporter:label="End date" name="end_date" reporter:datatype="timestamp"/>
2369                 </fields>
2370                 <links>
2371                         <link field="call_number" reltype="might_have" key="id" map="" class="acn"/>
2372                         <link field="uri" reltype="might_have" key="id" map="" class="auri"/>
2373                 </links>
2374         </class>
2375         <class id="sbu" controller="open-ils.cstore" oils_obj:fieldmapper="serial::binding_unit" oils_persist:tablename="serial.binding_unit" reporter:label="Binding Unit">
2376                 <fields oils_persist:primary="id" oils_persist:sequence="serial.binding_unit_id_seq">
2377                         <field name="active" reporter:datatype="bool"/>
2378                         <field reporter:label="Subscription" name="subscription" reporter:datatype="link"/>
2379                         <field reporter:label="Label" name="label" />
2380                 </fields>
2381                 <links>
2382                         <link field="subscription" reltype="has_a" key="id" map="" class="ssub"/>
2383                 </links>
2384         </class>
2385         <class id="siss" controller="open-ils.cstore" oils_obj:fieldmapper="serial::issuance" oils_persist:tablename="serial.issuance" reporter:label="Issuance">
2386                 <fields oils_persist:primary="id" oils_persist:sequence="serial.issuance_id_seq">
2387                         <field name="id" reporter:datatype="id" />
2388                         <field name="subscription" reporter:datatype="link"/>
2389                         <field name="target_copy" reporter:datatype="link"/>
2390                         <field name="location" reporter:datatype="link"/>
2391                         <field name="binding_unit" reporter:datatype="link"/>
2392                         <field name="label" />
2393                 </fields>
2394                 <links>
2395                         <link field="subscription" reltype="has_a" key="id" map="" class="ssub"/>
2396                         <link field="target_copy" reltype="might_have" key="id" map="" class="acp"/>
2397                         <link field="location" reltype="might_have" key="id" map="" class="acpl"/>
2398                         <link field="binding_unit" reltype="might_have" key="id" map="" class="sbu"/>
2399                 </links>
2400         </class>
2401         <class id="sbsum" controller="open-ils.cstore" oils_obj:fieldmapper="serial::bib_summary" oils_persist:tablename="serial.bib_summary" reporter:label="Bib Summary">
2402                 <fields oils_persist:primary="id" oils_persist:sequence="serial.bib_summary_id_seq">
2403                         <field name="id" reporter:datatype="id" />
2404                         <field name="subscription" reporter:datatype="link"/>
2405                         <field name="generated_coverage" reporter:datatype="text"/>
2406                         <field name="textual_holdings" reporter:datatype="text"/>
2407                 </fields>
2408                 <links>
2409                         <link field="subscription" reltype="has_a" key="id" map="" class="ssub"/>
2410                 </links>
2411         </class>
2412         <class id="sssum" controller="open-ils.cstore" oils_obj:fieldmapper="serial::sup_summary" oils_persist:tablename="serial.sup_summary" reporter:label="Supplemental Issue Summary">
2413                 <fields oils_persist:primary="id" oils_persist:sequence="serial.sup_summary_id_seq">
2414                         <field name="id" reporter:datatype="id" />
2415                         <field name="subscription" reporter:datatype="link"/>
2416                         <field name="generated_coverage" reporter:datatype="text"/>
2417                         <field name="textual_holdings" reporter:datatype="text"/>
2418                 </fields>
2419                 <links>
2420                         <link field="subscription" reltype="has_a" key="id" map="" class="ssub"/>
2421                 </links>
2422         </class>
2423         <class id="sisum" controller="open-ils.cstore" oils_obj:fieldmapper="serial::index_summary" oils_persist:tablename="serial.index_summary" reporter:label="Index Summary">
2424                 <fields oils_persist:primary="id" oils_persist:sequence="serial.index_summary_id_seq">
2425                         <field name="id" reporter:datatype="id" />
2426                         <field name="subscription" reporter:datatype="link"/>
2427                         <field name="generated_coverage" reporter:datatype="text"/>
2428                         <field name="textual_holdings" reporter:datatype="text"/>
2429                 </fields>
2430                 <links>
2431                         <link field="subscription" reltype="has_a" key="id" map="" class="ssub"/>
2432                 </links>
2433         </class>
2434
2435         <class id="ascecm" controller="open-ils.cstore" oils_obj:fieldmapper="asset::stat_cat_entry_copy_map" oils_persist:tablename="asset.stat_cat_entry_copy_map" reporter:label="Statistical Category Entry Copy Map">
2436                 <fields oils_persist:primary="id" oils_persist:sequence="asset.stat_cat_entry_copy_map_id_seq">
2437                         <field name="id" reporter:datatype="id" />
2438                         <field name="owning_copy" reporter:datatype="link"/>
2439                         <field name="stat_cat" reporter:datatype="link"/>
2440                         <field name="stat_cat_entry" reporter:datatype="link"/>
2441                 </fields>
2442                 <links>
2443                         <link field="owning_copy" reltype="has_a" key="id" map="" class="acp"/>
2444                         <link field="stat_cat_entry" reltype="has_a" key="id" map="" class="asce"/>
2445                         <link field="stat_cat" reltype="has_a" key="id" map="" class="asc"/>
2446                 </links>
2447         </class>
2448         <class id="citm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::item_type_map" oils_persist:tablename="config.item_type_map" reporter:label="Item Type Map" oils_persist:field_safe="true">
2449                 <fields oils_persist:primary="code">
2450                         <field reporter:label="Item Type Code" name="code" reporter:selector="value" reporter:datatype="text"/>
2451                         <field reporter:label="Item Type" name="value"  reporter:datatype="text" oils_persist:i18n="true"/>
2452                 </fields>
2453                 <links/>
2454         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2455             <actions>
2456                 <create permission="ADMIN_MARC_CODE" global_required="true"/>
2457                 <retrieve/>
2458                 <update permission="ADMIN_MARC_CODE" global_required="true"/>
2459                 <delete permission="ADMIN_MARC_CODE" global_required="true"/>
2460             </actions>
2461         </permacrud>
2462         </class>
2463         <class id="cblvl" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::bib_level_map" oils_persist:tablename="config.bib_level_map" reporter:label="Bib Level Map" oils_persist:field_safe="true">
2464                 <fields oils_persist:primary="code">
2465                         <field reporter:label="Bib Level Code" name="code"  reporter:datatype="text"/>
2466                         <field reporter:label="Bib Level" name="value"  reporter:datatype="text" oils_persist:i18n="true"/>
2467                 </fields>
2468                 <links/>
2469         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2470             <actions>
2471                 <create permission="CREATE_MARC_CODE" global_required="true"/>
2472                 <retrieve permission="CREATE_MARC_CODE UPDATE_MARC_CODE DELETE_MARC_CODE" global_required="true"/>
2473                 <update permission="UPDATE_MARC_CODE" global_required="true"/>
2474                 <delete permission="DELETE_MARC_CODE" global_required="true"/>
2475             </actions>
2476         </permacrud>
2477         </class>
2478         <class id="sra" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="search::relevance_adjustment" oils_persist:tablename="search.relevance_adjustment" reporter:label="Relevance Adjustment">
2479                 <fields oils_persist:primary="id" oils_persist:sequence="search.relevance_adjustment_id_seq">
2480                         <field reporter:label="ID" name="id"  reporter:datatype="id"/>
2481                         <field reporter:label="Active" name="active"  reporter:datatype="bool"/>
2482                         <field reporter:label="Index Field" name="field"  reporter:datatype="link"/>
2483                         <field reporter:label="Bump Type" name="bump_type"  reporter:datatype="text"/>
2484                         <field reporter:label="Multiplier" name="multiplier"  reporter:datatype="number"/>
2485                 </fields>
2486                 <links>
2487             <link field="field" reltype="has_a" key="id" map="" class="cmf"/>
2488         </links>
2489         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2490             <actions>
2491                 <create permission="CREATE_RELEVANCE_ADJUSTMENT" global_required="true"/>
2492                 <retrieve permission="CREATE_RELEVANCE_ADJUSTMENT UPDATE_RELEVANCE_ADJUSTMENT DELETE_RELEVANCE_ADJUSTMENT" global_required="true"/>
2493                 <update permission="UPDATE_RELEVANCE_ADJUSTMENT" global_required="true"/>
2494                 <delete permission="DELETE_RELEVANCE_ADJUSTMENT" global_required="true"/>
2495             </actions>
2496         </permacrud>
2497         </class>
2498         <class id="lasso" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="actor::org_lasso" oils_persist:tablename="actor.org_lasso" reporter:label="Org Lasso">
2499                 <fields oils_persist:primary="id" oils_persist:sequence="actor.org_lasso_id_seq">
2500                         <field name="id" reporter:datatype="id" />
2501                         <field name="name" reporter:datatype="text"/>
2502                 </fields>
2503                 <links/>
2504         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2505             <actions>
2506                 <create permission="CREATE_LASSO" global_required="true"/>
2507                 <retrieve permission="CREATE_LASSO UPDATE_LASSO DELETE_LASSO" global_required="true"/>
2508                 <update permission="UPDATE_LASSO" global_required="true"/>
2509                 <delete permission="DELETE_LASSO" global_required="true"/>
2510             </actions>
2511         </permacrud>
2512         </class>
2513         <class id="lmap" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="actor::org_lasso_map" oils_persist:tablename="actor.org_lasso_map" reporter:label="Org Lasso Map">
2514                 <fields oils_persist:primary="id" oils_persist:sequence="actor.org_lasso_map_id_seq">
2515                         <field name="id" reporter:datatype="id" />
2516                         <field name="lasso" reporter:datatype="link"/>
2517                         <field name="org_unit" reporter:datatype="org_unit"/>
2518                 </fields>
2519                 <links>
2520                         <link field="lasso" reltype="has_a" key="id" map="" class="lasso"/>
2521                         <link field="org_unit" reltype="has_a" key="id" map="" class="aou"/>
2522                 </links>
2523         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2524             <actions>
2525                 <create permission="CREATE_LASSO_MAP" global_required="true"/>
2526                 <retrieve permission="CREATE_LASSO_MAP UPDATE_LASSO_MAP DELETE_LASSO_MAP" global_required="true"/>
2527                 <update permission="UPDATE_LASSO_MAP" global_required="true"/>
2528                 <delete permission="DELETE_LASSO_MAP" global_required="true"/>
2529             </actions>
2530         </permacrud>
2531         </class>
2532         <class id="aoup" controller="open-ils.cstore" oils_obj:fieldmapper="actor::org_unit_proximity" oils_persist:tablename="actor.org_unit_proximity" reporter:label="Org Unit Proximity">
2533                 <fields oils_persist:primary="id" oils_persist:sequence="actor.org_unit_proximity_id_seq">
2534                         <field name="id" reporter:datatype="id" />
2535                         <field name="from_org" reporter:datatype="org_unit"/>
2536                         <field name="to_org" reporter:datatype="org_unit"/>
2537                         <field name="prox" reporter:datatype="int" />
2538                 </fields>
2539                 <links>
2540                         <link field="from_org" reltype="has_a" key="id" map="" class="aou"/>
2541                         <link field="to_org" reltype="has_a" key="id" map="" class="aou"/>
2542                 </links>
2543         </class>
2544         <class id="ssr" controller="open-ils.cstore" oils_obj:fieldmapper="search::search_result" oils_persist:tablename="search.search_result" oils_persist:readonly="true" reporter:label="Search Result">
2545                 <fields oils_persist:primary="id" oils_persist:sequence="actor.org_unit_proximity_id_seq">
2546                         <field reporter:label="ID" name="id" reporter:datatype="id" />
2547                         <field reporter:label="Relevance" name="rel" reporter:datatype="float"/>
2548                         <field reporter:label="Record" name="record" reporter:datatype="link"/>
2549                         <field reporter:label="Total Results" name="total" reporter:datatype="int" />
2550                         <field reporter:label="Checked" name="checked" reporter:datatype="int"/>
2551                         <field reporter:label="Visible" name="visible" reporter:datatype="int"/>
2552                         <field reporter:label="Deleted" name="deleted" reporter:datatype="int"/>
2553                         <field reporter:label="Excluded" name="excluded" reporter:datatype="int"/>
2554                 </fields>
2555                 <links/>
2556         </class>
2557         <class id="asv" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="action::survey" oils_persist:tablename="action.survey" reporter:label="Survey">
2558                 <fields oils_persist:primary="id" oils_persist:sequence="action.survey_id_seq">
2559                         <field reporter:label="Questions" name="questions" oils_persist:virtual="true" reporter:datatype="link"/>
2560                         <field reporter:label="Responses" name="responses" oils_persist:virtual="true" reporter:datatype="link"/>
2561                         <field reporter:label="Description" name="description" reporter:datatype="text"/>
2562                         <field reporter:label="Survey End Date/Time" name="end_date" reporter:datatype="timestamp"/>
2563                         <field reporter:label="Survey ID" name="id" reporter:datatype="id"/>
2564                         <field reporter:label="Name" name="name" reporter:datatype="text"/>
2565                         <field reporter:label="OPAC Survey?" name="opac" reporter:datatype="bool"/>
2566                         <field reporter:label="Owning Library" name="owner" reporter:datatype="org_unit"/>
2567                         <field reporter:label="Poll Style?" name="poll" reporter:datatype="bool"/>
2568                         <field reporter:label="Is Required?" name="required" reporter:datatype="bool"/>
2569                         <field reporter:label="Survey Start Date/Time" name="start_date" reporter:datatype="timestamp"/>
2570                         <field reporter:label="Display in User Summary" name="usr_summary" reporter:datatype="bool"/>
2571                 </fields>
2572                 <links>
2573                         <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
2574                         <link field="responses" reltype="has_many" key="survey" map="" class="asvr"/>
2575                         <link field="questions" reltype="has_many" key="survey" map="" class="asvq"/>
2576                 </links>
2577         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2578             <actions>
2579                 <create permission="ADMIN_SURVEY" context_field="owner"/>
2580                 <retrieve/>
2581                 <update permission="ADMIN_SURVEY" context_field="owner"/>
2582                 <delete permission="ADMIN_SURVEY" context_field="owner"/>
2583             </actions>
2584         </permacrud>
2585         </class>
2586         <class id="aoa" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="actor::org_address" oils_persist:tablename="actor.org_address" reporter:label="Org Address">
2587                 <fields oils_persist:primary="id" oils_persist:sequence="actor.org_address_id_seq">
2588                         <field name="address_type"  reporter:datatype="text"/>
2589                         <field name="city"  reporter:datatype="text"/>
2590                         <field name="country"  reporter:datatype="text"/>
2591                         <field name="county"  reporter:datatype="text"/>
2592                         <field name="id" reporter:datatype="id" />
2593                         <field name="org_unit" reporter:datatype="org_unit"/>
2594                         <field name="post_code"  reporter:datatype="text"/>
2595                         <field name="state"  reporter:datatype="text"/>
2596                         <field name="street1"  reporter:datatype="text"/>
2597                         <field name="street2"  reporter:datatype="text"/>
2598                         <field name="valid" reporter:datatype="bool"/>
2599                 </fields>
2600                 <links>
2601                         <link field="org_unit" reltype="has_a" key="id" map="" class="aou"/>
2602                 </links>
2603         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2604             <actions>
2605                 <create permission="CREATE_ORG_ADDRESS" context_field="org_unit"/>
2606                 <retrieve/>
2607                 <update permission="UPDATE_ORG_ADDRESS" context_field="org_unit"/>
2608                 <delete permission="DELETE_ORG_ADDRESS" context_field="org_unit"/>
2609             </actions>
2610         </permacrud>
2611         </class>
2612         <class id="ahr" controller="open-ils.cstore" oils_obj:fieldmapper="action::hold_request" oils_persist:tablename="action.hold_request" reporter:core="true" reporter:label="Hold Request">
2613                 <fields oils_persist:primary="id" oils_persist:sequence="action.hold_request_id_seq">
2614                         <field name="status" oils_persist:virtual="true" />
2615                         <field reporter:label="Transit" name="transit" oils_persist:virtual="true" />
2616                         <field reporter:label="Capture Date/Time" name="capture_time" reporter:datatype="timestamp"/>
2617                         <field reporter:label="Currently Targeted Copy" name="current_copy" />
2618                         <field reporter:label="Notify by Email?" name="email_notify" reporter:datatype="bool"/>
2619                         <field reporter:label="Hold Expire Date/Time" name="expire_time" reporter:datatype="timestamp"/>
2620                         <field reporter:label="Fulfilling Library" name="fulfillment_lib" reporter:datatype="org_unit"/>
2621                         <field reporter:label="Fulfilling Staff" name="fulfillment_staff" />
2622                         <field reporter:label="Fulfillment Date/Time" name="fulfillment_time" reporter:datatype="timestamp"/>
2623                         <field reporter:label="Hold Type" name="hold_type" reporter:datatype="text"/>
2624                         <field reporter:label="Holdable Formats (for M-type hold)" name="holdable_formats" reporter:datatype="text"/>
2625                         <field reporter:label="Hold ID" name="id" reporter:datatype="id" />
2626                         <field reporter:label="Notifications Phone Number" name="phone_notify" reporter:datatype="text"/>
2627                         <field reporter:label="Pickup Library" name="pickup_lib" reporter:datatype="org_unit"/>
2628                         <field reporter:label="Last Targeting Date/Time" name="prev_check_time" reporter:datatype="timestamp"/>
2629                         <field reporter:label="Requesting Library" name="request_lib" reporter:datatype="org_unit"/>
2630                         <field reporter:label="Request Date/Time" name="request_time" reporter:datatype="timestamp"/>
2631                         <field reporter:label="Requesting User" name="requestor" reporter:datatype="link"/>
2632                         <field reporter:label="Item Selection Depth" name="selection_depth" />
2633                         <field reporter:label="Selection Locus" name="selection_ou" reporter:datatype="org_unit"/>
2634                         <field reporter:label="Target Object ID" name="target" reporter:datatype="link"/>
2635                         <field reporter:label="Hold User" name="usr" reporter:datatype="link"/>
2636                         <field reporter:label="Hold Cancel Date/Time" name="cancel_time" reporter:datatype="timestamp"/>
2637                         <field name="notify_time" oils_persist:virtual="true" reporter:datatype="timestamp"/>
2638                         <field name="notify_count" oils_persist:virtual="true" reporter:datatype="int" />
2639                         <field reporter:label="Notifications" name="notifications" oils_persist:virtual="true" reporter:datatype="link"/>
2640                         <field reporter:label="Bib Record link" name="bib_rec" oils_persist:virtual="true" reporter:datatype="link"/>
2641                         <field reporter:label="Eligible Copies" name="eligible_copies" oils_persist:virtual="true" reporter:datatype="link"/>
2642                         <field reporter:label="Currently Frozen" name="frozen" reporter:datatype="bool"/>
2643                         <field reporter:label="Thaw Date (if frozen)" name="thaw_date" reporter:datatype="timestamp"/>
2644                         <field reporter:label="Cancelation cause" name="cancel_cause" reporter:datatype="link" />
2645                         <field reporter:label="Cancelation note" name="cancel_note" reporter:datatype="text" />
2646                 </fields>
2647                 <links>
2648                         <link field="fulfillment_lib" reltype="has_a" key="id" map="" class="aou"/>
2649                         <link field="fulfillment_staff" reltype="has_a" key="id" map="" class="au"/>
2650                         <link field="pickup_lib" reltype="has_a" key="id" map="" class="aou"/>
2651                         <link field="selection_ou" reltype="has_a" key="id" map="" class="aou"/>
2652                         <link field="requestor" reltype="has_a" key="id" map="" class="au"/>
2653                         <link field="current_copy" reltype="has_a" key="id" map="" class="acp"/>
2654                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
2655                         <link field="request_lib" reltype="has_a" key="id" map="" class="aou"/>
2656                         <link field="transit" reltype="might_have" key="hold" map="" class="ahtc"/>
2657                         <link field="notifications" reltype="has_many" key="hold" map="" class="ahn"/>
2658                         <link field="eligible_copies" reltype="has_many" key="hold" map="target_copy" class="ahcm"/>
2659                         <link field="bib_rec" reltype="might_have" key="id" map="" class="rhrr"/>
2660                         <link field="cancel_cause" reltype="might_have" key="id" map="" class="ahrcc"/>
2661                 </links>
2662         </class>
2663         <class id="aou" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="actor::org_unit" oils_persist:tablename="actor.org_unit" reporter:label="Organizational Unit" oils_persist:field_safe="true">
2664                 <fields oils_persist:primary="id" oils_persist:sequence="actor.org_unit_id_seq">
2665                         <field reporter:label="Subordinate Organizational Units" name="children" oils_persist:virtual="true" reporter:datatype="org_unit"/>
2666                         <field reporter:label="Billing Address" name="billing_address" reporter:datatype="link"/>
2667                         <field reporter:label="Holds Receiving Address" name="holds_address" reporter:datatype="link"/>
2668                         <field reporter:label="Organizational Unit ID" name="id" reporter:datatype="org_unit" reporter:selector="shortname"/>
2669                         <field reporter:label="ILL Receiving Address" name="ill_address" reporter:datatype="link"/>
2670                         <field reporter:label="Mailing Address" name="mailing_address" reporter:datatype="link"/>
2671                         <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
2672                         <field reporter:label="Organizational Unit Type" name="ou_type" reporter:datatype="link"/>
2673                         <field reporter:label="Parent Organizational Unit" name="parent_ou" reporter:datatype="link"/>
2674                         <field reporter:label="Short (Policy) Name" name="shortname" reporter:datatype="text"/>
2675                         <field reporter:label="Email Address" name="email" reporter:datatype="text"/>
2676                         <field reporter:label="Phone Number" name="phone" reporter:datatype="text"/>
2677                         <field reporter:label="OPAC Visible" name="opac_visible" reporter:datatype="bool"/>
2678                         <field reporter:label="Users" name="users" oils_persist:virtual="true" reporter:datatype="link"/>
2679                         <field reporter:label="Closed Dates" name="closed_dates" oils_persist:virtual="true" reporter:datatype="link"/>
2680                         <field reporter:label="Circulations" name="circulations" oils_persist:virtual="true" reporter:datatype="link"/>
2681                         <field reporter:label="Settings" name="settings" oils_persist:virtual="true" reporter:datatype="link"/>
2682                         <field reporter:label="Addresses" name="addresses" oils_persist:virtual="true" reporter:datatype="link"/>
2683                         <field reporter:label="Checkins" name="checkins" oils_persist:virtual="true" reporter:datatype="link"/>
2684                         <field reporter:label="Workstations" name="workstations" oils_persist:virtual="true" reporter:datatype="link"/>
2685                 </fields>
2686                 <links>
2687                         <link field="billing_address" reltype="has_a" key="id" map="" class="aoa"/>
2688                         <link field="holds_address" reltype="has_a" key="id" map="" class="aoa"/>
2689                         <link field="ou_type" reltype="has_a" key="id" map="" class="aout"/>
2690                         <link field="mailing_address" reltype="has_a" key="id" map="" class="aoa"/>
2691                         <link field="parent_ou" reltype="has_a" key="id" map="" class="aou"/>
2692                         <link field="ill_address" reltype="has_a" key="id" map="" class="aoa"/>
2693                         <link field="users" reltype="has_many" key="home_ou" map="" class="au"/>
2694                         <link field="closed_dates" reltype="has_many" key="org_unit" map="" class="aoucd"/>
2695                         <link field="children" reltype="has_many" key="parent_ou" map="" class="aou"/>
2696                         <link field="circulations" reltype="has_many" key="circ_lib" map="" class="circ"/>
2697                         <link field="settings" reltype="has_many" key="org_unit" map="" class="aous"/>
2698                         <link field="addresses" reltype="has_many" key="org_unit" map="" class="aoa"/>
2699                         <link field="checkins" reltype="has_many" key="checkin_lib" map="" class="circ"/>
2700                         <link field="workstations" reltype="has_many" key="owning_lib" map="" class="aws"/>
2701                         <link field="distribution_formulas" reltype="has_many" key="owner" map="" class="acqdf"/>
2702                         <link field="distribution_formula_entries" reltype="has_many" key="owning_lib" map="" class="acqdfe"/>
2703                 </links>
2704         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2705             <actions>
2706                 <create permission="CREATE_ORG_UNIT" context_field="parent_ou"/>
2707                 <retrieve permission="CREATE_ORG_UNIT UPDATE_ORG_UNIT DELETE_ORG_UNIT">
2708                     <context field="id"/>
2709                     <context field="parent_ou"/>
2710                                 </retrieve>
2711                 <update permission="UPDATE_ORG_UNIT" context_field="id"/>
2712                 <delete permission="DELETE_ORG_UNIT" context_field="parent_ou"/>
2713             </actions>
2714         </permacrud>
2715         </class>
2716         <class id="ccnb" controller="open-ils.cstore" oils_obj:fieldmapper="container::call_number_bucket" oils_persist:tablename="container.call_number_bucket" reporter:label="Call Number Bucket">
2717                 <fields oils_persist:primary="id" oils_persist:sequence="container.call_number_bucket_id_seq">
2718                         <field name="items" oils_persist:virtual="true" reporter:datatype="link"/>
2719                         <field name="btype" reporter:datatype="text"/>
2720                         <field name="id" reporter:datatype="id" />
2721                         <field name="name"  reporter:datatype="text"/>
2722                         <field name="owner" reporter:datatype="link"/>
2723                         <field name="pub" reporter:datatype="bool"/>
2724                         <field name="create_time" reporter:datatype="timestamp" />
2725                 </fields>
2726                 <links>
2727                         <link field="owner" reltype="has_a" key="id" map="" class="au"/>
2728                         <link field="items" reltype="has_many" key="bucket" map="" class="ccnbi"/>
2729                 </links>
2730         </class>
2731         <class id="ccnbn" controller="open-ils.cstore" oils_obj:fieldmapper="container::call_number_bucket_note" oils_persist:tablename="container.call_number_bucket_note" reporter:label="Call Number Bucket Note">
2732                 <fields oils_persist:primary="id" oils_persist:sequence="container.call_number_bucket_note_id_seq">
2733                         <field name="id" reporter:datatype="id" />
2734                         <field name="bucket" reporter:datatype="link"/>
2735                         <field name="note" reporter:datatype="text" />
2736                 </fields>
2737                 <links>
2738                         <link field="bucket" reltype="has_a" key="id" map="" class="ccnb"/>
2739                 </links>
2740         </class>
2741         <class id="asc" controller="open-ils.cstore" oils_obj:fieldmapper="asset::stat_cat" oils_persist:tablename="asset.stat_cat" reporter:label="Asset Statistical Category">
2742                 <fields oils_persist:primary="id" oils_persist:sequence="asset.stat_cat_id_seq">
2743                         <field reporter:label="Entries" name="entries" oils_persist:virtual="true" reporter:datatype="link"/>
2744                         <field reporter:label="Stat Cat ID" name="id" reporter:datatype="id" reporter:selector="name"/>
2745                         <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
2746                         <field reporter:label="OPAC Visible" name="opac_visible" reporter:datatype="bool"/>
2747                         <field reporter:label="Owning Library" name="owner" reporter:datatype="org_unit"/>
2748                 </fields>
2749                 <links>
2750                         <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
2751                         <link field="entries" reltype="has_many" key="stat_cat" map="" class="asce"/>
2752                 </links>
2753         </class>
2754         <class id="ac" controller="open-ils.cstore" oils_obj:fieldmapper="actor::card" oils_persist:tablename="actor.card" reporter:label="Library Card">
2755                 <fields oils_persist:primary="id" oils_persist:sequence="actor.card_id_seq">
2756                         <field reporter:label="IsActive?" name="active" reporter:datatype="bool"/>
2757                         <field reporter:label="Barcode" name="barcode" reporter:datatype="text"/>
2758                         <field reporter:label="Card ID" name="id" reporter:datatype="id" />
2759                         <field reporter:label="User" name="usr" reporter:datatype="link"/>
2760                 </fields>
2761                 <links>
2762                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
2763                 </links>
2764         </class>
2765         <class id="actsc" controller="open-ils.cstore" oils_obj:fieldmapper="actor::stat_cat" oils_persist:tablename="actor.stat_cat" reporter:label="User Statistical Category">
2766                 <fields oils_persist:primary="id" oils_persist:sequence="actor.stat_cat_id_seq">
2767                         <field reporter:label="Entries" name="entries" oils_persist:virtual="true" reporter:datatype="link"/>
2768                         <field reporter:label="Stat Cat ID" name="id" reporter:datatype="id" reporter:selector="name"/>
2769                         <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
2770                         <field reporter:label="OPAC Visible" name="opac_visible" reporter:datatype="bool"/>
2771                         <field reporter:label="Owning Library" name="owner" reporter:datatype="org_unit"/>
2772                 </fields>
2773                 <links>
2774                         <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
2775                         <link field="entries" reltype="has_many" key="stat_cat" map="" class="actsce"/>
2776                 </links>
2777         </class>
2778         <class id="msefe" controller="open-ils.cstore" oils_obj:fieldmapper="metabib::series_field_entry" oils_persist:tablename="metabib.series_field_entry" reporter:label="Series Field Entry">
2779                 <fields oils_persist:primary="id" oils_persist:sequence="metabib.series_field_entry_id_seq">
2780                         <field name="field" reporter:datatype="link"/>
2781                         <field name="id" reporter:datatype="id" />
2782                         <field name="source" reporter:datatype="link"/>
2783                         <field name="value"  reporter:datatype="text"/>
2784                 </fields>
2785                 <links>
2786                         <link field="source" reltype="has_a" key="id" map="" class="bre"/>
2787                         <link field="field" reltype="has_a" key="id" map="" class="cmf"/>
2788                 </links>
2789         </class>
2790         <class id="cub" controller="open-ils.cstore" oils_obj:fieldmapper="container::user_bucket" oils_persist:tablename="container.user_bucket" reporter:label="User Bucket">
2791                 <fields oils_persist:primary="id" oils_persist:sequence="container.user_bucket_id_seq">
2792                         <field name="items" oils_persist:virtual="true" reporter:datatype="link"/>
2793                         <field name="btype" reporter:datatype="text"/>
2794                         <field name="id" reporter:datatype="id" />
2795                         <field name="name"  reporter:datatype="text"/>
2796                         <field name="owner" reporter:datatype="link"/>
2797                         <field name="pub" reporter:datatype="bool"/>
2798                         <field name="create_time" reporter:datatype="timestamp" />
2799                 </fields>
2800                 <links>
2801                         <link field="owner" reltype="has_a" key="id" map="" class="au"/>
2802                         <link field="items" reltype="has_many" key="bucket" map="" class="cubi"/>
2803                 </links>
2804         </class>
2805         <class id="cubn" controller="open-ils.cstore" oils_obj:fieldmapper="container::user_bucket_note" oils_persist:tablename="container.user_bucket_note" reporter:label="User Bucket Note">
2806                 <fields oils_persist:primary="id" oils_persist:sequence="container.user_bucket_note_id_seq">
2807                         <field name="id" reporter:datatype="id" />
2808                         <field name="bucket" reporter:datatype="link"/>
2809                         <field name="note" reporter:datatype="text" />
2810                 </fields>
2811                 <links>
2812                         <link field="bucket" reltype="has_a" key="id" map="" class="cub"/>
2813                 </links>
2814         </class>
2815         <class id="mcrp" controller="open-ils.cstore" oils_obj:fieldmapper="money::credit_payment" oils_persist:tablename="money.credit_payment" reporter:label="House Credit Payment">
2816                 <fields oils_persist:primary="id" oils_persist:sequence="money.payment_id_seq">
2817                         <field reporter:label="Accepting Staff Member" name="accepting_usr" reporter:datatype="link"/>
2818                         <field reporter:label="Amount" name="amount" reporter:datatype="money" />
2819                         <field reporter:label="Amount Collected" name="amount_collected" reporter:datatype="money" />
2820                         <field reporter:label="Pyament ID" name="id" reporter:datatype="id" />
2821                         <field reporter:label="Payment Note" name="note"  reporter:datatype="text"/>
2822                         <field reporter:label="Payment Timestamp" name="payment_ts" reporter:datatype="timestamp"/>
2823                         <field reporter:label="Transaction" name="xact" reporter:datatype="link"/>
2824                         <field reporter:label="Payment Type" name="payment_type" oils_persist:virtual="true"  reporter:datatype="text"/>
2825                         <field reporter:label="Payment link" name="payment" oils_persist:virtual="true" reporter:datatype="link"/>
2826                 </fields>
2827                 <links>
2828                         <link field="payment" reltype="might_have" key="id" map="" class="mp"/>
2829                         <link field="accepting_usr" reltype="has_a" key="id" map="" class="au"/>
2830                         <link field="xact" reltype="has_a" key="id" map="" class="mbt"/>
2831                 </links>
2832         </class>
2833         <class id="afr" controller="open-ils.cstore" oils_obj:fieldmapper="authority::full_rec" oils_persist:tablename="authority.full_rec" reporter:label="Full Authority Record">
2834                 <fields oils_persist:primary="id" oils_persist:sequence="authority.full_rec_id_seq">
2835                         <field name="id" reporter:datatype="id" />
2836                         <field name="ind1" />
2837                         <field name="ind2" />
2838                         <field name="record" />
2839                         <field name="subfield" />
2840                         <field name="tag" />
2841                         <field name="value" />
2842                 </fields>
2843                 <links>
2844                         <link field="record" reltype="has_a" key="id" map="" class="are"/>
2845                 </links>
2846         </class>
2847         <class id="cnct" controller="open-ils.cstore" oils_obj:fieldmapper="config::non_cataloged_type" oils_persist:tablename="config.non_cataloged_type" reporter:label="Non-cataloged Type">
2848                 <fields oils_persist:primary="id" oils_persist:sequence="config.non_cataloged_type_id_seq">
2849                         <field reporter:label="Circulation Duration" name="circ_duration" reporter:datatype="interval"/>
2850                         <field reporter:label="Non-cat Type ID" name="id" reporter:selector="name" reporter:datatype="id"/>
2851                         <field reporter:label="In House?" name="in_house" reporter:datatype="bool"/>
2852                         <field reporter:label="Name" name="name"  reporter:datatype="text" oils_persist:i18n="true"/>
2853                         <field reporter:label="Owning Library" name="owning_lib"  reporter:datatype="org_unit"/>
2854                 </fields>
2855                 <links>
2856                         <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
2857                 </links>
2858         </class>
2859         <class id="aout" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="actor::org_unit_type" oils_persist:tablename="actor.org_unit_type" reporter:label="Organizational Unit Type">
2860                 <fields oils_persist:primary="id" oils_persist:sequence="actor.org_unit_type_id_seq">
2861                         <field reporter:label="Subordinate Types" name="children" oils_persist:virtual="true" reporter:datatype="link"/>
2862                         <field reporter:label="Can Have Users?" name="can_have_users" reporter:datatype="bool"/>
2863                         <field reporter:label="Can Have Volumes?" name="can_have_vols" reporter:datatype="bool"/>
2864                         <field reporter:label="Type Depth" name="depth" reporter:datatype="int" />
2865                         <field reporter:label="Type ID" name="id" reporter:selector="name" reporter:datatype="id"/>
2866                         <field reporter:label="Type Name" name="name"  reporter:datatype="text" oils_persist:i18n="true"/>
2867                         <field reporter:label="OPAC Label" name="opac_label"  reporter:datatype="text" oils_persist:i18n="true"/>
2868                         <field reporter:label="Parent Type" name="parent" reporter:datatype="link"/>
2869                         <field reporter:label="Org Units" name="org_units" oils_persist:virtual="true"  reporter:datatype="org_unit"/>
2870                 </fields>
2871                 <links>
2872                         <link field="parent" reltype="has_a" key="id" map="" class="aout"/>
2873                         <link field="children" reltype="has_many" key="parent" map="" class="aout"/>
2874                         <link field="org_units" reltype="has_many" key="ou_type" map="" class="aou"/>
2875                 </links>
2876         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2877             <actions>
2878                 <create permission="CREATE_ORG_TYPE" global_required="true"/>
2879                 <retrieve permission="CREATE_ORG_UNIT UPDATE_ORG_UNIT DELETE_ORG_UNIT" global_required="true"/>
2880                 <update permission="UPDATE_ORG_TYPE" global_required="true"/>
2881                 <delete permission="DELETE_ORG_TYPE" global_required="true"/>
2882             </actions>
2883         </permacrud>
2884         </class>
2885         <class id="bren" controller="open-ils.cstore" oils_obj:fieldmapper="biblio::record_note" oils_persist:tablename="biblio.record_note" reporter:label="Bib Record Note">
2886                 <fields oils_persist:primary="id" oils_persist:sequence="biblio.record_note_id_seq">
2887                         <field name="create_date" reporter:datatype="timestamp"/>
2888                         <field name="creator" reporter:datatype="link"/>
2889                         <field name="edit_date" reporter:datatype="timestamp"/>
2890                         <field name="editor" reporter:datatype="link"/>
2891                         <field name="id" reporter:datatype="id" />
2892                         <field name="pub" reporter:datatype="bool"/>
2893                         <field name="record" reporter:datatype="link"/>
2894                         <field name="value"  reporter:datatype="text"/>
2895                 </fields>
2896                 <links>
2897                         <link field="creator" reltype="has_a" key="id" map="" class="au"/>
2898                         <link field="editor" reltype="has_a" key="id" map="" class="au"/>
2899                         <link field="record" reltype="has_a" key="id" map="" class="bre"/>
2900                 </links>
2901         </class>
2902         <class id="mucs" controller="open-ils.cstore" oils_obj:fieldmapper="money::user_circulation_summary" oils_persist:tablename="money.usr_circulation_summary" reporter:label="User Circulation Summary">
2903                 <fields oils_persist:primary="usr" oils_persist:sequence="">
2904                         <field name="balance_owed" reporter:datatype="money" />
2905                         <field name="total_owed" reporter:datatype="money" />
2906                         <field name="total_paid" reporter:datatype="money" />
2907                         <field name="usr" reporter:datatype="link"/>
2908                 </fields>
2909                 <links>
2910                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
2911                 </links>
2912         </class>
2913         <class id="mg" controller="open-ils.cstore" oils_obj:fieldmapper="money::grocery" oils_persist:tablename="money.grocery" reporter:label="Grocery Transaction">
2914                 <fields oils_persist:primary="id" oils_persist:sequence="money.billable_xact_id_seq">
2915                         <field reporter:label="Billing Location" name="billing_location" reporter:datatype="link"/>
2916                         <field reporter:label="Transaction ID" name="id" reporter:datatype="id" />
2917                         <field reporter:label="Note" name="note"  reporter:datatype="text"/>
2918                         <field reporter:label="User" name="usr" reporter:datatype="link"/>
2919                         <field reporter:label="Transaction Finish Timestamp" name="xact_finish" reporter:datatype="timestamp" />
2920                         <field reporter:label="Transaction Start Timestamp" name="xact_start" reporter:datatype="timestamp" />
2921                         <field reporter:label="Billings" name="billings" oils_persist:virtual="true" reporter:datatype="link"/>
2922                         <field reporter:label="Payments" name="payments" oils_persist:virtual="true" reporter:datatype="link"/>
2923                         <field reporter:label="Billable Transaction link" name="billable_transaction" oils_persist:virtual="true" reporter:datatype="link"/>
2924                         <field reporter:label="Billing Totals" name="billing_total" oils_persist:virtual="true" reporter:datatype="money"/>
2925                         <field reporter:label="Payment Totals" name="payment_total" oils_persist:virtual="true" reporter:datatype="money"/>
2926                 </fields>
2927                 <links>
2928                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
2929                         <link field="billable_transaction" reltype="might_have" key="id" map="" class="mbt"/>
2930                         <link field="payments" reltype="has_many" key="xact" map="" class="mp"/>
2931                         <link field="billings" reltype="has_many" key="xact" map="" class="mb"/>
2932                         <link field="billing_location" reltype="has_a" key="id" map="" class="aou"/>
2933                         <link field="billing_total" reltype="might_have" key="xact" map="" class="rxbt"/>
2934                         <link field="payment_total" reltype="might_have" key="xact" map="" class="rxpt"/>
2935                 </links>
2936         </class>
2937         <class id="cbs" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::bib_source" oils_persist:tablename="config.bib_source" reporter:label="Bib Source">
2938                 <fields oils_persist:primary="id" oils_persist:sequence="config.bib_source_id_seq">
2939                         <field name="id" reporter:selector="source" reporter:datatype="id"/>
2940                         <field name="quality" reporter:datatype="int" />
2941                         <field name="source" reporter:datatype="text"/>
2942                         <field name="transcendant" reporter:datatype="bool"/>
2943                 </fields>
2944                 <links/>
2945         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2946             <actions>
2947                 <create permission="CREATE_BIB_SOURCE" global_required="true"/>
2948                 <retrieve/>
2949                 <update permission="UPDATE_BIB_SOURCE" global_required="true"/>
2950                 <delete permission="DELETE_BIB_SOURCE" global_required="true"/>
2951             </actions>
2952         </permacrud>
2953         </class>
2954         <class id="mbt" controller="open-ils.cstore" oils_obj:fieldmapper="money::billable_transaction" oils_persist:tablename="money.billable_xact" reporter:label="Billable Transaction">
2955                 <fields oils_persist:primary="id" oils_persist:sequence="money.billable_xact_id_seq">
2956                         <field reporter:label="Transaction ID" name="id" reporter:datatype="id" />
2957                         <field reporter:label="User" name="usr" reporter:datatype="link"/>
2958                         <field reporter:label="Transaction Finish Date/Time" name="xact_finish" reporter:datatype="timestamp"/>
2959                         <field reporter:label="Transaction Start Date/Time" name="xact_start" reporter:datatype="timestamp"/>
2960                         <field reporter:label="Unrecovered Debt" name="unrecovered" reporter:datatype="bool"/>
2961                         <field reporter:label="Grocery Billing link" name="grocery" oils_persist:virtual="true" reporter:datatype="link"/>
2962                         <field reporter:label="Circulation Billing link" name="circulation" oils_persist:virtual="true" reporter:datatype="link"/>
2963                         <field reporter:label="Billing Line Items" name="billings" oils_persist:virtual="true" reporter:datatype="link"/>
2964                         <field reporter:label="Payment Line Items" name="payments" oils_persist:virtual="true" reporter:datatype="link"/>
2965                         <field reporter:label="Billing Totals" name="billing_total" oils_persist:virtual="true" reporter:datatype="money"/>
2966                         <field reporter:label="Payment Totals" name="payment_total" oils_persist:virtual="true" reporter:datatype="money"/>
2967                         <field reporter:label="Payment Summary" name="summary" oils_persist:virtual="true" reporter:datatype="link"/>
2968                 </fields>
2969                 <links>
2970                         <link field="grocery" reltype="might_have" key="id" map="" class="mg"/>
2971                         <link field="circulation" reltype="might_have" key="id" map="" class="circ"/>
2972                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
2973                         <link field="payments" reltype="has_many" key="xact" map="" class="mp"/>
2974                         <link field="billings" reltype="has_many" key="xact" map="" class="mb"/>
2975                         <link field="billing_total" reltype="might_have" key="xact" map="" class="rxbt"/>
2976                         <link field="payment_total" reltype="might_have" key="xact" map="" class="rxpt"/>
2977                         <link field="summary" reltype="might_have" key="id" map="" class="mbts"/>
2978                 </links>
2979         </class>
2980         <class id="actsce" controller="open-ils.cstore" oils_obj:fieldmapper="actor::stat_cat_entry" oils_persist:tablename="actor.stat_cat_entry" reporter:label="User Stat Cat Entry">
2981                 <fields oils_persist:primary="id" oils_persist:sequence="actor.stat_cat_entry_id_seq">
2982                         <field reporter:label="Entry ID" name="id" reporter:datatype="id" />
2983                         <field reporter:label="Entry Owner" name="owner" reporter:datatype="link"/>
2984                         <field reporter:label="Stat Cat" name="stat_cat" reporter:datatype="link"/>
2985                         <field reporter:label="Entry Value" name="value" reporter:datatype="text"/>
2986                 </fields>
2987                 <links>
2988                         <link field="stat_cat" reltype="has_a" key="id" map="" class="actsc"/>
2989                         <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
2990                 </links>
2991         </class>
2992         <class id="cubi" controller="open-ils.cstore" oils_obj:fieldmapper="container::user_bucket_item" oils_persist:tablename="container.user_bucket_item" reporter:label="User Bucket Item">
2993                 <fields oils_persist:primary="id" oils_persist:sequence="container.user_bucket_item_id_seq">
2994                         <field name="bucket" reporter:datatype="link"/>
2995                         <field name="id" reporter:datatype="id" />
2996                         <field name="target_user" reporter:datatype="link"/>
2997                         <field name="create_time" reporter:datatype="timestamp" />
2998                         <field name="pos" reporter:datatype="int" />
2999                         <field name="notes" oils_persist:virtual="true" reporter:datatype="link" />
3000                 </fields>
3001                 <links>
3002                         <link field="target_user" reltype="has_a" key="id" map="" class="au"/>
3003                         <link field="bucket" reltype="has_a" key="id" map="" class="cub"/>
3004             <link field="notes" reltype="has_many" map="" key="item" class="cubin"/>
3005                 </links>
3006         </class>
3007         <class id="cubin" controller="open-ils.cstore" oils_obj:fieldmapper="container::user_bucket_item_note" oils_persist:tablename="container.user_bucket_item_note" reporter:label="User Bucket Item Note">
3008                 <fields oils_persist:primary="id" oils_persist:sequence="container.user_bucket_item_note_id_seq">
3009                         <field name="id" reporter:datatype="id" />
3010                         <field name="item" reporter:datatype="link"/>
3011                         <field name="note" reporter:datatype="text" />
3012                 </fields>
3013                 <links>
3014                         <link field="item" reltype="has_a" key="id" map="" class="cubi"/>
3015                 </links>
3016         </class>
3017         <class id="mus" controller="open-ils.cstore" oils_obj:fieldmapper="money::user_summary" oils_persist:tablename="money.usr_summary" reporter:label="User Summary">
3018                 <fields oils_persist:primary="usr" oils_persist:sequence="">
3019                         <field name="balance_owed" reporter:datatype="money" />
3020                         <field name="total_owed" reporter:datatype="money" />
3021                         <field name="total_paid" reporter:datatype="money" />
3022                         <field name="usr" reporter:datatype="link"/>
3023                 </fields>
3024                 <links>
3025                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
3026                 </links>
3027         </class>
3028         <class id="clfm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::lit_form_map" oils_persist:tablename="config.lit_form_map" reporter:label="Literary Form" oils_persist:field_safe="true">
3029                 <fields oils_persist:primary="code" oils_persist:sequence="">
3030                         <field reporter:label="LitF Code" name="code" reporter:datatype="text"/>
3031                         <field reporter:label="LitF Description" name="description" reporter:datatype="text" oils_persist:i18n="true"/>
3032                         <field reporter:label="LitF Name" name="value" reporter:datatype="text" oils_persist:i18n="true"/>
3033                 </fields>
3034                 <links/>
3035         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
3036             <actions>
3037                 <create permission="CREATE_MARC_CODE" global_required="true"/>
3038                 <retrieve permission="CREATE_MARC_CODE UPDATE_MARC_CODE DELETE_MARC_CODE" global_required="true"/>
3039                 <update permission="UPDATE_MARC_CODE" global_required="true"/>
3040                 <delete permission="DELETE_MARC_CODE" global_required="true"/>
3041             </actions>
3042         </permacrud>
3043         </class>
3044         <class id="mwp" controller="open-ils.cstore" oils_obj:fieldmapper="money::work_payment" oils_persist:tablename="money.work_payment" reporter:label="Work Payment">
3045                 <fields oils_persist:primary="id" oils_persist:sequence="money.payment_id_seq">
3046                         <field reporter:label="Accepting Staff Member" name="accepting_usr" reporter:datatype="link"/>
3047                         <field reporter:label="Amount" name="amount" reporter:datatype="money" />
3048                         <field reporter:label="Amount Collected" name="amount_collected" reporter:datatype="money" />
3049                         <field reporter:label="Payment ID" name="id" reporter:datatype="id" />
3050                         <field reporter:label="Note" name="note" reporter:datatype="text"/>
3051                         <field reporter:label="Payment Timestamp" name="payment_ts" reporter:datatype="timestamp"/>
3052                         <field reporter:label="Transaction ID" name="xact" reporter:datatype="link"/>
3053                         <field reporter:label="Payment link" name="payment" oils_persist:virtual="true" reporter:datatype="link"/>
3054                         <field reporter:label="Payment Type" name="payment_type" oils_persist:virtual="true" reporter:datatype="text"/>
3055                 </fields>
3056                 <links>
3057                         <link field="payment" reltype="might_have" key="id" map="" class="mp"/>
3058                         <link field="accepting_usr" reltype="has_a" key="id" map="" class="au"/>
3059                         <link field="xact" reltype="has_a" key="id" map="" class="mbt"/>
3060                 </links>
3061         </class>
3062         <class id="mgp" controller="open-ils.cstore" oils_obj:fieldmapper="money::goods_payment" oils_persist:tablename="money.goods_payment" reporter:label="Goods Payment">
3063                 <fields oils_persist:primary="id" oils_persist:sequence="money.payment_id_seq">
3064                         <field reporter:label="Accepting Staff Member" name="accepting_usr" reporter:datatype="link"/>
3065                         <field reporter:label="Amount" name="amount" reporter:datatype="money" />
3066                         <field reporter:label="Amount Collected" name="amount_collected" reporter:datatype="money" />
3067                         <field reporter:label="Payment ID" name="id" reporter:datatype="id" />
3068                         <field reporter:label="Note" name="note" reporter:datatype="text"/>
3069                         <field reporter:label="Payment Timestamp" name="payment_ts" reporter:datatype="timestamp"/>
3070                         <field reporter:label="Transaction ID" name="xact" reporter:datatype="link"/>
3071                         <field reporter:label="Payment link" name="payment" oils_persist:virtual="true" reporter:datatype="link"/>
3072                         <field reporter:label="Payment Type" name="payment_type" oils_persist:virtual="true" reporter:datatype="text"/>
3073                 </fields>
3074                 <links>
3075                         <link field="payment" reltype="might_have" key="id" map="" class="mp"/>
3076                         <link field="accepting_usr" reltype="has_a" key="id" map="" class="au"/>
3077                         <link field="xact" reltype="has_a" key="id" map="" class="mbt"/>
3078                 </links>
3079         </class>
3080         <class id="aoc" controller="open-ils.cstore" oils_obj:fieldmapper="action::open_circulation" oils_persist:tablename="action.open_circulation" reporter:label="Open Circulation">
3081                 <fields oils_persist:primary="id" oils_persist:sequence="">
3082                         <field name="checkin_lib" reporter:datatype="link"/>
3083                         <field name="checkin_staff" reporter:datatype="link"/>
3084                         <field name="checkin_time" reporter:datatype="timestamp"/>
3085                         <field name="circ_lib"  reporter:datatype="org_unit"/>
3086                         <field name="circ_staff" reporter:datatype="link"/>
3087                         <field name="desk_renewal" reporter:datatype="bool"/>
3088                         <field name="due_date" reporter:datatype="timestamp"/>
3089                         <field name="duration" reporter:datatype="interval"/>
3090                         <field name="duration_rule" reporter:datatype="link"/>
3091                         <field name="fine_interval" reporter:datatype="interval"/>
3092                         <field name="id" reporter:datatype="id" />
3093                         <field name="max_fine" reporter:datatype="money" />
3094                         <field name="max_fine_rule" reporter:datatype="link"/>
3095                         <field name="opac_renewal" reporter:datatype="bool"/>
3096                         <field name="phone_renewal" reporter:datatype="bool"/>
3097                         <field name="recuring_fine" reporter:datatype="money" />
3098                         <field name="recuring_fine_rule" reporter:datatype="link"/>
3099                         <field name="renewal_remaining" reporter:datatype="int" />
3100                         <field name="stop_fines" reporter:datatype="text"/>
3101                         <field name="stop_fines_time" reporter:datatype="timestamp"/>
3102                         <field name="target_copy" reporter:datatype="link"/>
3103                         <field name="usr" reporter:datatype="link"/>
3104                         <field name="xact_finish" reporter:datatype="timestamp" />
3105                         <field name="xact_start" reporter:datatype="timestamp" />
3106                         <field name="circulation" oils_persist:virtual="true" reporter:datatype="link"/>
3107                 </fields>
3108                 <links>
3109                         <link field="circulation" reltype="might_have" key="id" map="" class="circ"/>
3110                         <link field="duration_rule" reltype="has_a" key="name" map="" class="crcd"/>
3111                         <link field="max_fine_rule" reltype="has_a" key="name" map="" class="crmf"/>
3112                         <link field="recuring_fine_rule" reltype="has_a" key="name" map="" class="crrf"/>
3113                 </links>
3114         </class>
3115         <class id="msfe" controller="open-ils.cstore" oils_obj:fieldmapper="metabib::subject_field_entry" oils_persist:tablename="metabib.subject_field_entry" reporter:label="Subject Field Entry">
3116                 <fields oils_persist:primary="id" oils_persist:sequence="metabib.subject_field_entry_id_seq">
3117                         <field name="field" reporter:datatype="link"/>
3118                         <field name="id" reporter:datatype="id" />
3119                         <field name="source" reporter:datatype="link"/>
3120                         <field name="value" reporter:datatype="text"/>
3121                 </fields>
3122                 <links>
3123                         <link field="source" reltype="has_a" key="id" map="" class="bre"/>
3124                         <link field="field" reltype="has_a" key="id" map="" class="cmf"/>
3125                 </links>
3126         </class>
3127         <class id="crrf" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::rules::recuring_fine" oils_persist:tablename="config.rule_recuring_fine" reporter:label="Recurring Fine Rule">
3128                 <fields oils_persist:primary="id" oils_persist:sequence="config.rule_recuring_fine_id_seq">
3129                         <field name="high" reporter:datatype="money" />
3130                         <field name="id" reporter:selector="name" reporter:datatype="id"/>
3131                         <field name="low" reporter:datatype="money" />
3132                         <field name="name" reporter:datatype="text"/>
3133                         <field name="normal" reporter:datatype="money" />
3134                         <field name="recurance_interval" reporter:datatype="interval"/>
3135                 </fields>
3136                 <links/>
3137         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
3138             <actions>
3139                 <create permission="ADMIN_RECURING_FINE_RULE" global_required="true"/>
3140                 <retrieve/>
3141                 <update permission="ADMIN_RECURING_FINE_RULE" global_required="true"/>
3142                 <delete permission="ADMIN_RECURING_FINE_RULE" global_required="true"/>
3143             </actions>
3144         </permacrud>
3145         </class>
3146         <class id="mckp" controller="open-ils.cstore" oils_obj:fieldmapper="money::check_payment" oils_persist:tablename="money.check_payment" reporter:label="Check Payment">
3147                 <fields oils_persist:primary="id" oils_persist:sequence="money.payment_id_seq">
3148                         <field reporter:label="Accepting Staff Member" name="accepting_usr" reporter:datatype="link"/>
3149                         <field reporter:label="Amount" name="amount" reporter:datatype="money" />
3150                         <field reporter:label="Amount Collected" name="amount_collected" reporter:datatype="money" />
3151                         <field reporter:label="Workstation link" name="cash_drawer" reporter:datatype="link"/>
3152                         <field reporter:label="Check Number" name="check_number" reporter:datatype="int" />
3153                         <field reporter:label="Payment ID" name="id" reporter:datatype="id" />
3154                         <field reporter:label="Note" name="note" reporter:datatype="text"/>
3155                         <field reporter:label="Payment Timestamp" name="payment_ts" reporter:datatype="timestamp"/>
3156                         <field reporter:label="Transaction link" name="xact" reporter:datatype="link"/>
3157                         <field reporter:label="Payment link" name="payment" oils_persist:virtual="true" reporter:datatype="link"/>
3158                         <field reporter:label="Payment Type" name="payment_type" oils_persist:virtual="true" reporter:datatype="text"/>
3159                 </fields>
3160                 <links>
3161                         <link field="payment" reltype="might_have" key="id" map="" class="mp"/>
3162                         <link field="accepting_usr" reltype="has_a" key="id" map="" class="au"/>
3163                         <link field="cash_drawer" reltype="has_a" key="id" map="" class="aws"/>
3164                         <link field="xact" reltype="has_a" key="id" map="" class="mbt"/>
3165                 </links>
3166         </class>
3167         <class id="acp" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="asset::copy" oils_persist:tablename="asset.copy" reporter:core="true" reporter:label="Item">
3168                 <fields oils_persist:primary="id" oils_persist:sequence="asset.copy_id_seq">
3169                         <field reporter:label="Statistical Category Entries" name="stat_cat_entries" oils_persist:virtual="true" reporter:datatype="link"/>
3170                         <field reporter:label="Age Hold Protection" name="age_protect" reporter:datatype="link"/>
3171                         <field reporter:label="Alert Message" name="alert_message" reporter:datatype="text"/>
3172                         <field reporter:label="Barcode" name="barcode" reporter:datatype="text"/>
3173                         <field reporter:label="Call Number/Volume" name="call_number" reporter:datatype="link"/>
3174                         <field reporter:label="Circulation Type (MARC)" name="circ_as_type" reporter:datatype="text"/>
3175                         <field reporter:label="Circulating Library" name="circ_lib"  reporter:datatype="org_unit"/>
3176                         <field reporter:label="Circulation Modifier" name="circ_modifier" reporter:datatype="link"/>
3177                         <field reporter:label="Can Circulate" name="circulate" reporter:datatype="bool"/>
3178                         <field reporter:label="Copy Number on Volume" name="copy_number" reporter:datatype="text"/>
3179                         <field reporter:label="Creation Date/Time" name="create_date" reporter:datatype="timestamp"/>
3180                         <field reporter:label="Creating User" name="creator" reporter:datatype="link"/>
3181                         <field reporter:label="Is Deleted" name="deleted" reporter:datatype="bool"/>
3182                         <field reporter:label="Is Deposit Required" name="deposit" reporter:datatype="bool"/>
3183                         <field reporter:label="Deposit Amount" name="deposit_amount" reporter:datatype="money" />
3184                         <field reporter:label="Precat Dummy Author" name="dummy_author" reporter:datatype="text"/>
3185                         <field reporter:label="Precat Dummy Title" name="dummy_title" reporter:datatype="text"/>
3186                         <field reporter:label="Last Edit Date/Time" name="edit_date" reporter:datatype="timestamp"/>
3187                         <field reporter:label="Last Editing User" name="editor" reporter:datatype="link"/>
3188                         <field reporter:label="Fine Level" name="fine_level" reporter:datatype="int"/>
3189                         <field reporter:label="Is Holdable" name="holdable" reporter:datatype="bool" />
3190                         <field reporter:label="Copy ID" name="id" reporter:datatype="id"/>
3191                         <field reporter:label="Loan Duration" name="loan_duration" reporter:datatype="int"/>
3192                         <field reporter:label="Shelving Location" name="location" reporter:datatype="link"/>
3193                         <field reporter:label="OPAC Visible" name="opac_visible" reporter:datatype="bool" />
3194                         <field reporter:label="Price" name="price" reporter:datatype="money" />
3195                         <field reporter:label="Is Reference" name="ref" reporter:datatype="bool"/>
3196                         <field reporter:label="Copy Status" name="status" reporter:datatype="link"/>
3197                         <field reporter:label="Copy Notes" name="notes" oils_persist:virtual="true" reporter:datatype="link"/>
3198                         <field reporter:label="Stat-Cat entry maps" name="stat_cat_entry_copy_maps" oils_persist:virtual="true" reporter:datatype="link"/>
3199                         <field reporter:label="Circulations" name="circulations" oils_persist:virtual="true" reporter:datatype="link"/>
3200                         <field reporter:label="Total Circulations" name="total_circ_count" oils_persist:virtual="true" reporter:datatype="link"/>
3201                         <field reporter:label="Holds" name="holds" oils_persist:virtual="true" reporter:datatype="link"/>
3202                 </fields>
3203                 <links>
3204                         <link field="age_protect" reltype="has_a" key="id" map="" class="crahp"/>
3205                         <link field="call_number" reltype="has_a" key="id" map="" class="acn"/>
3206                         <link field="location" reltype="has_a" key="id" map="" class="acpl"/>
3207                         <link field="editor" reltype="has_a" key="id" map="" class="au"/>
3208                         <link field="creator" reltype="has_a" key="id" map="" class="au"/>
3209                         <link field="status" reltype="has_a" key="id" map="" class="ccs"/>
3210                         <link field="circ_lib" reltype="has_a" key="id" map="" class="aou"/>
3211                         <link field="holds" reltype="has_many" key="target_copy" map="hold" class="ahcm"/>
3212                         <link field="stat_cat_entry_copy_maps" reltype="has_many" key="owning_copy" map="" class="ascecm"/>
3213                         <link field="notes" reltype="has_many" key="owning_copy" map="" class="acpn"/>
3214                         <link field="stat_cat_entries" reltype="has_many" key="owning_copy" map="stat_cat_entry" class="ascecm"/>
3215                         <link field="circulations" reltype="has_many" key="target_copy" map="" class="circ"/>
3216                         <link field="total_circ_count" reltype="might_have" key="id" map="" class="erfcc"/>
3217                         <link field="circ_modifier" reltype="has_a" key="code" map="" class="ccm"/>
3218                 </links>
3219         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
3220             <actions>
3221                 <create permission="CREATE_COPY">
3222                     <context link="call_number" field="owning_lib"/>
3223                 </create>
3224                 <retrieve/>
3225                 <update permission="UPDATE_COPY">
3226                     <context link="call_number" field="owning_lib"/>
3227                 </update>
3228                 <delete permission="DELETE_COPY">
3229                     <context link="call_number" field="owning_lib"/>
3230                 </delete>
3231             </actions>
3232         </permacrud>
3233         </class>
3234         <class id="crahp" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::rules::age_hold_protect" oils_persist:tablename="config.rule_age_hold_protect" reporter:label="Age Hold Protection Rule">
3235                 <fields oils_persist:primary="id" oils_persist:sequence="config.rule_age_hold_protect_id_seq">
3236                         <field reporter:label="Item Age" name="age" reporter:datatype="interval"/>
3237                         <field reporter:label="Rule ID" name="id" reporter:selector="name" reporter:datatype="id"/>
3238                         <field reporter:label="Rule Name" name="name" reporter:datatype="text"/>
3239                         <field reporter:label="Allowed Proximity" name="prox" reporter:datatype="int" />
3240                 </fields>
3241                 <links/>
3242         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
3243             <actions>
3244                 <create permission="ADMIN_AGE_PROTECT_RULE" global_required="true"/>
3245                 <retrieve/>
3246                 <update permission="ADMIN_AGE_PROTECT_RULE" global_required="true"/>
3247                 <delete permission="ADMIN_AGE_PROTECT_RULE" global_required="true"/>
3248             </actions>
3249         </permacrud>
3250         </class>
3251         <class id="crmf" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::rules::max_fine" oils_persist:tablename="config.rule_max_fine" reporter:label="Max Fine Rule">
3252                 <fields oils_persist:primary="id" oils_persist:sequence="config.rule_max_fine_id_seq">
3253                         <field reporter:label="Max Fine Amount" name="amount" reporter:datatype="money" />
3254                         <field reporter:label="Rule ID" name="id" reporter:selector="name" reporter:datatype="id"/>
3255                         <field reporter:label="Rule Name" name="name" reporter:datatype="text"/>
3256                         <field reporter:label="Is Percent" name="is_percent" reporter:datatype="bool"/>
3257                 </fields>
3258                 <links/>
3259         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
3260             <actions>
3261                 <create permission="ADMIN_MAX_FINE_RULE" global_required="true"/>
3262                 <retrieve/>
3263                 <update permission="ADMIN_MAX_FINE_RULE" global_required="true"/>
3264                 <delete permission="ADMIN_MAX_FINE_RULE" global_required="true"/>
3265             </actions>
3266         </permacrud>
3267         </class>
3268         <class id="pgt" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="permission::grp_tree" oils_persist:tablename="permission.grp_tree" reporter:label="Permission Group">
3269                 <fields oils_persist:primary="id" oils_persist:sequence="permission.grp_tree_id_seq">
3270                         <field reporter:label="Child Groups" name="children" oils_persist:virtual="true" reporter:datatype="link"/>
3271                         <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true"/>
3272                         <field reporter:label="Group ID" name="id" reporter:selector="name" reporter:datatype="id"/>
3273                         <field reporter:label="Group Name" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
3274                         <field reporter:label="Parent Group" name="parent" reporter:datatype="link"/>
3275                         <field reporter:label="User Expiration Interval" name="perm_interval" reporter:datatype="interval"/>
3276                         <field reporter:label="Required Permission" name="application_perm" reporter:datatype="text"/>
3277                         <field reporter:label="Is User Group" name="usergroup" reporter:datatype="bool"/>
3278                 </fields>
3279                 <links>
3280                         <link field="parent" reltype="has_a" key="id" map="" class="pgt"/>
3281                         <link field="children" reltype="has_many" key="parent" map="" class="pgt"/>
3282                 </links>
3283         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
3284             <actions>
3285                 <create permission="CREATE_PERM" global_required="true"/>
3286                 <retrieve permission="STAFF_LOGIN" global_required="true"/>
3287                 <update permission="UPDATE_PERM" global_required="true"/>
3288                 <delete permission="DELETE_PERM" global_required="true"/>
3289             </actions>
3290         </permacrud>
3291         </class>
3292         <class id="asva" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="action::survey_answer" oils_persist:tablename="action.survey_answer" reporter:label="Survey Answer">
3293                 <fields oils_persist:primary="id" oils_persist:sequence="action.survey_answer_id_seq">
3294                         <field reporter:label="Responses using this Answer" name="responses" oils_persist:virtual="true" reporter:datatype="link"/>
3295                         <field reporter:label="Answer Text" name="answer" reporter:datatype="text"/>
3296                         <field reporter:label="Answer ID" name="id" reporter:datatype="id" />
3297                         <field reporter:label="Question" name="question" reporter:datatype="link"/>
3298                 </fields>
3299                 <links>
3300                         <link field="question" reltype="has_a" key="id" map="" class="asvq"/>
3301                         <link field="responses" reltype="has_many" key="answer" map="" class="asvr"/>
3302                 </links>
3303         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
3304             <actions>
3305                 <create permission="ADMIN_SURVEY">
3306                     <context link="question" jump="survey" field="owner"/>
3307                 </create>
3308                 <retrieve/>
3309                 <update permission="ADMIN_SURVEY">
3310                     <context link="question" jump="survey" field="owner"/>
3311                 </update>
3312                 <delete permission="ADMIN_SURVEY">
3313                     <context link="question" jump="survey" field="owner"/>
3314                 </delete>
3315             </actions>
3316         </permacrud>
3317         </class>
3318         <class id="ancc" controller="open-ils.cstore" oils_obj:fieldmapper="action::non_cataloged_circulation" oils_persist:tablename="action.non_cataloged_circulation" reporter:core="true" reporter:label="Non-cataloged Circulation">
3319                 <fields oils_persist:primary="id" oils_persist:sequence="action.non_cataloged_circulation_id_seq">
3320                         <field reporter:label="Circulating Library" name="circ_lib"  reporter:datatype="org_unit"/>
3321                         <field reporter:label="Circulation Date/Time" name="circ_time" reporter:datatype="timestamp"/>
3322                         <field reporter:label="Non-cat Circulation ID" name="id" reporter:datatype="id" />
3323                         <field reporter:label="Non-cat Item Type" name="item_type" reporter:datatype="link"/>
3324                         <field reporter:label="Patron" name="patron" reporter:datatype="link"/>
3325                         <field reporter:label="Circulating Staff" name="staff" reporter:datatype="link"/>
3326                 </fields>
3327                 <links>
3328                         <link field="item_type" reltype="has_a" key="id" map="" class="cnct"/>
3329                         <link field="staff" reltype="has_a" key="id" map="" class="au"/>
3330                         <link field="patron" reltype="has_a" key="id" map="" class="au"/>
3331                         <link field="circ_lib" reltype="has_a" key="id" map="" class="aou"/>
3332                 </links>
3333         </class>
3334         <class id="moucs" controller="open-ils.cstore" oils_obj:fieldmapper="money::open_user_circulation_summary" oils_persist:tablename="money.open_usr_circulation_summary" reporter:label="Open User Circulation Summary">
3335                 <fields oils_persist:primary="usr" oils_persist:sequence="">
3336                         <field name="balance_owed" reporter:datatype="money" />
3337                         <field name="total_owed" reporter:datatype="money" />
3338                         <field name="total_paid" reporter:datatype="money" />
3339                         <field name="usr" reporter:datatype="link"/>
3340                 </fields>
3341                 <links>
3342                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
3343                 </links>
3344         </class>
3345         <class id="aufh" controller="open-ils.cstore" oils_obj:fieldmapper="action::unfulfilled_hold_list" oils_persist:tablename="action.unfulfilled_hold_list" reporter:label="Unfulfilled Hold Targets">
3346                 <fields oils_persist:primary="id" oils_persist:sequence="action.unfulfilled_hold_list_id_seq">
3347                         <field reporter:label="Non-fulfilling Library" name="circ_lib"  reporter:datatype="org_unit"/>
3348                         <field reporter:label="Non-fulfilling Copy" name="current_copy" reporter:datatype="link"/>
3349                         <field reporter:label="Retargeting Date/Time" name="fail_time" reporter:datatype="timestamp"/>
3350                         <field reporter:label="Hold" name="hold" reporter:datatype="link"/>
3351                         <field reporter:label="Record ID" name="id" reporter:datatype="id" />
3352                 </fields>
3353                 <links>
3354                         <link field="hold" reltype="has_a" key="id" map="" class="ahr"/>
3355                         <link field="current_copy" reltype="has_a" key="id" map="" class="acp"/>
3356                         <link field="circ_lib" reltype="has_a" key="id" map="" class="aou"/>
3357                 </links>
3358         </class>
3359         <class id="mtfe" controller="open-ils.cstore" oils_obj:fieldmapper="metabib::title_field_entry" oils_persist:tablename="metabib.title_field_entry" reporter:label="Title Field Entry">
3360                 <fields oils_persist:primary="id" oils_persist:sequence="metabib.title_field_entry_id_seq">
3361                         <field name="field" reporter:datatype="link"/>
3362                         <field name="id" reporter:datatype="id" />
3363                         <field name="source" reporter:datatype="link"/>
3364                         <field name="value" reporter:datatype="text"/>
3365                 </fields>
3366                 <links>
3367                         <link field="source" reltype="has_a" key="id" map="" class="bre"/>
3368                         <link field="field" reltype="has_a" key="id" map="" class="cmf"/>
3369                 </links>
3370         </class>
3371         <class id="actscecm" controller="open-ils.cstore" oils_obj:fieldmapper="actor::stat_cat_entry_user_map" oils_persist:tablename="actor.stat_cat_entry_usr_map"  reporter:label="User Statistical Category Entry">
3372                 <fields oils_persist:primary="id" oils_persist:sequence="actor.stat_cat_entry_usr_map_id_seq">
3373                         <field reporter:label="Entry ID" name="id" reporter:datatype="id" />
3374                         <field reporter:label="Statistical Category" name="stat_cat" reporter:datatype="link"/>
3375                         <field reporter:label="Entry Text" name="stat_cat_entry" reporter:datatype="text"/>
3376                         <field reporter:label="User" name="target_usr" reporter:datatype="link"/>
3377                 </fields>
3378                 <links>
3379                         <link field="target_usr" reltype="has_a" key="id" map="" class="au"/>
3380                         <link field="stat_cat" reltype="has_a" key="id" map="" class="actsc"/>
3381                 </links>
3382         </class>
3383         <class id="pgpm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="permission::grp_perm_map" oils_persist:tablename="permission.grp_perm_map" reporter:label="Group Permission Map">
3384                 <fields oils_persist:primary="id" oils_persist:sequence="permission.grp_perm_map_id_seq">
3385                         <field name="depth" reporter:datatype="int" />
3386                         <field name="grantable" reporter:datatype="bool"/>
3387                         <field name="grp" reporter:datatype="link"/>
3388                         <field name="id" reporter:datatype="id" />
3389                         <field name="perm" reporter:datatype="link"/>
3390                 </fields>
3391                 <links>
3392                         <link field="grp" reltype="has_a" key="id" map="" class="pgt"/>
3393                         <link field="perm" reltype="has_a" key="id" map="" class="ppl"/>
3394                 </links>
3395         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
3396             <actions>
3397                 <create permission="ASSIGN_GROUP_PERM" global_required="true"/>
3398                 <retrieve permission="ASSIGN_GROUP_PERM UPDATE_GROUP_PERM REMOVE_GROUP_PERM" global_required="true"/>
3399                 <update permission="UPDATE_GROUP_PERM" global_required="true"/>
3400                 <delete permission="REMOVE_GROUP_PERM" global_required="true"/>
3401             </actions>
3402         </permacrud>
3403         </class>
3404         <class id="ccb" controller="open-ils.cstore" oils_obj:fieldmapper="container::copy_bucket" oils_persist:tablename="container.copy_bucket" reporter:label="Copy Bucket">
3405                 <fields oils_persist:primary="id" oils_persist:sequence="container.copy_bucket_id_seq">
3406                         <field name="items" oils_persist:virtual="true" />
3407                         <field name="btype" reporter:datatype="text"/>
3408                         <field name="id" reporter:datatype="id" />
3409                         <field name="name" reporter:datatype="text"/>
3410                         <field name="owner" reporter:datatype="link"/>
3411                         <field name="pub" reporter:datatype="bool"/>
3412                         <field name="create_time" reporter:datatype="timestamp" />
3413                 </fields>
3414                 <links>
3415                         <link field="owner" reltype="has_a" key="id" map="" class="au"/>
3416                         <link field="items" reltype="has_many" key="bucket" map="" class="ccbi"/>
3417                 </links>
3418         </class>
3419         <class id="ccbn" controller="open-ils.cstore" oils_obj:fieldmapper="container::copy_bucket_note" oils_persist:tablename="container.copy_bucket_note" reporter:label="Copy Bucket Note">
3420                 <fields oils_persist:primary="id" oils_persist:sequence="container.copy_bucket_note_id_seq">
3421                         <field name="id" reporter:datatype="id" />
3422                         <field name="bucket" reporter:datatype="link"/>
3423                         <field name="note" reporter:datatype="text" />
3424                 </fields>
3425                 <links>
3426                         <link field="bucket" reltype="has_a" key="id" map="" class="ccb"/>
3427                 </links>
3428         </class>
3429         <class id="puwoum" controller="open-ils.cstore" oils_obj:fieldmapper="permission::usr_work_ou_map" oils_persist:tablename="permission.usr_work_ou_map" reporter:label="User Work Org Unit Map">
3430                 <fields oils_persist:primary="id" oils_persist:sequence="permission.usr_work_ou_map_id_seq">
3431                         <field name="id" reporter:datatype="int" />
3432                         <field name="usr" reporter:datatype="link"/>
3433                         <field name="work_ou" reporter:datatype="link"/>
3434                 </fields>
3435                 <links>
3436                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
3437                         <link field="work_ou" reltype="has_a" key="id" map="" class="aou"/>
3438                 </links>
3439         </class>
3440         <class id="pupm" controller="open-ils.cstore" oils_obj:fieldmapper="permission::usr_perm_map" oils_persist:tablename="permission.usr_perm_map" reporter:label="User Permission Map">
3441                 <fields oils_persist:primary="id" oils_persist:sequence="permission.usr_perm_map_id_seq">
3442                         <field name="depth" reporter:datatype="int"/>
3443                         <field name="grantable" reporter:datatype="bool"/>
3444                         <field name="id" reporter:datatype="id" />
3445                         <field name="perm" reporter:datatype="link"/>
3446                         <field name="usr" reporter:datatype="link"/>
3447                 </fields>
3448                 <links>
3449                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
3450                         <link field="perm" reltype="has_a" key="id" map="" class="ppl"/>
3451                 </links>
3452         </class>
3453         <class id="puopm" controller="open-ils.cstore" oils_obj:fieldmapper="permission::usr_object_perm_map" oils_persist:tablename="permission.usr_object_perm_map" reporter:label="User Object Permission Map">
3454                 <fields oils_persist:primary="id" oils_persist:sequence="permission.usr_object_perm_map_id_seq">
3455                         <field name="object_id" reporter:datatype="text"/>
3456                         <field name="grantable" reporter:datatype="bool"/>
3457                         <field name="id" reporter:datatype="id" />
3458                         <field name="perm" reporter:datatype="link"/>
3459                         <field name="usr" reporter:datatype="link"/>
3460                         <field name="object_type" reporter:datatype="text"/>
3461                 </fields>
3462                 <links>
3463                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
3464                         <link field="perm" reltype="has_a" key="id" map="" class="ppl"/>
3465                 </links>
3466         </class>
3467         <class id="mp" controller="open-ils.cstore" oils_obj:fieldmapper="money::payment" oils_persist:tablename="money.payment_view" reporter:core="true" reporter:label="Payments: All">
3468                 <fields oils_persist:primary="id" oils_persist:sequence="">
3469                         <field reporter:label="Amount" name="amount" reporter:datatype="money" />
3470                         <field reporter:label="Payment ID" name="id" reporter:datatype="id" />
3471                         <field reporter:label="Note" name="note" reporter:datatype="text"/>
3472                         <field reporter:label="Payment Date/Time" name="payment_ts" reporter:datatype="timestamp"/>
3473                         <field reporter:label="Payment Type" name="payment_type" reporter:datatype="text"/>
3474                         <field reporter:label="Billable Transaction" name="xact" reporter:datatype="link"/>
3475                         <field reporter:label="Voided?" name="voided" reporter:datatype="bool"/>
3476                         <field reporter:label="Cash Payment Detail" name="cash_payment" oils_persist:virtual="true" reporter:datatype="link"/>
3477                         <field reporter:label="Credit Card Payment Detail" name="credit_card_payment" oils_persist:virtual="true" reporter:datatype="link"/>
3478                         <field reporter:label="Credit Payment Detail" name="credit_payment" oils_persist:virtual="true" reporter:datatype="link"/>
3479                         <field reporter:label="Check Payment Detail" name="check_payment" oils_persist:virtual="true" reporter:datatype="link"/>
3480                         <field reporter:label="Work Payment Detail" name="work_payment" oils_persist:virtual="true" reporter:datatype="link"/>
3481                         <field reporter:label="Forgive Payment Detail" name="forgive_payment" oils_persist:virtual="true" reporter:datatype="link"/>
3482                         <field reporter:label="Goods Payment Detail" name="goods_payment" oils_persist:virtual="true" reporter:datatype="link"/>
3483                 </fields>
3484                 <links>
3485                         <link field="cash_payment" reltype="might_have" key="id" map="" class="mcp"/>
3486                         <link field="credit_card_payment" reltype="might_have" key="id" map="" class="mccp"/>
3487                         <link field="credit_payment" reltype="might_have" key="id" map="" class="mcrp"/>
3488                         <link field="check_payment" reltype="might_have" key="id" map="" class="mckp"/>
3489                         <link field="work_payment" reltype="might_have" key="id" map="" class="mwp"/>
3490                         <link field="forgive_payment" reltype="might_have" key="id" map="" class="mfp"/>
3491                         <link field="goods_payment" reltype="might_have" key="id" map="" class="mgp"/>
3492                         <link field="xact" reltype="has_a" key="id" map="" class="mbt"/>
3493                 </links>
3494         </class>
3495         <class id="mbp" controller="open-ils.cstore" oils_obj:fieldmapper="money::bnm_payment" oils_persist:tablename="money.bnm_payment_view" reporter:core="true" reporter:label="Payments: Brick-and-mortar">
3496                 <fields oils_persist:primary="id" oils_persist:sequence="">
3497                         <field reporter:label="Amount" name="amount" reporter:datatype="money" />
3498                         <field reporter:label="Payment ID" name="id" reporter:datatype="id" />
3499                         <field reporter:label="Note" name="note" reporter:datatype="text"/>
3500                         <field reporter:label="Payment Date/Time" name="payment_ts" reporter:datatype="timestamp"/>
3501                         <field reporter:label="Payment Type" name="payment_type" reporter:datatype="text"/>
3502                         <field reporter:label="Billable Transaction" name="xact" reporter:datatype="link"/>
3503                         <field reporter:label="Voided?" name="voided" reporter:datatype="bool"/>
3504                         <field reporter:label="Cash Payment Detail" name="cash_payment" oils_persist:virtual="true" reporter:datatype="link"/>
3505                         <field reporter:label="Credit Card Payment Detail" name="credit_card_payment" oils_persist:virtual="true" reporter:datatype="link"/>
3506                         <field reporter:label="Credit Payment Detail" name="credit_payment" oils_persist:virtual="true" reporter:datatype="link"/>
3507                         <field reporter:label="Check Payment Detail" name="check_payment" oils_persist:virtual="true" reporter:datatype="link"/>
3508                         <field reporter:label="Work Payment Detail" name="work_payment" oils_persist:virtual="true" reporter:datatype="link"/>
3509                         <field reporter:label="Forgive Payment Detail" name="forgive_payment" oils_persist:virtual="true" reporter:datatype="link"/>
3510                         <field reporter:label="Goods Payment Detail" name="goods_payment" oils_persist:virtual="true" reporter:datatype="link"/>
3511                 </fields>
3512                 <links>
3513                         <link field="cash_payment" reltype="might_have" key="id" map="" class="mcp"/>
3514                         <link field="credit_card_payment" reltype="might_have" key="id" map="" class="mccp"/>
3515                         <link field="credit_payment" reltype="might_have" key="id" map="" class="mcrp"/>
3516                         <link field="check_payment" reltype="might_have" key="id" map="" class="mckp"/>
3517                         <link field="work_payment" reltype="might_have" key="id" map="" class="mwp"/>
3518                         <link field="forgive_payment" reltype="might_have" key="id" map="" class="mfp"/>
3519                         <link field="goods_payment" reltype="might_have" key="id" map="" class="mgp"/>
3520                         <link field="xact" reltype="has_a" key="id" map="" class="mbt"/>
3521                 </links>
3522         </class>
3523         <class id="mndp" controller="open-ils.reporter" oils_obj:fieldmapper="money::non_drawer_payment" oils_persist:tablename="money.non_drawer_payment_view" reporter:core="true" reporter:label="Payments: Non-drawer Staff">
3524                 <fields oils_persist:primary="id" oils_persist:sequence="">
3525                         <field reporter:label="Amount" name="amount" reporter:datatype="money" />
3526                         <field reporter:label="Payment ID" name="id" reporter:datatype="id" />
3527                         <field reporter:label="Note" name="note" reporter:datatype="text"/>
3528                         <field reporter:label="Payment Date/Time" name="payment_ts" reporter:datatype="timestamp"/>
3529                         <field reporter:label="Payment Type" name="payment_type" reporter:datatype="text"/>
3530                         <field reporter:label="Billable Transaction" name="xact" reporter:datatype="link"/>
3531                         <field reporter:label="Voided?" name="voided" reporter:datatype="bool"/>
3532                         <field reporter:label="Work Payment Detail" name="work_payment" oils_persist:virtual="true" reporter:datatype="link"/>
3533                         <field reporter:label="Forgive Payment Detail" name="forgive_payment" oils_persist:virtual="true" reporter:datatype="link"/>
3534                         <field reporter:label="Goods Payment Detail" name="goods_payment" oils_persist:virtual="true" reporter:datatype="link"/>
3535                         <field reporter:label="Credit Payment Detail" name="credit_payment" oils_persist:virtual="true" reporter:datatype="link"/>
3536                 </fields>
3537                 <links>
3538                         <link field="work_payment" reltype="might_have" key="id" map="" class="mwp"/>
3539                         <link field="forgive_payment" reltype="might_have" key="id" map="" class="mfp"/>
3540                         <link field="goods_payment" reltype="might_have" key="id" map="" class="mgp"/>
3541                         <link field="credit_payment" reltype="might_have" key="id" map="" class="mcrp"/>
3542                         <link field="xact" reltype="has_a" key="id" map="" class="mbt"/>
3543                 </links>
3544         </class>
3545         <class id="mdp" controller="open-ils.cstore" oils_obj:fieldmapper="money::desk_payment" oils_persist:tablename="money.desk_payment_view" reporter:core="true" reporter:label="Payments: Desk">
3546                 <fields oils_persist:primary="id" oils_persist:sequence="">
3547                         <field reporter:label="Amount" name="amount" reporter:datatype="money" />
3548                         <field reporter:label="Payment ID" name="id" reporter:datatype="id" />
3549                         <field reporter:label="Note" name="note" reporter:datatype="text"/>
3550                         <field reporter:label="Payment Date/Time" name="payment_ts" reporter:datatype="timestamp"/>
3551                         <field reporter:label="Payment Type" name="payment_type" reporter:datatype="text"/>
3552                         <field reporter:label="Billable Transaction" name="xact" reporter:datatype="link"/>
3553                         <field reporter:label="Accepting User" name="accepting_usr" />
3554                         <field reporter:label="Cash Drawer" name="cash_drawer" reporter:datatype="link"/>
3555                         <field reporter:label="Voided?" name="voided" reporter:datatype="bool"/>
3556                         <field reporter:label="Cash Payment" name="cash_payment" oils_persist:virtual="true" reporter:datatype="link"/>
3557                         <field reporter:label="Credit Card Payment" name="credit_card_payment" oils_persist:virtual="true" reporter:datatype="link"/>
3558                         <field reporter:label="Check Payment" name="check_payment" oils_persist:virtual="true" reporter:datatype="link"/>
3559                 </fields>
3560                 <links>
3561                         <link field="cash_payment" reltype="might_have" key="id" map="" class="mcp"/>
3562                         <link field="credit_card_payment" reltype="might_have" key="id" map="" class="mccp"/>
3563                         <link field="check_payment" reltype="might_have" key="id" map="" class="mckp"/>
3564                         <link field="xact" reltype="has_a" key="id" map="" class="mbt"/>
3565                         <link field="accepting_usr" reltype="has_a" key="id" map="" class="au"/>
3566                         <link field="cash_drawer" reltype="has_a" key="id" map="" class="aws"/>
3567                 </links>
3568         </class>
3569         <class id="cbrebi" controller="open-ils.cstore" oils_obj:fieldmapper="container::biblio_record_entry_bucket_item" oils_persist:tablename="container.biblio_record_entry_bucket_item" reporter:label="Biblio Record Entry Bucket Item">
3570                 <fields oils_persist:primary="id" oils_persist:sequence="container.biblio_record_entry_bucket_item_id_seq">
3571                         <field name="bucket" reporter:datatype="link"/>
3572                         <field name="id" reporter:datatype="id" />
3573                         <field name="target_biblio_record_entry" reporter:datatype="link"/>
3574                         <field name="create_time" reporter:datatype="timestamp" />
3575                         <field name="pos" reporter:datatype="int" />
3576                         <field name="notes" oils_persist:virtual="true" reporter:datatype="link" />
3577                 </fields>
3578                 <links>
3579                         <link field="target_biblio_record_entry" reltype="has_a" key="id" map="" class="bre"/>
3580                         <link field="bucket" reltype="has_a" key="id" map="" class="cbreb"/>
3581             <link field="notes" reltype="has_many" map="" key="item" class="cbrebin"/>
3582                 </links>
3583         </class>
3584         <class id="cbrebin" controller="open-ils.cstore" oils_obj:fieldmapper="container::biblio_record_entry_bucket_item_note" oils_persist:tablename="container.biblio_record_entry_bucket_item_note" reporter:label="Biblio Record Entry Bucket Item Note">
3585                 <fields oils_persist:primary="id" oils_persist:sequence="container.biblio_record_entry_bucket_item_note_id_seq">
3586                         <field name="id" reporter:datatype="id" />
3587                         <field name="item" reporter:datatype="link"/>
3588                         <field name="note" reporter:datatype="text" />
3589                 </fields>
3590                 <links>
3591                         <link field="item" reltype="has_a" key="id" map="" class="cbrebi"/>
3592                 </links>
3593         </class>
3594         <class id="asce" controller="open-ils.cstore" oils_obj:fieldmapper="asset::stat_cat_entry" oils_persist:tablename="asset.stat_cat_entry" reporter:label="Item Stat Cat Entry">
3595                 <fields oils_persist:primary="id" oils_persist:sequence="asset.stat_cat_entry_id_seq">
3596                         <field reporter:label="Entry ID" name="id" reporter:datatype="int" />
3597                         <field reporter:label="Entry Owner" name="owner" reporter:datatype="link"/>
3598                         <field reporter:label="Stat Cat" name="stat_cat" reporter:datatype="link"/>
3599                         <field reporter:label="Value" name="value" reporter:datatype="text" oils_persist:i18n="true"/>
3600                 </fields>
3601                 <links>
3602                         <link field="stat_cat" reltype="has_a" key="id" map="" class="asc"/>
3603                         <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
3604                 </links>
3605         </class>
3606
3607         <class id="ahrcc" controller="open-ils.cstore open-ils.reporter-store open-ils.pcrud" oils_obj:fieldmapper="action::hold_request_cancel_cause" oils_persist:tablename="action.hold_request_cancel_cause" oils_persist:restrict_primary="100" reporter:label="Hold Request Cancel Cause">
3608                 <fields oils_persist:primary="id" oils_persist:sequence="action.hold_request_cancel_cause_id_seq">
3609                         <field reporter:label="Cause ID" name="id" reporter:datatype="id" />
3610                         <field reporter:label="Cause Label" name="label" reporter:datatype="text" oils_persist:i18n="true" />
3611                 </fields>
3612                 <links/>
3613         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
3614             <actions>
3615                 <create permission="ADMIN_HOLD_CANCEL_CAUSE" global_required="true"/>
3616                 <retrieve/>
3617                 <update permission="ADMIN_HOLD_CANCEL_CAUSE" global_required="true"/>
3618                 <delete permission="ADMIN_HOLD_CANCEL_CAUSE" global_required="true"/>
3619             </actions>
3620         </permacrud>
3621         </class>
3622
3623
3624         <class id="ahtc" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="action::hold_transit_copy" oils_persist:tablename="action.hold_transit_copy" reporter:core="true" reporter:label="Hold Transit">
3625                 <fields oils_persist:primary="id" oils_persist:sequence="action.transit_copy_id_seq">
3626                         <field reporter:label="Copy Status at Transit" name="copy_status" reporter:datatype="link"/>
3627                         <field reporter:label="Destination Library" name="dest" reporter:datatype="org_unit"/>
3628                         <field reporter:label="Receive Date/Time" name="dest_recv_time" reporter:datatype="timestamp"/>
3629                         <field reporter:label="Hold requiring Transit" name="hold" reporter:datatype="link"/>
3630                         <field reporter:label="Transit ID" name="id" reporter:datatype="id" />
3631                         <field reporter:label="Is Persistent?" name="persistant_transfer" reporter:datatype="bool"/>
3632                         <field reporter:label="Previous Stop" name="prev_hop" reporter:datatype="link"/>
3633                         <field reporter:label="Sending Library" name="source" reporter:datatype="org_unit"/>
3634                         <field reporter:label="Send Date/Time" name="source_send_time" reporter:datatype="timestamp"/>
3635                         <field reporter:label="Transited Copy" name="target_copy" reporter:datatype="link"/>
3636                         <field reporter:label="Base Transit" name="transit_copy" oils_persist:virtual="true" reporter:datatype="link"/>
3637                 </fields>
3638                 <links>
3639                         <link field="transit_copy" reltype="might_have" key="id" map="" class="atc"/>
3640                         <link field="target_copy" reltype="has_a" key="id" map="" class="acp"/>
3641                         <link field="source" reltype="has_a" key="id" map="" class="aou"/>
3642                         <link field="copy_status" reltype="has_a" key="id" map="" class="ccs"/>
3643                         <link field="dest" reltype="has_a" key="id" map="" class="aou"/>
3644                         <link field="hold" reltype="has_a" key="id" map="" class="ahr"/>
3645                 </links>
3646         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
3647             <actions>
3648                 <create permission="TRANSIT_COPY" context_field="owner">
3649                     <context link="target_copy" field="circ_lib"/>
3650                 </create>
3651                 <retrieve/>
3652                 <update permission="UPDATE_TRANSIT" context_field="dest source"/>
3653                 <delete permission="DELETE_TRANSIT" context_field="dest source"/>
3654             </actions>
3655         </permacrud>
3656         </class>
3657         <class id="mb" controller="open-ils.cstore" oils_obj:fieldmapper="money::billing" oils_persist:tablename="money.billing" reporter:label="Billing Line Item">
3658                 <fields oils_persist:primary="id" oils_persist:sequence="money.billing_id_seq">
3659                         <field reporter:label="Amount" name="amount" reporter:datatype="money" />
3660                         <field reporter:label="Billing Timestamp" name="billing_ts" reporter:datatype="timestamp"/>
3661                         <field reporter:label="Legacy Billing Type" name="billing_type" reporter:datatype="text"/>
3662                         <field reporter:label="Billing ID" name="id" reporter:datatype="id" />
3663                         <field reporter:label="Note" name="note" reporter:datatype="text"/>
3664                         <field reporter:label="Void Timestamp" name="void_time" reporter:datatype="timestamp"/>
3665                         <field reporter:label="Voided?" name="voided" reporter:datatype="bool"/>
3666                         <field reporter:label="Voiding Staff Member" name="voider" reporter:datatype="link"/>
3667                         <field reporter:label="Transaction" name="xact" reporter:datatype="link"/>
3668                         <field reporter:label="Type" name="btype" reporter:datatype="link"/>
3669                 </fields>
3670                 <links>
3671                         <link field="xact" reltype="has_a" key="id" map="" class="mbt"/>
3672                         <link field="voider" reltype="has_a" key="id" map="" class="au"/>
3673                         <link field="btype" reltype="has_a" key="id" map="" class="cbt"/>
3674                 </links>
3675         </class>
3676         <class id="pugm" controller="open-ils.cstore" oils_obj:fieldmapper="permission::usr_grp_map" oils_persist:tablename="permission.usr_grp_map" reporter:label="User Group Map">
3677                 <fields oils_persist:primary="id" oils_persist:sequence="permission.usr_grp_map_id_seq">
3678                         <field name="grp" />
3679                         <field name="id" reporter:datatype="id" />
3680                         <field name="usr" />
3681                 </fields>
3682                 <links>
3683                         <link field="grp" reltype="has_a" key="id" map="" class="pgt"/>
3684                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
3685                 </links>
3686         </class>
3687         <class id="i18n" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::i18n_core" oils_persist:tablename="config.i18n_core" oils_persist:field_safe="true" reporter:label="i18n Core">
3688                 <fields oils_persist:primary="id" oils_persist:sequence="config.i18n_core_id_seq">
3689                         <field name="id" reporter:datatype="id" />
3690                         <field name="fq_field" reporter:datatype="text"/>
3691                         <field name="identity_value" reporter:datatype="text"/>
3692                         <field name="translation" reporter:datatype="text"/>
3693                         <field name="string" reporter:datatype="text"/>
3694                 </fields>
3695                 <links>
3696                         <link field="translation" reltype="has_a" key="code" map="" class="i18n_l"/>
3697                 </links>
3698         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
3699             <actions>
3700                 <create permission="CREATE_TRANSLATION" global_required="true"/>
3701                 <retrieve permission="CREATE_TRANSLATION UPDATE_TRANSLATION DELETE_TRANSLATION" global_required="true"/>
3702                 <update permission="UPDATE_TRANSLATION" global_required="true"/>
3703                 <delete permission="DELETE_TRANSLATION" global_required="true"/>
3704             </actions>
3705         </permacrud>
3706         </class>
3707         <class id="fdoc" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::idl_field_doc" oils_persist:tablename="config.idl_field_doc" oils_persist:field_safe="true" reporter:label="IDL Field Doc">
3708                 <fields oils_persist:primary="id" oils_persist:sequence="config.idl_field_doc_id_seq">
3709                         <field name="id" reporter:datatype="id" />
3710                         <field name="fm_class" reporter:datatype="text"/>
3711                         <field name="field" reporter:datatype="text"/>
3712                         <field name="owner" reporter:datatype="org_unit"/>
3713                         <field name="string" reporter:datatype="text" oils_persist:i18n="true"/>
3714                 </fields>
3715                 <links>
3716                         <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
3717                 </links>
3718         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
3719             <actions>
3720                 <create   permission="ADMIN_FIELD_DOC" context_field="owner"/>
3721                 <retrieve/>
3722                 <update   permission="ADMIN_FIELD_DOC" context_field="owner"/>
3723                 <delete   permission="ADMIN_FIELD_DOC" context_field="owner"/>
3724             </actions>
3725         </permacrud>
3726         </class>
3727         <class id="i18n_l" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::i18n_locale" oils_persist:tablename="config.i18n_locale" oils_persist:field_safe="true" reporter:label="Locale">
3728                 <fields oils_persist:primary="code">
3729                         <field name="code" reporter:datatype="id" />
3730                         <field name="marc_code" reporter:datatype="text"/>
3731                         <field name="name" reporter:datatype="text" oils_persist:i18n="true"/>
3732                         <field name="description" reporter:datatype="text" oils_persist:i18n="true"/>
3733                 </fields>
3734                 <links/>
3735         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
3736             <actions>
3737                 <create permission="CREATE_LOCALE" global_required="true"/>
3738                 <retrieve permission="CREATE_LOCALE UPDATE_LOCALE DELETE_LOCALE" global_required="true"/>
3739                 <update permission="UPDATE_LOCALE" global_required="true"/>
3740                 <delete permission="DELETE_LOCALE" global_required="true"/>
3741             </actions>
3742         </permacrud>
3743         </class>
3744         <class id="cbt" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::billing_type" oils_persist:tablename="config.billing_type" oils_persist:restrict_primary="100" reporter:label="Billing Type">
3745                 <fields oils_persist:primary="id" oils_persist:sequence="config.billing_type_id_seq">
3746                         <field name="id" reporter:datatype="id" reporter:label="ID" />
3747                         <field name="name" reporter:datatype="text" reporter:label="Name" oils_persist:i18n="true"/>
3748                         <field name="owner" reporter:datatype="org_unit" reporter:label="Org Unit" />
3749             <field name="default_price" reporter:datatype="money" reporter:label="Default Price"/>
3750                 </fields>
3751                 <links>
3752                         <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
3753                 </links>
3754         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
3755             <actions>
3756                 <create permission="CREATE_BILLING_TYPE" context_field="owner"/>
3757                 <retrieve permission="VIEW_BILLING_TYPE CREATE_BILLING_TYPE UPDATE_BILLING_TYPE DELETE_BILLING_TYPE" context_field="owner"/>
3758                 <update permission="UPDATE_BILLING_TYPE" context_field="owner"/>
3759                 <delete permission="DELETE_BILLING_TYPE" context_field="owner"/>
3760             </actions>
3761         </permacrud>
3762         </class>
3763         <class id="acqct" controller="open-ils.cstore open-ils.reporter-store open-ils.pcrud" oils_obj:fieldmapper="acq::currency_type" oils_persist:tablename="acq.currency_type" reporter:label="Currency Type">
3764                 <fields oils_persist:primary="code">
3765                         <field reporter:label="Currency Code" name="code" reporter:datatype="text" reporter:selector='label'/>
3766                         <field reporter:label="Currency Label" name="label" reporter:datatype="text" oils_persist:i18n="true" />
3767                 </fields>
3768                 <links/>
3769         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
3770             <actions>
3771                 <create permission="ADMIN_CURRENCY_TYPE" global_required="true"/>
3772                 <retrieve/>
3773                 <update permission="ADMIN_CURRENCY_TYPE" global_required="true"/>
3774                 <delete permission="ADMIN_CURRENCY_TYPE" global_required="true"/>
3775             </actions>
3776         </permacrud>
3777         </class>
3778
3779         <class id="acqexr" controller="open-ils.cstore open-ils.pcrud open-ils.reporter-store" oils_obj:fieldmapper="acq::exchange_rate" oils_persist:tablename="acq.exchange_rate" reporter:label="Exchange Rate">
3780                 <fields oils_persist:primary="id" oils_persist:sequence="acq.exchange_rate_id_seq">
3781                         <field reporter:label="Exchange Rate ID" name="id" reporter:datatype="id" />
3782                         <field reporter:label="From Currency" name="from_currency" reporter:datatype="link" />
3783                         <field reporter:label="To Currency" name="to_currency" reporter:datatype="link" />
3784                         <field reporter:label="Ratio" name="ratio" />
3785                 </fields>
3786                 <links>
3787                         <link field="from_currency" reltype="has_a" key="code" map="" class="acqct"/>
3788                         <link field="to_currency" reltype="has_a" key="code" map="" class="acqct"/>
3789                 </links>
3790                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
3791                         <actions>
3792                                 <create permission="ADMIN_CURRENCY_TYPE" global_required="true"/>
3793                                 <retrieve/>
3794                                 <update permission="ADMIN_CURRENCY_TYPE" global_required="true"/>
3795                                 <delete permission="ADMIN_CURRENCY_TYPE" global_required="true"/>
3796                         </actions>
3797                 </permacrud>
3798         </class>
3799
3800         <class id="acqpro" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::provider" oils_persist:tablename="acq.provider" reporter:label="Provider">
3801                 <fields oils_persist:primary="id" oils_persist:sequence="acq.provider_id_seq">
3802                         <field reporter:label="Provider ID" name="id" reporter:datatype="id" reporter:selector='code'/>
3803                         <field reporter:label="Provider Name" name="name" reporter:datatype="text" oils_persist:i18n="true" />
3804                         <field reporter:label="Owner" name="owner" reporter:datatype="org_unit" />
3805                         <field reporter:label="Currency" name="currency_type" oils_persist:primitive="string" reporter:datatype="link" />
3806                         <field reporter:label="Code" name="code" reporter:datatype="text" />
3807                         <field reporter:label="Holdings Tag" name="holding_tag" reporter:datatype="text" />
3808                         <field reporter:label="Addresses" name="addresses" oils_persist:virtual="true" reporter:datatype="link" />
3809                 </fields>
3810                 <links>
3811                         <link field="currency_type" reltype="has_a" key="code" map="" class="acqct"/>
3812                         <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
3813             <link field="addresses" reltype="has_many" map="" key="provider" class="acqpa"/>
3814                 </links>
3815         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
3816             <actions>
3817                 <create   permission="ADMIN_PROVIDER" context_field="owner"/>
3818                 <retrieve permission="ADMIN_PROVIDER MANAGE_PROVIDER VIEW_PROVIDER" context_field="owner"/>
3819                 <update   permission="ADMIN_PROVIDER" context_field="owner"/>
3820                 <delete   permission="ADMIN_PROVIDER" context_field="owner"/>
3821             </actions>
3822         </permacrud>
3823         </class>
3824
3825         <class id="acqpa" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::provider_address" oils_persist:tablename="acq.provider_address" reporter:label="Provider Address">
3826                 <fields oils_persist:primary="id" oils_persist:sequence="acq.provider_address_id_seq">
3827                         <field name="address_type"  reporter:datatype="text"/>
3828                         <field name="city"  reporter:datatype="text"/>
3829                         <field name="country"  reporter:datatype="text"/>
3830                         <field name="county"  reporter:datatype="text"/>
3831                         <field name="id" reporter:datatype="id"/>
3832                         <field name="provider" reporter:datatype="link"/>
3833                         <field name="post_code"  reporter:datatype="text"/>
3834                         <field name="state"  reporter:datatype="text"/>
3835                         <field name="street1"  reporter:datatype="text"/>
3836                         <field name="street2"  reporter:datatype="text"/>
3837                         <field name="valid" reporter:datatype="bool"/>
3838                 </fields>
3839                 <links>
3840                         <link field="provider" reltype="has_a" key="id" map="" class="acqpro"/>
3841                 </links>
3842         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
3843             <actions>
3844                 <create permission="ADMIN_PROVIDER">
3845                     <context link="provider" field="owner"/>
3846                 </create>
3847                 <retrieve permission="ADMIN_PROVIDER">
3848                     <context link="provider" field="owner"/>
3849                 </retrieve>
3850                 <update permission="ADMIN_PROVIDER">
3851                     <context link="provider" field="owner"/>
3852                 </update>
3853                 <delete permission="ADMIN_PROVIDER">
3854                     <context link="provider" field="owner"/>
3855                 </delete>
3856             </actions>
3857         </permacrud>
3858         </class>
3859
3860         <class id="acqpc" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::provider_contact" oils_persist:tablename="acq.provider_contact" reporter:label="Provider Contact">
3861                 <fields oils_persist:primary="id" oils_persist:sequence="acq.provider_contact_id_seq">
3862                         <field name="id" reporter:datatype="id"/>
3863                         <field name="provider" reporter:datatype="link"/>
3864                         <field name="name" reporter:datatype="text"/>
3865                         <field name="role" reporter:datatype="text"/>
3866                         <field name="email" reporter:datatype="text"/>
3867                         <field name="phone" reporter:datatype="text"/>
3868         </fields>
3869                 <links>
3870                         <link field="provider" reltype="has_a" key="id" map="" class="acqpro"/>
3871                 </links>
3872         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
3873             <actions>
3874                 <create permission="ADMIN_PROVIDER">
3875                     <context link="provider" field="owner"/>
3876                 </create>
3877                 <retrieve permission="ADMIN_PROVIDER">
3878                     <context link="provider" field="owner"/>
3879                 </retrieve>
3880                 <update permission="ADMIN_PROVIDER">
3881                     <context link="provider" field="owner"/>
3882                 </update>
3883                 <delete permission="ADMIN_PROVIDER">
3884                     <context link="provider" field="owner"/>
3885                 </delete>
3886             </actions>
3887         </permacrud>
3888     </class>
3889         <class id="acqpca" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::provider_contact_address" oils_persist:tablename="acq.provider_contact_address" reporter:label="Provider Contact Address">
3890                 <fields oils_persist:primary="id" oils_persist:sequence="acq.provider_contact_address_id_seq">
3891                         <field reporter:label="Type" name="address_type"  reporter:datatype="text"/>
3892                         <field reporter:label="City" name="city"  reporter:datatype="text"/>
3893                         <field reporter:label="Country" name="country"  reporter:datatype="text"/>
3894                         <field reporter:label="County" name="county"  reporter:datatype="text"/>
3895                         <field reporter:label="Address ID" name="id" reporter:datatype="id" />
3896                         <field reporter:label="Postal Code" name="post_code" reporter:datatype="text"/>
3897                         <field reporter:label="State" name="state"  reporter:datatype="text"/>
3898                         <field reporter:label="Street (1)" name="street1"  reporter:datatype="text"/>
3899                         <field reporter:label="Street (2)" name="street2"  reporter:datatype="text"/>
3900                         <field reporter:label="Contact" name="contact" reporter:datatype="link"/>
3901                         <field reporter:label="Valid Address?" name="valid" reporter:datatype="bool"/>
3902                 </fields>
3903                 <links>
3904                         <link field="contact" reltype="has_a" key="id" map="" class="acqpc"/>
3905                 </links>
3906         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
3907             <actions>
3908                 <create permission="ADMIN_PROVIDER">
3909                     <context link="contact" jump='provider' field="owner"/>
3910                 </create>
3911                 <retrieve permission="ADMIN_PROVIDER">
3912                     <context link="contact" jump='provider' field="owner"/>
3913                 </retrieve>
3914                 <update permission="ADMIN_PROVIDER">
3915                     <context link="contact" jump='provider' field="owner"/>
3916                 </update>
3917                 <delete permission="ADMIN_PROVIDER">
3918                     <context link="contact" jump='provider' field="owner"/>
3919                 </delete>
3920             </actions>
3921         </permacrud>
3922         </class>
3923
3924         <class id="acqfs" controller="open-ils.cstore open-ils.reporter-store open-ils.pcrud" oils_obj:fieldmapper="acq::funding_source" oils_persist:tablename="acq.funding_source" reporter:label="Funding Source">
3925                 <fields oils_persist:primary="id" oils_persist:sequence="acq.funding_source_id_seq">
3926                         <field reporter:label="Funding Source ID" name="id" reporter:datatype="id" reporter:selector='code'/>
3927                         <field reporter:label="Funding Source Name" name="name" reporter:datatype="text" oils_persist:i18n="true" />
3928                         <field reporter:label="Owner" name="owner" reporter:datatype="org_unit" />
3929                         <field reporter:label="Currency" name="currency_type" oils_persist:primitive="string" reporter:datatype="link" />
3930                         <field reporter:label="Code" name="code" reporter:datatype="text" />
3931                         <field name="summary" oils_persist:virtual="true"/>
3932                         <field reporter:label="Allocations" name="allocations" oils_persist:virtual="true" reporter:datatype="link"/>
3933                         <field reporter:label="Credits" name="credits" oils_persist:virtual="true" reporter:datatype="link"/>
3934                 </fields>
3935                 <links>
3936                         <link field="currency_type" reltype="has_a" key="code" map="" class="acqct"/>
3937                         <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
3938             <link field="allocations" reltype="has_many" map="" key="funding_source" class="acqfa"/>
3939             <link field="credits" reltype="has_many" key="funding_source" map="" class="acqfscred"/>
3940                 </links>
3941         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
3942             <actions>
3943                 <create   permission="ADMIN_FUNDING_SOURCE" context_field="owner"/>
3944                 <retrieve permission="ADMIN_FUNDING_SOURCE MANAGE_FUNDING_SOURCE VIEW_FUNDING_SOURCE" context_field="owner"/>
3945                 <update   permission="ADMIN_FUNDING_SOURCE" context_field="owner"/>
3946                 <delete   permission="ADMIN_FUNDING_SOURCE" context_field="owner"/>
3947             </actions>
3948         </permacrud>
3949         </class>
3950
3951         <class id="acqfscred" controller="open-ils.cstore open-ils.reporter-store" oils_obj:fieldmapper="acq::funding_source_credit" oils_persist:tablename="acq.funding_source_credit" reporter:label="Credit to Funding Source">
3952                 <fields oils_persist:primary="id" oils_persist:sequence="acq.funding_source_credit_id_seq">
3953                         <field reporter:label="Credit ID" name="id" reporter:datatype="id" />
3954                         <field reporter:label="Funding Source ID" name="funding_source" reporter:datatype="link" />
3955                         <field reporter:label="Amount" name="amount" reporter:datatype="money" />
3956                         <field reporter:label="Note" name="note" reporter:datatype="text" />
3957                 </fields>
3958                 <links>
3959                         <link field="funding_source" reltype="has_a" key="id" map="" class="acqfs"/>
3960                 </links>
3961         </class>
3962
3963         <class id="acqfdeb" controller="open-ils.cstore open-ils.reporter-store" oils_obj:fieldmapper="acq::fund_debit" oils_persist:tablename="acq.fund_debit" reporter:label="Debit From Fund">
3964                 <fields oils_persist:primary="id" oils_persist:sequence="acq.fund_debit_id_seq">
3965                         <field reporter:label="Debit ID" name="id" reporter:datatype="id" />
3966                         <field reporter:label="Fund ID" name="fund" reporter:datatype="link" />
3967                         <field reporter:label="Origin Amount" name="origin_amount" reporter:datatype="money" />
3968                         <field reporter:label="Origin Currency" name="origin_currency_type" reporter:datatype="link" />
3969                         <field reporter:label="Amount" name="amount" reporter:datatype="money" />
3970                         <field reporter:label="Encumbrance" name="encumbrance" reporter:datatype="text" />
3971                         <field reporter:label="Debit Type" name="debit_type" reporter:datatype="text" />
3972                         <field reporter:label="Create Time" name="create_time" reporter:datatype="timestamp" />
3973                 </fields>
3974                 <links>
3975                         <link field="fund" reltype="has_a" key="id" map="" class="acqf"/>
3976                         <link field="origin_currency_type" reltype="has_a" key="code" map="" class="acqct"/>
3977                 </links>
3978         </class>
3979
3980         <class id="acqf" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::fund" oils_persist:tablename="acq.fund" reporter:label="Fund">
3981                 <fields oils_persist:primary="id" oils_persist:sequence="acq.fund_id_seq">
3982                         <field reporter:label="Fund ID" name="id" reporter:datatype="id" reporter:selector='code'/>
3983                         <field reporter:label="Org Unit" name="org" reporter:datatype="org_unit" />
3984                         <field reporter:label="Name" name="name" reporter:datatype="text" />
3985                         <field reporter:label="Year" name="year" reporter:datatype="int" />
3986                         <field reporter:label="Currency Type" name="currency_type" reporter:datatype="link" />
3987                         <field reporter:label="Code" name="code" reporter:datatype="text" />
3988                         <field name="summary" oils_persist:virtual="true"/>
3989                         <field reporter:label="Allocations" name="allocations" oils_persist:virtual="true" reporter:datatype="link"/>
3990                         <field reporter:label="Debits" name="debits" oils_persist:virtual="true" reporter:datatype="link"/>
3991                         <field reporter:label="Tags" name="tags" oils_persist:virtual="true" reporter:datatype="link"/>
3992                 </fields>
3993                 <links>
3994                         <link field="org" reltype="has_a" key="id" map="" class="aou"/>
3995                         <link field="currency_type" reltype="has_a" key="code" map="" class="acqct"/>
3996             <link field="allocations" reltype="has_many" key="fund" map="" class="acqfa"/>
3997             <link field="debits" reltype="has_many" key="fund" map="" class="acqfdeb"/>
3998             <link field="tags" reltype="has_many" key="fund" map="" class="acqftm"/>
3999                 </links>
4000         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
4001             <actions>
4002                 <create permission="ADMIN_ACQ_FUND" context_field="org"/>
4003                 <retrieve permission="ADMIN_ACQ_FUND VIEW_FUND MANAGE_FUND" context_field="org"/>
4004                 <update permission="ADMIN_ACQ_FUND" context_field="org"/>
4005                 <delete permission="ADMIN_ACQ_FUND" context_field="org"/>
4006             </actions>
4007         </permacrud>
4008         </class>
4009
4010         <class id="acqfat" controller="open-ils.cstore open-ils.reporter-store" oils_obj:fieldmapper="acq::fund_allocation_total" oils_persist:readonly="true" oils_persist:tablename="acq.fund_allocation_total" reporter:label="Fund Allocation Total">
4011                 <fields oils_persist:primary="fund">
4012                         <field reporter:label="Fund ID" name="fund" reporter:datatype="link" />
4013                         <field reporter:label="Total Allocation Amount" name="amount" reporter:datatype="money" />
4014                 </fields>
4015                 <links>
4016                         <link field="fund" reltype="has_a" key="id" map="" class="acqf"/>
4017                 </links>
4018         </class>
4019
4020         <class id="acqfdt" controller="open-ils.cstore open-ils.reporter-store" oils_obj:fieldmapper="acq::fund_debit_total" oils_persist:readonly="true" oils_persist:tablename="acq.fund_debit_total" reporter:label="Total Debit from Fund">
4021                 <fields oils_persist:primary="fund">
4022                         <field reporter:label="Fund ID" name="fund" reporter:datatype="link" />
4023                         <field reporter:label="Total Debit Amount" name="amount" reporter:datatype="money" />
4024                 </fields>
4025                 <links>
4026                         <link field="fund" reltype="has_a" key="id" map="" class="acqf"/>
4027                 </links>
4028         </class>
4029
4030         <class id="acqfet" controller="open-ils.cstore open-ils.reporter-store" oils_obj:fieldmapper="acq::fund_encumbrance_total" oils_persist:readonly="true" oils_persist:tablename="acq.fund_encumbrance_total" reporter:label="Total Fund Encumbrance">
4031                 <fields oils_persist:primary="fund">
4032                         <field reporter:label="Fund ID" name="fund" reporter:datatype="link" />
4033                         <field reporter:label="Total Encumbrance Amount" name="amount" reporter:datatype="money" />
4034                 </fields>
4035                 <links>
4036                         <link field="fund" reltype="has_a" key="id" map="" class="acqf"/>
4037                 </links>
4038         </class>
4039
4040         <class id="acqfst" controller="open-ils.cstore open-ils.reporter-store" oils_obj:fieldmapper="acq::fund_spent_total" oils_persist:readonly="true" oils_persist:tablename="acq.fund_spent_total" reporter:label="Total Spent from Fund">
4041                 <fields oils_persist:primary="fund">
4042                         <field reporter:label="Fund ID" name="fund" reporter:datatype="link" />
4043                         <field reporter:label="Total Spent Amount" name="amount" reporter:datatype="money" />
4044                 </fields>
4045                 <links>
4046                         <link field="fund" reltype="has_a" key="id" map="" class="acqf"/>
4047                 </links>
4048         </class>
4049
4050         <class id="acqfcb" controller="open-ils.cstore open-ils.reporter-store" oils_obj:fieldmapper="acq::fund_combined_balance" oils_persist:readonly="true" oils_persist:tablename="acq.fund_combined_balance" reporter:label="Fund Combined Balance">
4051                 <fields oils_persist:primary="fund">
4052                         <field reporter:label="Fund ID" name="fund" reporter:datatype="link" />
4053                         <field reporter:label="Balance after Spent and Encumbered" name="amount" reporter:datatype="money" />
4054                 </fields>
4055                 <links>
4056                         <link field="fund" reltype="has_a" key="id" map="" class="acqf"/>
4057                 </links>
4058         </class>
4059
4060         <class id="acqfsrcct" controller="open-ils.cstore open-ils.reporter-store" oils_obj:fieldmapper="acq::funding_source_credit_total" oils_persist:readonly="true" oils_persist:tablename="acq.funding_source_credit_total" reporter:label="Total Credit to Funding Source">
4061                 <fields oils_persist:primary="funding_source">
4062                         <field reporter:label="Funding Source" name="funding_source" reporter:datatype="link" />
4063                         <field reporter:label="Total Credits to Funding Source" name="amount" reporter:datatype="money" />
4064                 </fields>
4065                 <links>
4066                         <link field="funding_source" reltype="has_a" key="id" map="" class="acqfs"/>
4067                 </links>
4068         </class>
4069
4070         <class id="acqfsrcat" controller="open-ils.cstore open-ils.reporter-store" oils_obj:fieldmapper="acq::funding_source_allocation_total" oils_persist:readonly="true" oils_persist:tablename="acq.funding_source_allocation_total" reporter:label="Total Allocation to Funding Source">
4071                 <fields oils_persist:primary="funding_source">
4072                         <field reporter:label="Funding Source" name="funding_source" reporter:datatype="link" />
4073                         <field reporter:label="Total Allocated from Funding Source" name="amount" reporter:datatype="money" />
4074                 </fields>
4075                 <links>
4076                         <link field="funding_source" reltype="has_a" key="id" map="" class="acqfs"/>
4077                 </links>
4078         </class>
4079
4080         <class id="acqfsrcb" controller="open-ils.cstore open-ils.reporter-store" oils_obj:fieldmapper="acq::funding_source_balance" oils_persist:readonly="true" oils_persist:tablename="acq.funding_source_balance" reporter:label="Funding Source Balance">
4081                 <fields oils_persist:primary="funding_source">
4082                         <field reporter:label="Funding Source" name="funding_source" reporter:datatype="link" />
4083                         <field reporter:label="Balance Remaining" name="amount" reporter:datatype="money" />
4084                 </fields>
4085                 <links>
4086                         <link field="funding_source" reltype="has_a" key="id" map="" class="acqfs"/>
4087                 </links>
4088         </class>
4089
4090         <class id="acqfsb" controller="open-ils.cstore open-ils.reporter-store" oils_obj:fieldmapper="acq::fund_spent_balance" oils_persist:readonly="true" oils_persist:tablename="acq.fund_spent_balance" reporter:label="Fund Spent Balance">
4091                 <fields oils_persist:primary="fund">
4092                         <field reporter:label="Fund ID" name="fund" reporter:datatype="link" />
4093                         <field reporter:label="Balance after Spent" name="amount" reporter:datatype="money" />
4094                 </fields>
4095                 <links>
4096                         <link field="fund" reltype="has_a" key="id" map="" class="acqf"/>
4097                 </links>
4098         </class>
4099
4100         <class id="acqfa" controller="open-ils.cstore open-ils.reporter-store" oils_obj:fieldmapper="acq::fund_allocation" oils_persist:tablename="acq.fund_allocation" reporter:label="Fund Allocation">
4101                 <fields oils_persist:primary="id" oils_persist:sequence="acq.fund_allocation_id_seq">
4102                         <field reporter:label="Allocation ID" name="id" reporter:datatype="id" />
4103                         <field reporter:label="Fund" name="fund" reporter:datatype="link" />
4104                         <field reporter:label="Funding Source" name="funding_source" reporter:datatype="link" />
4105                         <field reporter:label="Amount" name="amount" reporter:datatype="money" />
4106                         <field reporter:label="Percent" name="percent" reporter:datatype="float" />
4107                         <field reporter:label="Allocating User" name="allocator" reporter:datatype="link" />
4108                         <field reporter:label="Note" name="note" reporter:datatype="text" />
4109                         <field reporter:label="Create Time" name="create_time" reporter:datatype="timestamp" />
4110                 </fields>
4111                 <links>
4112                         <link field="allocator" reltype="has_a" key="id" map="" class="au"/>
4113                         <link field="fund" reltype="has_a" key="id" map="" class="acqf"/>
4114                         <link field="funding_source" reltype="has_a" key="id" map="" class="acqfs"/>
4115                 </links>
4116         </class>
4117
4118         <class id="acqpl" controller="open-ils.cstore open-ils.reporter-store" oils_obj:fieldmapper="acq::picklist" oils_persist:tablename="acq.picklist" reporter:label="Pick List">
4119                 <fields oils_persist:primary="id" oils_persist:sequence="acq.picklist_id_seq">
4120                         <field reporter:label="Picklist ID" name="id" reporter:datatype="id" />
4121                         <field reporter:label="Owner" name="owner" reporter:datatype="link" />
4122                         <field reporter:label="Org Unit" name="org_unit" reporter:datatype="link" />
4123                         <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true" />
4124                         <field reporter:label="Creation Time" name="create_time" reporter:datatype="timestamp" />
4125                         <field reporter:label="Edit Time" name="edit_time" reporter:datatype="timestamp" />
4126                         <field reporter:label="Entries" name="entries" oils_persist:virtual="true" reporter:datatype="link" />
4127                         <field reporter:label="Entry Count" name="entry_count" oils_persist:virtual="true"/>
4128                         <field reporter:label="Creator" name="creator" reporter:datatype="link" />
4129                         <field reporter:label="Editor" name="editor" reporter:datatype="link" />
4130                 </fields>
4131                 <links>
4132                         <link field="owner" reltype="has_a" key="id" map="" class="au"/>
4133                         <link field="creator" reltype="has_a" key="id" map="" class="au"/>
4134                         <link field="editor" reltype="has_a" key="id" map="" class="au"/>
4135                         <link field="org_unit" reltype="has_a" key="id" map="" class="aou"/>
4136                         <link field="entries" reltype="has_many" key="picklist" map="" class="jub"/>
4137                 </links>
4138         </class>
4139
4140         <class id="acqpo" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::purchase_order" oils_persist:tablename="acq.purchase_order" reporter:label="Purchase Order">
4141                 <fields oils_persist:primary="id" oils_persist:sequence="acq.purchase_order_id_seq">
4142                         <field reporter:label="Purchase Order ID" name="id" reporter:datatype="id" />
4143                         <field reporter:label="Owner" name="owner" reporter:datatype="link" />
4144                         <field reporter:label="Creation Time" name="create_time" reporter:datatype="timestamp" />
4145                         <field reporter:label="Edit Time" name="edit_time" reporter:datatype="timestamp" />
4146                         <field reporter:label="Provider" name="provider" reporter:datatype="link" />
4147                         <field reporter:label="State" name="state" reporter:datatype="text" />
4148                         <field reporter:label="Ordering Agency" name="ordering_agency" reporter:datatype="org_unit" />
4149                         <field reporter:label="Creator" name="creator" reporter:datatype="link" />
4150                         <field reporter:label="Editor" name="editor" reporter:datatype="link" />
4151                         <field reporter:label="Line Items" name="lineitems" oils_persist:virtual="true" reporter:datatype="link" />
4152                         <field reporter:label="Line Item Count" name="lineitem_count" oils_persist:virtual="true" reporter:datatype="link" />
4153                         <field reporter:label="Amount Encumbered" name="amount_encumbered" oils_persist:virtual="true" reporter:datatype="float" />
4154                         <field reporter:label="Amount Spent" name="amount_spent" oils_persist:virtual="true" reporter:datatype="float" />
4155                 </fields>
4156                 <links>
4157                         <link field="owner" reltype="has_a" key="id" map="" class="au"/>
4158                         <link field="creator" reltype="has_a" key="id" map="" class="au"/>
4159                         <link field="editor" reltype="has_a" key="id" map="" class="au"/>
4160                         <link field="default_fund" reltype="has_a" key="id" map="" class="acqf"/>
4161                         <link field="provider" reltype="has_a" key="id" map="" class="acqpro"/>
4162                         <link field="lineitems" reltype="has_many" key="purchase_order" map="" class="jub"/>
4163                         <link field="ordering_agency" reltype="has_a" key="id" map="" class="aou"/>
4164                 </links>
4165                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
4166                         <actions>
4167                                 <create permission="CREATE_PURCHASE_ORDER" context_field="ordering_agency"/>
4168                                 <retrieve permission="CREATE_PURCHASE_ORDER VIEW_PURCHASE_ORDER" context_field="ordering_agency"/>
4169                                 <update permission="CREATE_PURCHASE_ORDER" context_field="ordering_agency"/>
4170                                 <delete permission="CREATE_PURCHASE_ORDER" context_field="ordering_agency"/>
4171                         </actions>
4172                 </permacrud>
4173         </class>
4174
4175         <class id="acqpon" controller="open-ils.cstore open-ils.reporter-store" oils_obj:fieldmapper="acq::po_note" oils_persist:tablename="acq.po_note" reporter:label="PO Note">
4176                 <fields oils_persist:primary="id" oils_persist:sequence="acq.po_note_id_seq">
4177                         <field reporter:label="PO Note ID" name="id" reporter:datatype="id" />
4178                         <field reporter:label="Purchase Order" name="purchase_order" reporter:datatype="link" />
4179                         <field reporter:label="Creator" name="creator" reporter:datatype="link" />
4180                         <field reporter:label="Creation Time" name="create_time" reporter:datatype="timestamp" />
4181                         <field reporter:label="Edit Time" name="edit_time" reporter:datatype="timestamp" />
4182                         <field reporter:label="Editor" name="editor" reporter:datatype="link" />
4183                         <field reporter:label="Vote Value" name="value" reporter:datatype="text" />
4184                 </fields>
4185                 <links>
4186                         <link field="creator" reltype="has_a" key="id" map="" class="au"/>
4187                         <link field="editor" reltype="has_a" key="id" map="" class="au"/>
4188                         <link field="purchase_order" reltype="has_a" key="id" map="" class="acqpo"/>
4189                 </links>
4190         </class>
4191
4192         <class id="jub" controller="open-ils.cstore open-ils.reporter-store" oils_obj:fieldmapper="acq::lineitem" oils_persist:tablename="acq.lineitem" reporter:label="Line Item">
4193                 <fields oils_persist:primary="id" oils_persist:sequence="acq.lineitem_id_seq">
4194                         <field reporter:label="Lineitem ID" name="id" reporter:datatype="id" />
4195                         <field reporter:label="Selecting User" name="selector" reporter:datatype="link" />
4196                         <field reporter:label="Picklist" name="picklist" reporter:datatype="link" />
4197                         <field reporter:label="Purchase Order" name="purchase_order" reporter:datatype="link" />
4198                         <field reporter:label="Provider" name="provider" reporter:datatype="link" />
4199                         <field reporter:label="Creation Time" name="create_time" reporter:datatype="timestamp" />
4200                         <field reporter:label="Edit Time" name="edit_time" reporter:datatype="timestamp" />
4201                         <field reporter:label="MARC" name="marc" reporter:datatype="text" />
4202                         <field reporter:label="Evergreen Bib ID" name="eg_bib_id" reporter:datatype="link" />
4203                         <field reporter:label="Source Label" name="source_label" reporter:datatype="text" />
4204                         <field reporter:label="Expected Receive Date" name="expected_recv_time" reporter:datatype="timestamp" />
4205                         <field reporter:label="State" name="state" reporter:datatype="text" />
4206                         <field reporter:label="Creator" name="creator" reporter:datatype="link" />
4207                         <field reporter:label="Editor" name="editor" reporter:datatype="link" />
4208                         <field reporter:label="Item Count" name="item_count" oils_persist:virtual="true" reporter:datatype="int" />
4209                         <field reporter:label="Descriptive Attributes" name="attributes" oils_persist:virtual="true" reporter:datatype="link" />
4210                         <field reporter:label="Line Item Details" name="lineitem_details" oils_persist:virtual="true" reporter:datatype="link" />
4211                         <field reporter:label="Line Item Notes" name="lineitem_notes" oils_persist:virtual="true" reporter:datatype="link" />
4212                 </fields>
4213                 <links>
4214                         <link field="selector" reltype="has_a" key="id" map="" class="au"/>
4215                         <link field="editor" reltype="has_a" key="id" map="" class="au"/>
4216                         <link field="creator" reltype="has_a" key="id" map="" class="au"/>
4217                         <link field="provider" reltype="has_a" key="id" map="" class="acqpro"/>
4218                         <link field="purchase_order" reltype="has_a" key="id" map="" class="acqpo"/>
4219                         <link field="picklist" reltype="has_a" key="id" map="" class="acqpl"/>
4220                         <link field="eg_bib_id" reltype="has_a" key="id" map="" class="bre"/>
4221                         <link field="attributes" reltype="has_many" key="lineitem" map="" class="acqlia"/>
4222                         <link field="lineitem_details" reltype="has_many" key="lineitem" map="" class="acqlid"/>
4223                         <link field="lineitem_notes" reltype="has_many" key="lineitem" map="" class="acqlin"/>
4224                 </links>
4225         </class>
4226
4227         <class id="acqlin" controller="open-ils.cstore open-ils.reporter-store" oils_obj:fieldmapper="acq::lineitem_note" oils_persist:tablename="acq.lineitem_note" reporter:label="Line Item Note">
4228                 <fields oils_persist:primary="id" oils_persist:sequence="acq.lineitem_note_id_seq">
4229                         <field reporter:label="PO Line Item Note ID" name="id" reporter:datatype="id" />
4230                         <field reporter:label="Line Item" name="lineitem" reporter:datatype="link" />
4231                         <field reporter:label="Creator" name="creator" reporter:datatype="link" />
4232                         <field reporter:label="Creation Time" name="create_time" reporter:datatype="timestamp" />
4233                         <field reporter:label="Edit Time" name="edit_time" reporter:datatype="timestamp" />
4234                         <field reporter:label="Editor" name="editor" reporter:datatype="link" />
4235                         <field reporter:label="Vote Value" name="value" reporter:datatype="text" />
4236                 </fields>
4237                 <links>
4238                         <link field="creator" reltype="has_a" key="id" map="" class="au"/>
4239                         <link field="editor" reltype="has_a" key="id" map="" class="au"/>
4240                         <link field="lineitem" reltype="has_a" key="id" map="" class="jub"/>
4241                 </links>
4242         </class>
4243
4244         <class id="acqlia" controller="open-ils.cstore open-ils.reporter-store" oils_obj:fieldmapper="acq::lineitem_attr" oils_persist:tablename="acq.lineitem_attr" reporter:label="Line Item Attribute">
4245                 <fields oils_persist:primary="id" oils_persist:sequence="acq.lineitem_attr_id_seq">
4246                         <field reporter:label="Attribute Value ID" name="id" reporter:datatype="id" />
4247                         <field reporter:label="Lineitem" name="lineitem" reporter:datatype="link" />
4248                         <field reporter:label="Type" name="attr_type" reporter:datatype="text" />
4249                         <field reporter:label="Name" name="attr_name" reporter:datatype="text" />
4250                         <field reporter:label="Value" name="attr_value" reporter:datatype="text" />
4251                         <field reporter:label="Definition" name="definition" reporter:datatype="text" />
4252                 </fields>
4253                 <links>
4254                         <link field="lineitem" reltype="has_a" key="id" map="" class="jub"/>
4255                         <link field="definition" reltype="has_a" key="id" map="" class="acqliad"/>
4256                 </links>
4257         </class>
4258
4259         <class id="acqlid" controller="open-ils.cstore open-ils.reporter-store" oils_obj:fieldmapper="acq::lineitem_detail" oils_persist:tablename="acq.lineitem_detail" reporter:label="Line Item Detail">
4260                 <fields oils_persist:primary="id" oils_persist:sequence="acq.lineitem_detail_id_seq">
4261                         <field reporter:label="Item Detail ID" name="id" reporter:datatype="id" />
4262                         <field reporter:label="PO Line Item" name="lineitem" reporter:datatype="link" />
4263                         <field reporter:label="Evergreen Copy ID" name="eg_copy_id" reporter:datatype="link" />
4264                         <field reporter:label="Barcode" name="barcode" reporter:datatype="text" />
4265                         <field reporter:label="Call Number Label" name="cn_label" reporter:datatype="text" />
4266                         <field reporter:label="Actual Receive Date" name="recv_time" reporter:datatype="timestamp" />
4267                         <field reporter:label="Fund" name="fund" reporter:datatype="link" />
4268                         <field reporter:label="Fund Debit" name="fund_debit" reporter:datatype="link" />
4269                         <field reporter:label="Owning Library" name="owning_lib" reporter:datatype="org_unit" />
4270                         <field reporter:label="Shelving Location" name="location" reporter:datatype="link" />
4271                         <field reporter:label="Circ Modifier" name="circ_modifier" reporter:datatype="link" />
4272                         <field reporter:label="Note" name="note" reporter:datatype="text" />
4273                         <field reporter:label="Collection Code" name="collection_code" reporter:datatype="text" />
4274                 </fields>
4275                 <links>
4276                         <link field="lineitem" reltype="has_a" key="id" map="" class="jub"/>
4277                         <link field="eg_copy_id" reltype="has_a" key="id" map="" class="acp"/>
4278                         <link field="fund" reltype="has_a" key="id" map="" class="acqf"/>
4279                         <link field="fund_debit" reltype="has_a" key="id" map="" class="acqfdeb"/>
4280                         <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
4281                         <link field="location" reltype="has_a" key="id" map="" class="acpl"/>
4282                         <link field="circ_modifier" reltype="has_a" key="code" map="" class="ccm"/>
4283                 </links>
4284         </class>
4285
4286         <class id="acqliad" controller="open-ils.cstore open-ils.reporter-store" oils_obj:fieldmapper="acq::lineitem_attr_definition" oils_persist:tablename="acq.lineitem_attr_definition" reporter:label="Line Item Attribute Definition">
4287                 <fields oils_persist:primary="id" oils_persist:sequence="acq.lineitem_attr_definition_id_seq">
4288                         <field reporter:label="Definition ID" name="id" reporter:datatype="id" />
4289                         <field reporter:label="Code" name="code" reporter:datatype="text" />
4290                         <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true" />
4291                         <field reporter:label="Is Identifier?" name="ident" reporter:datatype="bool"/>
4292                 </fields>
4293                 <links/>
4294         </class>
4295
4296         <class id="acqlimad" controller="open-ils.cstore open-ils.reporter-store" oils_obj:fieldmapper="acq::lineitem_marc_attr_definition" oils_persist:tablename="acq.lineitem_marc_attr_definition" reporter:label="Line Item MARC Attribute Definition">
4297                 <fields oils_persist:primary="id" oils_persist:sequence="acq.lineitem_attr_definition_id_seq">
4298                         <field reporter:label="Definition ID" name="id" reporter:datatype="id" />
4299                         <field reporter:label="Code" name="code" reporter:datatype="text" />
4300                         <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true" />
4301                         <field reporter:label="XPath" name="xpath" reporter:datatype="text" />
4302                         <field reporter:label="Is Identifier?" name="ident" reporter:datatype="bool"/>
4303                 </fields>
4304                 <links/>
4305         </class>
4306
4307         <class id="acqligad" controller="open-ils.cstore open-ils.reporter-store" oils_obj:fieldmapper="acq::lineitem_generated_attr_definition" oils_persist:tablename="acq.lineitem_generated_attr_definition" reporter:label="Line Item Generated Attribute Definition">
4308                 <fields oils_persist:primary="id" oils_persist:sequence="acq.lineitem_attr_definition_id_seq">
4309                         <field reporter:label="Definition ID" name="id" reporter:datatype="id" />
4310                         <field reporter:label="Code" name="code" reporter:datatype="text" />
4311                         <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true" />
4312                         <field reporter:label="XPath" name="xpath" reporter:datatype="text" />
4313                         <field reporter:label="Is Identifier?" name="ident" reporter:datatype="bool"/>
4314                 </fields>
4315                 <links/>
4316         </class>
4317         <class id="acqliuad" controller="open-ils.cstore open-ils.reporter-store" oils_obj:fieldmapper="acq::lineitem_usr_attr_definition" oils_persist:tablename="acq.lineitem_usr_attr_definition" reporter:label="Line Item User Attribute Definition">
4318                 <fields oils_persist:primary="id" oils_persist:sequence="acq.lineitem_attr_definition_id_seq">
4319                         <field reporter:label="Definition ID" name="id" reporter:datatype="id" />
4320                         <field reporter:label="Code" name="code" reporter:datatype="text" />
4321                         <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true" />
4322                         <field reporter:label="User" name="usr" reporter:datatype="link" />
4323                         <field reporter:label="Is Identifier?" name="ident" reporter:datatype="bool"/>
4324                 </fields>
4325                 <links>
4326                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
4327                 </links>
4328         </class>
4329
4330         <class id="acqlipad" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::lineitem_provider_attr_definition" oils_persist:tablename="acq.lineitem_provider_attr_definition" reporter:label="Line Item Provider Attribute Definition">
4331             <fields oils_persist:primary="id" oils_persist:sequence="acq.lineitem_attr_definition_id_seq">
4332                 <field reporter:label="Definition ID" name="id" reporter:datatype="id" />
4333                 <field reporter:label="Code" name="code" reporter:datatype="text" />
4334                 <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true" />
4335                 <field reporter:label="XPath" name="xpath" reporter:datatype="text" />
4336                 <field reporter:label="Provider" name="provider" reporter:datatype="link" />
4337                 <field reporter:label="Is Identifier?" name="ident" reporter:datatype="bool"/>
4338         <field reporter:label="Remove" name="remove" reporter:datatype="text" />
4339
4340             </fields>
4341             <links>
4342                 <link field="provider" reltype="has_a" key="id" map="" class="acqpro"/>
4343             </links>
4344             <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
4345                 <actions>
4346                     <create permission="ADMIN_PROVIDER">
4347                         <context link="provider" field="owner"/>
4348                     </create>
4349                     <retrieve permission="ADMIN_PROVIDER">
4350                         <context link="provider" field="owner"/>
4351                     </retrieve>
4352                     <update permission="ADMIN_PROVIDER">
4353                         <context link="provider" field="owner"/>
4354                     </update>
4355                     <delete permission="ADMIN_PROVIDER">
4356                         <context link="provider" field="owner"/>
4357                     </delete>
4358                 </actions>
4359             </permacrud>
4360         </class>
4361         
4362         <class id="acqphsm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::provider_holding_subfield_map" oils_persist:tablename="acq.provider_holding_subfield_map" reporter:label="Provider Holding Subfield Map">
4363             <fields oils_persist:primary="id" oils_persist:sequence="acq.provider_holding_subfield_map_id_seq">
4364                 <field reporter:label="ID" name="id" reporter:datatype="id" />
4365                 <field reporter:label="Provider" name="provider" reporter:datatype="link" />
4366                 <field reporter:label="Name" name="name" reporter:datatype="text" />
4367                 <field reporter:label="Subfield" name="subfield" reporter:datatype="text" />
4368             </fields>
4369             <links>
4370                 <link field="provider" reltype="has_a" key="id" map="" class="acqpro"/>
4371             </links>
4372             <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
4373                 <actions>
4374                     <create permission="ADMIN_PROVIDER">
4375                         <context link="provider" field="owner"/>
4376                     </create>
4377                     <retrieve permission="ADMIN_PROVIDER">
4378                         <context link="provider" field="owner"/>
4379                     </retrieve>
4380                     <update permission="ADMIN_PROVIDER">
4381                         <context link="provider" field="owner"/>
4382                     </update>
4383                     <delete permission="ADMIN_PROVIDER">
4384                         <context link="provider" field="owner"/>
4385                     </delete>
4386                 </actions>
4387             </permacrud>
4388         </class>
4389         
4390         <class id="acqlilad" controller="open-ils.cstore open-ils.reporter-store" oils_obj:fieldmapper="acq::lineitem_local_attr_definition" oils_persist:tablename="acq.lineitem_local_attr_definition" reporter:label="Line Item Local Attribute Definition">
4391             <fields oils_persist:primary="id" oils_persist:sequence="acq.lineitem_attr_definition_id_seq">
4392                         <field reporter:label="Definition ID" name="id" reporter:datatype="id" />
4393                         <field reporter:label="Code" name="code" reporter:datatype="text" />
4394                         <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true" />
4395                         <field reporter:label="Is Identifier?" name="ident" reporter:datatype="bool"/>
4396                 </fields>
4397                 <links/>
4398         </class>
4399
4400         <class id="rof" controller="open-ils.reporter-store" oils_obj:fieldmapper="reporter::output_folder" oils_persist:tablename="reporter.output_folder" reporter:label="Output Folder">
4401                 <fields oils_persist:primary="id" oils_persist:sequence="reporter.output_folder_id_seq">
4402                         <field name="id" reporter:datatype="id" />
4403                         <field name="parent" reporter:datatype="link"/>
4404                         <field name="owner" reporter:datatype="link"/>
4405                         <field name="create_time" reporter:datatype="timestamp"/>
4406                         <field name="name" reporter:datatype="text"/>
4407                         <field name="shared" reporter:datatype="bool"/>
4408                         <field name="share_with" reporter:datatype="link"/>
4409                         <field name="children" oils_persist:virtual="true" reporter:datatype="link"/>
4410                         <field name="outputs" oils_persist:virtual="true" reporter:datatype="link"/>
4411                 </fields>
4412                 <links>
4413                         <link field="owner" reltype="has_a" key="id" map="" class="au"/>
4414                         <link field="parent" reltype="has_a" key="id" map="" class="rof"/>
4415                         <link field="children" reltype="has_many" key="parent" map="" class="rof"/>
4416                         <link field="share_with" reltype="has_a" key="id" map="" class="aou"/>
4417                         <link field="outputs" reltype="has_many" key="folder" map="" class="rs"/>
4418                 </links>
4419         </class>
4420         <class id="rtf" controller="open-ils.reporter-store" oils_obj:fieldmapper="reporter::template_folder" oils_persist:tablename="reporter.template_folder" reporter:label="Template Folder">
4421                 <fields oils_persist:primary="id" oils_persist:sequence="reporter.template_folder_id_seq">
4422                         <field name="id" reporter:datatype="id" />
4423                         <field name="parent" reporter:datatype="link"/>
4424                         <field name="owner" reporter:datatype="link"/>
4425                         <field name="create_time" reporter:datatype="timestamp"/>
4426                         <field name="name" reporter:datatype="text"/>
4427                         <field name="shared" reporter:datatype="bool"/>
4428                         <field name="share_with" reporter:datatype="link"/>
4429                         <field name="children" oils_persist:virtual="true" reporter:datatype="link"/>
4430                         <field name="templates" oils_persist:virtual="true" reporter:datatype="link"/>
4431                 </fields>
4432                 <links>
4433                         <link field="owner" reltype="has_a" key="id" map="" class="au"/>
4434                         <link field="parent" reltype="has_a" key="id" map="" class="rtf"/>
4435                         <link field="children" reltype="has_many" key="parent" map="" class="rtf"/>
4436                         <link field="share_with" reltype="has_a" key="id" map="" class="aou"/>
4437                         <link field="templates" reltype="has_many" key="folder" map="" class="rt"/>
4438                 </links>
4439         </class>
4440         <class id="rrf" controller="open-ils.reporter-store" oils_obj:fieldmapper="reporter::report_folder" oils_persist:tablename="reporter.report_folder" reporter:label="Report Folder">
4441                 <fields oils_persist:primary="id" oils_persist:sequence="reporter.report_folder_id_seq">
4442                         <field name="id" reporter:datatype="id" />
4443                         <field name="parent" reporter:datatype="link"/>
4444                         <field name="owner" reporter:datatype="link"/>
4445                         <field name="create_time" reporter:datatype="timestamp"/>
4446                         <field name="name" reporter:datatype="text"/>
4447                         <field name="shared" reporter:datatype="bool"/>
4448                         <field name="share_with" reporter:datatype="link"/>
4449                         <field name="children" oils_persist:virtual="true" reporter:datatype="link"/>
4450                         <field name="reports" oils_persist:virtual="true" reporter:datatype="link"/>
4451                 </fields>
4452                 <links>
4453                         <link field="owner" reltype="has_a" key="id" map="" class="au"/>
4454                         <link field="parent" reltype="has_a" key="id" map="" class="rrf"/>
4455                         <link field="children" reltype="has_many" key="parent" map="" class="rrf"/>
4456                         <link field="share_with" reltype="has_a" key="id" map="" class="aou"/>
4457                         <link field="reports" reltype="has_many" key="folder" map="" class="rr"/>
4458                 </links>
4459         </class>
4460         <class id="rt" controller="open-ils.reporter-store" oils_obj:fieldmapper="reporter::template" oils_persist:tablename="reporter.template" reporter:label="Template">
4461                 <fields oils_persist:primary="id" oils_persist:sequence="reporter.template_id_seq">
4462                         <field name="id" reporter:datatype="id" />
4463                         <field name="owner" reporter:datatype="link"/>
4464                         <field name="create_time" reporter:datatype="timestamp"/>
4465                         <field name="name" reporter:datatype="text"/>
4466                         <field name="data" reporter:datatype="text"/>
4467                         <field name="folder" reporter:datatype="link"/>
4468                         <field name="description" reporter:datatype="text"/>
4469                         <field name="reports" oils_persist:virtual="true" reporter:datatype="link"/>
4470                 </fields>
4471                 <links>
4472                         <link field="owner" reltype="has_a" key="id" map="" class="au"/>
4473                         <link field="folder" reltype="has_a" key="id" map="" class="rtf"/>
4474                         <link field="reports" reltype="has_many" key="template" map="" class="rr"/>
4475                 </links>
4476         </class>
4477         <class id="rr" controller="open-ils.reporter-store" oils_obj:fieldmapper="reporter::report" oils_persist:tablename="reporter.report" reporter:label="Report">
4478                 <fields oils_persist:primary="id" oils_persist:sequence="reporter.report_id_seq">
4479                         <field name="id" reporter:datatype="id" />
4480                         <field name="owner" reporter:datatype="link"/>
4481                         <field name="create_time" reporter:datatype="timestamp"/>
4482                         <field name="template" reporter:datatype="link"/>
4483                         <field name="data" reporter:datatype="link"/>
4484                         <field name="folder" reporter:datatype="link"/>
4485                         <field name="recur" reporter:datatype="bool"/>
4486                         <field name="recurance" reporter:datatype="interval"/>
4487                         <field name="name" reporter:datatype="text"/>
4488                         <field name="description" reporter:datatype="text"/>
4489                         <field name="runs" oils_persist:virtual="true" reporter:datatype="link"/>
4490                 </fields>
4491                 <links>
4492                         <link field="owner" reltype="has_a" key="id" map="" class="au"/>
4493                         <link field="template" reltype="has_a" key="id" map="" class="rt"/>
4494                         <link field="folder" reltype="has_a" key="id" map="" class="rrf"/>
4495                         <link field="runs" reltype="has_many" key="report" map="" class="rs"/>
4496                 </links>
4497         </class>
4498         <class id="rs" controller="open-ils.reporter-store" oils_obj:fieldmapper="reporter::schedule" oils_persist:tablename="reporter.schedule" reporter:label="Schedule">
4499                 <fields oils_persist:primary="id" oils_persist:sequence="reporter.schedule_id_seq">
4500                         <field name="id" reporter:datatype="id" />
4501                         <field name="runner" reporter:datatype="link"/>
4502                         <field name="start_time" reporter:datatype="timestamp"/>
4503                         <field name="complete_time" reporter:datatype="timestamp"/>
4504                         <field name="run_time" reporter:datatype="timestamp"/>
4505                         <field name="email" reporter:datatype="text"/>
4506                         <field name="excel_format" reporter:datatype="bool"/>
4507                         <field name="csv_format" reporter:datatype="bool"/>
4508                         <field name="html_format" reporter:datatype="bool"/>
4509                         <field name="error_code" reporter:datatype="int"/>
4510                         <field name="error_text" reporter:datatype="text"/>
4511                         <field name="report" reporter:datatype="link"/>
4512                         <field name="folder" reporter:datatype="link"/>
4513                         <field name="chart_pie" reporter:datatype="bool"/>
4514                         <field name="chart_bar" reporter:datatype="bool"/>
4515                         <field name="chart_line" reporter:datatype="bool"/>
4516                 </fields>
4517                 <links>
4518                         <link field="runner" reltype="has_a" key="id" map="" class="au"/>
4519                         <link field="report" reltype="has_a" key="id" map="" class="rr"/>
4520                         <link field="folder" reltype="has_a" key="id" map="" class="rof"/>
4521                 </links>
4522         </class>
4523         <class id="rmsr" controller="open-ils.reporter-store" oils_obj:fieldmapper="reporter::materialized_simple_record" oils_persist:tablename="reporter.materialized_simple_record" reporter:label="Fast Simple Record Extracts">
4524                 <fields oils_persist:primary="id">
4525                         <field reporter:label="Record ID" name="id" reporter:datatype="id" />
4526                         <field reporter:label="Fingerprint" name="fingerprint" reporter:datatype="text"/>
4527                         <field reporter:label="Overall Record Quality" name="quality" reporter:datatype="int"/>
4528                         <field reporter:label="TCN Source" name="tcn_source" reporter:datatype="text"/>
4529                         <field reporter:label="TCN Value" name="tcn_value" reporter:datatype="text"/>
4530                         <field reporter:label="Title Proper (normalized)" name="title" reporter:datatype="text"/>
4531                         <field reporter:label="Author (normalized)" name="author" reporter:datatype="text"/>
4532                         <field reporter:label="Publisher (normalized)" name="publisher" reporter:datatype="text"/>
4533                         <field reporter:label="Publication Year (normalized)" name="pubdate" reporter:datatype="int"/>
4534                         <field reporter:label="ISBN" name="isbn" reporter:datatype="text"/>
4535                         <field reporter:label="ISSN" name="issn" reporter:datatype="text"/>
4536                         <field reporter:label="Full Bibliographic record" name="biblio_record" oils_persist:virtual="true" reporter:datatype="link"/>
4537                 </fields>
4538                 <links>
4539                         <link field="biblio_record" reltype="might_have" key="id" map="" class="bre"/>
4540                 </links>
4541         </class>
4542         <class id="rssr" controller="open-ils.reporter-store" oils_obj:fieldmapper="reporter::super_simple_record" oils_persist:tablename="reporter.super_simple_record" reporter:label="Simple Record Extracts">
4543                 <fields oils_persist:primary="id">
4544                         <field reporter:label="Record ID" name="id" reporter:datatype="id" />
4545                         <field reporter:label="Fingerprint" name="fingerprint" reporter:datatype="text"/>
4546                         <field reporter:label="Overall Record Quality" name="quality" reporter:datatype="int"/>
4547                         <field reporter:label="TCN Source" name="tcn_source" reporter:datatype="text"/>
4548                         <field reporter:label="TCN Value" name="tcn_value" reporter:datatype="text"/>
4549                         <field reporter:label="Title Proper (normalized)" name="title" reporter:datatype="text"/>
4550                         <field reporter:label="Author (normalized)" name="author" reporter:datatype="text"/>
4551                         <field reporter:label="Publisher (normalized)" name="publisher" reporter:datatype="text"/>
4552                         <field reporter:label="Publication Year (normalized)" name="pubdate" reporter:datatype="int"/>
4553                         <field reporter:label="ISBN" name="isbn" reporter:datatype="text"/>
4554                         <field reporter:label="ISSN" name="issn" reporter:datatype="text"/>
4555                         <field reporter:label="Full Bibliographic record" name="biblio_record" oils_persist:virtual="true" reporter:datatype="link"/>
4556                 </fields>
4557                 <links>
4558                         <link field="biblio_record" reltype="might_have" key="id" map="" class="bre"/>
4559                 </links>
4560         </class>
4561         <class id="rsr" controller="open-ils.reporter-store" oils_obj:fieldmapper="reporter::simple_record" oils_persist:tablename="reporter.simple_record" reporter:label="Simple Record">
4562                 <fields oils_persist:primary="id">
4563                         <field reporter:label="Record ID" name="id" reporter:datatype="id" />
4564                         <field reporter:label="Metarecord" name="metarecord" reporter:datatype="link"/>
4565                         <field reporter:label="Fingerprint" name="fingerprint" />
4566                         <field reporter:label="Overall Record Quality" name="quality" reporter:datatype="int"/>
4567                         <field reporter:label="TCN Source" name="tcn_source" reporter:datatype="text"/>
4568                         <field reporter:label="TCN Value" name="tcn_value" reporter:datatype="text"/>
4569                         <field reporter:label="Title Proper (normalized)" name="title" reporter:datatype="text"/>
4570                         <field reporter:label="Uniform Title (normalized)" name="uniform_title" reporter:datatype="text"/>
4571                         <field reporter:label="Author (normalized)" name="author" reporter:datatype="text"/>
4572                         <field reporter:label="Publisher (normalized)" name="publisher" reporter:datatype="text"/>
4573                         <field reporter:label="Publication Year (normalized)" name="pubdate" reporter:datatype="int"/>
4574                         <field reporter:label="Series Title (normalized)" name="series_title" reporter:datatype="text"/>
4575                         <field reporter:label="Series Statement (normalized)" name="series_statement" reporter:datatype="text"/>
4576                         <field reporter:label="Summary (normalized)" name="summary" reporter:datatype="text"/>
4577                         <field reporter:label="ISBN" name="isbn" reporter:datatype="text"/>
4578                         <field reporter:label="ISSN" name="issn" reporter:datatype="text"/>
4579                         <field reporter:label="Topic Subjects (normalized)" name="topic_subject" reporter:datatype="text"/>
4580                         <field reporter:label="Geographic Subjects (normalized)" name="geographic_subject" reporter:datatype="text"/>
4581                         <field reporter:label="Genres (normalized)" name="genre" reporter:datatype="text"/>
4582                         <field reporter:label="Personal Name Subjects (normalized)" name="name_subject" reporter:datatype="text"/>
4583                         <field reporter:label="Corporate Name Subjects (normalized)" name="corporate_subject" reporter:datatype="text"/>
4584                         <field reporter:label="External URI List (normalized)" name="external_uri" reporter:datatype="text"/>
4585                         <field reporter:label="Full Bibliographic record" name="biblio_record" oils_persist:virtual="true" reporter:datatype="link"/>
4586                 </fields>
4587                 <links>
4588                         <link field="metarecord" reltype="has_a" key="id" map="" class="mmr"/>
4589                         <link field="biblio_record" reltype="might_have" key="id" map="" class="bre"/>
4590                 </links>
4591         </class>
4592         <class id="rud" controller="open-ils.reporter-store open-ils.cstore" oils_obj:fieldmapper="reporter::user_demographic" oils_persist:tablename="reporter.demographic" reporter:label="User Demographics">
4593                 <fields oils_persist:primary="id">
4594                         <field reporter:label="User ID" name="id" reporter:datatype="id" />
4595                         <field reporter:label="Date of Birth" name="dob" reporter:datatype="timestamp"/>
4596                         <field reporter:label="General Demographic Division" name="general_division" reporter:datatype="text"/>
4597                 </fields>
4598                 <links>
4599                         <link field="id" reltype="might_have" key="id" map="" class="au"/>
4600                 </links>
4601         </class>
4602         <class id="rcirct" controller="open-ils.reporter-store open-ils.cstore" oils_obj:fieldmapper="reporter::circulation_type" oils_persist:tablename="reporter.circ_type" reporter:label="Circulation Type">
4603                 <fields oils_persist:primary="id">
4604                         <field reporter:label="Circulation ID" name="id" reporter:datatype="id" />
4605                         <field reporter:label="Circulation Type" name="type" reporter:datatype="text"/>
4606                 </fields>
4607                 <links>
4608                         <link field="id" reltype="might_have" key="id" map="" class="circ"/>
4609                 </links>
4610         </class>
4611         <class id="rhrr" controller="open-ils.reporter-store" oils_obj:fieldmapper="reporter::hold_request_record" oils_persist:tablename="reporter.hold_request_record" reporter:label="Hold Request Record">
4612                 <fields oils_persist:primary="id">
4613                         <field reporter:label="Hold ID" name="id" reporter:datatype="id" />
4614                         <field reporter:label="Hold Target" name="target" reporter:datatype="int" />
4615                         <field reporter:label="Hold Request Type" name="hold_type" reporter:datatype="text"/>
4616                         <field reporter:label="Target Bib Record" name="bib_record" reporter:datatype="link"/>
4617                 </fields>
4618                 <links>
4619                         <link field="id" reltype="might_have" key="id" map="" class="ahr"/>
4620                         <link field="bib_record" reltype="has_a" key="id" map="" class="bre"/>
4621                 </links>
4622         </class>
4623         <class id="rxbt" controller="open-ils.reporter-store" oils_obj:fieldmapper="reporter::xact_billing_totals" oils_persist:tablename="reporter.xact_billing_totals" reporter:label="Transaction Billing Totals">
4624                 <fields oils_persist:primary="xact">
4625                         <field reporter:label="Transaction ID" name="xact" reporter:datatype="int" />
4626                         <field reporter:label="Unvoided Billing Amount" name="unvoided" reporter:datatype="int" />
4627                         <field reporter:label="Voided Billing Amount" name="voided" reporter:datatype="money"/>
4628                         <field reporter:label="Total Billing Amount" name="total" reporter:datatype="money"/>
4629                 </fields>
4630                 <links>
4631                         <link field="xact" reltype="might_have" key="id" map="" class="mbt"/>
4632                 </links>
4633         </class>
4634         <class id="rxpt" controller="open-ils.reporter-store" oils_obj:fieldmapper="reporter::xact_paid_totals" oils_persist:tablename="reporter.xact_paid_totals" reporter:label="Transaction Paid Totals">
4635                 <fields oils_persist:primary="xact">
4636                         <field reporter:label="Transaction ID" name="xact" reporter:datatype="int" />
4637                         <field reporter:label="Unvoided Paid Amount" name="unvoided" reporter:datatype="int" />
4638                         <field reporter:label="Voided (Returned) Paid Amount" name="voided" reporter:datatype="money"/>
4639                         <field reporter:label="Total Paid Amount" name="total" reporter:datatype="money"/>
4640                 </fields>
4641                 <links>
4642                         <link field="xact" reltype="might_have" key="id" map="" class="mbt"/>
4643                 </links>
4644         </class>
4645         <class id="ergbhu" controller="open-ils.reporter-store" oils_obj:fieldmapper="extend_reporter::global_bibs_by_holding_update" oils_persist:tablename="extend_reporter.global_bibs_by_holding_update" reporter:label="Bib IDs by Holding Add/Delete Time (OCLC batch update)">
4646                 <fields oils_persist:primary="id">
4647                         <field reporter:label="Bib ID" name="id" reporter:datatype="id" />
4648                         <field reporter:label="Update Time" name="holding_update" reporter:datatype="timestamp" />
4649                         <field reporter:label="Update Type" name="update_type" reporter:datatype="text" />
4650                 </fields>
4651                 <links>
4652                         <link field="id" reltype="has_a" key="id" map="" class="bre"/>
4653                 </links>
4654         </class>
4655         <class id="erfcc" controller="open-ils.reporter-store" oils_obj:fieldmapper="extend_reporter::full_circ_count" oils_persist:tablename="extend_reporter.full_circ_count" reporter:label="Total Circulation Count, Including Legacy">
4656                 <fields oils_persist:primary="id">
4657                         <field reporter:label="Copy ID" name="id" reporter:datatype="int" />
4658                         <field reporter:label="Total Circulation Count" name="circ_count" reporter:datatype="int" />
4659                 </fields>
4660                 <links>
4661                         <link field="id" reltype="has_a" key="id" map="" class="acp"/>
4662                 </links>
4663         </class>
4664         <class id="acqdf" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::distribution_formula" oils_persist:tablename="acq.distribution_formula" reporter:label="Distribution Formula">
4665                 <fields oils_persist:primary="id" oils_persist:sequence="acq.distribution_formula_id_seq">
4666                         <field reporter:label="Formula ID" name="id" reporter:datatype="id"/>
4667                         <field reporter:label="Formula Owner" name="owner" reporter:datatype="org_unit"/>
4668                         <field reporter:label="Formula Name" name="name" reporter:datatype="text"/>
4669                         <field reporter:label="Skip Count" name="skip_count" reporter:datatype="int"/>
4670                         <field reporter:label="Entries" name="entries" oils_persist:virtual="true" reporter:datatype="link"/>
4671                 </fields>
4672                 <links>
4673                         <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
4674                         <link field="entries" reltype="has_many" key="formula" map="" class="acqdfe"/>
4675                 </links>
4676                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
4677                         <actions>
4678                                 <create permission="ADMIN_ACQ_DISTRIB_FORMULA" context_field="owner"/>
4679                                 <retrieve permission="ADMIN_ACQ_DISTRIB_FORMULA" context_field="owner"/>
4680                                 <update permission="ADMIN_ACQ_DISTRIB_FORMULA" context_field="owner"/>
4681                                 <delete permission="ADMIN_ACQ_DISTRIB_FORMULA" context_field="owner"/>
4682                         </actions>
4683                 </permacrud>
4684         </class>
4685         <class id="acqdfe" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::distribution_formula_entry" oils_persist:tablename="acq.distribution_formula_entry" reporter:label="Distribution Formula Entry">
4686                 <fields oils_persist:primary="id" oils_persist:sequence="acq.distribution_formula_entry_id_seq">
4687                         <field reporter:label="Entry ID" name="id" reporter:datatype="id"/>
4688                         <field reporter:label="Formula ID" name="formula" reporter:datatype="link"/>
4689                         <field reporter:label="Position" name="position" reporter:datatype="int"/>
4690                         <field reporter:label="Item Count" name="item_count" reporter:datatype="int"/>
4691                         <field reporter:label="Owning Library" name="owning_lib" reporter:datatype="org_unit"/>
4692                         <field reporter:label="Location" name="location" reporter:datatype="link"/>
4693                 </fields>
4694                 <links>
4695                         <link field="formula" reltype="has_a" key="id" map="" class="acqdf"/>
4696                         <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
4697                         <link field="location" reltype="has_a" key="id" map="" class="acpl"/>
4698                 </links>
4699                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
4700                         <actions>
4701                                 <create permission="ADMIN_ACQ_DISTRIB_FORMULA">
4702                                         <context link="formula" field="owner"/>
4703                                 </create>
4704                                 <retrieve permission="ADMIN_ACQ_DISTRIB_FORMULA">
4705                                         <context link="formula" field="owner"/>
4706                                 </retrieve>
4707                                 <update permission="ADMIN_ACQ_DISTRIB_FORMULA">
4708                                         <context link="formula" field="owner"/>
4709                                 </update>
4710                                 <delete permission="ADMIN_ACQ_DISTRIB_FORMULA">
4711                                         <context link="formula" field="owner"/>
4712                                 </delete>
4713                         </actions>
4714                 </permacrud>
4715         </class>
4716
4717
4718         <!-- ********************************************************************************************************************* -->
4719         <!-- What follows is a set of example extensions that are useful for PINES.  Comment out or remove if you don't want them. -->
4720         <!-- ********************************************************************************************************************* -->
4721         <class id="rccc" controller="open-ils.reporter-store" oils_obj:fieldmapper="reporter::classic_current_circ" oils_persist:tablename="reporter.classic_current_circ" reporter:core="true" reporter:label="Classic Circulation View">
4722                 <fields oils_persist:primary="id">
4723                         <field reporter:label="Circulation" name="id" reporter:datatype="id" />
4724                         <field reporter:label="Library Circulation Location Short (Policy) Name" name="circ_lib" reporter:datatype="text"/>
4725                         <field reporter:label="Library Circulation Location Link" name="circ_lib_id" reporter:datatype="org_unit"/>
4726                         <field reporter:label="Circulation Date/Time" name="xact_start" reporter:datatype="timestamp"/>
4727                         <field reporter:label="Circulation Type" name="circ_type" reporter:datatype="text"/>
4728                         <field reporter:label="Copy Link" name="copy_id" reporter:datatype="link"/>
4729                         <field reporter:label="Circ Modifier" name="circ_modifier" reporter:datatype="text"/>
4730                         <field reporter:label="Owning Library Short (Policy) Name" name="owning_lib_name" reporter:datatype="text"/>
4731                         <field reporter:label="Item Language" name="language" reporter:datatype="text"/>
4732                         <field reporter:label="Literary Form" name="lit_form" reporter:datatype="text"/>
4733                         <field reporter:label="MARC Form" name="item_form" reporter:datatype="text"/>
4734                         <field reporter:label="MARC Type" name="item_type" reporter:datatype="text"/>
4735                         <field reporter:label="Shelving Location" name="shelving_location" reporter:datatype="text"/>
4736                         <field reporter:label="Patron Profile Group" name="profile_group" reporter:datatype="text"/>
4737                         <field reporter:label="Patron Age Demographic" name="demographic_general_division" reporter:datatype="text"/>
4738                         <field reporter:label="Call Number Link" name="call_number" reporter:datatype="link"/>
4739                         <field reporter:label="Call Number Label" name="call_number_label" reporter:datatype="text"/>
4740                         <field reporter:label="Call Number Dewey/Prefix" name="dewey" reporter:datatype="text"/>
4741                         <field reporter:label="Patron Link" name="patron_id" reporter:datatype="link"/>
4742                         <field reporter:label="Patron Home Library Link" name="patron_home_lib" reporter:datatype="link"/>
4743                         <field reporter:label="Patron Home Library Short (Policy) Name" name="patron_home_lib_shortname" reporter:datatype="text"/>
4744                         <field reporter:label="Patron County" name="patron_county" reporter:datatype="text"/>
4745                         <field reporter:label="Patron City" name="patron_city" reporter:datatype="text"/>
4746                         <field reporter:label="Patron ZIP Code" name="patron_zip" reporter:datatype="text"/>
4747                         <field reporter:label="Legacy CAT1 Link" name="stat_cat_1" reporter:datatype="link"/>
4748                         <field reporter:label="Legacy CAT2 Link" name="stat_cat_2" reporter:datatype="link"/>
4749                         <field reporter:label="Dewey Range - Tens" name="dewey_range_tens" reporter:datatype="text"/>
4750                         <field reporter:label="Dewey Range - Hundreds" name="dewey_range_hundreds" reporter:datatype="text"/>
4751                         <field reporter:label="Dewey Block - Tens" name="dewey_block_tens" reporter:datatype="text"/>
4752                         <field reporter:label="Dewey Block - Hundreds" name="dewey_block_hundreds" reporter:datatype="text"/>
4753                         <field reporter:label="Legacy CAT1 Value" name="stat_cat_1_value" reporter:datatype="text"/>
4754                         <field reporter:label="Legacy CAT2 Value" name="stat_cat_2_value" reporter:datatype="text"/>
4755                 </fields>
4756                 <links>
4757                         <link field="id" reltype="has_a" key="id" map="" class="circ"/>
4758                         <link field="copy_id" reltype="has_a" key="id" map="" class="acp"/>
4759                         <link field="patron_id" reltype="has_a" key="id" map="" class="au"/>
4760                         <link field="circ_lib_id" reltype="has_a" key="id" map="" class="aou"/>
4761                         <link field="call_number" reltype="has_a" key="id" map="" class="acn"/>
4762                         <link field="patron_home_lib" reltype="has_a" key="id" map="" class="aou"/>
4763                         <link field="stat_cat_1" reltype="has_a" key="id" map="" class="rsce1"/>
4764                         <link field="stat_cat_2" reltype="has_a" key="id" map="" class="rsce2"/>
4765                 </links>
4766         </class>
4767
4768         <class id="rsce1" controller="open-ils.reporter-store open-ils.cstore" oils_obj:fieldmapper="reporter::legacy_cat1" oils_persist:tablename="reporter.legacy_cat1" reporter:label="CAT1 Entry">
4769                 <fields oils_persist:primary="id">
4770                         <field reporter:label="Entry ID" name="id" reporter:selector="value" reporter:datatype="id" />
4771                         <field reporter:label="Entry Owner" name="owner" reporter:datatype="link"/>
4772                         <field reporter:label="Entry Value" name="value" reporter:datatype="text"/>
4773                 </fields>
4774                 <links>
4775                         <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
4776                 </links>
4777         </class>
4778
4779         <class id="rsce2" controller="open-ils.reporter-store open-ils.cstore" oils_obj:fieldmapper="reporter::legacy_cat2" oils_persist:tablename="reporter.legacy_cat2" reporter:label="CAT2 Entry">
4780                 <fields oils_persist:primary="id">
4781                         <field reporter:label="Entry ID" name="id" reporter:selector="value" reporter:datatype="id" />
4782                         <field reporter:label="Entry Owner" name="owner" reporter:datatype="link"/>
4783                         <field reporter:label="Entry Value" name="value" reporter:datatype="text"/>
4784                 </fields>
4785                 <links>
4786                         <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
4787                 </links>
4788         </class>
4789
4790         <class id="rccbs" controller="open-ils.reporter-store" oils_obj:fieldmapper="reporter::classic_current_billing_summary" oils_persist:tablename="reporter.classic_current_billing_summary" reporter:core="true" reporter:label="Classic Open Transaction Summary">
4791                 <fields oils_persist:primary="id">
4792                         <field reporter:label="Transaction ID" name="id" reporter:datatype="id" />
4793
4794                         <field reporter:label="Billing Location Short (Policy) Name" name="billing_location_shortname" reporter:datatype="text"/>
4795                         <field reporter:label="Billing Location Name" name="billing_location_name" reporter:datatype="text"/>
4796                         <field reporter:label="Billing Location Link" name="billing_location" reporter:datatype="org_unit"/>
4797
4798                         <field reporter:label="User Home Library Short (Policy) Name" name="usr_home_ou_shortname" reporter:datatype="text"/>
4799                         <field reporter:label="User Home Library Name" name="usr_home_ou_name" reporter:datatype="text"/>
4800                         <field reporter:label="User Home Library Link" name="usr_home_ou" reporter:datatype="org_unit"/>
4801
4802                         <field reporter:label="User Barcode" name="barcode" reporter:datatype="text"/>
4803                         <field reporter:label="User Link" name="usr" reporter:datatype="link"/>
4804
4805                         <field reporter:label="Transaction Start Date/Time" name="xact_start" reporter:datatype="timestamp"/>
4806                         <field reporter:label="Transaction End Date/Time" name="xact_finish" reporter:datatype="timestamp"/>
4807                         <field reporter:label="Transaction Type" name="xact_type" reporter:datatype="text"/>
4808
4809                         <field reporter:label="Total Paid" name="total_paid" reporter:datatype="money"/>
4810                         <field reporter:label="Total Billed" name="total_owed" reporter:datatype="money"/>
4811
4812                         <field reporter:label="Last Payment Date/Time" name="last_payment_ts" reporter:datatype="timestamp"/>
4813                         <field reporter:label="Last Payment Note" name="last_payment_note" reporter:datatype="text"/>
4814                         <field reporter:label="Last Payment Type" name="last_payment_type" reporter:datatype="text"/>
4815
4816                         <field reporter:label="Last Billing Date/Time" name="last_billing_ts" reporter:datatype="timestamp"/>
4817                         <field reporter:label="Last Billing Note" name="last_billing_note" reporter:datatype="text"/>
4818                         <field reporter:label="Last Billing Type" name="last_billing_type" reporter:datatype="text"/>
4819
4820                         <field reporter:label="User Age Demographic" name="demographic_general_division" reporter:datatype="text"/>
4821                         <field reporter:label="User County" name="patron_county" reporter:datatype="text"/>
4822                         <field reporter:label="User City" name="patron_city" reporter:datatype="text"/>
4823                         <field reporter:label="User ZIP Code" name="patron_zip" reporter:datatype="text"/>
4824
4825                         <field reporter:label="Balance Owed" name="balance_owed" reporter:datatype="money"/>
4826                         <field reporter:label="User Profile Group" name="profile_group" reporter:datatype="text"/>
4827
4828                 </fields>
4829                 <links>
4830                         <link field="id" reltype="has_a" key="id" map="" class="mbt"/>
4831                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
4832                         <link field="billing_location" reltype="has_a" key="id" map="" class="aou"/>
4833                         <link field="usr_home_ou" reltype="has_a" key="id" map="" class="aou"/>
4834                 </links>
4835         </class>
4836
4837         <class id="iatc" controller="open-ils.reporter-store" oils_obj:fieldmapper="action::intersystem_transit_copy" oils_persist:readonly="true" reporter:core="true" reporter:label="Inter-system Copy Transit">
4838                 <oils_persist:source_definition>
4839
4840                         SELECT  t.*
4841                           FROM  action.transit_copy t
4842                                 JOIN actor.org_unit AS s ON (t.source = s.id)
4843                                 JOIN actor.org_unit AS d ON (t.dest = d.id)
4844                           WHERE s.parent_ou &lt;&gt; d.parent_ou
4845
4846                 </oils_persist:source_definition>
4847                 <fields oils_persist:primary="id" oils_persist:sequence="action.transit_copy_id_seq">
4848                         <field reporter:label="Pretransit Copy Status" name="copy_status" reporter:datatype="bool"/>
4849                         <field reporter:label="Destination" name="dest" reporter:datatype="link"/>
4850                         <field reporter:label="Receive Date/Time" name="dest_recv_time" reporter:datatype="timestamp"/>
4851                         <field reporter:label="Transit ID" name="id" reporter:datatype="id"/>
4852                         <field reporter:label="Is Persistent? (unused)" name="persistant_transfer" reporter:datatype="bool"/>
4853                         <field reporter:label="Previous Hop (unused)" name="prev_hop" reporter:datatype="link"/>
4854                         <field reporter:label="Source" name="source" reporter:datatype="link"/>
4855                         <field reporter:label="Send Date/Time" name="source_send_time" reporter:datatype="timestamp"/>
4856                         <field reporter:label="Transited Copy" name="target_copy" reporter:datatype="link"/>
4857                         <field reporter:label="Hold Transit" name="hold_transit_copy" oils_persist:virtual="true" reporter:datatype="link"/>
4858                 </fields>
4859                 <links>
4860                         <link field="hold_transit_copy" reltype="might_have" key="id" map="" class="ahtc"/>
4861                         <link field="source" reltype="has_a" key="id" map="" class="aou"/>
4862                         <link field="copy_status" reltype="has_a" key="id" map="" class="ccs"/>
4863                         <link field="dest" reltype="has_a" key="id" map="" class="aou"/>
4864                         <link field="target_copy" reltype="has_a" key="id" map="" class="acp"/>
4865                 </links>
4866         </class>
4867
4868         <class id="rodcirc" controller="open-ils.reporter-store" oils_obj:fieldmapper="reporter::overdue_circs" oils_persist:tablename="reporter.overdue_circs" reporter:core="true" reporter:label="Overdue Circulation">
4869                 <fields oils_persist:primary="id" oils_persist:sequence="money.billable_xact_id_seq">
4870                         <field reporter:label="Check In Library" name="checkin_lib" reporter:datatype="org_unit"/>
4871                         <field reporter:label="Check In Staff" name="checkin_staff" reporter:datatype="link"/>
4872                         <field reporter:label="Check In Date/Time" name="checkin_time" reporter:datatype="timestamp"/>
4873                         <field reporter:label="Circulating Library" name="circ_lib"  reporter:datatype="org_unit"/>
4874                         <field reporter:label="Circulating Staff" name="circ_staff" reporter:datatype="link"/>
4875                         <field reporter:label="Desk Renewal" name="desk_renewal" reporter:datatype="bool"/>
4876                         <field reporter:label="Due Date/Time" name="due_date" reporter:datatype="timestamp"/>
4877                         <field reporter:label="Circulation Duration" name="duration" reporter:datatype="interval"/>
4878                         <field reporter:label="Circ Duration Rule" name="duration_rule" reporter:datatype="link"/>
4879                         <field reporter:label="Fine Interval" name="fine_interval" reporter:datatype="interval"/>
4880                         <field reporter:label="Circ ID" name="id" reporter:datatype="id" />
4881                         <field reporter:label="Max Fine Amount" name="max_fine" reporter:datatype="money" />
4882                         <field reporter:label="Max Fine Rule" name="max_fine_rule" reporter:datatype="link"/>
4883                         <field reporter:label="OPAC Renewal" name="opac_renewal" reporter:datatype="bool"/>
4884                         <field reporter:label="Phone Renewal" name="phone_renewal" reporter:datatype="bool"/>
4885                         <field reporter:label="Recurring Fine Amount" name="recuring_fine" reporter:datatype="money" />
4886                         <field reporter:label="Recurring Fine Rule" name="recuring_fine_rule" reporter:datatype="link"/>
4887                         <field reporter:label="Remaining Renewals" name="renewal_remaining" reporter:datatype="int" />
4888                         <field reporter:label="Fine Stop Reason" name="stop_fines" reporter:datatype="text"/>
4889                         <field reporter:label="Fine Stop Date/Time" name="stop_fines_time" reporter:datatype="timestamp"/>
4890                         <field reporter:label="Circulating Item" name="target_copy" reporter:datatype="link"/>
4891                         <field reporter:label="Patron" name="usr" reporter:datatype="link"/>
4892                         <field reporter:label="Transaction Finish Date/Time" name="xact_finish" reporter:datatype="timestamp" />
4893                         <field reporter:label="Check Out Date/Time" name="xact_start" reporter:datatype="timestamp" />
4894                         <field reporter:label="Transaction Billings" name="billings" oils_persist:virtual="true" reporter:datatype="link"/>
4895                         <field reporter:label="Transaction Payments" name="payments" oils_persist:virtual="true" reporter:datatype="link"/>
4896                         <field reporter:label="Base Transaction" name="billable_transaction" oils_persist:virtual="true" reporter:datatype="link"/>
4897                         <field reporter:label="Circulation Type" name="circ_type" oils_persist:virtual="true" reporter:datatype="text"/>
4898                         <field reporter:label="Billing Totals" name="billing_total" oils_persist:virtual="true" reporter:datatype="money"/>
4899                         <field reporter:label="Payment Totals" name="payment_total" oils_persist:virtual="true" reporter:datatype="money"/>
4900                 </fields>
4901                 <links>
4902                         <link field="billable_transaction" reltype="might_have" key="id" map="" class="mbt"/>
4903                         <link field="circ_staff" reltype="has_a" key="id" map="" class="au"/>
4904                         <link field="checkin_lib" reltype="has_a" key="id" map="" class="aou"/>
4905                         <link field="target_copy" reltype="has_a" key="id" map="" class="acp"/>
4906                         <link field="checkin_staff" reltype="has_a" key="id" map="" class="au"/>
4907                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
4908                         <link field="circ_lib" reltype="has_a" key="id" map="" class="aou"/>
4909                         <link field="payments" reltype="has_many" key="xact" map="" class="mp"/>
4910                         <link field="billings" reltype="has_many" key="xact" map="" class="mb"/>
4911                         <link field="duration_rule" reltype="has_a" key="name" map="" class="crcd"/>
4912                         <link field="max_fine_rule" reltype="has_a" key="name" map="" class="crmf"/>
4913                         <link field="recuring_fine_rule" reltype="has_a" key="name" map="" class="crrf"/>
4914                         <link field="circ_type" reltype="might_have" key="id" map="" class="rcirct"/>
4915                         <link field="billing_total" reltype="might_have" key="xact" map="" class="rxbt"/>
4916                         <link field="payment_total" reltype="might_have" key="xact" map="" class="rxpt"/>
4917                 </links>
4918         </class>
4919
4920     <class id="rocit" controller="open-ils.reporter-store" oils_obj:fieldmapper="reporter::classic_item_list" oils_persist:tablename="reporter.classic_item_list" reporter:core="true" reporter:label="Classic Item List">
4921         <fields oils_persist:primary="id">
4922             <field reporter:label="Title" name="title" reporter:datatype="text"/>
4923             <field reporter:label="Author" name="author" reporter:datatype="text"/>
4924             <field reporter:label="Pubdate" name="pubdate" reporter:datatype="text"/>
4925             <field reporter:label="Copy ID" name="id" reporter:datatype="id"/>
4926             <field reporter:label="Price" name="price" reporter:datatype="money"/>
4927             <field reporter:label="Barcode" name="barcode" reporter:datatype="text"/>
4928             <field reporter:label="Callnumber Label" name="call_number_label" reporter:datatype="text"/>
4929             <field reporter:label="Dewy Tens" name="dewey_block_tens" reporter:datatype="text"/>
4930             <field reporter:label="Dewy Hundreds" name="dewey_block_hundreds" reporter:datatype="text"/>
4931             <field reporter:label="Use Count" name="use_count" reporter:datatype="int"/>
4932             <field reporter:label="Circ Modifier" name="circ_modifier" reporter:datatype="text"/>
4933             <field reporter:label="Shelving Location Name" name="shelving_location" reporter:datatype="text"/>
4934             <field reporter:label="Legacy Stat Cat 1" name="stat_cat_1" reporter:datatype="text"/>
4935             <field reporter:label="Legacy Stat Cat 2" name="stat_cat_2" reporter:datatype="text"/>
4936             <field reporter:label="Legacy Stat Cat 1 Value" name="stat_cat_1_value" reporter:datatype="text"/>
4937             <field reporter:label="Legacy Stat Cat 2 Value" name="stat_cat_2_value" reporter:datatype="text"/>
4938             <field reporter:label="Edit Date" name="edit_date" reporter:datatype="timestamp"/>
4939             <field reporter:label="Create Date" name="create_date" reporter:datatype="timestamp"/>
4940             <field reporter:label="Owning Lib Name" name="owning_lib_name" reporter:datatype="text"/>
4941             <field reporter:label="Circ Lib Name" name="circ_lib_name" reporter:datatype="text"/>
4942             <field reporter:label="Owning Lib" name="owning_lib" reporter:datatype="link"/>
4943             <field reporter:label="Circ Lib" name="circ_lib" reporter:datatype="link"/>
4944             <field reporter:label="Creator" name="creator" reporter:datatype="link"/>
4945             <field reporter:label="Age Protection" name="age_protect" reporter:datatype="link"/>
4946             <field reporter:label="OPAC Visible" name="opac_visible" reporter:datatype="bool"/>
4947             <field reporter:label="Reference" name="ref" reporter:datatype="bool"/>
4948             <field reporter:label="Deposit Amount" name="deposit_amount" reporter:datatype="text"/>
4949             <field reporter:label="Deleted" name="deleted" reporter:datatype="bool"/>
4950             <field reporter:label="TCN" name="tcn_value" reporter:datatype="text"/>
4951             <field reporter:label="Status" name="status" reporter:datatype="link"/>
4952             <field reporter:label="Stop Fines Reason" name="stop_fines" reporter:datatype="text"/>
4953             <field reporter:label="Due Date" name="due_date" reporter:datatype="timestamp"/>
4954             <field reporter:label="Patron Barcode" name="patron_barcode" reporter:datatype="text"/>
4955             <field reporter:label="Patron Name" name="patron_name" reporter:datatype="text"/>
4956         </fields>
4957         <links>
4958             <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
4959             <link field="circ_lib" reltype="has_a" key="id" map="" class="aou"/>
4960             <link field="creator" reltype="has_a" key="id" map="" class="au"/>
4961             <link field="age_protect" reltype="has_a" key="id" map="" class="crahp"/>
4962             <link field="status" reltype="has_a" key="id" map="" class="ccs"/>
4963         </links>
4964     </class>
4965
4966     <class id="rmocbbol" controller="open-ils.reporter-store" oils_obj:fieldmapper="reporter::money::open_circ_balance_by_owning_lib" oils_persist:tablename="money.open_circ_balance_by_owning_lib" reporter:core="true" reporter:label="Open Circulation Billing by Owning Library">
4967         <fields oils_persist:primary="id">
4968             <field reporter:label="Circulation ID" name="id" reporter:datatype="link"/>
4969             <field reporter:label="Owning Library" name="owning_lib" reporter:datatype="org_unit"/>
4970             <field reporter:label="Billing Type" name="billing_type" reporter:datatype="text"/>
4971             <field reporter:label="Total Billed" name="billed" reporter:datatype="money"/>
4972         </fields>
4973         <links>
4974             <link field="id" reltype="has_a" key="id" map="" class="circ"/>
4975             <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
4976         </links>
4977     </class>
4978
4979     <class id="rmobbol" controller="open-ils.reporter-store" oils_obj:fieldmapper="reporter::money::open_balance_by_owning_lib" oils_persist:tablename="money.open_balance_by_owning_lib" reporter:core="true" reporter:label="Open Circulation Balance by Owning Library">
4980         <fields oils_persist:primary="owning_lib">
4981             <field reporter:label="Owning Library" name="owning_lib" reporter:datatype="org_unit"/>
4982             <field reporter:label="Billing Types" name="billing_types" reporter:datatype="text"/>
4983             <field reporter:label="Balance" name="balance" reporter:datatype="money"/>
4984         </fields>
4985         <links>
4986             <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
4987         </links>
4988     </class>
4989
4990     <class id="rmocbbcol" controller="open-ils.reporter-store" oils_obj:fieldmapper="reporter::money::open_circ_balance_by_circ_and_owning_lib" oils_persist:tablename="money.open_circ_balance_by_circ_and_owning_lib" reporter:core="true" reporter:label="Open Circulation Billing by Circulating Library and Owning Library">
4991         <fields oils_persist:primary="id">
4992             <field reporter:label="Circulation ID" name="id" reporter:datatype="link"/>
4993             <field reporter:label="Circulating Library" name="circ_lib" reporter:datatype="org_unit"/>
4994             <field reporter:label="Owning Library" name="owning_lib" reporter:datatype="org_unit"/>
4995             <field reporter:label="Billing Type" name="billing_type" reporter:datatype="text"/>
4996             <field reporter:label="Total Billed" name="billed" reporter:datatype="money"/>
4997         </fields>
4998         <links>
4999             <link field="id" reltype="has_a" key="id" map="" class="circ"/>
5000             <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
5001             <link field="circ_lib" reltype="has_a" key="id" map="" class="aou"/>
5002         </links>
5003     </class>
5004
5005     <class id="rmobbcol" controller="open-ils.reporter-store" oils_obj:fieldmapper="reporter::money::open_balance_by_circ_and_owning_lib" oils_persist:tablename="money.open_balance_by_circ_and_owning_lib" reporter:core="true" reporter:label="Open Circulation Balance by Circulating Library and Owning Library">
5006         <fields oils_persist:primary="circ_lib">
5007             <field reporter:label="Circulating Library" name="circ_lib" reporter:datatype="org_unit"/>
5008             <field reporter:label="Owning Library" name="owning_lib" reporter:datatype="org_unit"/>
5009             <field reporter:label="Billing Types" name="billing_types" reporter:datatype="text"/>
5010             <field reporter:label="Balance" name="balance" reporter:datatype="money"/>
5011         </fields>
5012         <links>
5013             <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
5014             <link field="circ_lib" reltype="has_a" key="id" map="" class="aou"/>
5015         </links>
5016     </class>
5017
5018     <class id="rmocbbhol" controller="open-ils.reporter-store" oils_obj:fieldmapper="reporter::money::open_circ_balance_by_usr_home_and_owning_lib" oils_persist:tablename="money.open_circ_balance_by_usr_home_and_owning_lib" reporter:core="true" reporter:label="Open Circulation Billing by User Home Library and Owning Library">
5019         <fields oils_persist:primary="id">
5020             <field reporter:label="Circulation ID" name="id" reporter:datatype="link"/>
5021             <field reporter:label="User Home Library" name="home_ou" reporter:datatype="org_unit"/>
5022             <field reporter:label="Owning Library" name="owning_lib" reporter:datatype="org_unit"/>
5023             <field reporter:label="Billing Type" name="billing_type" reporter:datatype="text"/>
5024             <field reporter:label="Total Billed" name="billed" reporter:datatype="money"/>
5025         </fields>
5026         <links>
5027             <link field="id" reltype="has_a" key="id" map="" class="circ"/>
5028             <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
5029             <link field="home_ou" reltype="has_a" key="id" map="" class="aou"/>
5030         </links>
5031     </class>
5032
5033     <class id="rmobbhol" controller="open-ils.reporter-store" oils_obj:fieldmapper="reporter::money::open_balance_by_usr_home_and_owning_lib" oils_persist:tablename="money.open_balance_by_usr_home_and_owning_lib" reporter:core="true" reporter:label="Open Circulation Balance by User Home Library and Owning Library">
5034         <fields oils_persist:primary="home_ou">
5035             <field reporter:label="User Home Library" name="home_ou" reporter:datatype="org_unit"/>
5036             <field reporter:label="Owning Library" name="owning_lib" reporter:datatype="org_unit"/>
5037             <field reporter:label="Billing Types" name="billing_types" reporter:datatype="text"/>
5038             <field reporter:label="Balance" name="balance" reporter:datatype="money"/>
5039         </fields>
5040         <links>
5041             <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
5042             <link field="home_ou" reltype="has_a" key="id" map="" class="aou"/>
5043         </links>
5044     </class>
5045         <class id="acqft" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::fund_tag" oils_persist:tablename="acq.fund_tag" reporter:label="Fund Tag">
5046                 <fields oils_persist:primary="id" oils_persist:sequence="acq.fund_tag_id_seq">
5047                         <field reporter:label="Fund Tag ID" name="id" reporter:datatype="id"/>
5048                         <field reporter:label="Fund Tag Owner" name="owner" reporter:datatype="org_unit"/>
5049                         <field reporter:label="Fund Tag Name" name="name" reporter:datatype="text"/>
5050                         <field reporter:label="Map Entries" name="map_entries" oils_persist:virtual="true" reporter:datatype="link"/>
5051                 </fields>
5052                 <links>
5053                         <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
5054                         <link field="map_entries" reltype="has_many" key="fund" map="" class="acqftm"/>
5055                 </links>
5056                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
5057                         <actions>
5058                                 <create permission="ADMIN_ACQ_FUND_TAG" context_field="owner"/>
5059                                 <retrieve permission="ADMIN_ACQ_FUND_TAG ADMIN_ACQ_FUND VIEW_FUND MANAGE_FUND" context_field="owner"/>
5060                                 <update permission="ADMIN_ACQ_FUND_TAG" context_field="owner"/>
5061                         <delete permission="ADMIN_ACQ_FUND_TAG" context_field="owner"/>
5062                         </actions>
5063                 </permacrud>
5064         </class>
5065         <class id="acqftm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::fund_tag_map" oils_persist:tablename="acq.fund_tag_map" reporter:label="Fund Tag Map">
5066                 <fields oils_persist:primary="id" oils_persist:sequence="acq.fund_tag_map_id_seq">
5067                         <field reporter:label="Map Entry ID" name="id" reporter:datatype="id"/>
5068                         <field reporter:label="Fund ID" name="fund" reporter:datatype="link"/>
5069                         <field reporter:label="Tag ID" name="tag" reporter:datatype="link"/>
5070                 </fields>
5071                 <links>
5072                         <link field="fund" reltype="has_a" key="id" map="" class="acqf"/>
5073                         <link field="tag" reltype="has_a" key="id" map="" class="acqft"/>
5074                         </links>
5075                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
5076                 <actions>
5077                                 <create permission="ADMIN_ACQ_FUND_TAG">
5078                                         <context link="tag" field="owner"/>
5079                                 </create>
5080                                 <retrieve permission="ADMIN_ACQ_FUND_TAG ADMIN_ACQ_FUND VIEW_FUND MANAGE_FUND">
5081                                         <context link="tag" field="owner"/>
5082                                 </retrieve>
5083                                 <update permission="ADMIN_ACQ_FUND_TAG">
5084                                         <context link="tag" field="owner"/>
5085                                 </update>
5086                                 <delete permission="ADMIN_ACQ_FUND_TAG">
5087                                         <context link="tag" field="owner"/>
5088                                 </delete>
5089                         </actions>
5090                 </permacrud>
5091         </class>
5092
5093         <!-- ********************************************************************************************************************* -->
5094
5095 </IDL>
5096
5097 <!--
5098     vim:noet:ts=4:sw=4:
5099 -->