webstaff: expose ascecm to open-ils.pcrud
authorGalen Charlton <gmc@esilibrary.com>
Thu, 28 Jan 2016 19:11:08 +0000 (14:11 -0500)
committerKathy Lussier <klussier@masslnc.org>
Tue, 2 Feb 2016 19:58:54 +0000 (14:58 -0500)
Doing this allows the volume/copy editor to use
pcrud to retrieve copies with stat_cat_entries fleshed.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/examples/fm_IDL.xml

index 8cff802..75c7f12 100644 (file)
@@ -5233,7 +5233,7 @@ SELECT  usr,
                </permacrud>
        </class>
 
                </permacrud>
        </class>
 
-       <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">
+       <class id="ascecm" controller="open-ils.cstore open-ils.pcrud" 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">
                <fields oils_persist:primary="id" oils_persist:sequence="asset.stat_cat_entry_copy_map_id_seq">
                        <field name="id" reporter:datatype="id" />
                        <field name="owning_copy" reporter:datatype="link"/>
                <fields oils_persist:primary="id" oils_persist:sequence="asset.stat_cat_entry_copy_map_id_seq">
                        <field name="id" reporter:datatype="id" />
                        <field name="owning_copy" reporter:datatype="link"/>
@@ -5245,6 +5245,11 @@ SELECT  usr,
                        <link field="stat_cat_entry" reltype="has_a" key="id" map="" class="asce"/>
                        <link field="stat_cat" reltype="has_a" key="id" map="" class="asc"/>
                </links>
                        <link field="stat_cat_entry" reltype="has_a" key="id" map="" class="asce"/>
                        <link field="stat_cat" reltype="has_a" key="id" map="" class="asc"/>
                </links>
+               <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+                       <actions>
+                               <retrieve/>
+                       </actions>
+               </permacrud>
        </class>
        <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">
                <fields oils_persist:primary="code">
        </class>
        <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">
                <fields oils_persist:primary="code">