ff ui : IDL rhrr pcrud controller
authorBill Erickson <berick@esilibrary.com>
Mon, 4 Nov 2013 21:32:11 +0000 (16:32 -0500)
committerBill Erickson <berick@esilibrary.com>
Mon, 4 Nov 2013 21:32:53 +0000 (16:32 -0500)
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/examples/fm_IDL.xml

index a21ee08..1738580 100644 (file)
@@ -8707,7 +8707,7 @@ SELECT  usr,
                        <link field="id" reltype="might_have" key="id" map="" class="circ"/>
                </links>
        </class>
-       <class id="rhrr" controller="open-ils.reporter-store open-ils.cstore" oils_obj:fieldmapper="reporter::hold_request_record" oils_persist:tablename="reporter.hold_request_record" reporter:label="Hold Request Record">
+       <class id="rhrr" controller="open-ils.reporter-store open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="reporter::hold_request_record" oils_persist:tablename="reporter.hold_request_record" reporter:label="Hold Request Record">
                <fields oils_persist:primary="id">
                        <field reporter:label="Hold ID" name="id" reporter:datatype="id" />
                        <field reporter:label="Hold Target" name="target" reporter:datatype="int" />
@@ -8718,6 +8718,13 @@ SELECT  usr,
                        <link field="id" reltype="might_have" key="id" map="" class="ahr"/>
                        <link field="bib_record" reltype="has_a" key="id" map="" class="bre"/>
                </links>
+               <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+                       <actions>
+                               <retrieve permission="VIEW_HOLD" context_field="pickup_lib">
+                                       <context link="id" field="pickup_lib"/>
+                </retrieve>
+            </actions>
+        </permacrud>
        </class>
        <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">
                <fields oils_persist:primary="xact">