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