]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/examples/fm_IDL.xml
e0ba9c1fe540eaaf9475363d4764f8f9de4cda93
[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="sfr" controller="open-ils.cstore" oils_obj:fieldmapper="serial::full_rec" oils_persist:tablename="serial.full_rec" reporter:label="Serial Full Record">
2377                 <fields oils_persist:primary="id" oils_persist:sequence="serial.full_rec_id_seq">
2378                         <field name="id" reporter:datatype="id" />
2379                         <field name="ind1" />
2380                         <field name="ind2" />
2381                         <field name="record" />
2382                         <field name="subfield" />
2383                         <field name="tag" />
2384                         <field name="value" />
2385                 </fields>
2386                 <links>
2387                         <link field="record" reltype="has_a" key="id" map="" class="sre"/>
2388                 </links>
2389         </class>
2390         <class id="ssub" controller="open-ils.cstore" oils_obj:fieldmapper="serial::subscription" oils_persist:tablename="serial.subscription" reporter:label="Subscription">
2391                 <fields oils_persist:primary="id" oils_persist:sequence="serial.subscription_id_seq">
2392                         <field name="active" reporter:datatype="bool"/>
2393                         <field reporter:label="Call Number" name="call_number" reporter:datatype="link"/>
2394                         <field reporter:label="URI" name="uri" reporter:datatype="link"/>
2395                         <field reporter:label="Start date" name="start_date" reporter:datatype="timestamp"/>
2396                         <field reporter:label="End date" name="end_date" reporter:datatype="timestamp"/>
2397                 </fields>
2398                 <links>
2399                         <link field="call_number" reltype="might_have" key="id" map="" class="acn"/>
2400                         <link field="uri" reltype="might_have" key="id" map="" class="auri"/>
2401                 </links>
2402         </class>
2403         <class id="sbu" controller="open-ils.cstore" oils_obj:fieldmapper="serial::binding_unit" oils_persist:tablename="serial.binding_unit" reporter:label="Binding Unit">
2404                 <fields oils_persist:primary="id" oils_persist:sequence="serial.binding_unit_id_seq">
2405                         <field name="active" reporter:datatype="bool"/>
2406                         <field reporter:label="Subscription" name="subscription" reporter:datatype="link"/>
2407                         <field reporter:label="Label" name="label" />
2408                 </fields>
2409                 <links>
2410                         <link field="subscription" reltype="has_a" key="id" map="" class="ssub"/>
2411                 </links>
2412         </class>
2413         <class id="siss" controller="open-ils.cstore" oils_obj:fieldmapper="serial::issuance" oils_persist:tablename="serial.issuance" reporter:label="Issuance">
2414                 <fields oils_persist:primary="id" oils_persist:sequence="serial.issuance_id_seq">
2415                         <field name="id" reporter:datatype="id" />
2416                         <field name="subscription" reporter:datatype="link"/>
2417                         <field name="target_copy" reporter:datatype="link"/>
2418                         <field name="location" reporter:datatype="link"/>
2419                         <field name="binding_unit" reporter:datatype="link"/>
2420                         <field name="label" />
2421                 </fields>
2422                 <links>
2423                         <link field="subscription" reltype="has_a" key="id" map="" class="ssub"/>
2424                         <link field="target_copy" reltype="might_have" key="id" map="" class="acp"/>
2425                         <link field="location" reltype="might_have" key="id" map="" class="acpl"/>
2426                         <link field="binding_unit" reltype="might_have" key="id" map="" class="sbu"/>
2427                 </links>
2428         </class>
2429         <class id="sbsum" controller="open-ils.cstore" oils_obj:fieldmapper="serial::bib_summary" oils_persist:tablename="serial.bib_summary" reporter:label="Bib Summary">
2430                 <fields oils_persist:primary="id" oils_persist:sequence="serial.bib_summary_id_seq">
2431                         <field name="id" reporter:datatype="id" />
2432                         <field name="subscription" reporter:datatype="link"/>
2433                         <field name="generated_coverage" reporter:datatype="text"/>
2434                         <field name="textual_holdings" reporter:datatype="text"/>
2435                 </fields>
2436                 <links>
2437                         <link field="subscription" reltype="has_a" key="id" map="" class="ssub"/>
2438                 </links>
2439         </class>
2440         <class id="sssum" controller="open-ils.cstore" oils_obj:fieldmapper="serial::sup_summary" oils_persist:tablename="serial.sup_summary" reporter:label="Supplemental Issue Summary">
2441                 <fields oils_persist:primary="id" oils_persist:sequence="serial.sup_summary_id_seq">
2442                         <field name="id" reporter:datatype="id" />
2443                         <field name="subscription" reporter:datatype="link"/>
2444                         <field name="generated_coverage" reporter:datatype="text"/>
2445                         <field name="textual_holdings" reporter:datatype="text"/>
2446                 </fields>
2447                 <links>
2448                         <link field="subscription" reltype="has_a" key="id" map="" class="ssub"/>
2449                 </links>
2450         </class>
2451         <class id="sisum" controller="open-ils.cstore" oils_obj:fieldmapper="serial::index_summary" oils_persist:tablename="serial.index_summary" reporter:label="Index Summary">
2452                 <fields oils_persist:primary="id" oils_persist:sequence="serial.index_summary_id_seq">
2453                         <field name="id" reporter:datatype="id" />
2454                         <field name="subscription" reporter:datatype="link"/>
2455                         <field name="generated_coverage" reporter:datatype="text"/>
2456                         <field name="textual_holdings" reporter:datatype="text"/>
2457                 </fields>
2458                 <links>
2459                         <link field="subscription" reltype="has_a" key="id" map="" class="ssub"/>
2460                 </links>
2461         </class>
2462
2463         <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">
2464                 <fields oils_persist:primary="id" oils_persist:sequence="asset.stat_cat_entry_copy_map_id_seq">
2465                         <field name="id" reporter:datatype="id" />
2466                         <field name="owning_copy" reporter:datatype="link"/>
2467                         <field name="stat_cat" reporter:datatype="link"/>
2468                         <field name="stat_cat_entry" reporter:datatype="link"/>
2469                 </fields>
2470                 <links>
2471                         <link field="owning_copy" reltype="has_a" key="id" map="" class="acp"/>
2472                         <link field="stat_cat_entry" reltype="has_a" key="id" map="" class="asce"/>
2473                         <link field="stat_cat" reltype="has_a" key="id" map="" class="asc"/>
2474                 </links>
2475         </class>
2476         <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">
2477                 <fields oils_persist:primary="code">
2478                         <field reporter:label="Item Type Code" name="code" reporter:selector="value" reporter:datatype="text"/>
2479                         <field reporter:label="Item Type" name="value"  reporter:datatype="text" oils_persist:i18n="true"/>
2480                 </fields>
2481                 <links/>
2482         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2483             <actions>
2484                 <create permission="ADMIN_MARC_CODE" global_required="true"/>
2485                 <retrieve/>
2486                 <update permission="ADMIN_MARC_CODE" global_required="true"/>
2487                 <delete permission="ADMIN_MARC_CODE" global_required="true"/>
2488             </actions>
2489         </permacrud>
2490         </class>
2491         <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">
2492                 <fields oils_persist:primary="code">
2493                         <field reporter:label="Bib Level Code" name="code"  reporter:datatype="text"/>
2494                         <field reporter:label="Bib Level" name="value"  reporter:datatype="text" oils_persist:i18n="true"/>
2495                 </fields>
2496                 <links/>
2497         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2498             <actions>
2499                 <create permission="CREATE_MARC_CODE" global_required="true"/>
2500                 <retrieve permission="CREATE_MARC_CODE UPDATE_MARC_CODE DELETE_MARC_CODE" global_required="true"/>
2501                 <update permission="UPDATE_MARC_CODE" global_required="true"/>
2502                 <delete permission="DELETE_MARC_CODE" global_required="true"/>
2503             </actions>
2504         </permacrud>
2505         </class>
2506         <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">
2507                 <fields oils_persist:primary="id" oils_persist:sequence="search.relevance_adjustment_id_seq">
2508                         <field reporter:label="ID" name="id"  reporter:datatype="id"/>
2509                         <field reporter:label="Active" name="active"  reporter:datatype="bool"/>
2510                         <field reporter:label="Index Field" name="field"  reporter:datatype="link"/>
2511                         <field reporter:label="Bump Type" name="bump_type"  reporter:datatype="text"/>
2512                         <field reporter:label="Multiplier" name="multiplier"  reporter:datatype="number"/>
2513                 </fields>
2514                 <links>
2515             <link field="field" reltype="has_a" key="id" map="" class="cmf"/>
2516         </links>
2517         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2518             <actions>
2519                 <create permission="CREATE_RELEVANCE_ADJUSTMENT" global_required="true"/>
2520                 <retrieve permission="CREATE_RELEVANCE_ADJUSTMENT UPDATE_RELEVANCE_ADJUSTMENT DELETE_RELEVANCE_ADJUSTMENT" global_required="true"/>
2521                 <update permission="UPDATE_RELEVANCE_ADJUSTMENT" global_required="true"/>
2522                 <delete permission="DELETE_RELEVANCE_ADJUSTMENT" global_required="true"/>
2523             </actions>
2524         </permacrud>
2525         </class>
2526         <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">
2527                 <fields oils_persist:primary="id" oils_persist:sequence="actor.org_lasso_id_seq">
2528                         <field name="id" reporter:datatype="id" />
2529                         <field name="name" reporter:datatype="text"/>
2530                 </fields>
2531                 <links/>
2532         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2533             <actions>
2534                 <create permission="CREATE_LASSO" global_required="true"/>
2535                 <retrieve permission="CREATE_LASSO UPDATE_LASSO DELETE_LASSO" global_required="true"/>
2536                 <update permission="UPDATE_LASSO" global_required="true"/>
2537                 <delete permission="DELETE_LASSO" global_required="true"/>
2538             </actions>
2539         </permacrud>
2540         </class>
2541         <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">
2542                 <fields oils_persist:primary="id" oils_persist:sequence="actor.org_lasso_map_id_seq">
2543                         <field name="id" reporter:datatype="id" />
2544                         <field name="lasso" reporter:datatype="link"/>
2545                         <field name="org_unit" reporter:datatype="org_unit"/>
2546                 </fields>
2547                 <links>
2548                         <link field="lasso" reltype="has_a" key="id" map="" class="lasso"/>
2549                         <link field="org_unit" reltype="has_a" key="id" map="" class="aou"/>
2550                 </links>
2551         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2552             <actions>
2553                 <create permission="CREATE_LASSO_MAP" global_required="true"/>
2554                 <retrieve permission="CREATE_LASSO_MAP UPDATE_LASSO_MAP DELETE_LASSO_MAP" global_required="true"/>
2555                 <update permission="UPDATE_LASSO_MAP" global_required="true"/>
2556                 <delete permission="DELETE_LASSO_MAP" global_required="true"/>
2557             </actions>
2558         </permacrud>
2559         </class>
2560         <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">
2561                 <fields oils_persist:primary="id" oils_persist:sequence="actor.org_unit_proximity_id_seq">
2562                         <field name="id" reporter:datatype="id" />
2563                         <field name="from_org" reporter:datatype="org_unit"/>
2564                         <field name="to_org" reporter:datatype="org_unit"/>
2565                         <field name="prox" reporter:datatype="int" />
2566                 </fields>
2567                 <links>
2568                         <link field="from_org" reltype="has_a" key="id" map="" class="aou"/>
2569                         <link field="to_org" reltype="has_a" key="id" map="" class="aou"/>
2570                 </links>
2571         </class>
2572         <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">
2573                 <fields oils_persist:primary="id" oils_persist:sequence="actor.org_unit_proximity_id_seq">
2574                         <field reporter:label="ID" name="id" reporter:datatype="id" />
2575                         <field reporter:label="Relevance" name="rel" reporter:datatype="float"/>
2576                         <field reporter:label="Record" name="record" reporter:datatype="link"/>
2577                         <field reporter:label="Total Results" name="total" reporter:datatype="int" />
2578                         <field reporter:label="Checked" name="checked" reporter:datatype="int"/>
2579                         <field reporter:label="Visible" name="visible" reporter:datatype="int"/>
2580                         <field reporter:label="Deleted" name="deleted" reporter:datatype="int"/>
2581                         <field reporter:label="Excluded" name="excluded" reporter:datatype="int"/>
2582                 </fields>
2583                 <links/>
2584         </class>
2585         <class id="asv" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="action::survey" oils_persist:tablename="action.survey" reporter:label="Survey">
2586                 <fields oils_persist:primary="id" oils_persist:sequence="action.survey_id_seq">
2587                         <field reporter:label="Questions" name="questions" oils_persist:virtual="true" reporter:datatype="link"/>
2588                         <field reporter:label="Responses" name="responses" oils_persist:virtual="true" reporter:datatype="link"/>
2589                         <field reporter:label="Description" name="description" reporter:datatype="text"/>
2590                         <field reporter:label="Survey End Date/Time" name="end_date" reporter:datatype="timestamp"/>
2591                         <field reporter:label="Survey ID" name="id" reporter:datatype="id"/>
2592                         <field reporter:label="Name" name="name" reporter:datatype="text"/>
2593                         <field reporter:label="OPAC Survey?" name="opac" reporter:datatype="bool"/>
2594                         <field reporter:label="Owning Library" name="owner" reporter:datatype="org_unit"/>
2595                         <field reporter:label="Poll Style?" name="poll" reporter:datatype="bool"/>
2596                         <field reporter:label="Is Required?" name="required" reporter:datatype="bool"/>
2597                         <field reporter:label="Survey Start Date/Time" name="start_date" reporter:datatype="timestamp"/>
2598                         <field reporter:label="Display in User Summary" name="usr_summary" reporter:datatype="bool"/>
2599                 </fields>
2600                 <links>
2601                         <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
2602                         <link field="responses" reltype="has_many" key="survey" map="" class="asvr"/>
2603                         <link field="questions" reltype="has_many" key="survey" map="" class="asvq"/>
2604                 </links>
2605         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2606             <actions>
2607                 <create permission="ADMIN_SURVEY" context_field="owner"/>
2608                 <retrieve/>
2609                 <update permission="ADMIN_SURVEY" context_field="owner"/>
2610                 <delete permission="ADMIN_SURVEY" context_field="owner"/>
2611             </actions>
2612         </permacrud>
2613         </class>
2614         <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">
2615                 <fields oils_persist:primary="id" oils_persist:sequence="actor.org_address_id_seq">
2616                         <field name="address_type"  reporter:datatype="text"/>
2617                         <field name="city"  reporter:datatype="text"/>
2618                         <field name="country"  reporter:datatype="text"/>
2619                         <field name="county"  reporter:datatype="text"/>
2620                         <field name="id" reporter:datatype="id" />
2621                         <field name="org_unit" reporter:datatype="org_unit"/>
2622                         <field name="post_code"  reporter:datatype="text"/>
2623                         <field name="state"  reporter:datatype="text"/>
2624                         <field name="street1"  reporter:datatype="text"/>
2625                         <field name="street2"  reporter:datatype="text"/>
2626                         <field name="valid" reporter:datatype="bool"/>
2627                 </fields>
2628                 <links>
2629                         <link field="org_unit" reltype="has_a" key="id" map="" class="aou"/>
2630                 </links>
2631         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2632             <actions>
2633                 <create permission="CREATE_ORG_ADDRESS" context_field="org_unit"/>
2634                 <retrieve/>
2635                 <update permission="UPDATE_ORG_ADDRESS" context_field="org_unit"/>
2636                 <delete permission="DELETE_ORG_ADDRESS" context_field="org_unit"/>
2637             </actions>
2638         </permacrud>
2639         </class>
2640         <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">
2641                 <fields oils_persist:primary="id" oils_persist:sequence="action.hold_request_id_seq">
2642                         <field name="status" oils_persist:virtual="true" />
2643                         <field reporter:label="Transit" name="transit" oils_persist:virtual="true" />
2644                         <field reporter:label="Capture Date/Time" name="capture_time" reporter:datatype="timestamp"/>
2645                         <field reporter:label="Currently Targeted Copy" name="current_copy" />
2646                         <field reporter:label="Notify by Email?" name="email_notify" reporter:datatype="bool"/>
2647                         <field reporter:label="Hold Expire Date/Time" name="expire_time" reporter:datatype="timestamp"/>
2648                         <field reporter:label="Fulfilling Library" name="fulfillment_lib" reporter:datatype="org_unit"/>
2649                         <field reporter:label="Fulfilling Staff" name="fulfillment_staff" />
2650                         <field reporter:label="Fulfillment Date/Time" name="fulfillment_time" reporter:datatype="timestamp"/>
2651                         <field reporter:label="Hold Type" name="hold_type" reporter:datatype="text"/>
2652                         <field reporter:label="Holdable Formats (for M-type hold)" name="holdable_formats" reporter:datatype="text"/>
2653                         <field reporter:label="Hold ID" name="id" reporter:datatype="id" />
2654                         <field reporter:label="Notifications Phone Number" name="phone_notify" reporter:datatype="text"/>
2655                         <field reporter:label="Pickup Library" name="pickup_lib" reporter:datatype="org_unit"/>
2656                         <field reporter:label="Last Targeting Date/Time" name="prev_check_time" reporter:datatype="timestamp"/>
2657                         <field reporter:label="Requesting Library" name="request_lib" reporter:datatype="org_unit"/>
2658                         <field reporter:label="Request Date/Time" name="request_time" reporter:datatype="timestamp"/>
2659                         <field reporter:label="Requesting User" name="requestor" reporter:datatype="link"/>
2660                         <field reporter:label="Item Selection Depth" name="selection_depth" />
2661                         <field reporter:label="Selection Locus" name="selection_ou" reporter:datatype="org_unit"/>
2662                         <field reporter:label="Target Object ID" name="target" reporter:datatype="link"/>
2663                         <field reporter:label="Hold User" name="usr" reporter:datatype="link"/>
2664                         <field reporter:label="Hold Cancel Date/Time" name="cancel_time" reporter:datatype="timestamp"/>
2665                         <field name="notify_time" oils_persist:virtual="true" reporter:datatype="timestamp"/>
2666                         <field name="notify_count" oils_persist:virtual="true" reporter:datatype="int" />
2667                         <field reporter:label="Notifications" name="notifications" oils_persist:virtual="true" reporter:datatype="link"/>
2668                         <field reporter:label="Bib Record link" name="bib_rec" oils_persist:virtual="true" reporter:datatype="link"/>
2669                         <field reporter:label="Eligible Copies" name="eligible_copies" oils_persist:virtual="true" reporter:datatype="link"/>
2670                         <field reporter:label="Currently Frozen" name="frozen" reporter:datatype="bool"/>
2671                         <field reporter:label="Thaw Date (if frozen)" name="thaw_date" reporter:datatype="timestamp"/>
2672                         <field reporter:label="Cancelation cause" name="cancel_cause" reporter:datatype="link" />
2673                         <field reporter:label="Cancelation note" name="cancel_note" reporter:datatype="text" />
2674                         <field reporter:label="Notes" name="notes" reporter:datatype="link" oils_persist:virtual="true"/>
2675                 </fields>
2676                 <links>
2677                         <link field="fulfillment_lib" reltype="has_a" key="id" map="" class="aou"/>
2678                         <link field="fulfillment_staff" reltype="has_a" key="id" map="" class="au"/>
2679                         <link field="pickup_lib" reltype="has_a" key="id" map="" class="aou"/>
2680                         <link field="selection_ou" reltype="has_a" key="id" map="" class="aou"/>
2681                         <link field="requestor" reltype="has_a" key="id" map="" class="au"/>
2682                         <link field="current_copy" reltype="has_a" key="id" map="" class="acp"/>
2683                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
2684                         <link field="request_lib" reltype="has_a" key="id" map="" class="aou"/>
2685                         <link field="transit" reltype="might_have" key="hold" map="" class="ahtc"/>
2686                         <link field="notifications" reltype="has_many" key="hold" map="" class="ahn"/>
2687                         <link field="eligible_copies" reltype="has_many" key="hold" map="target_copy" class="ahcm"/>
2688                         <link field="bib_rec" reltype="might_have" key="id" map="" class="rhrr"/>
2689                         <link field="cancel_cause" reltype="might_have" key="id" map="" class="ahrcc"/>
2690                         <link field="notes" reltype="has_many" key="hold" map="" class="ahrn"/>
2691                 </links>
2692         </class>
2693         <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">
2694                 <fields oils_persist:primary="id" oils_persist:sequence="action.hold_request_note_id_seq">
2695                         <field reporter:label="ID" name="id" reporter:datatype="id"/>
2696                         <field reporter:label="Hold ID" name="hold" reporter:datatype="link"/>
2697                         <field reporter:label="Title" name="title" reporter:datatype="text"/>
2698                         <field reporter:label="Body" name="body" reporter:datatype="text"/>
2699                         <field reporter:label="Slip?" name="slip" reporter:datatype="bool"/>
2700                         <field reporter:label="Pub?" name="pub" reporter:datatype="bool"/>
2701                         <field reporter:label="Staff?" name="staff" reporter:datatype="bool"/>
2702                 </fields>
2703                 <links>
2704                         <link field="hold" reltype="has_a" key="id" map="" class="ahr"/>
2705                 </links>
2706         </class>
2707         <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">
2708                 <fields oils_persist:primary="id" oils_persist:sequence="actor.org_unit_id_seq">
2709                         <field reporter:label="Subordinate Organizational Units" name="children" oils_persist:virtual="true" reporter:datatype="org_unit"/>
2710                         <field reporter:label="Billing Address" name="billing_address" reporter:datatype="link"/>
2711                         <field reporter:label="Holds Receiving Address" name="holds_address" reporter:datatype="link"/>
2712                         <field reporter:label="Organizational Unit ID" name="id" reporter:datatype="org_unit" reporter:selector="shortname"/>
2713                         <field reporter:label="ILL Receiving Address" name="ill_address" reporter:datatype="link"/>
2714                         <field reporter:label="Mailing Address" name="mailing_address" reporter:datatype="link"/>
2715                         <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
2716                         <field reporter:label="Organizational Unit Type" name="ou_type" reporter:datatype="link"/>
2717                         <field reporter:label="Parent Organizational Unit" name="parent_ou" reporter:datatype="link"/>
2718                         <field reporter:label="Short (Policy) Name" name="shortname" reporter:datatype="text"/>
2719                         <field reporter:label="Email Address" name="email" reporter:datatype="text"/>
2720                         <field reporter:label="Phone Number" name="phone" reporter:datatype="text"/>
2721                         <field reporter:label="OPAC Visible" name="opac_visible" reporter:datatype="bool"/>
2722                         <field reporter:label="Users" name="users" oils_persist:virtual="true" reporter:datatype="link"/>
2723                         <field reporter:label="Closed Dates" name="closed_dates" oils_persist:virtual="true" reporter:datatype="link"/>
2724                         <field reporter:label="Circulations" name="circulations" oils_persist:virtual="true" reporter:datatype="link"/>
2725                         <field reporter:label="Settings" name="settings" oils_persist:virtual="true" reporter:datatype="link"/>
2726                         <field reporter:label="Addresses" name="addresses" oils_persist:virtual="true" reporter:datatype="link"/>
2727                         <field reporter:label="Checkins" name="checkins" oils_persist:virtual="true" reporter:datatype="link"/>
2728                         <field reporter:label="Workstations" name="workstations" oils_persist:virtual="true" reporter:datatype="link"/>
2729                 </fields>
2730                 <links>
2731                         <link field="billing_address" reltype="has_a" key="id" map="" class="aoa"/>
2732                         <link field="holds_address" reltype="has_a" key="id" map="" class="aoa"/>
2733                         <link field="ou_type" reltype="has_a" key="id" map="" class="aout"/>
2734                         <link field="mailing_address" reltype="has_a" key="id" map="" class="aoa"/>
2735                         <link field="parent_ou" reltype="has_a" key="id" map="" class="aou"/>
2736                         <link field="ill_address" reltype="has_a" key="id" map="" class="aoa"/>
2737                         <link field="users" reltype="has_many" key="home_ou" map="" class="au"/>
2738                         <link field="closed_dates" reltype="has_many" key="org_unit" map="" class="aoucd"/>
2739                         <link field="children" reltype="has_many" key="parent_ou" map="" class="aou"/>
2740                         <link field="circulations" reltype="has_many" key="circ_lib" map="" class="circ"/>
2741                         <link field="settings" reltype="has_many" key="org_unit" map="" class="aous"/>
2742                         <link field="addresses" reltype="has_many" key="org_unit" map="" class="aoa"/>
2743                         <link field="checkins" reltype="has_many" key="checkin_lib" map="" class="circ"/>
2744                         <link field="workstations" reltype="has_many" key="owning_lib" map="" class="aws"/>
2745                         <link field="distribution_formulas" reltype="has_many" key="owner" map="" class="acqdf"/>
2746                         <link field="distribution_formula_entries" reltype="has_many" key="owning_lib" map="" class="acqdfe"/>
2747                 </links>
2748         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2749             <actions>
2750                 <create permission="CREATE_ORG_UNIT" context_field="parent_ou"/>
2751                 <retrieve permission="CREATE_ORG_UNIT UPDATE_ORG_UNIT DELETE_ORG_UNIT">
2752                     <context field="id"/>
2753                     <context field="parent_ou"/>
2754                                 </retrieve>
2755                 <update permission="UPDATE_ORG_UNIT" context_field="id"/>
2756                 <delete permission="DELETE_ORG_UNIT" context_field="parent_ou"/>
2757             </actions>
2758         </permacrud>
2759         </class>
2760         <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">
2761                 <fields oils_persist:primary="id" oils_persist:sequence="container.call_number_bucket_id_seq">
2762                         <field name="items" oils_persist:virtual="true" reporter:datatype="link"/>
2763                         <field name="btype" reporter:datatype="text"/>
2764                         <field name="id" reporter:datatype="id" />
2765                         <field name="name"  reporter:datatype="text"/>
2766                         <field name="owner" reporter:datatype="link"/>
2767                         <field name="pub" reporter:datatype="bool"/>
2768                         <field name="create_time" reporter:datatype="timestamp" />
2769                 </fields>
2770                 <links>
2771                         <link field="owner" reltype="has_a" key="id" map="" class="au"/>
2772                         <link field="items" reltype="has_many" key="bucket" map="" class="ccnbi"/>
2773                 </links>
2774         </class>
2775         <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">
2776                 <fields oils_persist:primary="id" oils_persist:sequence="container.call_number_bucket_note_id_seq">
2777                         <field name="id" reporter:datatype="id" />
2778                         <field name="bucket" reporter:datatype="link"/>
2779                         <field name="note" reporter:datatype="text" />
2780                 </fields>
2781                 <links>
2782                         <link field="bucket" reltype="has_a" key="id" map="" class="ccnb"/>
2783                 </links>
2784         </class>
2785         <class id="asc" controller="open-ils.cstore" oils_obj:fieldmapper="asset::stat_cat" oils_persist:tablename="asset.stat_cat" reporter:label="Asset Statistical Category">
2786                 <fields oils_persist:primary="id" oils_persist:sequence="asset.stat_cat_id_seq">
2787                         <field reporter:label="Entries" name="entries" oils_persist:virtual="true" reporter:datatype="link"/>
2788                         <field reporter:label="Stat Cat ID" name="id" reporter:datatype="id" reporter:selector="name"/>
2789                         <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
2790                         <field reporter:label="OPAC Visible" name="opac_visible" reporter:datatype="bool"/>
2791                         <field reporter:label="Owning Library" name="owner" reporter:datatype="org_unit"/>
2792                 </fields>
2793                 <links>
2794                         <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
2795                         <link field="entries" reltype="has_many" key="stat_cat" map="" class="asce"/>
2796                 </links>
2797         </class>
2798         <class id="ac" controller="open-ils.cstore" oils_obj:fieldmapper="actor::card" oils_persist:tablename="actor.card" reporter:label="Library Card">
2799                 <fields oils_persist:primary="id" oils_persist:sequence="actor.card_id_seq">
2800                         <field reporter:label="IsActive?" name="active" reporter:datatype="bool"/>
2801                         <field reporter:label="Barcode" name="barcode" reporter:datatype="text"/>
2802                         <field reporter:label="Card ID" name="id" reporter:datatype="id" />
2803                         <field reporter:label="User" name="usr" reporter:datatype="link"/>
2804                 </fields>
2805                 <links>
2806                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
2807                 </links>
2808         </class>
2809         <class id="actsc" controller="open-ils.cstore" oils_obj:fieldmapper="actor::stat_cat" oils_persist:tablename="actor.stat_cat" reporter:label="User Statistical Category">
2810                 <fields oils_persist:primary="id" oils_persist:sequence="actor.stat_cat_id_seq">
2811                         <field reporter:label="Entries" name="entries" oils_persist:virtual="true" reporter:datatype="link"/>
2812                         <field reporter:label="Stat Cat ID" name="id" reporter:datatype="id" reporter:selector="name"/>
2813                         <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
2814                         <field reporter:label="OPAC Visible" name="opac_visible" reporter:datatype="bool"/>
2815                         <field reporter:label="Owning Library" name="owner" reporter:datatype="org_unit"/>
2816                         <field reporter:label="User Summary" name="usr_summary" reporter:datatype="bool"/>
2817                 </fields>
2818                 <links>
2819                         <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
2820                         <link field="entries" reltype="has_many" key="stat_cat" map="" class="actsce"/>
2821                 </links>
2822         </class>
2823         <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">
2824                 <fields oils_persist:primary="id" oils_persist:sequence="metabib.series_field_entry_id_seq">
2825                         <field name="field" reporter:datatype="link"/>
2826                         <field name="id" reporter:datatype="id" />
2827                         <field name="source" reporter:datatype="link"/>
2828                         <field name="value"  reporter:datatype="text"/>
2829                 </fields>
2830                 <links>
2831                         <link field="source" reltype="has_a" key="id" map="" class="bre"/>
2832                         <link field="field" reltype="has_a" key="id" map="" class="cmf"/>
2833                 </links>
2834         </class>
2835         <class id="cub" controller="open-ils.cstore" oils_obj:fieldmapper="container::user_bucket" oils_persist:tablename="container.user_bucket" reporter:label="User Bucket">
2836                 <fields oils_persist:primary="id" oils_persist:sequence="container.user_bucket_id_seq">
2837                         <field name="items" oils_persist:virtual="true" reporter:datatype="link"/>
2838                         <field name="btype" reporter:datatype="text"/>
2839                         <field name="id" reporter:datatype="id" />
2840                         <field name="name"  reporter:datatype="text"/>
2841                         <field name="owner" reporter:datatype="link"/>
2842                         <field name="pub" reporter:datatype="bool"/>
2843                         <field name="create_time" reporter:datatype="timestamp" />
2844                 </fields>
2845                 <links>
2846                         <link field="owner" reltype="has_a" key="id" map="" class="au"/>
2847                         <link field="items" reltype="has_many" key="bucket" map="" class="cubi"/>
2848                 </links>
2849         </class>
2850         <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">
2851                 <fields oils_persist:primary="id" oils_persist:sequence="container.user_bucket_note_id_seq">
2852                         <field name="id" reporter:datatype="id" />
2853                         <field name="bucket" reporter:datatype="link"/>
2854                         <field name="note" reporter:datatype="text" />
2855                 </fields>
2856                 <links>
2857                         <link field="bucket" reltype="has_a" key="id" map="" class="cub"/>
2858                 </links>
2859         </class>
2860         <class id="mcrp" controller="open-ils.cstore" oils_obj:fieldmapper="money::credit_payment" oils_persist:tablename="money.credit_payment" reporter:label="House Credit Payment">
2861                 <fields oils_persist:primary="id" oils_persist:sequence="money.payment_id_seq">
2862                         <field reporter:label="Accepting Staff Member" name="accepting_usr" reporter:datatype="link"/>
2863                         <field reporter:label="Amount" name="amount" reporter:datatype="money" />
2864                         <field reporter:label="Amount Collected" name="amount_collected" reporter:datatype="money" />
2865                         <field reporter:label="Pyament ID" name="id" reporter:datatype="id" />
2866                         <field reporter:label="Payment Note" name="note"  reporter:datatype="text"/>
2867                         <field reporter:label="Payment Timestamp" name="payment_ts" reporter:datatype="timestamp"/>
2868                         <field reporter:label="Transaction" name="xact" reporter:datatype="link"/>
2869                         <field reporter:label="Payment Type" name="payment_type" oils_persist:virtual="true"  reporter:datatype="text"/>
2870                         <field reporter:label="Payment link" name="payment" oils_persist:virtual="true" reporter:datatype="link"/>
2871                 </fields>
2872                 <links>
2873                         <link field="payment" reltype="might_have" key="id" map="" class="mp"/>
2874                         <link field="accepting_usr" reltype="has_a" key="id" map="" class="au"/>
2875                         <link field="xact" reltype="has_a" key="id" map="" class="mbt"/>
2876                 </links>
2877         </class>
2878         <class id="afr" controller="open-ils.cstore" oils_obj:fieldmapper="authority::full_rec" oils_persist:tablename="authority.full_rec" reporter:label="Full Authority Record">
2879                 <fields oils_persist:primary="id" oils_persist:sequence="authority.full_rec_id_seq">
2880                         <field name="id" reporter:datatype="id" />
2881                         <field name="ind1" />
2882                         <field name="ind2" />
2883                         <field name="record" />
2884                         <field name="subfield" />
2885                         <field name="tag" />
2886                         <field name="value" />
2887                 </fields>
2888                 <links>
2889                         <link field="record" reltype="has_a" key="id" map="" class="are"/>
2890                 </links>
2891         </class>
2892         <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">
2893                 <fields oils_persist:primary="id" oils_persist:sequence="config.non_cataloged_type_id_seq">
2894                         <field reporter:label="Circulation Duration" name="circ_duration" reporter:datatype="interval"/>
2895                         <field reporter:label="Non-cat Type ID" name="id" reporter:selector="name" reporter:datatype="id"/>
2896                         <field reporter:label="In House?" name="in_house" reporter:datatype="bool"/>
2897                         <field reporter:label="Name" name="name"  reporter:datatype="text" oils_persist:i18n="true"/>
2898                         <field reporter:label="Owning Library" name="owning_lib"  reporter:datatype="org_unit"/>
2899                 </fields>
2900                 <links>
2901                         <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
2902                 </links>
2903         </class>
2904         <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">
2905                 <fields oils_persist:primary="id" oils_persist:sequence="actor.org_unit_type_id_seq">
2906                         <field reporter:label="Subordinate Types" name="children" oils_persist:virtual="true" reporter:datatype="link"/>
2907                         <field reporter:label="Can Have Users?" name="can_have_users" reporter:datatype="bool"/>
2908                         <field reporter:label="Can Have Volumes?" name="can_have_vols" reporter:datatype="bool"/>
2909                         <field reporter:label="Type Depth" name="depth" reporter:datatype="int" />
2910                         <field reporter:label="Type ID" name="id" reporter:selector="name" reporter:datatype="id"/>
2911                         <field reporter:label="Type Name" name="name"  reporter:datatype="text" oils_persist:i18n="true"/>
2912                         <field reporter:label="OPAC Label" name="opac_label"  reporter:datatype="text" oils_persist:i18n="true"/>
2913                         <field reporter:label="Parent Type" name="parent" reporter:datatype="link"/>
2914                         <field reporter:label="Org Units" name="org_units" oils_persist:virtual="true"  reporter:datatype="org_unit"/>
2915                 </fields>
2916                 <links>
2917                         <link field="parent" reltype="has_a" key="id" map="" class="aout"/>
2918                         <link field="children" reltype="has_many" key="parent" map="" class="aout"/>
2919                         <link field="org_units" reltype="has_many" key="ou_type" map="" class="aou"/>
2920                 </links>
2921         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2922             <actions>
2923                 <create permission="CREATE_ORG_TYPE" global_required="true"/>
2924                 <retrieve permission="CREATE_ORG_UNIT UPDATE_ORG_UNIT DELETE_ORG_UNIT" global_required="true"/>
2925                 <update permission="UPDATE_ORG_TYPE" global_required="true"/>
2926                 <delete permission="DELETE_ORG_TYPE" global_required="true"/>
2927             </actions>
2928         </permacrud>
2929         </class>
2930         <class id="bren" controller="open-ils.cstore" oils_obj:fieldmapper="biblio::record_note" oils_persist:tablename="biblio.record_note" reporter:label="Bib Record Note">
2931                 <fields oils_persist:primary="id" oils_persist:sequence="biblio.record_note_id_seq">
2932                         <field name="create_date" reporter:datatype="timestamp"/>
2933                         <field name="creator" reporter:datatype="link"/>
2934                         <field name="edit_date" reporter:datatype="timestamp"/>
2935                         <field name="editor" reporter:datatype="link"/>
2936                         <field name="id" reporter:datatype="id" />
2937                         <field name="pub" reporter:datatype="bool"/>
2938                         <field name="record" reporter:datatype="link"/>
2939                         <field name="value"  reporter:datatype="text"/>
2940                 </fields>
2941                 <links>
2942                         <link field="creator" reltype="has_a" key="id" map="" class="au"/>
2943                         <link field="editor" reltype="has_a" key="id" map="" class="au"/>
2944                         <link field="record" reltype="has_a" key="id" map="" class="bre"/>
2945                 </links>
2946         </class>
2947         <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">
2948                 <fields oils_persist:primary="usr" oils_persist:sequence="">
2949                         <field name="balance_owed" reporter:datatype="money" />
2950                         <field name="total_owed" reporter:datatype="money" />
2951                         <field name="total_paid" reporter:datatype="money" />
2952                         <field name="usr" reporter:datatype="link"/>
2953                 </fields>
2954                 <links>
2955                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
2956                 </links>
2957         </class>
2958         <class id="mg" controller="open-ils.cstore" oils_obj:fieldmapper="money::grocery" oils_persist:tablename="money.grocery" reporter:label="Grocery Transaction">
2959                 <fields oils_persist:primary="id" oils_persist:sequence="money.billable_xact_id_seq">
2960                         <field reporter:label="Billing Location" name="billing_location" reporter:datatype="link"/>
2961                         <field reporter:label="Transaction ID" name="id" reporter:datatype="id" />
2962                         <field reporter:label="Note" name="note"  reporter:datatype="text"/>
2963                         <field reporter:label="User" name="usr" reporter:datatype="link"/>
2964                         <field reporter:label="Transaction Finish Timestamp" name="xact_finish" reporter:datatype="timestamp" />
2965                         <field reporter:label="Transaction Start Timestamp" name="xact_start" reporter:datatype="timestamp" />
2966                         <field reporter:label="Billings" name="billings" oils_persist:virtual="true" reporter:datatype="link"/>
2967                         <field reporter:label="Payments" name="payments" oils_persist:virtual="true" reporter:datatype="link"/>
2968                         <field reporter:label="Billable Transaction link" name="billable_transaction" oils_persist:virtual="true" reporter:datatype="link"/>
2969                         <field reporter:label="Billing Totals" name="billing_total" oils_persist:virtual="true" reporter:datatype="money"/>
2970                         <field reporter:label="Payment Totals" name="payment_total" oils_persist:virtual="true" reporter:datatype="money"/>
2971                 </fields>
2972                 <links>
2973                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
2974                         <link field="billable_transaction" reltype="might_have" key="id" map="" class="mbt"/>
2975                         <link field="payments" reltype="has_many" key="xact" map="" class="mp"/>
2976                         <link field="billings" reltype="has_many" key="xact" map="" class="mb"/>
2977                         <link field="billing_location" reltype="has_a" key="id" map="" class="aou"/>
2978                         <link field="billing_total" reltype="might_have" key="xact" map="" class="rxbt"/>
2979                         <link field="payment_total" reltype="might_have" key="xact" map="" class="rxpt"/>
2980                 </links>
2981         </class>
2982         <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">
2983                 <fields oils_persist:primary="id" oils_persist:sequence="config.bib_source_id_seq">
2984                         <field name="id" reporter:selector="source" reporter:datatype="id"/>
2985                         <field name="quality" reporter:datatype="int" />
2986                         <field name="source" reporter:datatype="text"/>
2987                         <field name="transcendant" reporter:datatype="bool"/>
2988                 </fields>
2989                 <links/>
2990         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
2991             <actions>
2992                 <create permission="CREATE_BIB_SOURCE" global_required="true"/>
2993                 <retrieve/>
2994                 <update permission="UPDATE_BIB_SOURCE" global_required="true"/>
2995                 <delete permission="DELETE_BIB_SOURCE" global_required="true"/>
2996             </actions>
2997         </permacrud>
2998         </class>
2999         <class id="mbt" controller="open-ils.cstore" oils_obj:fieldmapper="money::billable_transaction" oils_persist:tablename="money.billable_xact" reporter:label="Billable Transaction">
3000                 <fields oils_persist:primary="id" oils_persist:sequence="money.billable_xact_id_seq">
3001                         <field reporter:label="Transaction ID" name="id" reporter:datatype="id" />
3002                         <field reporter:label="User" name="usr" reporter:datatype="link"/>
3003                         <field reporter:label="Transaction Finish Date/Time" name="xact_finish" reporter:datatype="timestamp"/>
3004                         <field reporter:label="Transaction Start Date/Time" name="xact_start" reporter:datatype="timestamp"/>
3005                         <field reporter:label="Unrecovered Debt" name="unrecovered" reporter:datatype="bool"/>
3006                         <field reporter:label="Grocery Billing link" name="grocery" oils_persist:virtual="true" reporter:datatype="link"/>
3007                         <field reporter:label="Circulation Billing link" name="circulation" oils_persist:virtual="true" reporter:datatype="link"/>
3008                         <field reporter:label="Billing Line Items" name="billings" oils_persist:virtual="true" reporter:datatype="link"/>
3009                         <field reporter:label="Payment Line Items" name="payments" oils_persist:virtual="true" reporter:datatype="link"/>
3010                         <field reporter:label="Billing Totals" name="billing_total" oils_persist:virtual="true" reporter:datatype="money"/>
3011                         <field reporter:label="Payment Totals" name="payment_total" oils_persist:virtual="true" reporter:datatype="money"/>
3012                         <field reporter:label="Payment Summary" name="summary" oils_persist:virtual="true" reporter:datatype="link"/>
3013                 </fields>
3014                 <links>
3015                         <link field="grocery" reltype="might_have" key="id" map="" class="mg"/>
3016                         <link field="circulation" reltype="might_have" key="id" map="" class="circ"/>
3017                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
3018                         <link field="payments" reltype="has_many" key="xact" map="" class="mp"/>
3019                         <link field="billings" reltype="has_many" key="xact" map="" class="mb"/>
3020                         <link field="billing_total" reltype="might_have" key="xact" map="" class="rxbt"/>
3021                         <link field="payment_total" reltype="might_have" key="xact" map="" class="rxpt"/>
3022                         <link field="summary" reltype="might_have" key="id" map="" class="mbts"/>
3023                 </links>
3024         </class>
3025         <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">
3026                 <fields oils_persist:primary="id" oils_persist:sequence="actor.stat_cat_entry_id_seq">
3027                         <field reporter:label="Entry ID" name="id" reporter:datatype="id" />
3028                         <field reporter:label="Entry Owner" name="owner" reporter:datatype="link"/>
3029                         <field reporter:label="Stat Cat" name="stat_cat" reporter:datatype="link"/>
3030                         <field reporter:label="Entry Value" name="value" reporter:datatype="text"/>
3031                 </fields>
3032                 <links>
3033                         <link field="stat_cat" reltype="has_a" key="id" map="" class="actsc"/>
3034                         <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
3035                 </links>
3036         </class>
3037         <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">
3038                 <fields oils_persist:primary="id" oils_persist:sequence="container.user_bucket_item_id_seq">
3039                         <field name="bucket" reporter:datatype="link"/>
3040                         <field name="id" reporter:datatype="id" />
3041                         <field name="target_user" reporter:datatype="link"/>
3042                         <field name="create_time" reporter:datatype="timestamp" />
3043                         <field name="pos" reporter:datatype="int" />
3044                         <field name="notes" oils_persist:virtual="true" reporter:datatype="link" />
3045                 </fields>
3046                 <links>
3047                         <link field="target_user" reltype="has_a" key="id" map="" class="au"/>
3048                         <link field="bucket" reltype="has_a" key="id" map="" class="cub"/>
3049             <link field="notes" reltype="has_many" map="" key="item" class="cubin"/>
3050                 </links>
3051         </class>
3052         <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">
3053                 <fields oils_persist:primary="id" oils_persist:sequence="container.user_bucket_item_note_id_seq">
3054                         <field name="id" reporter:datatype="id" />
3055                         <field name="item" reporter:datatype="link"/>
3056                         <field name="note" reporter:datatype="text" />
3057                 </fields>
3058                 <links>
3059                         <link field="item" reltype="has_a" key="id" map="" class="cubi"/>
3060                 </links>
3061         </class>
3062         <class id="mus" controller="open-ils.cstore" oils_obj:fieldmapper="money::user_summary" oils_persist:tablename="money.usr_summary" reporter:label="User Summary">
3063                 <fields oils_persist:primary="usr" oils_persist:sequence="">
3064                         <field name="balance_owed" reporter:datatype="money" />
3065                         <field name="total_owed" reporter:datatype="money" />
3066                         <field name="total_paid" reporter:datatype="money" />
3067                         <field name="usr" reporter:datatype="link"/>
3068                 </fields>
3069                 <links>
3070                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
3071                 </links>
3072         </class>
3073         <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">
3074                 <fields oils_persist:primary="code" oils_persist:sequence="">
3075                         <field reporter:label="LitF Code" name="code" reporter:datatype="text"/>
3076                         <field reporter:label="LitF Description" name="description" reporter:datatype="text" oils_persist:i18n="true"/>
3077                         <field reporter:label="LitF Name" name="value" reporter:datatype="text" oils_persist:i18n="true"/>
3078                 </fields>
3079                 <links/>
3080         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
3081             <actions>
3082                 <create permission="CREATE_MARC_CODE" global_required="true"/>
3083                 <retrieve permission="CREATE_MARC_CODE UPDATE_MARC_CODE DELETE_MARC_CODE" global_required="true"/>
3084                 <update permission="UPDATE_MARC_CODE" global_required="true"/>
3085                 <delete permission="DELETE_MARC_CODE" global_required="true"/>
3086             </actions>
3087         </permacrud>
3088         </class>
3089         <class id="mwp" controller="open-ils.cstore" oils_obj:fieldmapper="money::work_payment" oils_persist:tablename="money.work_payment" reporter:label="Work Payment">
3090                 <fields oils_persist:primary="id" oils_persist:sequence="money.payment_id_seq">
3091                         <field reporter:label="Accepting Staff Member" name="accepting_usr" reporter:datatype="link"/>
3092                         <field reporter:label="Amount" name="amount" reporter:datatype="money" />
3093                         <field reporter:label="Amount Collected" name="amount_collected" reporter:datatype="money" />
3094                         <field reporter:label="Payment ID" name="id" reporter:datatype="id" />
3095                         <field reporter:label="Note" name="note" reporter:datatype="text"/>
3096                         <field reporter:label="Payment Timestamp" name="payment_ts" reporter:datatype="timestamp"/>
3097                         <field reporter:label="Transaction ID" name="xact" reporter:datatype="link"/>
3098                         <field reporter:label="Payment link" name="payment" oils_persist:virtual="true" reporter:datatype="link"/>
3099                         <field reporter:label="Payment Type" name="payment_type" oils_persist:virtual="true" reporter:datatype="text"/>
3100                 </fields>
3101                 <links>
3102                         <link field="payment" reltype="might_have" key="id" map="" class="mp"/>
3103                         <link field="accepting_usr" reltype="has_a" key="id" map="" class="au"/>
3104                         <link field="xact" reltype="has_a" key="id" map="" class="mbt"/>
3105                 </links>
3106         </class>
3107         <class id="mgp" controller="open-ils.cstore" oils_obj:fieldmapper="money::goods_payment" oils_persist:tablename="money.goods_payment" reporter:label="Goods Payment">
3108                 <fields oils_persist:primary="id" oils_persist:sequence="money.payment_id_seq">
3109                         <field reporter:label="Accepting Staff Member" name="accepting_usr" reporter:datatype="link"/>
3110                         <field reporter:label="Amount" name="amount" reporter:datatype="money" />
3111                         <field reporter:label="Amount Collected" name="amount_collected" reporter:datatype="money" />
3112                         <field reporter:label="Payment ID" name="id" reporter:datatype="id" />
3113                         <field reporter:label="Note" name="note" reporter:datatype="text"/>
3114                         <field reporter:label="Payment Timestamp" name="payment_ts" reporter:datatype="timestamp"/>
3115                         <field reporter:label="Transaction ID" name="xact" reporter:datatype="link"/>
3116                         <field reporter:label="Payment link" name="payment" oils_persist:virtual="true" reporter:datatype="link"/>
3117                         <field reporter:label="Payment Type" name="payment_type" oils_persist:virtual="true" reporter:datatype="text"/>
3118                 </fields>
3119                 <links>
3120                         <link field="payment" reltype="might_have" key="id" map="" class="mp"/>
3121                         <link field="accepting_usr" reltype="has_a" key="id" map="" class="au"/>
3122                         <link field="xact" reltype="has_a" key="id" map="" class="mbt"/>
3123                 </links>
3124         </class>
3125         <class id="aoc" controller="open-ils.cstore" oils_obj:fieldmapper="action::open_circulation" oils_persist:tablename="action.open_circulation" reporter:label="Open Circulation">
3126                 <fields oils_persist:primary="id" oils_persist:sequence="">
3127                         <field name="checkin_lib" reporter:datatype="link"/>
3128                         <field name="checkin_staff" reporter:datatype="link"/>
3129                         <field name="checkin_time" reporter:datatype="timestamp"/>
3130                         <field name="circ_lib"  reporter:datatype="org_unit"/>
3131                         <field name="circ_staff" reporter:datatype="link"/>
3132                         <field name="desk_renewal" reporter:datatype="bool"/>
3133                         <field name="due_date" reporter:datatype="timestamp"/>
3134                         <field name="duration" reporter:datatype="interval"/>
3135                         <field name="duration_rule" reporter:datatype="link"/>
3136                         <field name="fine_interval" reporter:datatype="interval"/>
3137                         <field name="id" reporter:datatype="id" />
3138                         <field name="max_fine" reporter:datatype="money" />
3139                         <field name="max_fine_rule" reporter:datatype="link"/>
3140                         <field name="opac_renewal" reporter:datatype="bool"/>
3141                         <field name="phone_renewal" reporter:datatype="bool"/>
3142                         <field name="recuring_fine" reporter:datatype="money" />
3143                         <field name="recuring_fine_rule" reporter:datatype="link"/>
3144                         <field name="renewal_remaining" reporter:datatype="int" />
3145                         <field name="stop_fines" reporter:datatype="text"/>
3146                         <field name="stop_fines_time" reporter:datatype="timestamp"/>
3147                         <field name="target_copy" reporter:datatype="link"/>
3148                         <field name="usr" reporter:datatype="link"/>
3149                         <field name="xact_finish" reporter:datatype="timestamp" />
3150                         <field name="xact_start" reporter:datatype="timestamp" />
3151                         <field name="circulation" oils_persist:virtual="true" reporter:datatype="link"/>
3152                 </fields>
3153                 <links>
3154                         <link field="circulation" reltype="might_have" key="id" map="" class="circ"/>
3155                         <link field="duration_rule" reltype="has_a" key="name" map="" class="crcd"/>
3156                         <link field="max_fine_rule" reltype="has_a" key="name" map="" class="crmf"/>
3157                         <link field="recuring_fine_rule" reltype="has_a" key="name" map="" class="crrf"/>
3158                 </links>
3159         </class>
3160         <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">
3161                 <fields oils_persist:primary="id" oils_persist:sequence="metabib.subject_field_entry_id_seq">
3162                         <field name="field" reporter:datatype="link"/>
3163                         <field name="id" reporter:datatype="id" />
3164                         <field name="source" reporter:datatype="link"/>
3165                         <field name="value" reporter:datatype="text"/>
3166                 </fields>
3167                 <links>
3168                         <link field="source" reltype="has_a" key="id" map="" class="bre"/>
3169                         <link field="field" reltype="has_a" key="id" map="" class="cmf"/>
3170                 </links>
3171         </class>
3172         <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">
3173                 <fields oils_persist:primary="id" oils_persist:sequence="config.rule_recuring_fine_id_seq">
3174                         <field name="high" reporter:datatype="money" />
3175                         <field name="id" reporter:selector="name" reporter:datatype="id"/>
3176                         <field name="low" reporter:datatype="money" />
3177                         <field name="name" reporter:datatype="text"/>
3178                         <field name="normal" reporter:datatype="money" />
3179                         <field name="recurance_interval" reporter:datatype="interval"/>
3180                 </fields>
3181                 <links/>
3182         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
3183             <actions>
3184                 <create permission="ADMIN_RECURING_FINE_RULE" global_required="true"/>
3185                 <retrieve/>
3186                 <update permission="ADMIN_RECURING_FINE_RULE" global_required="true"/>
3187                 <delete permission="ADMIN_RECURING_FINE_RULE" global_required="true"/>
3188             </actions>
3189         </permacrud>
3190         </class>
3191         <class id="mckp" controller="open-ils.cstore" oils_obj:fieldmapper="money::check_payment" oils_persist:tablename="money.check_payment" reporter:label="Check Payment">
3192                 <fields oils_persist:primary="id" oils_persist:sequence="money.payment_id_seq">
3193                         <field reporter:label="Accepting Staff Member" name="accepting_usr" reporter:datatype="link"/>
3194                         <field reporter:label="Amount" name="amount" reporter:datatype="money" />
3195                         <field reporter:label="Amount Collected" name="amount_collected" reporter:datatype="money" />
3196                         <field reporter:label="Workstation link" name="cash_drawer" reporter:datatype="link"/>
3197                         <field reporter:label="Check Number" name="check_number" reporter:datatype="int" />
3198                         <field reporter:label="Payment ID" name="id" reporter:datatype="id" />
3199                         <field reporter:label="Note" name="note" reporter:datatype="text"/>
3200                         <field reporter:label="Payment Timestamp" name="payment_ts" reporter:datatype="timestamp"/>
3201                         <field reporter:label="Transaction link" name="xact" reporter:datatype="link"/>
3202                         <field reporter:label="Payment link" name="payment" oils_persist:virtual="true" reporter:datatype="link"/>
3203                         <field reporter:label="Payment Type" name="payment_type" oils_persist:virtual="true" reporter:datatype="text"/>
3204                 </fields>
3205                 <links>
3206                         <link field="payment" reltype="might_have" key="id" map="" class="mp"/>
3207                         <link field="accepting_usr" reltype="has_a" key="id" map="" class="au"/>
3208                         <link field="cash_drawer" reltype="has_a" key="id" map="" class="aws"/>
3209                         <link field="xact" reltype="has_a" key="id" map="" class="mbt"/>
3210                 </links>
3211         </class>
3212         <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">
3213                 <fields oils_persist:primary="id" oils_persist:sequence="asset.copy_id_seq">
3214                         <field reporter:label="Statistical Category Entries" name="stat_cat_entries" oils_persist:virtual="true" reporter:datatype="link"/>
3215                         <field reporter:label="Age Hold Protection" name="age_protect" reporter:datatype="link"/>
3216                         <field reporter:label="Alert Message" name="alert_message" reporter:datatype="text"/>
3217                         <field reporter:label="Barcode" name="barcode" reporter:datatype="text"/>
3218                         <field reporter:label="Call Number/Volume" name="call_number" reporter:datatype="link"/>
3219                         <field reporter:label="Circulation Type (MARC)" name="circ_as_type" reporter:datatype="text"/>
3220                         <field reporter:label="Circulating Library" name="circ_lib"  reporter:datatype="org_unit"/>
3221                         <field reporter:label="Circulation Modifier" name="circ_modifier" reporter:datatype="link"/>
3222                         <field reporter:label="Can Circulate" name="circulate" reporter:datatype="bool"/>
3223                         <field reporter:label="Copy Number on Volume" name="copy_number" reporter:datatype="text"/>
3224                         <field reporter:label="Creation Date/Time" name="create_date" reporter:datatype="timestamp"/>
3225                         <field reporter:label="Creating User" name="creator" reporter:datatype="link"/>
3226                         <field reporter:label="Is Deleted" name="deleted" reporter:datatype="bool"/>
3227                         <field reporter:label="Is Deposit Required" name="deposit" reporter:datatype="bool"/>
3228                         <field reporter:label="Deposit Amount" name="deposit_amount" reporter:datatype="money" />
3229                         <field reporter:label="Precat Dummy Author" name="dummy_author" reporter:datatype="text"/>
3230                         <field reporter:label="Precat Dummy Title" name="dummy_title" reporter:datatype="text"/>
3231                         <field reporter:label="Last Edit Date/Time" name="edit_date" reporter:datatype="timestamp"/>
3232                         <field reporter:label="Last Editing User" name="editor" reporter:datatype="link"/>
3233                         <field reporter:label="Fine Level" name="fine_level" reporter:datatype="int"/>
3234                         <field reporter:label="Is Holdable" name="holdable" reporter:datatype="bool" />
3235                         <field reporter:label="Copy ID" name="id" reporter:datatype="id"/>
3236                         <field reporter:label="Loan Duration" name="loan_duration" reporter:datatype="int"/>
3237                         <field reporter:label="Shelving Location" name="location" reporter:datatype="link"/>
3238                         <field reporter:label="OPAC Visible" name="opac_visible" reporter:datatype="bool" />
3239                         <field reporter:label="Price" name="price" reporter:datatype="money" />
3240                         <field reporter:label="Is Reference" name="ref" reporter:datatype="bool"/>
3241                         <field reporter:label="Copy Status" name="status" reporter:datatype="link"/>
3242                         <field reporter:label="Copy Notes" name="notes" oils_persist:virtual="true" reporter:datatype="link"/>
3243                         <field reporter:label="Stat-Cat entry maps" name="stat_cat_entry_copy_maps" oils_persist:virtual="true" reporter:datatype="link"/>
3244                         <field reporter:label="Circulations" name="circulations" oils_persist:virtual="true" reporter:datatype="link"/>
3245                         <field reporter:label="Total Circulations" name="total_circ_count" oils_persist:virtual="true" reporter:datatype="link"/>
3246                         <field reporter:label="Holds" name="holds" oils_persist:virtual="true" reporter:datatype="link"/>
3247                 </fields>
3248                 <links>
3249                         <link field="age_protect" reltype="has_a" key="id" map="" class="crahp"/>
3250                         <link field="call_number" reltype="has_a" key="id" map="" class="acn"/>
3251                         <link field="location" reltype="has_a" key="id" map="" class="acpl"/>
3252                         <link field="editor" reltype="has_a" key="id" map="" class="au"/>
3253                         <link field="creator" reltype="has_a" key="id" map="" class="au"/>
3254                         <link field="status" reltype="has_a" key="id" map="" class="ccs"/>
3255                         <link field="circ_lib" reltype="has_a" key="id" map="" class="aou"/>
3256                         <link field="holds" reltype="has_many" key="target_copy" map="hold" class="ahcm"/>
3257                         <link field="stat_cat_entry_copy_maps" reltype="has_many" key="owning_copy" map="" class="ascecm"/>
3258                         <link field="notes" reltype="has_many" key="owning_copy" map="" class="acpn"/>
3259                         <link field="stat_cat_entries" reltype="has_many" key="owning_copy" map="stat_cat_entry" class="ascecm"/>
3260                         <link field="circulations" reltype="has_many" key="target_copy" map="" class="circ"/>
3261                         <link field="total_circ_count" reltype="might_have" key="id" map="" class="erfcc"/>
3262                         <link field="circ_modifier" reltype="has_a" key="code" map="" class="ccm"/>
3263                 </links>
3264         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
3265             <actions>
3266                 <create permission="CREATE_COPY">
3267                     <context link="call_number" field="owning_lib"/>
3268                 </create>
3269                 <retrieve/>
3270                 <update permission="UPDATE_COPY">
3271                     <context link="call_number" field="owning_lib"/>
3272                 </update>
3273                 <delete permission="DELETE_COPY">
3274                     <context link="call_number" field="owning_lib"/>
3275                 </delete>
3276             </actions>
3277         </permacrud>
3278         </class>
3279         <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">
3280                 <fields oils_persist:primary="id" oils_persist:sequence="config.rule_age_hold_protect_id_seq">
3281                         <field reporter:label="Item Age" name="age" reporter:datatype="interval"/>
3282                         <field reporter:label="Rule ID" name="id" reporter:selector="name" reporter:datatype="id"/>
3283                         <field reporter:label="Rule Name" name="name" reporter:datatype="text"/>
3284                         <field reporter:label="Allowed Proximity" name="prox" reporter:datatype="int" />
3285                 </fields>
3286                 <links/>
3287         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
3288             <actions>
3289                 <create permission="ADMIN_AGE_PROTECT_RULE" global_required="true"/>
3290                 <retrieve/>
3291                 <update permission="ADMIN_AGE_PROTECT_RULE" global_required="true"/>
3292                 <delete permission="ADMIN_AGE_PROTECT_RULE" global_required="true"/>
3293             </actions>
3294         </permacrud>
3295         </class>
3296         <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">
3297                 <fields oils_persist:primary="id" oils_persist:sequence="config.rule_max_fine_id_seq">
3298                         <field reporter:label="Max Fine Amount" name="amount" reporter:datatype="money" />
3299                         <field reporter:label="Rule ID" name="id" reporter:selector="name" reporter:datatype="id"/>
3300                         <field reporter:label="Rule Name" name="name" reporter:datatype="text"/>
3301                         <field reporter:label="Is Percent" name="is_percent" reporter:datatype="bool"/>
3302                 </fields>
3303                 <links/>
3304         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
3305             <actions>
3306                 <create permission="ADMIN_MAX_FINE_RULE" global_required="true"/>
3307                 <retrieve/>
3308                 <update permission="ADMIN_MAX_FINE_RULE" global_required="true"/>
3309                 <delete permission="ADMIN_MAX_FINE_RULE" global_required="true"/>
3310             </actions>
3311         </permacrud>
3312         </class>
3313         <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">
3314                 <fields oils_persist:primary="id" oils_persist:sequence="permission.grp_tree_id_seq">
3315                         <field reporter:label="Child Groups" name="children" oils_persist:virtual="true" reporter:datatype="link"/>
3316                         <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true"/>
3317                         <field reporter:label="Group ID" name="id" reporter:selector="name" reporter:datatype="id"/>
3318                         <field reporter:label="Group Name" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
3319                         <field reporter:label="Parent Group" name="parent" reporter:datatype="link"/>
3320                         <field reporter:label="User Expiration Interval" name="perm_interval" reporter:datatype="interval"/>
3321                         <field reporter:label="Required Permission" name="application_perm" reporter:datatype="text"/>
3322                         <field reporter:label="Is User Group" name="usergroup" reporter:datatype="bool"/>
3323                 </fields>
3324                 <links>
3325                         <link field="parent" reltype="has_a" key="id" map="" class="pgt"/>
3326                         <link field="children" reltype="has_many" key="parent" map="" class="pgt"/>
3327                 </links>
3328         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
3329             <actions>
3330                 <create permission="CREATE_PERM" global_required="true"/>
3331                 <retrieve permission="STAFF_LOGIN" global_required="true"/>
3332                 <update permission="UPDATE_PERM" global_required="true"/>
3333                 <delete permission="DELETE_PERM" global_required="true"/>
3334             </actions>
3335         </permacrud>
3336         </class>
3337         <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">
3338                 <fields oils_persist:primary="id" oils_persist:sequence="action.survey_answer_id_seq">
3339                         <field reporter:label="Responses using this Answer" name="responses" oils_persist:virtual="true" reporter:datatype="link"/>
3340                         <field reporter:label="Answer Text" name="answer" reporter:datatype="text"/>
3341                         <field reporter:label="Answer ID" name="id" reporter:datatype="id" />
3342                         <field reporter:label="Question" name="question" reporter:datatype="link"/>
3343                 </fields>
3344                 <links>
3345                         <link field="question" reltype="has_a" key="id" map="" class="asvq"/>
3346                         <link field="responses" reltype="has_many" key="answer" map="" class="asvr"/>
3347                 </links>
3348         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
3349             <actions>
3350                 <create permission="ADMIN_SURVEY">
3351                     <context link="question" jump="survey" field="owner"/>
3352                 </create>
3353                 <retrieve/>
3354                 <update permission="ADMIN_SURVEY">
3355                     <context link="question" jump="survey" field="owner"/>
3356                 </update>
3357                 <delete permission="ADMIN_SURVEY">
3358                     <context link="question" jump="survey" field="owner"/>
3359                 </delete>
3360             </actions>
3361         </permacrud>
3362         </class>
3363         <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">
3364                 <fields oils_persist:primary="id" oils_persist:sequence="action.non_cataloged_circulation_id_seq">
3365                         <field reporter:label="Circulating Library" name="circ_lib"  reporter:datatype="org_unit"/>
3366                         <field reporter:label="Circulation Date/Time" name="circ_time" reporter:datatype="timestamp"/>
3367                         <field reporter:label="Non-cat Circulation ID" name="id" reporter:datatype="id" />
3368                         <field reporter:label="Non-cat Item Type" name="item_type" reporter:datatype="link"/>
3369                         <field reporter:label="Patron" name="patron" reporter:datatype="link"/>
3370                         <field reporter:label="Circulating Staff" name="staff" reporter:datatype="link"/>
3371                 </fields>
3372                 <links>
3373                         <link field="item_type" reltype="has_a" key="id" map="" class="cnct"/>
3374                         <link field="staff" reltype="has_a" key="id" map="" class="au"/>
3375                         <link field="patron" reltype="has_a" key="id" map="" class="au"/>
3376                         <link field="circ_lib" reltype="has_a" key="id" map="" class="aou"/>
3377                 </links>
3378         </class>
3379         <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">
3380                 <fields oils_persist:primary="usr" oils_persist:sequence="">
3381                         <field name="balance_owed" reporter:datatype="money" />
3382                         <field name="total_owed" reporter:datatype="money" />
3383                         <field name="total_paid" reporter:datatype="money" />
3384                         <field name="usr" reporter:datatype="link"/>
3385                 </fields>
3386                 <links>
3387                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
3388                 </links>
3389         </class>
3390         <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">
3391                 <fields oils_persist:primary="id" oils_persist:sequence="action.unfulfilled_hold_list_id_seq">
3392                         <field reporter:label="Non-fulfilling Library" name="circ_lib"  reporter:datatype="org_unit"/>
3393                         <field reporter:label="Non-fulfilling Copy" name="current_copy" reporter:datatype="link"/>
3394                         <field reporter:label="Retargeting Date/Time" name="fail_time" reporter:datatype="timestamp"/>
3395                         <field reporter:label="Hold" name="hold" reporter:datatype="link"/>
3396                         <field reporter:label="Record ID" name="id" reporter:datatype="id" />
3397                 </fields>
3398                 <links>
3399                         <link field="hold" reltype="has_a" key="id" map="" class="ahr"/>
3400                         <link field="current_copy" reltype="has_a" key="id" map="" class="acp"/>
3401                         <link field="circ_lib" reltype="has_a" key="id" map="" class="aou"/>
3402                 </links>
3403         </class>
3404         <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">
3405                 <fields oils_persist:primary="id" oils_persist:sequence="metabib.title_field_entry_id_seq">
3406                         <field name="field" reporter:datatype="link"/>
3407                         <field name="id" reporter:datatype="id" />
3408                         <field name="source" reporter:datatype="link"/>
3409                         <field name="value" reporter:datatype="text"/>
3410                 </fields>
3411                 <links>
3412                         <link field="source" reltype="has_a" key="id" map="" class="bre"/>
3413                         <link field="field" reltype="has_a" key="id" map="" class="cmf"/>
3414                 </links>
3415         </class>
3416         <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">
3417                 <fields oils_persist:primary="id" oils_persist:sequence="actor.stat_cat_entry_usr_map_id_seq">
3418                         <field reporter:label="Entry ID" name="id" reporter:datatype="id" />
3419                         <field reporter:label="Statistical Category" name="stat_cat" reporter:datatype="link"/>
3420                         <field reporter:label="Entry Text" name="stat_cat_entry" reporter:datatype="text"/>
3421                         <field reporter:label="User" name="target_usr" reporter:datatype="link"/>
3422                 </fields>
3423                 <links>
3424                         <link field="target_usr" reltype="has_a" key="id" map="" class="au"/>
3425                         <link field="stat_cat" reltype="has_a" key="id" map="" class="actsc"/>
3426                 </links>
3427         </class>
3428         <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">
3429                 <fields oils_persist:primary="id" oils_persist:sequence="permission.grp_perm_map_id_seq">
3430                         <field name="depth" reporter:datatype="int" />
3431                         <field name="grantable" reporter:datatype="bool"/>
3432                         <field name="grp" reporter:datatype="link"/>
3433                         <field name="id" reporter:datatype="id" />
3434                         <field name="perm" reporter:datatype="link"/>
3435                 </fields>
3436                 <links>
3437                         <link field="grp" reltype="has_a" key="id" map="" class="pgt"/>
3438                         <link field="perm" reltype="has_a" key="id" map="" class="ppl"/>
3439                 </links>
3440         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
3441             <actions>
3442                 <create permission="ASSIGN_GROUP_PERM" global_required="true"/>
3443                 <retrieve permission="ASSIGN_GROUP_PERM UPDATE_GROUP_PERM REMOVE_GROUP_PERM" global_required="true"/>
3444                 <update permission="UPDATE_GROUP_PERM" global_required="true"/>
3445                 <delete permission="REMOVE_GROUP_PERM" global_required="true"/>
3446             </actions>
3447         </permacrud>
3448         </class>
3449         <class id="ccb" controller="open-ils.cstore" oils_obj:fieldmapper="container::copy_bucket" oils_persist:tablename="container.copy_bucket" reporter:label="Copy Bucket">
3450                 <fields oils_persist:primary="id" oils_persist:sequence="container.copy_bucket_id_seq">
3451                         <field name="items" oils_persist:virtual="true" />
3452                         <field name="btype" reporter:datatype="text"/>
3453                         <field name="id" reporter:datatype="id" />
3454                         <field name="name" reporter:datatype="text"/>
3455                         <field name="owner" reporter:datatype="link"/>
3456                         <field name="pub" reporter:datatype="bool"/>
3457                         <field name="create_time" reporter:datatype="timestamp" />
3458                 </fields>
3459                 <links>
3460                         <link field="owner" reltype="has_a" key="id" map="" class="au"/>
3461                         <link field="items" reltype="has_many" key="bucket" map="" class="ccbi"/>
3462                 </links>
3463         </class>
3464         <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">
3465                 <fields oils_persist:primary="id" oils_persist:sequence="container.copy_bucket_note_id_seq">
3466                         <field name="id" reporter:datatype="id" />
3467                         <field name="bucket" reporter:datatype="link"/>
3468                         <field name="note" reporter:datatype="text" />
3469                 </fields>
3470                 <links>
3471                         <link field="bucket" reltype="has_a" key="id" map="" class="ccb"/>
3472                 </links>
3473         </class>
3474         <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">
3475                 <fields oils_persist:primary="id" oils_persist:sequence="permission.usr_work_ou_map_id_seq">
3476                         <field name="id" reporter:datatype="int" />
3477                         <field name="usr" reporter:datatype="link"/>
3478                         <field name="work_ou" reporter:datatype="link"/>
3479                 </fields>
3480                 <links>
3481                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
3482                         <link field="work_ou" reltype="has_a" key="id" map="" class="aou"/>
3483                 </links>
3484         </class>
3485         <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">
3486                 <fields oils_persist:primary="id" oils_persist:sequence="permission.usr_perm_map_id_seq">
3487                         <field name="depth" reporter:datatype="int"/>
3488                         <field name="grantable" reporter:datatype="bool"/>
3489                         <field name="id" reporter:datatype="id" />
3490                         <field name="perm" reporter:datatype="link"/>
3491                         <field name="usr" reporter:datatype="link"/>
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="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">
3499                 <fields oils_persist:primary="id" oils_persist:sequence="permission.usr_object_perm_map_id_seq">
3500                         <field name="object_id" reporter:datatype="text"/>
3501                         <field name="grantable" reporter:datatype="bool"/>
3502                         <field name="id" reporter:datatype="id" />
3503                         <field name="perm" reporter:datatype="link"/>
3504                         <field name="usr" reporter:datatype="link"/>
3505                         <field name="object_type" reporter:datatype="text"/>
3506                 </fields>
3507                 <links>
3508                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
3509                         <link field="perm" reltype="has_a" key="id" map="" class="ppl"/>
3510                 </links>
3511         </class>
3512         <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">
3513                 <fields oils_persist:primary="id" oils_persist:sequence="">
3514                         <field reporter:label="Amount" name="amount" reporter:datatype="money" />
3515                         <field reporter:label="Payment ID" name="id" reporter:datatype="id" />
3516                         <field reporter:label="Note" name="note" reporter:datatype="text"/>
3517                         <field reporter:label="Payment Date/Time" name="payment_ts" reporter:datatype="timestamp"/>
3518                         <field reporter:label="Payment Type" name="payment_type" reporter:datatype="text"/>
3519                         <field reporter:label="Billable Transaction" name="xact" reporter:datatype="link"/>
3520                         <field reporter:label="Voided?" name="voided" reporter:datatype="bool"/>
3521                         <field reporter:label="Cash Payment Detail" name="cash_payment" oils_persist:virtual="true" reporter:datatype="link"/>
3522                         <field reporter:label="Credit Card Payment Detail" name="credit_card_payment" oils_persist:virtual="true" reporter:datatype="link"/>
3523                         <field reporter:label="Credit Payment Detail" name="credit_payment" oils_persist:virtual="true" reporter:datatype="link"/>
3524                         <field reporter:label="Check Payment Detail" name="check_payment" oils_persist:virtual="true" reporter:datatype="link"/>
3525                         <field reporter:label="Work Payment Detail" name="work_payment" oils_persist:virtual="true" reporter:datatype="link"/>
3526                         <field reporter:label="Forgive Payment Detail" name="forgive_payment" oils_persist:virtual="true" reporter:datatype="link"/>
3527                         <field reporter:label="Goods Payment Detail" name="goods_payment" oils_persist:virtual="true" reporter:datatype="link"/>
3528                 </fields>
3529                 <links>
3530                         <link field="cash_payment" reltype="might_have" key="id" map="" class="mcp"/>
3531                         <link field="credit_card_payment" reltype="might_have" key="id" map="" class="mccp"/>
3532                         <link field="credit_payment" reltype="might_have" key="id" map="" class="mcrp"/>
3533                         <link field="check_payment" reltype="might_have" key="id" map="" class="mckp"/>
3534                         <link field="work_payment" reltype="might_have" key="id" map="" class="mwp"/>
3535                         <link field="forgive_payment" reltype="might_have" key="id" map="" class="mfp"/>
3536                         <link field="goods_payment" reltype="might_have" key="id" map="" class="mgp"/>
3537                         <link field="xact" reltype="has_a" key="id" map="" class="mbt"/>
3538                 </links>
3539         </class>
3540         <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">
3541                 <fields oils_persist:primary="id" oils_persist:sequence="">
3542                         <field reporter:label="Amount" name="amount" reporter:datatype="money" />
3543                         <field reporter:label="Payment ID" name="id" reporter:datatype="id" />
3544                         <field reporter:label="Note" name="note" reporter:datatype="text"/>
3545                         <field reporter:label="Payment Date/Time" name="payment_ts" reporter:datatype="timestamp"/>
3546                         <field reporter:label="Payment Type" name="payment_type" reporter:datatype="text"/>
3547                         <field reporter:label="Billable Transaction" name="xact" reporter:datatype="link"/>
3548                         <field reporter:label="Voided?" name="voided" reporter:datatype="bool"/>
3549                         <field reporter:label="Cash Payment Detail" name="cash_payment" oils_persist:virtual="true" reporter:datatype="link"/>
3550                         <field reporter:label="Credit Card Payment Detail" name="credit_card_payment" oils_persist:virtual="true" reporter:datatype="link"/>
3551                         <field reporter:label="Credit Payment Detail" name="credit_payment" oils_persist:virtual="true" reporter:datatype="link"/>
3552                         <field reporter:label="Check Payment Detail" name="check_payment" oils_persist:virtual="true" reporter:datatype="link"/>
3553                         <field reporter:label="Work Payment Detail" name="work_payment" oils_persist:virtual="true" reporter:datatype="link"/>
3554                         <field reporter:label="Forgive Payment Detail" name="forgive_payment" oils_persist:virtual="true" reporter:datatype="link"/>
3555                         <field reporter:label="Goods Payment Detail" name="goods_payment" oils_persist:virtual="true" reporter:datatype="link"/>
3556                 </fields>
3557                 <links>
3558                         <link field="cash_payment" reltype="might_have" key="id" map="" class="mcp"/>
3559                         <link field="credit_card_payment" reltype="might_have" key="id" map="" class="mccp"/>
3560                         <link field="credit_payment" reltype="might_have" key="id" map="" class="mcrp"/>
3561                         <link field="check_payment" reltype="might_have" key="id" map="" class="mckp"/>
3562                         <link field="work_payment" reltype="might_have" key="id" map="" class="mwp"/>
3563                         <link field="forgive_payment" reltype="might_have" key="id" map="" class="mfp"/>
3564                         <link field="goods_payment" reltype="might_have" key="id" map="" class="mgp"/>
3565                         <link field="xact" reltype="has_a" key="id" map="" class="mbt"/>
3566                 </links>
3567         </class>
3568         <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">
3569                 <fields oils_persist:primary="id" oils_persist:sequence="">
3570                         <field reporter:label="Amount" name="amount" reporter:datatype="money" />
3571                         <field reporter:label="Payment ID" name="id" reporter:datatype="id" />
3572                         <field reporter:label="Note" name="note" reporter:datatype="text"/>
3573                         <field reporter:label="Payment Date/Time" name="payment_ts" reporter:datatype="timestamp"/>
3574                         <field reporter:label="Payment Type" name="payment_type" reporter:datatype="text"/>
3575                         <field reporter:label="Billable Transaction" name="xact" reporter:datatype="link"/>
3576                         <field reporter:label="Voided?" name="voided" reporter:datatype="bool"/>
3577                         <field reporter:label="Work Payment Detail" name="work_payment" oils_persist:virtual="true" reporter:datatype="link"/>
3578                         <field reporter:label="Forgive Payment Detail" name="forgive_payment" oils_persist:virtual="true" reporter:datatype="link"/>
3579                         <field reporter:label="Goods Payment Detail" name="goods_payment" oils_persist:virtual="true" reporter:datatype="link"/>
3580                         <field reporter:label="Credit Payment Detail" name="credit_payment" oils_persist:virtual="true" reporter:datatype="link"/>
3581                 </fields>
3582                 <links>
3583                         <link field="work_payment" reltype="might_have" key="id" map="" class="mwp"/>
3584                         <link field="forgive_payment" reltype="might_have" key="id" map="" class="mfp"/>
3585                         <link field="goods_payment" reltype="might_have" key="id" map="" class="mgp"/>
3586                         <link field="credit_payment" reltype="might_have" key="id" map="" class="mcrp"/>
3587                         <link field="xact" reltype="has_a" key="id" map="" class="mbt"/>
3588                 </links>
3589         </class>
3590         <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">
3591                 <fields oils_persist:primary="id" oils_persist:sequence="">
3592                         <field reporter:label="Amount" name="amount" reporter:datatype="money" />
3593                         <field reporter:label="Payment ID" name="id" reporter:datatype="id" />
3594                         <field reporter:label="Note" name="note" reporter:datatype="text"/>
3595                         <field reporter:label="Payment Date/Time" name="payment_ts" reporter:datatype="timestamp"/>
3596                         <field reporter:label="Payment Type" name="payment_type" reporter:datatype="text"/>
3597                         <field reporter:label="Billable Transaction" name="xact" reporter:datatype="link"/>
3598                         <field reporter:label="Accepting User" name="accepting_usr" />
3599                         <field reporter:label="Cash Drawer" name="cash_drawer" reporter:datatype="link"/>
3600                         <field reporter:label="Voided?" name="voided" reporter:datatype="bool"/>
3601                         <field reporter:label="Cash Payment" name="cash_payment" oils_persist:virtual="true" reporter:datatype="link"/>
3602                         <field reporter:label="Credit Card Payment" name="credit_card_payment" oils_persist:virtual="true" reporter:datatype="link"/>
3603                         <field reporter:label="Check Payment" name="check_payment" oils_persist:virtual="true" reporter:datatype="link"/>
3604                 </fields>
3605                 <links>
3606                         <link field="cash_payment" reltype="might_have" key="id" map="" class="mcp"/>
3607                         <link field="credit_card_payment" reltype="might_have" key="id" map="" class="mccp"/>
3608                         <link field="check_payment" reltype="might_have" key="id" map="" class="mckp"/>
3609                         <link field="xact" reltype="has_a" key="id" map="" class="mbt"/>
3610                         <link field="accepting_usr" reltype="has_a" key="id" map="" class="au"/>
3611                         <link field="cash_drawer" reltype="has_a" key="id" map="" class="aws"/>
3612                 </links>
3613         </class>
3614         <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">
3615                 <fields oils_persist:primary="id" oils_persist:sequence="container.biblio_record_entry_bucket_item_id_seq">
3616                         <field name="bucket" reporter:datatype="link"/>
3617                         <field name="id" reporter:datatype="id" />
3618                         <field name="target_biblio_record_entry" reporter:datatype="link"/>
3619                         <field name="create_time" reporter:datatype="timestamp" />
3620                         <field name="pos" reporter:datatype="int" />
3621                         <field name="notes" oils_persist:virtual="true" reporter:datatype="link" />
3622                 </fields>
3623                 <links>
3624                         <link field="target_biblio_record_entry" reltype="has_a" key="id" map="" class="bre"/>
3625                         <link field="bucket" reltype="has_a" key="id" map="" class="cbreb"/>
3626             <link field="notes" reltype="has_many" map="" key="item" class="cbrebin"/>
3627                 </links>
3628         </class>
3629         <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">
3630                 <fields oils_persist:primary="id" oils_persist:sequence="container.biblio_record_entry_bucket_item_note_id_seq">
3631                         <field name="id" reporter:datatype="id" />
3632                         <field name="item" reporter:datatype="link"/>
3633                         <field name="note" reporter:datatype="text" />
3634                 </fields>
3635                 <links>
3636                         <link field="item" reltype="has_a" key="id" map="" class="cbrebi"/>
3637                 </links>
3638         </class>
3639         <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">
3640                 <fields oils_persist:primary="id" oils_persist:sequence="asset.stat_cat_entry_id_seq">
3641                         <field reporter:label="Entry ID" name="id" reporter:datatype="int" />
3642                         <field reporter:label="Entry Owner" name="owner" reporter:datatype="link"/>
3643                         <field reporter:label="Stat Cat" name="stat_cat" reporter:datatype="link"/>
3644                         <field reporter:label="Value" name="value" reporter:datatype="text" oils_persist:i18n="true"/>
3645                 </fields>
3646                 <links>
3647                         <link field="stat_cat" reltype="has_a" key="id" map="" class="asc"/>
3648                         <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
3649                 </links>
3650         </class>
3651
3652         <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">
3653                 <fields oils_persist:primary="id" oils_persist:sequence="action.hold_request_cancel_cause_id_seq">
3654                         <field reporter:label="Cause ID" name="id" reporter:datatype="id" />
3655                         <field reporter:label="Cause Label" name="label" reporter:datatype="text" oils_persist:i18n="true" />
3656                 </fields>
3657                 <links/>
3658         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
3659             <actions>
3660                 <create permission="ADMIN_HOLD_CANCEL_CAUSE" global_required="true"/>
3661                 <retrieve/>
3662                 <update permission="ADMIN_HOLD_CANCEL_CAUSE" global_required="true"/>
3663                 <delete permission="ADMIN_HOLD_CANCEL_CAUSE" global_required="true"/>
3664             </actions>
3665         </permacrud>
3666         </class>
3667
3668
3669         <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">
3670                 <fields oils_persist:primary="id" oils_persist:sequence="action.transit_copy_id_seq">
3671                         <field reporter:label="Copy Status at Transit" name="copy_status" reporter:datatype="link"/>
3672                         <field reporter:label="Destination Library" name="dest" reporter:datatype="org_unit"/>
3673                         <field reporter:label="Receive Date/Time" name="dest_recv_time" reporter:datatype="timestamp"/>
3674                         <field reporter:label="Hold requiring Transit" name="hold" reporter:datatype="link"/>
3675                         <field reporter:label="Transit ID" name="id" reporter:datatype="id" />
3676                         <field reporter:label="Is Persistent?" name="persistant_transfer" reporter:datatype="bool"/>
3677                         <field reporter:label="Previous Stop" name="prev_hop" reporter:datatype="link"/>
3678                         <field reporter:label="Sending Library" name="source" reporter:datatype="org_unit"/>
3679                         <field reporter:label="Send Date/Time" name="source_send_time" reporter:datatype="timestamp"/>
3680                         <field reporter:label="Transited Copy" name="target_copy" reporter:datatype="link"/>
3681                         <field reporter:label="Base Transit" name="transit_copy" oils_persist:virtual="true" reporter:datatype="link"/>
3682                 </fields>
3683                 <links>
3684                         <link field="transit_copy" reltype="might_have" key="id" map="" class="atc"/>
3685                         <link field="target_copy" reltype="has_a" key="id" map="" class="acp"/>
3686                         <link field="source" reltype="has_a" key="id" map="" class="aou"/>
3687                         <link field="copy_status" reltype="has_a" key="id" map="" class="ccs"/>
3688                         <link field="dest" reltype="has_a" key="id" map="" class="aou"/>
3689                         <link field="hold" reltype="has_a" key="id" map="" class="ahr"/>
3690                 </links>
3691         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
3692             <actions>
3693                 <create permission="TRANSIT_COPY" context_field="owner">
3694                     <context link="target_copy" field="circ_lib"/>
3695                 </create>
3696                 <retrieve/>
3697                 <update permission="UPDATE_TRANSIT" context_field="dest source"/>
3698                 <delete permission="DELETE_TRANSIT" context_field="dest source"/>
3699             </actions>
3700         </permacrud>
3701         </class>
3702         <class id="mb" controller="open-ils.cstore" oils_obj:fieldmapper="money::billing" oils_persist:tablename="money.billing" reporter:label="Billing Line Item">
3703                 <fields oils_persist:primary="id" oils_persist:sequence="money.billing_id_seq">
3704                         <field reporter:label="Amount" name="amount" reporter:datatype="money" />
3705                         <field reporter:label="Billing Timestamp" name="billing_ts" reporter:datatype="timestamp"/>
3706                         <field reporter:label="Legacy Billing Type" name="billing_type" reporter:datatype="text"/>
3707                         <field reporter:label="Billing ID" name="id" reporter:datatype="id" />
3708                         <field reporter:label="Note" name="note" reporter:datatype="text"/>
3709                         <field reporter:label="Void Timestamp" name="void_time" reporter:datatype="timestamp"/>
3710                         <field reporter:label="Voided?" name="voided" reporter:datatype="bool"/>
3711                         <field reporter:label="Voiding Staff Member" name="voider" reporter:datatype="link"/>
3712                         <field reporter:label="Transaction" name="xact" reporter:datatype="link"/>
3713                         <field reporter:label="Type" name="btype" reporter:datatype="link"/>
3714                 </fields>
3715                 <links>
3716                         <link field="xact" reltype="has_a" key="id" map="" class="mbt"/>
3717                         <link field="voider" reltype="has_a" key="id" map="" class="au"/>
3718                         <link field="btype" reltype="has_a" key="id" map="" class="cbt"/>
3719                 </links>
3720         </class>
3721         <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">
3722                 <fields oils_persist:primary="id" oils_persist:sequence="permission.usr_grp_map_id_seq">
3723                         <field name="grp" />
3724                         <field name="id" reporter:datatype="id" />
3725                         <field name="usr" />
3726                 </fields>
3727                 <links>
3728                         <link field="grp" reltype="has_a" key="id" map="" class="pgt"/>
3729                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
3730                 </links>
3731         </class>
3732         <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">
3733                 <fields oils_persist:primary="id" oils_persist:sequence="config.i18n_core_id_seq">
3734                         <field name="id" reporter:datatype="id" />
3735                         <field name="fq_field" reporter:datatype="text"/>
3736                         <field name="identity_value" reporter:datatype="text"/>
3737                         <field name="translation" reporter:datatype="text"/>
3738                         <field name="string" reporter:datatype="text"/>
3739                 </fields>
3740                 <links>
3741                         <link field="translation" reltype="has_a" key="code" map="" class="i18n_l"/>
3742                 </links>
3743         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
3744             <actions>
3745                 <create permission="CREATE_TRANSLATION" global_required="true"/>
3746                 <retrieve permission="CREATE_TRANSLATION UPDATE_TRANSLATION DELETE_TRANSLATION" global_required="true"/>
3747                 <update permission="UPDATE_TRANSLATION" global_required="true"/>
3748                 <delete permission="DELETE_TRANSLATION" global_required="true"/>
3749             </actions>
3750         </permacrud>
3751         </class>
3752         <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">
3753                 <fields oils_persist:primary="id" oils_persist:sequence="config.idl_field_doc_id_seq">
3754                         <field name="id" reporter:datatype="id" />
3755                         <field name="fm_class" reporter:datatype="text"/>
3756                         <field name="field" reporter:datatype="text"/>
3757                         <field name="owner" reporter:datatype="org_unit"/>
3758                         <field name="string" reporter:datatype="text" oils_persist:i18n="true"/>
3759                 </fields>
3760                 <links>
3761                         <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
3762                 </links>
3763         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
3764             <actions>
3765                 <create   permission="ADMIN_FIELD_DOC" context_field="owner"/>
3766                 <retrieve/>
3767                 <update   permission="ADMIN_FIELD_DOC" context_field="owner"/>
3768                 <delete   permission="ADMIN_FIELD_DOC" context_field="owner"/>
3769             </actions>
3770         </permacrud>
3771         </class>
3772         <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">
3773                 <fields oils_persist:primary="code">
3774                         <field name="code" reporter:datatype="id" />
3775                         <field name="marc_code" reporter:datatype="text"/>
3776                         <field name="name" reporter:datatype="text" oils_persist:i18n="true"/>
3777                         <field name="description" reporter:datatype="text" oils_persist:i18n="true"/>
3778                 </fields>
3779                 <links/>
3780         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
3781             <actions>
3782                 <create permission="CREATE_LOCALE" global_required="true"/>
3783                 <retrieve permission="CREATE_LOCALE UPDATE_LOCALE DELETE_LOCALE" global_required="true"/>
3784                 <update permission="UPDATE_LOCALE" global_required="true"/>
3785                 <delete permission="DELETE_LOCALE" global_required="true"/>
3786             </actions>
3787         </permacrud>
3788         </class>
3789         <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">
3790                 <fields oils_persist:primary="id" oils_persist:sequence="config.billing_type_id_seq">
3791                         <field name="id" reporter:datatype="id" reporter:label="ID" />
3792                         <field name="name" reporter:datatype="text" reporter:label="Name" oils_persist:i18n="true"/>
3793                         <field name="owner" reporter:datatype="org_unit" reporter:label="Org Unit" />
3794             <field name="default_price" reporter:datatype="money" reporter:label="Default Price"/>
3795                 </fields>
3796                 <links>
3797                         <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
3798                 </links>
3799         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
3800             <actions>
3801                 <create permission="CREATE_BILLING_TYPE" context_field="owner"/>
3802                 <retrieve permission="VIEW_BILLING_TYPE CREATE_BILLING_TYPE UPDATE_BILLING_TYPE DELETE_BILLING_TYPE" context_field="owner"/>
3803                 <update permission="UPDATE_BILLING_TYPE" context_field="owner"/>
3804                 <delete permission="DELETE_BILLING_TYPE" context_field="owner"/>
3805             </actions>
3806         </permacrud>
3807         </class>
3808         <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">
3809                 <fields oils_persist:primary="code">
3810                         <field reporter:label="Currency Code" name="code" reporter:datatype="text" reporter:selector='label'/>
3811                         <field reporter:label="Currency Label" name="label" reporter:datatype="text" oils_persist:i18n="true" />
3812                 </fields>
3813                 <links/>
3814         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
3815             <actions>
3816                 <create permission="ADMIN_CURRENCY_TYPE" global_required="true"/>
3817                 <retrieve/>
3818                 <update permission="ADMIN_CURRENCY_TYPE" global_required="true"/>
3819                 <delete permission="ADMIN_CURRENCY_TYPE" global_required="true"/>
3820             </actions>
3821         </permacrud>
3822         </class>
3823
3824         <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">
3825                 <fields oils_persist:primary="id" oils_persist:sequence="acq.exchange_rate_id_seq">
3826                         <field reporter:label="Exchange Rate ID" name="id" reporter:datatype="id" />
3827                         <field reporter:label="From Currency" name="from_currency" reporter:datatype="link" />
3828                         <field reporter:label="To Currency" name="to_currency" reporter:datatype="link" />
3829                         <field reporter:label="Ratio" name="ratio" />
3830                 </fields>
3831                 <links>
3832                         <link field="from_currency" reltype="has_a" key="code" map="" class="acqct"/>
3833                         <link field="to_currency" reltype="has_a" key="code" map="" class="acqct"/>
3834                 </links>
3835                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
3836                         <actions>
3837                                 <create permission="ADMIN_CURRENCY_TYPE" global_required="true"/>
3838                                 <retrieve/>
3839                                 <update permission="ADMIN_CURRENCY_TYPE" global_required="true"/>
3840                                 <delete permission="ADMIN_CURRENCY_TYPE" global_required="true"/>
3841                         </actions>
3842                 </permacrud>
3843         </class>
3844
3845         <class id="acqpro" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::provider" oils_persist:tablename="acq.provider" reporter:label="Provider">
3846                 <fields oils_persist:primary="id" oils_persist:sequence="acq.provider_id_seq">
3847                         <field reporter:label="Provider ID" name="id" reporter:datatype="id" reporter:selector='code'/>
3848                         <field reporter:label="Provider Name" name="name" reporter:datatype="text" oils_persist:i18n="true" />
3849                         <field reporter:label="Owner" name="owner" reporter:datatype="org_unit" />
3850                         <field reporter:label="Currency" name="currency_type" oils_persist:primitive="string" reporter:datatype="link" />
3851                         <field reporter:label="Code" name="code" reporter:datatype="text" />
3852                         <field reporter:label="Holdings Tag" name="holding_tag" reporter:datatype="text" />
3853                         <field reporter:label="Addresses" name="addresses" oils_persist:virtual="true" reporter:datatype="link" />
3854                 </fields>
3855                 <links>
3856                         <link field="currency_type" reltype="has_a" key="code" map="" class="acqct"/>
3857                         <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
3858             <link field="addresses" reltype="has_many" map="" key="provider" class="acqpa"/>
3859                 </links>
3860         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
3861             <actions>
3862                 <create   permission="ADMIN_PROVIDER" context_field="owner"/>
3863                 <retrieve permission="ADMIN_PROVIDER MANAGE_PROVIDER VIEW_PROVIDER" context_field="owner"/>
3864                 <update   permission="ADMIN_PROVIDER" context_field="owner"/>
3865                 <delete   permission="ADMIN_PROVIDER" context_field="owner"/>
3866             </actions>
3867         </permacrud>
3868         </class>
3869
3870         <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">
3871                 <fields oils_persist:primary="id" oils_persist:sequence="acq.provider_address_id_seq">
3872                         <field reporter:label="Address Type" name="address_type"  reporter:datatype="text"/>
3873                         <field reporter:label="City" name="city"  reporter:datatype="text"/>
3874                         <field reporter:label="Country" name="country"  reporter:datatype="text"/>
3875                         <field reporter:label="County" name="county"  reporter:datatype="text"/>
3876                         <field name="id" reporter:datatype="id"/>
3877                         <field reporter:label="Provider" name="provider" reporter:datatype="link"/>
3878                         <field reporter:label="Post Code" name="post_code"  reporter:datatype="text"/>
3879                         <field reporter:label="State" name="state"  reporter:datatype="text"/>
3880                         <field reporter:label="Street 1" name="street1"  reporter:datatype="text"/>
3881                         <field reporter:label="Street 2" name="street2"  reporter:datatype="text"/>
3882                         <field reporter:label="Is Valid?" name="valid" reporter:datatype="bool"/>
3883                 </fields>
3884                 <links>
3885                         <link field="provider" reltype="has_a" key="id" map="" class="acqpro"/>
3886                 </links>
3887         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
3888             <actions>
3889                 <create permission="ADMIN_PROVIDER">
3890                     <context link="provider" field="owner"/>
3891                 </create>
3892                 <retrieve permission="ADMIN_PROVIDER">
3893                     <context link="provider" field="owner"/>
3894                 </retrieve>
3895                 <update permission="ADMIN_PROVIDER">
3896                     <context link="provider" field="owner"/>
3897                 </update>
3898                 <delete permission="ADMIN_PROVIDER">
3899                     <context link="provider" field="owner"/>
3900                 </delete>
3901             </actions>
3902         </permacrud>
3903         </class>
3904
3905         <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">
3906                 <fields oils_persist:primary="id" oils_persist:sequence="acq.provider_contact_id_seq">
3907                         <field name="id" reporter:datatype="id"/>
3908                         <field reporter:label="Provider" name="provider" reporter:datatype="link"/>
3909                         <field reporter:label="Name" name="name" reporter:datatype="text"/>
3910                         <field reporter:label="Role" name="role" reporter:datatype="text"/>
3911                         <field reporter:label="Email" name="email" reporter:datatype="text"/>
3912                         <field reporter:label="Phone" name="phone" reporter:datatype="text"/>
3913         </fields>
3914                 <links>
3915                         <link field="provider" reltype="has_a" key="id" map="" class="acqpro"/>
3916                 </links>
3917         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
3918             <actions>
3919                 <create permission="ADMIN_PROVIDER">
3920                     <context link="provider" field="owner"/>
3921                 </create>
3922                 <retrieve permission="ADMIN_PROVIDER">
3923                     <context link="provider" field="owner"/>
3924                 </retrieve>
3925                 <update permission="ADMIN_PROVIDER">
3926                     <context link="provider" field="owner"/>
3927                 </update>
3928                 <delete permission="ADMIN_PROVIDER">
3929                     <context link="provider" field="owner"/>
3930                 </delete>
3931             </actions>
3932         </permacrud>
3933     </class>
3934         <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">
3935                 <fields oils_persist:primary="id" oils_persist:sequence="acq.provider_contact_address_id_seq">
3936                         <field reporter:label="Type" name="address_type"  reporter:datatype="text"/>
3937                         <field reporter:label="City" name="city"  reporter:datatype="text"/>
3938                         <field reporter:label="Country" name="country"  reporter:datatype="text"/>
3939                         <field reporter:label="County" name="county"  reporter:datatype="text"/>
3940                         <field reporter:label="Address ID" name="id" reporter:datatype="id" />
3941                         <field reporter:label="Postal Code" name="post_code" reporter:datatype="text"/>
3942                         <field reporter:label="State" name="state"  reporter:datatype="text"/>
3943                         <field reporter:label="Street (1)" name="street1"  reporter:datatype="text"/>
3944                         <field reporter:label="Street (2)" name="street2"  reporter:datatype="text"/>
3945                         <field reporter:label="Contact" name="contact" reporter:datatype="link"/>
3946                         <field reporter:label="Valid Address?" name="valid" reporter:datatype="bool"/>
3947                 </fields>
3948                 <links>
3949                         <link field="contact" reltype="has_a" key="id" map="" class="acqpc"/>
3950                 </links>
3951         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
3952             <actions>
3953                 <create permission="ADMIN_PROVIDER">
3954                     <context link="contact" jump='provider' field="owner"/>
3955                 </create>
3956                 <retrieve permission="ADMIN_PROVIDER">
3957                     <context link="contact" jump='provider' field="owner"/>
3958                 </retrieve>
3959                 <update permission="ADMIN_PROVIDER">
3960                     <context link="contact" jump='provider' field="owner"/>
3961                 </update>
3962                 <delete permission="ADMIN_PROVIDER">
3963                     <context link="contact" jump='provider' field="owner"/>
3964                 </delete>
3965             </actions>
3966         </permacrud>
3967         </class>
3968
3969         <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">
3970                 <fields oils_persist:primary="id" oils_persist:sequence="acq.funding_source_id_seq">
3971                         <field reporter:label="Funding Source ID" name="id" reporter:datatype="id" reporter:selector='code'/>
3972                         <field reporter:label="Funding Source Name" name="name" reporter:datatype="text" oils_persist:i18n="true" />
3973                         <field reporter:label="Owner" name="owner" reporter:datatype="org_unit" />
3974                         <field reporter:label="Currency" name="currency_type" oils_persist:primitive="string" reporter:datatype="link" />
3975                         <field reporter:label="Code" name="code" reporter:datatype="text" />
3976                         <field name="summary" oils_persist:virtual="true"/>
3977                         <field reporter:label="Allocations" name="allocations" oils_persist:virtual="true" reporter:datatype="link"/>
3978                         <field reporter:label="Credits" name="credits" oils_persist:virtual="true" reporter:datatype="link"/>
3979                 </fields>
3980                 <links>
3981                         <link field="currency_type" reltype="has_a" key="code" map="" class="acqct"/>
3982                         <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
3983             <link field="allocations" reltype="has_many" map="" key="funding_source" class="acqfa"/>
3984             <link field="credits" reltype="has_many" key="funding_source" map="" class="acqfscred"/>
3985                 </links>
3986         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
3987             <actions>
3988                 <create   permission="ADMIN_FUNDING_SOURCE" context_field="owner"/>
3989                 <retrieve permission="ADMIN_FUNDING_SOURCE MANAGE_FUNDING_SOURCE VIEW_FUNDING_SOURCE" context_field="owner"/>
3990                 <update   permission="ADMIN_FUNDING_SOURCE" context_field="owner"/>
3991                 <delete   permission="ADMIN_FUNDING_SOURCE" context_field="owner"/>
3992             </actions>
3993         </permacrud>
3994         </class>
3995
3996         <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">
3997                 <fields oils_persist:primary="id" oils_persist:sequence="acq.funding_source_credit_id_seq">
3998                         <field reporter:label="Credit ID" name="id" reporter:datatype="id" />
3999                         <field reporter:label="Funding Source ID" name="funding_source" reporter:datatype="link" />
4000                         <field reporter:label="Amount" name="amount" reporter:datatype="money" />
4001                         <field reporter:label="Note" name="note" reporter:datatype="text" />
4002                 </fields>
4003                 <links>
4004                         <link field="funding_source" reltype="has_a" key="id" map="" class="acqfs"/>
4005                 </links>
4006         </class>
4007
4008         <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">
4009                 <fields oils_persist:primary="id" oils_persist:sequence="acq.fund_debit_id_seq">
4010                         <field reporter:label="Debit ID" name="id" reporter:datatype="id" />
4011                         <field reporter:label="Fund ID" name="fund" reporter:datatype="link" />
4012                         <field reporter:label="Origin Amount" name="origin_amount" reporter:datatype="money" />
4013                         <field reporter:label="Origin Currency" name="origin_currency_type" reporter:datatype="link" />
4014                         <field reporter:label="Amount" name="amount" reporter:datatype="money" />
4015                         <field reporter:label="Encumbrance" name="encumbrance" reporter:datatype="text" />
4016                         <field reporter:label="Debit Type" name="debit_type" reporter:datatype="text" />
4017                         <field reporter:label="Create Time" name="create_time" reporter:datatype="timestamp" />
4018                 </fields>
4019                 <links>
4020                         <link field="fund" reltype="has_a" key="id" map="" class="acqf"/>
4021                         <link field="origin_currency_type" reltype="has_a" key="code" map="" class="acqct"/>
4022                 </links>
4023         </class>
4024
4025         <class id="acqf" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::fund" oils_persist:tablename="acq.fund" reporter:label="Fund">
4026                 <fields oils_persist:primary="id" oils_persist:sequence="acq.fund_id_seq">
4027                         <field reporter:label="Fund ID" name="id" reporter:datatype="id" reporter:selector='code'/>
4028                         <field reporter:label="Org Unit" name="org" reporter:datatype="org_unit" />
4029                         <field reporter:label="Name" name="name" reporter:datatype="text" />
4030                         <field reporter:label="Year" name="year" reporter:datatype="int" />
4031                         <field reporter:label="Currency Type" name="currency_type" reporter:datatype="link" />
4032                         <field reporter:label="Code" name="code" reporter:datatype="text" />
4033                         <field name="summary" oils_persist:virtual="true"/>
4034                         <field reporter:label="Allocations" name="allocations" oils_persist:virtual="true" reporter:datatype="link"/>
4035                         <field reporter:label="Debits" name="debits" oils_persist:virtual="true" reporter:datatype="link"/>
4036                         <field reporter:label="Tags" name="tags" oils_persist:virtual="true" reporter:datatype="link"/>
4037                 </fields>
4038                 <links>
4039                         <link field="org" reltype="has_a" key="id" map="" class="aou"/>
4040                         <link field="currency_type" reltype="has_a" key="code" map="" class="acqct"/>
4041             <link field="allocations" reltype="has_many" key="fund" map="" class="acqfa"/>
4042             <link field="debits" reltype="has_many" key="fund" map="" class="acqfdeb"/>
4043             <link field="tags" reltype="has_many" key="fund" map="" class="acqftm"/>
4044                 </links>
4045         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
4046             <actions>
4047                 <create permission="ADMIN_ACQ_FUND" context_field="org"/>
4048                 <retrieve permission="ADMIN_ACQ_FUND VIEW_FUND MANAGE_FUND" context_field="org"/>
4049                 <update permission="ADMIN_ACQ_FUND" context_field="org"/>
4050                 <delete permission="ADMIN_ACQ_FUND" context_field="org"/>
4051             </actions>
4052         </permacrud>
4053         </class>
4054
4055         <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">
4056                 <fields oils_persist:primary="fund">
4057                         <field reporter:label="Fund ID" name="fund" reporter:datatype="link" />
4058                         <field reporter:label="Total Allocation Amount" name="amount" reporter:datatype="money" />
4059                 </fields>
4060                 <links>
4061                         <link field="fund" reltype="has_a" key="id" map="" class="acqf"/>
4062                 </links>
4063         </class>
4064
4065         <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">
4066                 <fields oils_persist:primary="fund">
4067                         <field reporter:label="Fund ID" name="fund" reporter:datatype="link" />
4068                         <field reporter:label="Total Debit Amount" name="amount" reporter:datatype="money" />
4069                 </fields>
4070                 <links>
4071                         <link field="fund" reltype="has_a" key="id" map="" class="acqf"/>
4072                 </links>
4073         </class>
4074
4075         <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">
4076                 <fields oils_persist:primary="fund">
4077                         <field reporter:label="Fund ID" name="fund" reporter:datatype="link" />
4078                         <field reporter:label="Total Encumbrance Amount" name="amount" reporter:datatype="money" />
4079                 </fields>
4080                 <links>
4081                         <link field="fund" reltype="has_a" key="id" map="" class="acqf"/>
4082                 </links>
4083         </class>
4084
4085         <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">
4086                 <fields oils_persist:primary="fund">
4087                         <field reporter:label="Fund ID" name="fund" reporter:datatype="link" />
4088                         <field reporter:label="Total Spent Amount" name="amount" reporter:datatype="money" />
4089                 </fields>
4090                 <links>
4091                         <link field="fund" reltype="has_a" key="id" map="" class="acqf"/>
4092                 </links>
4093         </class>
4094
4095         <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">
4096                 <fields oils_persist:primary="fund">
4097                         <field reporter:label="Fund ID" name="fund" reporter:datatype="link" />
4098                         <field reporter:label="Balance after Spent and Encumbered" name="amount" reporter:datatype="money" />
4099                 </fields>
4100                 <links>
4101                         <link field="fund" reltype="has_a" key="id" map="" class="acqf"/>
4102                 </links>
4103         </class>
4104
4105         <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">
4106                 <fields oils_persist:primary="funding_source">
4107                         <field reporter:label="Funding Source" name="funding_source" reporter:datatype="link" />
4108                         <field reporter:label="Total Credits to Funding Source" name="amount" reporter:datatype="money" />
4109                 </fields>
4110                 <links>
4111                         <link field="funding_source" reltype="has_a" key="id" map="" class="acqfs"/>
4112                 </links>
4113         </class>
4114
4115         <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">
4116                 <fields oils_persist:primary="funding_source">
4117                         <field reporter:label="Funding Source" name="funding_source" reporter:datatype="link" />
4118                         <field reporter:label="Total Allocated from Funding Source" name="amount" reporter:datatype="money" />
4119                 </fields>
4120                 <links>
4121                         <link field="funding_source" reltype="has_a" key="id" map="" class="acqfs"/>
4122                 </links>
4123         </class>
4124
4125         <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">
4126                 <fields oils_persist:primary="funding_source">
4127                         <field reporter:label="Funding Source" name="funding_source" reporter:datatype="link" />
4128                         <field reporter:label="Balance Remaining" name="amount" reporter:datatype="money" />
4129                 </fields>
4130                 <links>
4131                         <link field="funding_source" reltype="has_a" key="id" map="" class="acqfs"/>
4132                 </links>
4133         </class>
4134
4135         <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">
4136                 <fields oils_persist:primary="fund">
4137                         <field reporter:label="Fund ID" name="fund" reporter:datatype="link" />
4138                         <field reporter:label="Balance after Spent" name="amount" reporter:datatype="money" />
4139                 </fields>
4140                 <links>
4141                         <link field="fund" reltype="has_a" key="id" map="" class="acqf"/>
4142                 </links>
4143         </class>
4144
4145         <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">
4146                 <fields oils_persist:primary="id" oils_persist:sequence="acq.fund_allocation_id_seq">
4147                         <field reporter:label="Allocation ID" name="id" reporter:datatype="id" />
4148                         <field reporter:label="Fund" name="fund" reporter:datatype="link" />
4149                         <field reporter:label="Funding Source" name="funding_source" reporter:datatype="link" />
4150                         <field reporter:label="Amount" name="amount" reporter:datatype="money" />
4151                         <field reporter:label="Percent" name="percent" reporter:datatype="float" />
4152                         <field reporter:label="Allocating User" name="allocator" reporter:datatype="link" />
4153                         <field reporter:label="Note" name="note" reporter:datatype="text" />
4154                         <field reporter:label="Create Time" name="create_time" reporter:datatype="timestamp" />
4155                 </fields>
4156                 <links>
4157                         <link field="allocator" reltype="has_a" key="id" map="" class="au"/>
4158                         <link field="fund" reltype="has_a" key="id" map="" class="acqf"/>
4159                         <link field="funding_source" reltype="has_a" key="id" map="" class="acqfs"/>
4160                 </links>
4161         </class>
4162
4163         <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">
4164                 <fields oils_persist:primary="id" oils_persist:sequence="acq.picklist_id_seq">
4165                         <field reporter:label="Picklist ID" name="id" reporter:datatype="id" />
4166                         <field reporter:label="Owner" name="owner" reporter:datatype="link" />
4167                         <field reporter:label="Org Unit" name="org_unit" reporter:datatype="link" />
4168                         <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true" />
4169                         <field reporter:label="Creation Time" name="create_time" reporter:datatype="timestamp" />
4170                         <field reporter:label="Edit Time" name="edit_time" reporter:datatype="timestamp" />
4171                         <field reporter:label="Entries" name="entries" oils_persist:virtual="true" reporter:datatype="link" />
4172                         <field reporter:label="Entry Count" name="entry_count" oils_persist:virtual="true"/>
4173                         <field reporter:label="Creator" name="creator" reporter:datatype="link" />
4174                         <field reporter:label="Editor" name="editor" reporter:datatype="link" />
4175                 </fields>
4176                 <links>
4177                         <link field="owner" reltype="has_a" key="id" map="" class="au"/>
4178                         <link field="creator" reltype="has_a" key="id" map="" class="au"/>
4179                         <link field="editor" reltype="has_a" key="id" map="" class="au"/>
4180                         <link field="org_unit" reltype="has_a" key="id" map="" class="aou"/>
4181                         <link field="entries" reltype="has_many" key="picklist" map="" class="jub"/>
4182                 </links>
4183         </class>
4184
4185         <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">
4186                 <fields oils_persist:primary="id" oils_persist:sequence="acq.purchase_order_id_seq">
4187                         <field reporter:label="Purchase Order ID" name="id" reporter:datatype="id" />
4188                         <field reporter:label="Owner" name="owner" reporter:datatype="link" />
4189                         <field reporter:label="Creation Time" name="create_time" reporter:datatype="timestamp" />
4190                         <field reporter:label="Edit Time" name="edit_time" reporter:datatype="timestamp" />
4191                         <field reporter:label="Provider" name="provider" reporter:datatype="link" />
4192                         <field reporter:label="State" name="state" reporter:datatype="text" />
4193                         <field reporter:label="Ordering Agency" name="ordering_agency" reporter:datatype="org_unit" />
4194                         <field reporter:label="Creator" name="creator" reporter:datatype="link" />
4195                         <field reporter:label="Editor" name="editor" reporter:datatype="link" />
4196                         <field reporter:label="Line Items" name="lineitems" oils_persist:virtual="true" reporter:datatype="link" />
4197                         <field reporter:label="Line Item Count" name="lineitem_count" oils_persist:virtual="true" reporter:datatype="link" />
4198                         <field reporter:label="Amount Encumbered" name="amount_encumbered" oils_persist:virtual="true" reporter:datatype="float" />
4199                         <field reporter:label="Amount Spent" name="amount_spent" oils_persist:virtual="true" reporter:datatype="float" />
4200                 </fields>
4201                 <links>
4202                         <link field="owner" reltype="has_a" key="id" map="" class="au"/>
4203                         <link field="creator" reltype="has_a" key="id" map="" class="au"/>
4204                         <link field="editor" reltype="has_a" key="id" map="" class="au"/>
4205                         <link field="default_fund" reltype="has_a" key="id" map="" class="acqf"/>
4206                         <link field="provider" reltype="has_a" key="id" map="" class="acqpro"/>
4207                         <link field="lineitems" reltype="has_many" key="purchase_order" map="" class="jub"/>
4208                         <link field="ordering_agency" reltype="has_a" key="id" map="" class="aou"/>
4209                 </links>
4210                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
4211                         <actions>
4212                                 <create permission="CREATE_PURCHASE_ORDER" context_field="ordering_agency"/>
4213                                 <retrieve permission="CREATE_PURCHASE_ORDER VIEW_PURCHASE_ORDER" context_field="ordering_agency"/>
4214                                 <update permission="CREATE_PURCHASE_ORDER" context_field="ordering_agency"/>
4215                                 <delete permission="CREATE_PURCHASE_ORDER" context_field="ordering_agency"/>
4216                         </actions>
4217                 </permacrud>
4218         </class>
4219
4220         <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">
4221                 <fields oils_persist:primary="id" oils_persist:sequence="acq.po_note_id_seq">
4222                         <field reporter:label="PO Note ID" name="id" reporter:datatype="id" />
4223                         <field reporter:label="Purchase Order" name="purchase_order" reporter:datatype="link" />
4224                         <field reporter:label="Creator" name="creator" reporter:datatype="link" />
4225                         <field reporter:label="Creation Time" name="create_time" reporter:datatype="timestamp" />
4226                         <field reporter:label="Edit Time" name="edit_time" reporter:datatype="timestamp" />
4227                         <field reporter:label="Editor" name="editor" reporter:datatype="link" />
4228                         <field reporter:label="Vote Value" name="value" reporter:datatype="text" />
4229                 </fields>
4230                 <links>
4231                         <link field="creator" reltype="has_a" key="id" map="" class="au"/>
4232                         <link field="editor" reltype="has_a" key="id" map="" class="au"/>
4233                         <link field="purchase_order" reltype="has_a" key="id" map="" class="acqpo"/>
4234                 </links>
4235         </class>
4236
4237         <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">
4238                 <fields oils_persist:primary="id" oils_persist:sequence="acq.lineitem_id_seq">
4239                         <field reporter:label="Lineitem ID" name="id" reporter:datatype="id" />
4240                         <field reporter:label="Selecting User" name="selector" reporter:datatype="link" />
4241                         <field reporter:label="Picklist" name="picklist" reporter:datatype="link" />
4242                         <field reporter:label="Purchase Order" name="purchase_order" reporter:datatype="link" />
4243                         <field reporter:label="Provider" name="provider" reporter:datatype="link" />
4244                         <field reporter:label="Creation Time" name="create_time" reporter:datatype="timestamp" />
4245                         <field reporter:label="Edit Time" name="edit_time" reporter:datatype="timestamp" />
4246                         <field reporter:label="MARC" name="marc" reporter:datatype="text" />
4247                         <field reporter:label="Evergreen Bib ID" name="eg_bib_id" reporter:datatype="link" />
4248                         <field reporter:label="Source Label" name="source_label" reporter:datatype="text" />
4249                         <field reporter:label="Expected Receive Date" name="expected_recv_time" reporter:datatype="timestamp" />
4250                         <field reporter:label="State" name="state" reporter:datatype="text" />
4251                         <field reporter:label="Creator" name="creator" reporter:datatype="link" />
4252                         <field reporter:label="Editor" name="editor" reporter:datatype="link" />
4253                         <field reporter:label="Item Count" name="item_count" oils_persist:virtual="true" reporter:datatype="int" />
4254                         <field reporter:label="Descriptive Attributes" name="attributes" oils_persist:virtual="true" reporter:datatype="link" />
4255                         <field reporter:label="Line Item Details" name="lineitem_details" oils_persist:virtual="true" reporter:datatype="link" />
4256                         <field reporter:label="Line Item Notes" name="lineitem_notes" oils_persist:virtual="true" reporter:datatype="link" />
4257                 </fields>
4258                 <links>
4259                         <link field="selector" reltype="has_a" key="id" map="" class="au"/>
4260                         <link field="editor" reltype="has_a" key="id" map="" class="au"/>
4261                         <link field="creator" reltype="has_a" key="id" map="" class="au"/>
4262                         <link field="provider" reltype="has_a" key="id" map="" class="acqpro"/>
4263                         <link field="purchase_order" reltype="has_a" key="id" map="" class="acqpo"/>
4264                         <link field="picklist" reltype="has_a" key="id" map="" class="acqpl"/>
4265                         <link field="eg_bib_id" reltype="has_a" key="id" map="" class="bre"/>
4266                         <link field="attributes" reltype="has_many" key="lineitem" map="" class="acqlia"/>
4267                         <link field="lineitem_details" reltype="has_many" key="lineitem" map="" class="acqlid"/>
4268                         <link field="lineitem_notes" reltype="has_many" key="lineitem" map="" class="acqlin"/>
4269                 </links>
4270         </class>
4271
4272         <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">
4273                 <fields oils_persist:primary="id" oils_persist:sequence="acq.lineitem_note_id_seq">
4274                         <field reporter:label="PO Line Item Note ID" name="id" reporter:datatype="id" />
4275                         <field reporter:label="Line Item" name="lineitem" reporter:datatype="link" />
4276                         <field reporter:label="Creator" name="creator" reporter:datatype="link" />
4277                         <field reporter:label="Creation Time" name="create_time" reporter:datatype="timestamp" />
4278                         <field reporter:label="Edit Time" name="edit_time" reporter:datatype="timestamp" />
4279                         <field reporter:label="Editor" name="editor" reporter:datatype="link" />
4280                         <field reporter:label="Vote Value" name="value" reporter:datatype="text" />
4281                 </fields>
4282                 <links>
4283                         <link field="creator" reltype="has_a" key="id" map="" class="au"/>
4284                         <link field="editor" reltype="has_a" key="id" map="" class="au"/>
4285                         <link field="lineitem" reltype="has_a" key="id" map="" class="jub"/>
4286                 </links>
4287         </class>
4288
4289         <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">
4290                 <fields oils_persist:primary="id" oils_persist:sequence="acq.lineitem_attr_id_seq">
4291                         <field reporter:label="Attribute Value ID" name="id" reporter:datatype="id" />
4292                         <field reporter:label="Lineitem" name="lineitem" reporter:datatype="link" />
4293                         <field reporter:label="Type" name="attr_type" reporter:datatype="text" />
4294                         <field reporter:label="Name" name="attr_name" reporter:datatype="text" />
4295                         <field reporter:label="Value" name="attr_value" reporter:datatype="text" />
4296                         <field reporter:label="Definition" name="definition" reporter:datatype="text" />
4297                 </fields>
4298                 <links>
4299                         <link field="lineitem" reltype="has_a" key="id" map="" class="jub"/>
4300                         <link field="definition" reltype="has_a" key="id" map="" class="acqliad"/>
4301                 </links>
4302         </class>
4303
4304         <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">
4305                 <fields oils_persist:primary="id" oils_persist:sequence="acq.lineitem_detail_id_seq">
4306                         <field reporter:label="Item Detail ID" name="id" reporter:datatype="id" />
4307                         <field reporter:label="PO Line Item" name="lineitem" reporter:datatype="link" />
4308                         <field reporter:label="Evergreen Copy ID" name="eg_copy_id" reporter:datatype="link" />
4309                         <field reporter:label="Barcode" name="barcode" reporter:datatype="text" />
4310                         <field reporter:label="Call Number Label" name="cn_label" reporter:datatype="text" />
4311                         <field reporter:label="Actual Receive Date" name="recv_time" reporter:datatype="timestamp" />
4312                         <field reporter:label="Fund" name="fund" reporter:datatype="link" />
4313                         <field reporter:label="Fund Debit" name="fund_debit" reporter:datatype="link" />
4314                         <field reporter:label="Owning Library" name="owning_lib" reporter:datatype="org_unit" />
4315                         <field reporter:label="Shelving Location" name="location" reporter:datatype="link" />
4316                         <field reporter:label="Circ Modifier" name="circ_modifier" reporter:datatype="link" />
4317                         <field reporter:label="Note" name="note" reporter:datatype="text" />
4318                         <field reporter:label="Collection Code" name="collection_code" reporter:datatype="text" />
4319                 </fields>
4320                 <links>
4321                         <link field="lineitem" reltype="has_a" key="id" map="" class="jub"/>
4322                         <link field="eg_copy_id" reltype="has_a" key="id" map="" class="acp"/>
4323                         <link field="fund" reltype="has_a" key="id" map="" class="acqf"/>
4324                         <link field="fund_debit" reltype="has_a" key="id" map="" class="acqfdeb"/>
4325                         <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
4326                         <link field="location" reltype="has_a" key="id" map="" class="acpl"/>
4327                         <link field="circ_modifier" reltype="has_a" key="code" map="" class="ccm"/>
4328                 </links>
4329         </class>
4330
4331         <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">
4332                 <fields oils_persist:primary="id" oils_persist:sequence="acq.lineitem_attr_definition_id_seq">
4333                         <field reporter:label="Definition ID" name="id" reporter:datatype="id" />
4334                         <field reporter:label="Code" name="code" reporter:datatype="text" />
4335                         <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true" />
4336                         <field reporter:label="Is Identifier?" name="ident" reporter:datatype="bool"/>
4337                 </fields>
4338                 <links/>
4339         </class>
4340
4341         <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">
4342                 <fields oils_persist:primary="id" oils_persist:sequence="acq.lineitem_attr_definition_id_seq">
4343                         <field reporter:label="Definition ID" name="id" reporter:datatype="id" />
4344                         <field reporter:label="Code" name="code" reporter:datatype="text" />
4345                         <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true" />
4346                         <field reporter:label="XPath" name="xpath" reporter:datatype="text" />
4347                         <field reporter:label="Is Identifier?" name="ident" reporter:datatype="bool"/>
4348                 </fields>
4349                 <links/>
4350         </class>
4351
4352         <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">
4353                 <fields oils_persist:primary="id" oils_persist:sequence="acq.lineitem_attr_definition_id_seq">
4354                         <field reporter:label="Definition ID" name="id" reporter:datatype="id" />
4355                         <field reporter:label="Code" name="code" reporter:datatype="text" />
4356                         <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true" />
4357                         <field reporter:label="XPath" name="xpath" reporter:datatype="text" />
4358                         <field reporter:label="Is Identifier?" name="ident" reporter:datatype="bool"/>
4359                 </fields>
4360                 <links/>
4361         </class>
4362         <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">
4363                 <fields oils_persist:primary="id" oils_persist:sequence="acq.lineitem_attr_definition_id_seq">
4364                         <field reporter:label="Definition ID" name="id" reporter:datatype="id" />
4365                         <field reporter:label="Code" name="code" reporter:datatype="text" />
4366                         <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true" />
4367                         <field reporter:label="User" name="usr" reporter:datatype="link" />
4368                         <field reporter:label="Is Identifier?" name="ident" reporter:datatype="bool"/>
4369                 </fields>
4370                 <links>
4371                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
4372                 </links>
4373         </class>
4374
4375         <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">
4376             <fields oils_persist:primary="id" oils_persist:sequence="acq.lineitem_attr_definition_id_seq">
4377                 <field reporter:label="Definition ID" name="id" reporter:datatype="id" />
4378                 <field reporter:label="Code" name="code" reporter:datatype="text" />
4379                 <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true" />
4380                 <field reporter:label="XPath" name="xpath" reporter:datatype="text" />
4381                 <field reporter:label="Provider" name="provider" reporter:datatype="link" />
4382                 <field reporter:label="Is Identifier?" name="ident" reporter:datatype="bool"/>
4383         <field reporter:label="Remove" name="remove" reporter:datatype="text" />
4384
4385             </fields>
4386             <links>
4387                 <link field="provider" reltype="has_a" key="id" map="" class="acqpro"/>
4388             </links>
4389             <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
4390                 <actions>
4391                     <create permission="ADMIN_PROVIDER">
4392                         <context link="provider" field="owner"/>
4393                     </create>
4394                     <retrieve permission="ADMIN_PROVIDER">
4395                         <context link="provider" field="owner"/>
4396                     </retrieve>
4397                     <update permission="ADMIN_PROVIDER">
4398                         <context link="provider" field="owner"/>
4399                     </update>
4400                     <delete permission="ADMIN_PROVIDER">
4401                         <context link="provider" field="owner"/>
4402                     </delete>
4403                 </actions>
4404             </permacrud>
4405         </class>
4406         
4407         <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">
4408             <fields oils_persist:primary="id" oils_persist:sequence="acq.provider_holding_subfield_map_id_seq">
4409                 <field reporter:label="ID" name="id" reporter:datatype="id" />
4410                 <field reporter:label="Provider" name="provider" reporter:datatype="link" />
4411                 <field reporter:label="Name" name="name" reporter:datatype="text" />
4412                 <field reporter:label="Subfield" name="subfield" reporter:datatype="text" />
4413             </fields>
4414             <links>
4415                 <link field="provider" reltype="has_a" key="id" map="" class="acqpro"/>
4416             </links>
4417             <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
4418                 <actions>
4419                     <create permission="ADMIN_PROVIDER">
4420                         <context link="provider" field="owner"/>
4421                     </create>
4422                     <retrieve permission="ADMIN_PROVIDER">
4423                         <context link="provider" field="owner"/>
4424                     </retrieve>
4425                     <update permission="ADMIN_PROVIDER">
4426                         <context link="provider" field="owner"/>
4427                     </update>
4428                     <delete permission="ADMIN_PROVIDER">
4429                         <context link="provider" field="owner"/>
4430                     </delete>
4431                 </actions>
4432             </permacrud>
4433         </class>
4434         
4435         <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">
4436             <fields oils_persist:primary="id" oils_persist:sequence="acq.lineitem_attr_definition_id_seq">
4437                         <field reporter:label="Definition ID" name="id" reporter:datatype="id" />
4438                         <field reporter:label="Code" name="code" reporter:datatype="text" />
4439                         <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true" />
4440                         <field reporter:label="Is Identifier?" name="ident" reporter:datatype="bool"/>
4441                 </fields>
4442                 <links/>
4443         </class>
4444
4445         <class id="rof" controller="open-ils.reporter-store" oils_obj:fieldmapper="reporter::output_folder" oils_persist:tablename="reporter.output_folder" reporter:label="Output Folder">
4446                 <fields oils_persist:primary="id" oils_persist:sequence="reporter.output_folder_id_seq">
4447                         <field name="id" reporter:datatype="id" />
4448                         <field name="parent" reporter:datatype="link"/>
4449                         <field name="owner" reporter:datatype="link"/>
4450                         <field name="create_time" reporter:datatype="timestamp"/>
4451                         <field name="name" reporter:datatype="text"/>
4452                         <field name="shared" reporter:datatype="bool"/>
4453                         <field name="share_with" reporter:datatype="link"/>
4454                         <field name="children" oils_persist:virtual="true" reporter:datatype="link"/>
4455                         <field name="outputs" oils_persist:virtual="true" reporter:datatype="link"/>
4456                 </fields>
4457                 <links>
4458                         <link field="owner" reltype="has_a" key="id" map="" class="au"/>
4459                         <link field="parent" reltype="has_a" key="id" map="" class="rof"/>
4460                         <link field="children" reltype="has_many" key="parent" map="" class="rof"/>
4461                         <link field="share_with" reltype="has_a" key="id" map="" class="aou"/>
4462                         <link field="outputs" reltype="has_many" key="folder" map="" class="rs"/>
4463                 </links>
4464         </class>
4465         <class id="rtf" controller="open-ils.reporter-store" oils_obj:fieldmapper="reporter::template_folder" oils_persist:tablename="reporter.template_folder" reporter:label="Template Folder">
4466                 <fields oils_persist:primary="id" oils_persist:sequence="reporter.template_folder_id_seq">
4467                         <field name="id" reporter:datatype="id" />
4468                         <field name="parent" reporter:datatype="link"/>
4469                         <field name="owner" reporter:datatype="link"/>
4470                         <field name="create_time" reporter:datatype="timestamp"/>
4471                         <field name="name" reporter:datatype="text"/>
4472                         <field name="shared" reporter:datatype="bool"/>
4473                         <field name="share_with" reporter:datatype="link"/>
4474                         <field name="children" oils_persist:virtual="true" reporter:datatype="link"/>
4475                         <field name="templates" oils_persist:virtual="true" reporter:datatype="link"/>
4476                 </fields>
4477                 <links>
4478                         <link field="owner" reltype="has_a" key="id" map="" class="au"/>
4479                         <link field="parent" reltype="has_a" key="id" map="" class="rtf"/>
4480                         <link field="children" reltype="has_many" key="parent" map="" class="rtf"/>
4481                         <link field="share_with" reltype="has_a" key="id" map="" class="aou"/>
4482                         <link field="templates" reltype="has_many" key="folder" map="" class="rt"/>
4483                 </links>
4484         </class>
4485         <class id="rrf" controller="open-ils.reporter-store" oils_obj:fieldmapper="reporter::report_folder" oils_persist:tablename="reporter.report_folder" reporter:label="Report Folder">
4486                 <fields oils_persist:primary="id" oils_persist:sequence="reporter.report_folder_id_seq">
4487                         <field name="id" reporter:datatype="id" />
4488                         <field name="parent" reporter:datatype="link"/>
4489                         <field name="owner" reporter:datatype="link"/>
4490                         <field name="create_time" reporter:datatype="timestamp"/>
4491                         <field name="name" reporter:datatype="text"/>
4492                         <field name="shared" reporter:datatype="bool"/>
4493                         <field name="share_with" reporter:datatype="link"/>
4494                         <field name="children" oils_persist:virtual="true" reporter:datatype="link"/>
4495                         <field name="reports" oils_persist:virtual="true" reporter:datatype="link"/>
4496                 </fields>
4497                 <links>
4498                         <link field="owner" reltype="has_a" key="id" map="" class="au"/>
4499                         <link field="parent" reltype="has_a" key="id" map="" class="rrf"/>
4500                         <link field="children" reltype="has_many" key="parent" map="" class="rrf"/>
4501                         <link field="share_with" reltype="has_a" key="id" map="" class="aou"/>
4502                         <link field="reports" reltype="has_many" key="folder" map="" class="rr"/>
4503                 </links>
4504         </class>
4505         <class id="rt" controller="open-ils.reporter-store" oils_obj:fieldmapper="reporter::template" oils_persist:tablename="reporter.template" reporter:label="Template">
4506                 <fields oils_persist:primary="id" oils_persist:sequence="reporter.template_id_seq">
4507                         <field name="id" reporter:datatype="id" />
4508                         <field name="owner" reporter:datatype="link"/>
4509                         <field name="create_time" reporter:datatype="timestamp"/>
4510                         <field name="name" reporter:datatype="text"/>
4511                         <field name="data" reporter:datatype="text"/>
4512                         <field name="folder" reporter:datatype="link"/>
4513                         <field name="description" reporter:datatype="text"/>
4514                         <field name="reports" oils_persist:virtual="true" reporter:datatype="link"/>
4515                 </fields>
4516                 <links>
4517                         <link field="owner" reltype="has_a" key="id" map="" class="au"/>
4518                         <link field="folder" reltype="has_a" key="id" map="" class="rtf"/>
4519                         <link field="reports" reltype="has_many" key="template" map="" class="rr"/>
4520                 </links>
4521         </class>
4522         <class id="rr" controller="open-ils.reporter-store" oils_obj:fieldmapper="reporter::report" oils_persist:tablename="reporter.report" reporter:label="Report">
4523                 <fields oils_persist:primary="id" oils_persist:sequence="reporter.report_id_seq">
4524                         <field name="id" reporter:datatype="id" />
4525                         <field name="owner" reporter:datatype="link"/>
4526                         <field name="create_time" reporter:datatype="timestamp"/>
4527                         <field name="template" reporter:datatype="link"/>
4528                         <field name="data" reporter:datatype="link"/>
4529                         <field name="folder" reporter:datatype="link"/>
4530                         <field name="recur" reporter:datatype="bool"/>
4531                         <field name="recurance" reporter:datatype="interval"/>
4532                         <field name="name" reporter:datatype="text"/>
4533                         <field name="description" reporter:datatype="text"/>
4534                         <field name="runs" oils_persist:virtual="true" reporter:datatype="link"/>
4535                 </fields>
4536                 <links>
4537                         <link field="owner" reltype="has_a" key="id" map="" class="au"/>
4538                         <link field="template" reltype="has_a" key="id" map="" class="rt"/>
4539                         <link field="folder" reltype="has_a" key="id" map="" class="rrf"/>
4540                         <link field="runs" reltype="has_many" key="report" map="" class="rs"/>
4541                 </links>
4542         </class>
4543         <class id="rs" controller="open-ils.reporter-store" oils_obj:fieldmapper="reporter::schedule" oils_persist:tablename="reporter.schedule" reporter:label="Schedule">
4544                 <fields oils_persist:primary="id" oils_persist:sequence="reporter.schedule_id_seq">
4545                         <field name="id" reporter:datatype="id" />
4546                         <field name="runner" reporter:datatype="link"/>
4547                         <field name="start_time" reporter:datatype="timestamp"/>
4548                         <field name="complete_time" reporter:datatype="timestamp"/>
4549                         <field name="run_time" reporter:datatype="timestamp"/>
4550                         <field name="email" reporter:datatype="text"/>
4551                         <field name="excel_format" reporter:datatype="bool"/>
4552                         <field name="csv_format" reporter:datatype="bool"/>
4553                         <field name="html_format" reporter:datatype="bool"/>
4554                         <field name="error_code" reporter:datatype="int"/>
4555                         <field name="error_text" reporter:datatype="text"/>
4556                         <field name="report" reporter:datatype="link"/>
4557                         <field name="folder" reporter:datatype="link"/>
4558                         <field name="chart_pie" reporter:datatype="bool"/>
4559                         <field name="chart_bar" reporter:datatype="bool"/>
4560                         <field name="chart_line" reporter:datatype="bool"/>
4561                 </fields>
4562                 <links>
4563                         <link field="runner" reltype="has_a" key="id" map="" class="au"/>
4564                         <link field="report" reltype="has_a" key="id" map="" class="rr"/>
4565                         <link field="folder" reltype="has_a" key="id" map="" class="rof"/>
4566                 </links>
4567         </class>
4568         <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">
4569                 <fields oils_persist:primary="id">
4570                         <field reporter:label="Record ID" name="id" reporter:datatype="id" />
4571                         <field reporter:label="Fingerprint" name="fingerprint" reporter:datatype="text"/>
4572                         <field reporter:label="Overall Record Quality" name="quality" reporter:datatype="int"/>
4573                         <field reporter:label="TCN Source" name="tcn_source" reporter:datatype="text"/>
4574                         <field reporter:label="TCN Value" name="tcn_value" reporter:datatype="text"/>
4575                         <field reporter:label="Title Proper (normalized)" name="title" reporter:datatype="text"/>
4576                         <field reporter:label="Author (normalized)" name="author" reporter:datatype="text"/>
4577                         <field reporter:label="Publisher (normalized)" name="publisher" reporter:datatype="text"/>
4578                         <field reporter:label="Publication Year (normalized)" name="pubdate" reporter:datatype="int"/>
4579                         <field reporter:label="ISBN" name="isbn" reporter:datatype="text"/>
4580                         <field reporter:label="ISSN" name="issn" reporter:datatype="text"/>
4581                         <field reporter:label="Full Bibliographic record" name="biblio_record" oils_persist:virtual="true" reporter:datatype="link"/>
4582                 </fields>
4583                 <links>
4584                         <link field="biblio_record" reltype="might_have" key="id" map="" class="bre"/>
4585                 </links>
4586         </class>
4587         <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">
4588                 <fields oils_persist:primary="id">
4589                         <field reporter:label="Record ID" name="id" reporter:datatype="id" />
4590                         <field reporter:label="Fingerprint" name="fingerprint" reporter:datatype="text"/>
4591                         <field reporter:label="Overall Record Quality" name="quality" reporter:datatype="int"/>
4592                         <field reporter:label="TCN Source" name="tcn_source" reporter:datatype="text"/>
4593                         <field reporter:label="TCN Value" name="tcn_value" reporter:datatype="text"/>
4594                         <field reporter:label="Title Proper (normalized)" name="title" reporter:datatype="text"/>
4595                         <field reporter:label="Author (normalized)" name="author" reporter:datatype="text"/>
4596                         <field reporter:label="Publisher (normalized)" name="publisher" reporter:datatype="text"/>
4597                         <field reporter:label="Publication Year (normalized)" name="pubdate" reporter:datatype="int"/>
4598                         <field reporter:label="ISBN" name="isbn" reporter:datatype="text"/>
4599                         <field reporter:label="ISSN" name="issn" reporter:datatype="text"/>
4600                         <field reporter:label="Full Bibliographic record" name="biblio_record" oils_persist:virtual="true" reporter:datatype="link"/>
4601                 </fields>
4602                 <links>
4603                         <link field="biblio_record" reltype="might_have" key="id" map="" class="bre"/>
4604                 </links>
4605         </class>
4606         <class id="rsr" controller="open-ils.reporter-store" oils_obj:fieldmapper="reporter::simple_record" oils_persist:tablename="reporter.simple_record" reporter:label="Simple Record">
4607                 <fields oils_persist:primary="id">
4608                         <field reporter:label="Record ID" name="id" reporter:datatype="id" />
4609                         <field reporter:label="Metarecord" name="metarecord" reporter:datatype="link"/>
4610                         <field reporter:label="Fingerprint" name="fingerprint" />
4611                         <field reporter:label="Overall Record Quality" name="quality" reporter:datatype="int"/>
4612                         <field reporter:label="TCN Source" name="tcn_source" reporter:datatype="text"/>
4613                         <field reporter:label="TCN Value" name="tcn_value" reporter:datatype="text"/>
4614                         <field reporter:label="Title Proper (normalized)" name="title" reporter:datatype="text"/>
4615                         <field reporter:label="Uniform Title (normalized)" name="uniform_title" reporter:datatype="text"/>
4616                         <field reporter:label="Author (normalized)" name="author" reporter:datatype="text"/>
4617                         <field reporter:label="Publisher (normalized)" name="publisher" reporter:datatype="text"/>
4618                         <field reporter:label="Publication Year (normalized)" name="pubdate" reporter:datatype="int"/>
4619                         <field reporter:label="Series Title (normalized)" name="series_title" reporter:datatype="text"/>
4620                         <field reporter:label="Series Statement (normalized)" name="series_statement" reporter:datatype="text"/>
4621                         <field reporter:label="Summary (normalized)" name="summary" reporter:datatype="text"/>
4622                         <field reporter:label="ISBN" name="isbn" reporter:datatype="text"/>
4623                         <field reporter:label="ISSN" name="issn" reporter:datatype="text"/>
4624                         <field reporter:label="Topic Subjects (normalized)" name="topic_subject" reporter:datatype="text"/>
4625                         <field reporter:label="Geographic Subjects (normalized)" name="geographic_subject" reporter:datatype="text"/>
4626                         <field reporter:label="Genres (normalized)" name="genre" reporter:datatype="text"/>
4627                         <field reporter:label="Personal Name Subjects (normalized)" name="name_subject" reporter:datatype="text"/>
4628                         <field reporter:label="Corporate Name Subjects (normalized)" name="corporate_subject" reporter:datatype="text"/>
4629                         <field reporter:label="External URI List (normalized)" name="external_uri" reporter:datatype="text"/>
4630                         <field reporter:label="Full Bibliographic record" name="biblio_record" oils_persist:virtual="true" reporter:datatype="link"/>
4631                 </fields>
4632                 <links>
4633                         <link field="metarecord" reltype="has_a" key="id" map="" class="mmr"/>
4634                         <link field="biblio_record" reltype="might_have" key="id" map="" class="bre"/>
4635                 </links>
4636         </class>
4637         <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">
4638                 <fields oils_persist:primary="id">
4639                         <field reporter:label="User ID" name="id" reporter:datatype="id" />
4640                         <field reporter:label="Date of Birth" name="dob" reporter:datatype="timestamp"/>
4641                         <field reporter:label="General Demographic Division" name="general_division" reporter:datatype="text"/>
4642                 </fields>
4643                 <links>
4644                         <link field="id" reltype="might_have" key="id" map="" class="au"/>
4645                 </links>
4646         </class>
4647         <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">
4648                 <fields oils_persist:primary="id">
4649                         <field reporter:label="Circulation ID" name="id" reporter:datatype="id" />
4650                         <field reporter:label="Circulation Type" name="type" reporter:datatype="text"/>
4651                 </fields>
4652                 <links>
4653                         <link field="id" reltype="might_have" key="id" map="" class="circ"/>
4654                 </links>
4655         </class>
4656         <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">
4657                 <fields oils_persist:primary="id">
4658                         <field reporter:label="Hold ID" name="id" reporter:datatype="id" />
4659                         <field reporter:label="Hold Target" name="target" reporter:datatype="int" />
4660                         <field reporter:label="Hold Request Type" name="hold_type" reporter:datatype="text"/>
4661                         <field reporter:label="Target Bib Record" name="bib_record" reporter:datatype="link"/>
4662                 </fields>
4663                 <links>
4664                         <link field="id" reltype="might_have" key="id" map="" class="ahr"/>
4665                         <link field="bib_record" reltype="has_a" key="id" map="" class="bre"/>
4666                 </links>
4667         </class>
4668         <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">
4669                 <fields oils_persist:primary="xact">
4670                         <field reporter:label="Transaction ID" name="xact" reporter:datatype="int" />
4671                         <field reporter:label="Unvoided Billing Amount" name="unvoided" reporter:datatype="int" />
4672                         <field reporter:label="Voided Billing Amount" name="voided" reporter:datatype="money"/>
4673                         <field reporter:label="Total Billing Amount" name="total" reporter:datatype="money"/>
4674                 </fields>
4675                 <links>
4676                         <link field="xact" reltype="might_have" key="id" map="" class="mbt"/>
4677                 </links>
4678         </class>
4679         <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">
4680                 <fields oils_persist:primary="xact">
4681                         <field reporter:label="Transaction ID" name="xact" reporter:datatype="int" />
4682                         <field reporter:label="Unvoided Paid Amount" name="unvoided" reporter:datatype="int" />
4683                         <field reporter:label="Voided (Returned) Paid Amount" name="voided" reporter:datatype="money"/>
4684                         <field reporter:label="Total Paid Amount" name="total" reporter:datatype="money"/>
4685                 </fields>
4686                 <links>
4687                         <link field="xact" reltype="might_have" key="id" map="" class="mbt"/>
4688                 </links>
4689         </class>
4690         <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)">
4691                 <fields oils_persist:primary="id">
4692                         <field reporter:label="Bib ID" name="id" reporter:datatype="id" />
4693                         <field reporter:label="Update Time" name="holding_update" reporter:datatype="timestamp" />
4694                         <field reporter:label="Update Type" name="update_type" reporter:datatype="text" />
4695                 </fields>
4696                 <links>
4697                         <link field="id" reltype="has_a" key="id" map="" class="bre"/>
4698                 </links>
4699         </class>
4700         <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">
4701                 <fields oils_persist:primary="id">
4702                         <field reporter:label="Copy ID" name="id" reporter:datatype="int" />
4703                         <field reporter:label="Total Circulation Count" name="circ_count" reporter:datatype="int" />
4704                 </fields>
4705                 <links>
4706                         <link field="id" reltype="has_a" key="id" map="" class="acp"/>
4707                 </links>
4708         </class>
4709         <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">
4710                 <fields oils_persist:primary="id" oils_persist:sequence="acq.distribution_formula_id_seq">
4711                         <field reporter:label="Formula ID" name="id" reporter:datatype="id"/>
4712                         <field reporter:label="Formula Owner" name="owner" reporter:datatype="org_unit"/>
4713                         <field reporter:label="Formula Name" name="name" reporter:datatype="text"/>
4714                         <field reporter:label="Skip Count" name="skip_count" reporter:datatype="int"/>
4715                         <field reporter:label="Entries" name="entries" oils_persist:virtual="true" reporter:datatype="link"/>
4716                 </fields>
4717                 <links>
4718                         <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
4719                         <link field="entries" reltype="has_many" key="formula" map="" class="acqdfe"/>
4720                 </links>
4721                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
4722                         <actions>
4723                                 <create permission="ADMIN_ACQ_DISTRIB_FORMULA" context_field="owner"/>
4724                                 <retrieve permission="ADMIN_ACQ_DISTRIB_FORMULA" context_field="owner"/>
4725                                 <update permission="ADMIN_ACQ_DISTRIB_FORMULA" context_field="owner"/>
4726                                 <delete permission="ADMIN_ACQ_DISTRIB_FORMULA" context_field="owner"/>
4727                         </actions>
4728                 </permacrud>
4729         </class>
4730         <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">
4731                 <fields oils_persist:primary="id" oils_persist:sequence="acq.distribution_formula_entry_id_seq">
4732                         <field reporter:label="Entry ID" name="id" reporter:datatype="id"/>
4733                         <field reporter:label="Formula ID" name="formula" reporter:datatype="link"/>
4734                         <field reporter:label="Position" name="position" reporter:datatype="int"/>
4735                         <field reporter:label="Item Count" name="item_count" reporter:datatype="int"/>
4736                         <field reporter:label="Owning Library" name="owning_lib" reporter:datatype="org_unit"/>
4737                         <field reporter:label="Location" name="location" reporter:datatype="link"/>
4738                 </fields>
4739                 <links>
4740                         <link field="formula" reltype="has_a" key="id" map="" class="acqdf"/>
4741                         <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
4742                         <link field="location" reltype="has_a" key="id" map="" class="acpl"/>
4743                 </links>
4744                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
4745                         <actions>
4746                                 <create permission="ADMIN_ACQ_DISTRIB_FORMULA">
4747                                         <context link="formula" field="owner"/>
4748                                 </create>
4749                                 <retrieve permission="ADMIN_ACQ_DISTRIB_FORMULA">
4750                                         <context link="formula" field="owner"/>
4751                                 </retrieve>
4752                                 <update permission="ADMIN_ACQ_DISTRIB_FORMULA">
4753                                         <context link="formula" field="owner"/>
4754                                 </update>
4755                                 <delete permission="ADMIN_ACQ_DISTRIB_FORMULA">
4756                                         <context link="formula" field="owner"/>
4757                                 </delete>
4758                         </actions>
4759                 </permacrud>
4760         </class>
4761
4762     <class id="stgu" controller="open-ils.cstore" oils_obj:fieldmapper="staging::user_stage" oils_persist:tablename="staging.user_stage" reporter:label="User Stage">
4763         <fields oils_persist:primary="row_id" oils_persist:sequence="staging.usr_stage_row_id_seq">
4764             <field reporter:label="Row ID" name="row_id" reporter:datatype="id"/>
4765             <field reporter:label="Row Date" name="row_date" reporter:datatype="timestamp"/>
4766             <field reporter:label="User Name" name="usrname" reporter:datatype="text"/>
4767             <field reporter:label="Main (Profile) Permission Group" name="profile" reporter:datatype="text"/>
4768             <field reporter:label="Email Address" name="email" reporter:datatype="text"/>
4769             <field reporter:label="Password" name="passwd" reporter:datatype="text"/>
4770             <field reporter:label="Primary Identification Type" name="ident_type" reporter:datatype="int"/>
4771             <field reporter:label="First Name" name="first_given_name" reporter:datatype="text"/>
4772             <field reporter:label="Middle Name" name="second_given_name" reporter:datatype="text"/>
4773             <field reporter:label="Last Name" name="family_name" reporter:datatype="text"/>
4774             <field reporter:label="Daytime Phone" name="day_phone" reporter:datatype="text"/>
4775             <field reporter:label="Evening Phone" name="evening_phone" reporter:datatype="text"/>
4776             <field reporter:label="Home Library" name="home_ou" reporter:datatype="int"/>
4777             <field reporter:label="Date of Birth" name="dob" reporter:datatype="text"/>
4778             <field reporter:label="Complete" name="complete" reporter:datatype="bool"/>
4779         </fields>
4780     </class>
4781
4782     <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">
4783         <fields oils_persist:primary="row_id" oils_persist:sequence="staging.card_stage_row_id_seq">
4784             <field reporter:label="Row ID" name="row_id" reporter:datatype="id"/>
4785             <field reporter:label="Row Date" name="row_date" reporter:datatype="timestamp"/>
4786             <field reporter:label="User Name" name="usrname" reporter:datatype="text"/>
4787             <field reporter:label="Barcode" name="barcode" reporter:datatype="text"/>
4788             <field reporter:label="Complete" name="complete" reporter:datatype="bool"/>
4789         </fields>
4790     </class>
4791
4792     <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">
4793         <fields oils_persist:primary="row_id" oils_persist:sequence="staging.mailing_address_stage_row_id_seq">
4794             <field reporter:label="Row ID" name="row_id" reporter:datatype="id"/>
4795             <field reporter:label="Row Date" name="row_date" reporter:datatype="timestamp"/>
4796             <field reporter:label="User Name" name="usrname" reporter:datatype="text"/>
4797             <field reporter:label="Street (1)" name="street1" reporter:datatype="text"/>
4798             <field reporter:label="Street (2)" name="street2" reporter:datatype="text"/>
4799             <field reporter:label="City" name="city" reporter:datatype="text"/>
4800             <field reporter:label="State" name="state" reporter:datatype="text"/>
4801             <field reporter:label="Country" name="country" reporter:datatype="text"/>
4802             <field reporter:label="Postal Code" name="post_code" reporter:datatype="text"/>
4803             <field reporter:label="Complete" name="complete" reporter:datatype="bool"/>
4804         </fields>
4805     </class>
4806
4807     <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">
4808         <fields oils_persist:primary="row_id" oils_persist:sequence="staging.billing_address_stage_row_id_seq">
4809             <field reporter:label="Row ID" name="row_id" reporter:datatype="id"/>
4810             <field reporter:label="Row Date" name="row_date" reporter:datatype="timestamp"/>
4811             <field reporter:label="User Name" name="usrname" reporter:datatype="text"/>
4812             <field reporter:label="Street (1)" name="street1" reporter:datatype="text"/>
4813             <field reporter:label="Street (2)" name="street2" reporter:datatype="text"/>
4814             <field reporter:label="City" name="city" reporter:datatype="text"/>
4815             <field reporter:label="State" name="state" reporter:datatype="text"/>
4816             <field reporter:label="Country" name="country" reporter:datatype="text"/>
4817             <field reporter:label="Postal Code" name="post_code" reporter:datatype="text"/>
4818             <field reporter:label="Complete" name="complete" reporter:datatype="bool"/>
4819         </fields>
4820     </class>
4821
4822     <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">
4823         <fields oils_persist:primary="row_id" oils_persist:sequence="staging.statcat_stage_row_id_seq">
4824             <field reporter:label="Row ID" name="row_id" reporter:datatype="id"/>
4825             <field reporter:label="Row Date" name="row_date" reporter:datatype="timestamp"/>
4826             <field reporter:label="User Name" name="usrname" reporter:datatype="text"/>
4827             <field reporter:label="Stat Cat ID" name="statcat" reporter:datatype="text"/>
4828             <field reporter:label="Stat Cat Value" name="value" reporter:datatype="text"/>
4829             <field reporter:label="Complete" name="complete" reporter:datatype="bool"/>
4830         </fields>
4831     </class>
4832
4833
4834         <!-- ********************************************************************************************************************* -->
4835         <!-- What follows is a set of example extensions that are useful for PINES.  Comment out or remove if you don't want them. -->
4836         <!-- ********************************************************************************************************************* -->
4837         <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">
4838                 <fields oils_persist:primary="id">
4839                         <field reporter:label="Circulation" name="id" reporter:datatype="id" />
4840                         <field reporter:label="Library Circulation Location Short (Policy) Name" name="circ_lib" reporter:datatype="text"/>
4841                         <field reporter:label="Library Circulation Location Link" name="circ_lib_id" reporter:datatype="org_unit"/>
4842                         <field reporter:label="Circulation Date/Time" name="xact_start" reporter:datatype="timestamp"/>
4843                         <field reporter:label="Circulation Type" name="circ_type" reporter:datatype="text"/>
4844                         <field reporter:label="Copy Link" name="copy_id" reporter:datatype="link"/>
4845                         <field reporter:label="Circ Modifier" name="circ_modifier" reporter:datatype="text"/>
4846                         <field reporter:label="Owning Library Short (Policy) Name" name="owning_lib_name" reporter:datatype="text"/>
4847                         <field reporter:label="Item Language" name="language" reporter:datatype="text"/>
4848                         <field reporter:label="Literary Form" name="lit_form" reporter:datatype="text"/>
4849                         <field reporter:label="MARC Form" name="item_form" reporter:datatype="text"/>
4850                         <field reporter:label="MARC Type" name="item_type" reporter:datatype="text"/>
4851                         <field reporter:label="Shelving Location" name="shelving_location" reporter:datatype="text"/>
4852                         <field reporter:label="Patron Profile Group" name="profile_group" reporter:datatype="text"/>
4853                         <field reporter:label="Patron Age Demographic" name="demographic_general_division" reporter:datatype="text"/>
4854                         <field reporter:label="Call Number Link" name="call_number" reporter:datatype="link"/>
4855                         <field reporter:label="Call Number Label" name="call_number_label" reporter:datatype="text"/>
4856                         <field reporter:label="Call Number Dewey/Prefix" name="dewey" reporter:datatype="text"/>
4857                         <field reporter:label="Patron Link" name="patron_id" reporter:datatype="link"/>
4858                         <field reporter:label="Patron Home Library Link" name="patron_home_lib" reporter:datatype="link"/>
4859                         <field reporter:label="Patron Home Library Short (Policy) Name" name="patron_home_lib_shortname" reporter:datatype="text"/>
4860                         <field reporter:label="Patron County" name="patron_county" reporter:datatype="text"/>
4861                         <field reporter:label="Patron City" name="patron_city" reporter:datatype="text"/>
4862                         <field reporter:label="Patron ZIP Code" name="patron_zip" reporter:datatype="text"/>
4863                         <field reporter:label="Legacy CAT1 Link" name="stat_cat_1" reporter:datatype="link"/>
4864                         <field reporter:label="Legacy CAT2 Link" name="stat_cat_2" reporter:datatype="link"/>
4865                         <field reporter:label="Dewey Range - Tens" name="dewey_range_tens" reporter:datatype="text"/>
4866                         <field reporter:label="Dewey Range - Hundreds" name="dewey_range_hundreds" reporter:datatype="text"/>
4867                         <field reporter:label="Dewey Block - Tens" name="dewey_block_tens" reporter:datatype="text"/>
4868                         <field reporter:label="Dewey Block - Hundreds" name="dewey_block_hundreds" reporter:datatype="text"/>
4869                         <field reporter:label="Legacy CAT1 Value" name="stat_cat_1_value" reporter:datatype="text"/>
4870                         <field reporter:label="Legacy CAT2 Value" name="stat_cat_2_value" reporter:datatype="text"/>
4871                 </fields>
4872                 <links>
4873                         <link field="id" reltype="has_a" key="id" map="" class="circ"/>
4874                         <link field="copy_id" reltype="has_a" key="id" map="" class="acp"/>
4875                         <link field="patron_id" reltype="has_a" key="id" map="" class="au"/>
4876                         <link field="circ_lib_id" reltype="has_a" key="id" map="" class="aou"/>
4877                         <link field="call_number" reltype="has_a" key="id" map="" class="acn"/>
4878                         <link field="patron_home_lib" reltype="has_a" key="id" map="" class="aou"/>
4879                         <link field="stat_cat_1" reltype="has_a" key="id" map="" class="rsce1"/>
4880                         <link field="stat_cat_2" reltype="has_a" key="id" map="" class="rsce2"/>
4881                 </links>
4882         </class>
4883
4884         <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">
4885                 <fields oils_persist:primary="id">
4886                         <field reporter:label="Entry ID" name="id" reporter:selector="value" reporter:datatype="id" />
4887                         <field reporter:label="Entry Owner" name="owner" reporter:datatype="link"/>
4888                         <field reporter:label="Entry Value" name="value" reporter:datatype="text"/>
4889                 </fields>
4890                 <links>
4891                         <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
4892                 </links>
4893         </class>
4894
4895         <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">
4896                 <fields oils_persist:primary="id">
4897                         <field reporter:label="Entry ID" name="id" reporter:selector="value" reporter:datatype="id" />
4898                         <field reporter:label="Entry Owner" name="owner" reporter:datatype="link"/>
4899                         <field reporter:label="Entry Value" name="value" reporter:datatype="text"/>
4900                 </fields>
4901                 <links>
4902                         <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
4903                 </links>
4904         </class>
4905
4906         <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">
4907                 <fields oils_persist:primary="id">
4908                         <field reporter:label="Transaction ID" name="id" reporter:datatype="id" />
4909
4910                         <field reporter:label="Billing Location Short (Policy) Name" name="billing_location_shortname" reporter:datatype="text"/>
4911                         <field reporter:label="Billing Location Name" name="billing_location_name" reporter:datatype="text"/>
4912                         <field reporter:label="Billing Location Link" name="billing_location" reporter:datatype="org_unit"/>
4913
4914                         <field reporter:label="User Home Library Short (Policy) Name" name="usr_home_ou_shortname" reporter:datatype="text"/>
4915                         <field reporter:label="User Home Library Name" name="usr_home_ou_name" reporter:datatype="text"/>
4916                         <field reporter:label="User Home Library Link" name="usr_home_ou" reporter:datatype="org_unit"/>
4917
4918                         <field reporter:label="User Barcode" name="barcode" reporter:datatype="text"/>
4919                         <field reporter:label="User Link" name="usr" reporter:datatype="link"/>
4920
4921                         <field reporter:label="Transaction Start Date/Time" name="xact_start" reporter:datatype="timestamp"/>
4922                         <field reporter:label="Transaction End Date/Time" name="xact_finish" reporter:datatype="timestamp"/>
4923                         <field reporter:label="Transaction Type" name="xact_type" reporter:datatype="text"/>
4924
4925                         <field reporter:label="Total Paid" name="total_paid" reporter:datatype="money"/>
4926                         <field reporter:label="Total Billed" name="total_owed" reporter:datatype="money"/>
4927
4928                         <field reporter:label="Last Payment Date/Time" name="last_payment_ts" reporter:datatype="timestamp"/>
4929                         <field reporter:label="Last Payment Note" name="last_payment_note" reporter:datatype="text"/>
4930                         <field reporter:label="Last Payment Type" name="last_payment_type" reporter:datatype="text"/>
4931
4932                         <field reporter:label="Last Billing Date/Time" name="last_billing_ts" reporter:datatype="timestamp"/>
4933                         <field reporter:label="Last Billing Note" name="last_billing_note" reporter:datatype="text"/>
4934                         <field reporter:label="Last Billing Type" name="last_billing_type" reporter:datatype="text"/>
4935
4936                         <field reporter:label="User Age Demographic" name="demographic_general_division" reporter:datatype="text"/>
4937                         <field reporter:label="User County" name="patron_county" reporter:datatype="text"/>
4938                         <field reporter:label="User City" name="patron_city" reporter:datatype="text"/>
4939                         <field reporter:label="User ZIP Code" name="patron_zip" reporter:datatype="text"/>
4940
4941                         <field reporter:label="Balance Owed" name="balance_owed" reporter:datatype="money"/>
4942                         <field reporter:label="User Profile Group" name="profile_group" reporter:datatype="text"/>
4943
4944                 </fields>
4945                 <links>
4946                         <link field="id" reltype="has_a" key="id" map="" class="mbt"/>
4947                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
4948                         <link field="billing_location" reltype="has_a" key="id" map="" class="aou"/>
4949                         <link field="usr_home_ou" reltype="has_a" key="id" map="" class="aou"/>
4950                 </links>
4951         </class>
4952
4953         <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">
4954                 <oils_persist:source_definition>
4955
4956                         SELECT  t.*
4957                           FROM  action.transit_copy t
4958                                 JOIN actor.org_unit AS s ON (t.source = s.id)
4959                                 JOIN actor.org_unit AS d ON (t.dest = d.id)
4960                           WHERE s.parent_ou &lt;&gt; d.parent_ou
4961
4962                 </oils_persist:source_definition>
4963                 <fields oils_persist:primary="id" oils_persist:sequence="action.transit_copy_id_seq">
4964                         <field reporter:label="Pretransit Copy Status" name="copy_status" reporter:datatype="bool"/>
4965                         <field reporter:label="Destination" name="dest" reporter:datatype="link"/>
4966                         <field reporter:label="Receive Date/Time" name="dest_recv_time" reporter:datatype="timestamp"/>
4967                         <field reporter:label="Transit ID" name="id" reporter:datatype="id"/>
4968                         <field reporter:label="Is Persistent? (unused)" name="persistant_transfer" reporter:datatype="bool"/>
4969                         <field reporter:label="Previous Hop (unused)" name="prev_hop" reporter:datatype="link"/>
4970                         <field reporter:label="Source" name="source" reporter:datatype="link"/>
4971                         <field reporter:label="Send Date/Time" name="source_send_time" reporter:datatype="timestamp"/>
4972                         <field reporter:label="Transited Copy" name="target_copy" reporter:datatype="link"/>
4973                         <field reporter:label="Hold Transit" name="hold_transit_copy" oils_persist:virtual="true" reporter:datatype="link"/>
4974                 </fields>
4975                 <links>
4976                         <link field="hold_transit_copy" reltype="might_have" key="id" map="" class="ahtc"/>
4977                         <link field="source" reltype="has_a" key="id" map="" class="aou"/>
4978                         <link field="copy_status" reltype="has_a" key="id" map="" class="ccs"/>
4979                         <link field="dest" reltype="has_a" key="id" map="" class="aou"/>
4980                         <link field="target_copy" reltype="has_a" key="id" map="" class="acp"/>
4981                 </links>
4982         </class>
4983
4984         <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">
4985                 <fields oils_persist:primary="id" oils_persist:sequence="money.billable_xact_id_seq">
4986                         <field reporter:label="Check In Library" name="checkin_lib" reporter:datatype="org_unit"/>
4987                         <field reporter:label="Check In Staff" name="checkin_staff" reporter:datatype="link"/>
4988                         <field reporter:label="Check In Date/Time" name="checkin_time" reporter:datatype="timestamp"/>
4989                         <field reporter:label="Circulating Library" name="circ_lib"  reporter:datatype="org_unit"/>
4990                         <field reporter:label="Circulating Staff" name="circ_staff" reporter:datatype="link"/>
4991                         <field reporter:label="Desk Renewal" name="desk_renewal" reporter:datatype="bool"/>
4992                         <field reporter:label="Due Date/Time" name="due_date" reporter:datatype="timestamp"/>
4993                         <field reporter:label="Circulation Duration" name="duration" reporter:datatype="interval"/>
4994                         <field reporter:label="Circ Duration Rule" name="duration_rule" reporter:datatype="link"/>
4995                         <field reporter:label="Fine Interval" name="fine_interval" reporter:datatype="interval"/>
4996                         <field reporter:label="Circ ID" name="id" reporter:datatype="id" />
4997                         <field reporter:label="Max Fine Amount" name="max_fine" reporter:datatype="money" />
4998                         <field reporter:label="Max Fine Rule" name="max_fine_rule" reporter:datatype="link"/>
4999                         <field reporter:label="OPAC Renewal" name="opac_renewal" reporter:datatype="bool"/>
5000                         <field reporter:label="Phone Renewal" name="phone_renewal" reporter:datatype="bool"/>
5001                         <field reporter:label="Recurring Fine Amount" name="recuring_fine" reporter:datatype="money" />
5002                         <field reporter:label="Recurring Fine Rule" name="recuring_fine_rule" reporter:datatype="link"/>
5003                         <field reporter:label="Remaining Renewals" name="renewal_remaining" reporter:datatype="int" />
5004                         <field reporter:label="Fine Stop Reason" name="stop_fines" reporter:datatype="text"/>
5005                         <field reporter:label="Fine Stop Date/Time" name="stop_fines_time" reporter:datatype="timestamp"/>
5006                         <field reporter:label="Circulating Item" name="target_copy" reporter:datatype="link"/>
5007                         <field reporter:label="Patron" name="usr" reporter:datatype="link"/>
5008                         <field reporter:label="Transaction Finish Date/Time" name="xact_finish" reporter:datatype="timestamp" />
5009                         <field reporter:label="Check Out Date/Time" name="xact_start" reporter:datatype="timestamp" />
5010                         <field reporter:label="Transaction Billings" name="billings" oils_persist:virtual="true" reporter:datatype="link"/>
5011                         <field reporter:label="Transaction Payments" name="payments" oils_persist:virtual="true" reporter:datatype="link"/>
5012                         <field reporter:label="Base Transaction" name="billable_transaction" oils_persist:virtual="true" reporter:datatype="link"/>
5013                         <field reporter:label="Circulation Type" name="circ_type" oils_persist:virtual="true" reporter:datatype="text"/>
5014                         <field reporter:label="Billing Totals" name="billing_total" oils_persist:virtual="true" reporter:datatype="money"/>
5015                         <field reporter:label="Payment Totals" name="payment_total" oils_persist:virtual="true" reporter:datatype="money"/>
5016                 </fields>
5017                 <links>
5018                         <link field="billable_transaction" reltype="might_have" key="id" map="" class="mbt"/>
5019                         <link field="circ_staff" reltype="has_a" key="id" map="" class="au"/>
5020                         <link field="checkin_lib" reltype="has_a" key="id" map="" class="aou"/>
5021                         <link field="target_copy" reltype="has_a" key="id" map="" class="acp"/>
5022                         <link field="checkin_staff" reltype="has_a" key="id" map="" class="au"/>
5023                         <link field="usr" reltype="has_a" key="id" map="" class="au"/>
5024                         <link field="circ_lib" reltype="has_a" key="id" map="" class="aou"/>
5025                         <link field="payments" reltype="has_many" key="xact" map="" class="mp"/>
5026                         <link field="billings" reltype="has_many" key="xact" map="" class="mb"/>
5027                         <link field="duration_rule" reltype="has_a" key="name" map="" class="crcd"/>
5028                         <link field="max_fine_rule" reltype="has_a" key="name" map="" class="crmf"/>
5029                         <link field="recuring_fine_rule" reltype="has_a" key="name" map="" class="crrf"/>
5030                         <link field="circ_type" reltype="might_have" key="id" map="" class="rcirct"/>
5031                         <link field="billing_total" reltype="might_have" key="xact" map="" class="rxbt"/>
5032                         <link field="payment_total" reltype="might_have" key="xact" map="" class="rxpt"/>
5033                 </links>
5034         </class>
5035
5036     <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">
5037         <fields oils_persist:primary="id">
5038             <field reporter:label="Title" name="title" reporter:datatype="text"/>
5039             <field reporter:label="Author" name="author" reporter:datatype="text"/>
5040             <field reporter:label="Pubdate" name="pubdate" reporter:datatype="text"/>
5041             <field reporter:label="Copy ID" name="id" reporter:datatype="id"/>
5042             <field reporter:label="Price" name="price" reporter:datatype="money"/>
5043             <field reporter:label="Barcode" name="barcode" reporter:datatype="text"/>
5044             <field reporter:label="Callnumber Label" name="call_number_label" reporter:datatype="text"/>
5045             <field reporter:label="Dewy Tens" name="dewey_block_tens" reporter:datatype="text"/>
5046             <field reporter:label="Dewy Hundreds" name="dewey_block_hundreds" reporter:datatype="text"/>
5047             <field reporter:label="Use Count" name="use_count" reporter:datatype="int"/>
5048             <field reporter:label="Circ Modifier" name="circ_modifier" reporter:datatype="text"/>
5049             <field reporter:label="Shelving Location Name" name="shelving_location" reporter:datatype="text"/>
5050             <field reporter:label="Legacy Stat Cat 1" name="stat_cat_1" reporter:datatype="text"/>
5051             <field reporter:label="Legacy Stat Cat 2" name="stat_cat_2" reporter:datatype="text"/>
5052             <field reporter:label="Legacy Stat Cat 1 Value" name="stat_cat_1_value" reporter:datatype="text"/>
5053             <field reporter:label="Legacy Stat Cat 2 Value" name="stat_cat_2_value" reporter:datatype="text"/>
5054             <field reporter:label="Edit Date" name="edit_date" reporter:datatype="timestamp"/>
5055             <field reporter:label="Create Date" name="create_date" reporter:datatype="timestamp"/>
5056             <field reporter:label="Owning Lib Name" name="owning_lib_name" reporter:datatype="text"/>
5057             <field reporter:label="Circ Lib Name" name="circ_lib_name" reporter:datatype="text"/>
5058             <field reporter:label="Owning Lib" name="owning_lib" reporter:datatype="link"/>
5059             <field reporter:label="Circ Lib" name="circ_lib" reporter:datatype="link"/>
5060             <field reporter:label="Creator" name="creator" reporter:datatype="link"/>
5061             <field reporter:label="Age Protection" name="age_protect" reporter:datatype="link"/>
5062             <field reporter:label="OPAC Visible" name="opac_visible" reporter:datatype="bool"/>
5063             <field reporter:label="Reference" name="ref" reporter:datatype="bool"/>
5064             <field reporter:label="Deposit Amount" name="deposit_amount" reporter:datatype="text"/>
5065             <field reporter:label="Deleted" name="deleted" reporter:datatype="bool"/>
5066             <field reporter:label="TCN" name="tcn_value" reporter:datatype="text"/>
5067             <field reporter:label="Status" name="status" reporter:datatype="link"/>
5068             <field reporter:label="Stop Fines Reason" name="stop_fines" reporter:datatype="text"/>
5069             <field reporter:label="Due Date" name="due_date" reporter:datatype="timestamp"/>
5070             <field reporter:label="Patron Barcode" name="patron_barcode" reporter:datatype="text"/>
5071             <field reporter:label="Patron Name" name="patron_name" reporter:datatype="text"/>
5072         </fields>
5073         <links>
5074             <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
5075             <link field="circ_lib" reltype="has_a" key="id" map="" class="aou"/>
5076             <link field="creator" reltype="has_a" key="id" map="" class="au"/>
5077             <link field="age_protect" reltype="has_a" key="id" map="" class="crahp"/>
5078             <link field="status" reltype="has_a" key="id" map="" class="ccs"/>
5079         </links>
5080     </class>
5081
5082     <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">
5083         <fields oils_persist:primary="id">
5084             <field reporter:label="Circulation ID" name="id" reporter:datatype="link"/>
5085             <field reporter:label="Owning Library" name="owning_lib" reporter:datatype="org_unit"/>
5086             <field reporter:label="Billing Type" name="billing_type" reporter:datatype="text"/>
5087             <field reporter:label="Total Billed" name="billed" reporter:datatype="money"/>
5088         </fields>
5089         <links>
5090             <link field="id" reltype="has_a" key="id" map="" class="circ"/>
5091             <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
5092         </links>
5093     </class>
5094
5095     <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">
5096         <fields oils_persist:primary="owning_lib">
5097             <field reporter:label="Owning Library" name="owning_lib" reporter:datatype="org_unit"/>
5098             <field reporter:label="Billing Types" name="billing_types" reporter:datatype="text"/>
5099             <field reporter:label="Balance" name="balance" reporter:datatype="money"/>
5100         </fields>
5101         <links>
5102             <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
5103         </links>
5104     </class>
5105
5106     <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">
5107         <fields oils_persist:primary="id">
5108             <field reporter:label="Circulation ID" name="id" reporter:datatype="link"/>
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 Type" name="billing_type" reporter:datatype="text"/>
5112             <field reporter:label="Total Billed" name="billed" reporter:datatype="money"/>
5113         </fields>
5114         <links>
5115             <link field="id" reltype="has_a" key="id" map="" class="circ"/>
5116             <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
5117             <link field="circ_lib" reltype="has_a" key="id" map="" class="aou"/>
5118         </links>
5119     </class>
5120
5121     <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">
5122         <fields oils_persist:primary="circ_lib">
5123             <field reporter:label="Circulating Library" name="circ_lib" reporter:datatype="org_unit"/>
5124             <field reporter:label="Owning Library" name="owning_lib" reporter:datatype="org_unit"/>
5125             <field reporter:label="Billing Types" name="billing_types" reporter:datatype="text"/>
5126             <field reporter:label="Balance" name="balance" reporter:datatype="money"/>
5127         </fields>
5128         <links>
5129             <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
5130             <link field="circ_lib" reltype="has_a" key="id" map="" class="aou"/>
5131         </links>
5132     </class>
5133
5134     <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">
5135         <fields oils_persist:primary="id">
5136             <field reporter:label="Circulation ID" name="id" reporter:datatype="link"/>
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 Type" name="billing_type" reporter:datatype="text"/>
5140             <field reporter:label="Total Billed" name="billed" reporter:datatype="money"/>
5141         </fields>
5142         <links>
5143             <link field="id" reltype="has_a" key="id" map="" class="circ"/>
5144             <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
5145             <link field="home_ou" reltype="has_a" key="id" map="" class="aou"/>
5146         </links>
5147     </class>
5148
5149     <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">
5150         <fields oils_persist:primary="home_ou">
5151             <field reporter:label="User Home Library" name="home_ou" reporter:datatype="org_unit"/>
5152             <field reporter:label="Owning Library" name="owning_lib" reporter:datatype="org_unit"/>
5153             <field reporter:label="Billing Types" name="billing_types" reporter:datatype="text"/>
5154             <field reporter:label="Balance" name="balance" reporter:datatype="money"/>
5155         </fields>
5156         <links>
5157             <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
5158             <link field="home_ou" reltype="has_a" key="id" map="" class="aou"/>
5159         </links>
5160     </class>
5161         <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">
5162                 <fields oils_persist:primary="id" oils_persist:sequence="acq.fund_tag_id_seq">
5163                         <field reporter:label="Fund Tag ID" name="id" reporter:datatype="id"/>
5164                         <field reporter:label="Fund Tag Owner" name="owner" reporter:datatype="org_unit"/>
5165                         <field reporter:label="Fund Tag Name" name="name" reporter:datatype="text"/>
5166                         <field reporter:label="Map Entries" name="map_entries" oils_persist:virtual="true" reporter:datatype="link"/>
5167                 </fields>
5168                 <links>
5169                         <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
5170                         <link field="map_entries" reltype="has_many" key="fund" map="" class="acqftm"/>
5171                 </links>
5172                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
5173                         <actions>
5174                                 <create permission="ADMIN_ACQ_FUND_TAG" context_field="owner"/>
5175                                 <retrieve permission="ADMIN_ACQ_FUND_TAG ADMIN_ACQ_FUND VIEW_FUND MANAGE_FUND" context_field="owner"/>
5176                                 <update permission="ADMIN_ACQ_FUND_TAG" context_field="owner"/>
5177                         <delete permission="ADMIN_ACQ_FUND_TAG" context_field="owner"/>
5178                         </actions>
5179                 </permacrud>
5180         </class>
5181         <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">
5182                 <fields oils_persist:primary="id" oils_persist:sequence="acq.fund_tag_map_id_seq">
5183                         <field reporter:label="Map Entry ID" name="id" reporter:datatype="id"/>
5184                         <field reporter:label="Fund ID" name="fund" reporter:datatype="link"/>
5185                         <field reporter:label="Tag ID" name="tag" reporter:datatype="link"/>
5186                 </fields>
5187                 <links>
5188                         <link field="fund" reltype="has_a" key="id" map="" class="acqf"/>
5189                         <link field="tag" reltype="has_a" key="id" map="" class="acqft"/>
5190                         </links>
5191                 <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
5192                 <actions>
5193                                 <create permission="ADMIN_ACQ_FUND_TAG">
5194                                         <context link="tag" field="owner"/>
5195                                 </create>
5196                                 <retrieve permission="ADMIN_ACQ_FUND_TAG ADMIN_ACQ_FUND VIEW_FUND MANAGE_FUND">
5197                                         <context link="tag" field="owner"/>
5198                                 </retrieve>
5199                                 <update permission="ADMIN_ACQ_FUND_TAG">
5200                                         <context link="tag" field="owner"/>
5201                                 </update>
5202                                 <delete permission="ADMIN_ACQ_FUND_TAG">
5203                                         <context link="tag" field="owner"/>
5204                                 </delete>
5205                         </actions>
5206                 </permacrud>
5207         </class>
5208
5209         <!-- ********************************************************************************************************************* -->
5210
5211 </IDL>
5212
5213 <!--
5214     vim:noet:ts=4:sw=4:
5215 -->