[open-ils-commits] r19612 - trunk/Open-ILS/examples (miker)

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Mar 7 11:03:19 EST 2011


Author: miker
Date: 2011-03-07 11:03:17 -0500 (Mon, 07 Mar 2011)
New Revision: 19612

Modified:
   trunk/Open-ILS/examples/fm_IDL.xml
Log:
added IDL bits for mra => metabib.record_attr

Modified: trunk/Open-ILS/examples/fm_IDL.xml
===================================================================
--- trunk/Open-ILS/examples/fm_IDL.xml	2011-03-07 16:03:14 UTC (rev 19611)
+++ trunk/Open-ILS/examples/fm_IDL.xml	2011-03-07 16:03:17 UTC (rev 19612)
@@ -602,6 +602,21 @@
         </permacrud>
 	</class>
 
+	<class id="mra" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="metabib::record_attr" oils_persist:tablename="metabib.record_attr" reporter:label="SVF Record Attribute" oils_persist:field_safe="true">
+		<fields oils_persist:primary="id">
+			<field reporter:label="Record ID" name="id" reporter:datatype="id" oils_obj:required="true"/>
+			<field reporter:label="Attributes" name="attrs" reporter:datatype="text"  oils_obj:required="true"/>
+		</fields>
+		<links>
+			<link field="id" reltype="has_a" key="id" map="" class="bre"/>
+		</links>
+        <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+            <actions>
+                <retrieve/>
+            </actions>
+        </permacrud>
+	</class>
+
 	<class id="crainm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::record_attr_index_norm_map" oils_persist:tablename="config.record_attr_index_norm_map" reporter:label="SVF Record Attribute to Indexing Normalizer Map" oils_persist:field_safe="true">
 		<fields oils_persist:primary="id" oils_persist:sequence="config.record_attr_index_norm_map_id_seq">
 			<field reporter:label="ID" name="id" reporter:datatype="id"/>
@@ -1949,6 +1964,7 @@
 			<field reporter:label="Simple Record Extracts " name="simple_record" oils_persist:virtual="true" reporter:datatype="link"/>
 			<field reporter:label="Authority Links" name="authority_links" oils_persist:virtual="true" reporter:datatype="link"/>
 			<field reporter:label="Subscriptions" name="subscriptions" oils_persist:virtual="true" reporter:datatype="link"/>
+			<field reporter:label="SVF Attributes" name="attrs" oils_persist:virtual="true" reporter:datatype="link"/>
 		</fields>
 		<links>
 			<link field="owner" reltype="has_a" key="id" map="" class="aou"/>
@@ -1969,6 +1985,7 @@
 			<link field="full_record_entries" reltype="has_many" key="record" map="" class="mfr"/>
 			<link field="authority_links" reltype="has_many" key="bib" map="" class="abl"/>
 			<link field="subscriptions" reltype="has_many" key="record_entry" map="" class="ssub"/>
+			<link field="attrs" reltype="might_have" key="id" map="" class="mra"/>
 		</links>
         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
             <actions>



More information about the open-ils-commits mailing list