adding locale table to IDL
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 24 Jul 2008 17:35:44 +0000 (17:35 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 24 Jul 2008 17:35:44 +0000 (17:35 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@10115 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/examples/fm_IDL.xml

index 9d2b981..3f48d6a 100644 (file)
@@ -3218,7 +3218,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
                        <field name="translation" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="text"/>
                        <field name="string" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="text"/>
                </fields>
-               <links/>
+               <links>
+                       <link field="translation" reltype="has_a" key="code" map="" class="i18n_l"/>
+               </links>
         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
             <actions>
                 <create permission="CREATE_TRANSLATION" global_required="true"/>
@@ -3228,6 +3230,26 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
             </actions>
         </permacrud>
        </class>
+       <class id="i18n_l" controller="open-ils.cstore" oils_obj:fieldmapper="config::i18n_locale" oils_persist:tablename="config.i18n_locale" oils_persist:field_safe="true">
+               <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 name="code" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="id" />
+                       <field name="marc_code" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="text"/>
+                       <field name="name" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="text"/>
+                       <field name="description" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="text"/>
+               </fields>
+               <links/>
+        <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+            <actions>
+                <create permission="CREATE_LOCALE" global_required="true"/>
+                <retrieve permission="CREATE_LOCALE|UPDATE_LOCALE|DELETE_LOCALE" global_required="true"/>
+                <update permission="UPDATE_LOCALE" global_required="true"/>
+                <delete permission="DELETE_LOCALE" global_required="true"/>
+            </actions>
+        </permacrud>
+       </class>
        <class id="rof" controller="open-ils.reporter-store" oils_obj:fieldmapper="reporter::output_folder" oils_persist:tablename="reporter.output_folder">
                <fields oils_persist:primary="id" oils_persist:sequence="reporter.output_folder_id_seq">
                        <field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />