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