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