[open-ils-commits] r9839 - branches/rel_1_2/Open-ILS/examples

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Jun 16 21:16:30 EDT 2008


Author: miker
Date: 2008-06-16 21:16:29 -0400 (Mon, 16 Jun 2008)
New Revision: 9839

Modified:
   branches/rel_1_2/Open-ILS/examples/fm_IDL.xml
Log:
adding link from Copy source to total circ count view

Modified: branches/rel_1_2/Open-ILS/examples/fm_IDL.xml
===================================================================
--- branches/rel_1_2/Open-ILS/examples/fm_IDL.xml	2008-06-17 01:16:18 UTC (rev 9838)
+++ branches/rel_1_2/Open-ILS/examples/fm_IDL.xml	2008-06-17 01:16:29 UTC (rev 9839)
@@ -1809,6 +1809,7 @@
 			<field reporter:label="Copy Notes" name="notes" oils_obj:array_position="31" oils_persist:virtual="true" reporter:datatype="link"/>
 			<field reporter:label="Stat-Cat entry maps" name="stat_cat_entry_copy_maps" oils_obj:array_position="32" oils_persist:virtual="true" reporter:datatype="link"/>
 			<field reporter:label="Circulations" name="circulations" oils_obj:array_position="33" oils_persist:virtual="true" reporter:datatype="link"/>
+            <field reporter:label="Total Circulations" name="total_circ_count" oils_obj:array_position="34" oils_persist:virtual="true" reporter:datatype="link"/>
 		</fields>
 		<links>
 			<link field="age_protect" reltype="has_a" key="id" map="" class="crahp"/>
@@ -1823,6 +1824,7 @@
 			<link field="notes" reltype="has_many" key="owning_copy" map="" class="acpn"/>
 			<link field="stat_cat_entries" reltype="has_many" key="owning_copy" map="stat_cat_entry" class="ascecm"/>
 			<link field="circulations" reltype="has_many" key="target_copy" map="" class="circ"/>
+            <link field="total_circ_count" reltype="might_have" key="id" map="" class="erfcc"/>
 		</links>
 	</class>
 	<class id="crahp" controller="open-ils.cstore" oils_obj:fieldmapper="config::rules::age_hold_protect" oils_persist:tablename="config.rule_age_hold_protect" reporter:label="Age Hold Protection Rule">
@@ -2516,6 +2518,19 @@
 		</links>
 	</class>
 
+    <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">
+        <fields oils_persist:primary="id">
+            <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true"/>
+            <field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true"/>
+            <field name="isdeleted" oils_obj:array_position="2" oils_persist:virtual="true"/>
+            <field reporter:label="Copy ID" name="id" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="int"/>
+            <field reporter:label="Total Circulation Count" name="circ_count" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="int"/>
+        </fields>
+        <links>
+            <link field="id" reltype="has_a" key="id" map="" class="acp"/>
+        </links>
+    </class>
+
 	<!-- ********************************************************************************************************************* -->
 	<!-- What follows is a set of example extensions that are useful for PINES.  Comment out or remove if you don't want them. -->
 	<!-- ********************************************************************************************************************* -->



More information about the open-ils-commits mailing list