[open-ils-commits] r16929 - trunk/Open-ILS/xul/staff_client/server/cat (dbs)

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Jul 14 11:06:59 EDT 2010


Author: dbs
Date: 2010-07-14 11:06:57 -0400 (Wed, 14 Jul 2010)
New Revision: 16929

Modified:
   trunk/Open-ILS/xul/staff_client/server/cat/marcedit.js
   trunk/Open-ILS/xul/staff_client/server/cat/marcedit.xul
Log:
In theory, this would be a step towards MFHD records in the editor looking saner.

In practice, the BKS fixed fields are hidden. Sadly, the leader values
for the MFHD record are not displayed either.


Modified: trunk/Open-ILS/xul/staff_client/server/cat/marcedit.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/marcedit.js	2010-07-14 15:03:15 UTC (rev 16928)
+++ trunk/Open-ILS/xul/staff_client/server/cat/marcedit.js	2010-07-14 15:06:57 UTC (rev 16929)
@@ -670,7 +670,8 @@
     MAP : { Type : /[ef]{1}/,    BLvl : /[abcdms]{1}/ },
     SCO : { Type : /[cd]{1}/,    BLvl : /[abcdms]{1}/ },
     REC : { Type : /[ij]{1}/,    BLvl : /[abcdms]{1}/ },
-    COM : { Type : /[m]{1}/,    BLvl : /[abcdms]{1}/ }
+    COM : { Type : /[m]{1}/,    BLvl : /[abcdms]{1}/ },
+    MFHD : { Type : /[uvxy]{1}/,  BLvl : /.{1}/ }
 };
 
 var ff_pos = {
@@ -907,7 +908,8 @@
             MAP : {start : 6, len : 1, def : 'e' },
             SCO : {start : 6, len : 1, def : 'c' },
             REC : {start : 6, len : 1, def : 'i' },
-            COM : {start : 6, len : 1, def : 'm' }
+            COM : {start : 6, len : 1, def : 'm' },
+            MFHD : {start : 6, len : 1, def : 'y' }
         }
     },
     Ctrl : {
@@ -943,8 +945,13 @@
             MAP : {start : 18, len : 1, def : ' ' },
             SCO : {start : 18, len : 1, def : ' ' },
             REC : {start : 18, len : 1, def : ' ' },
-            COM : {start : 18, len : 1, def : ' ' }
+            COM : {start : 18, len : 1, def : 'i' }
         }
+	},
+    Item : {
+        ldr : {
+            MFHD : {start : 18, len : 1, def : 'i' }
+        }
     },
     ELvl : {
         ldr : {
@@ -955,7 +962,8 @@
             MAP : {start : 17, len : 1, def : ' ' },
             SCO : {start : 17, len : 1, def : ' ' },
             REC : {start : 17, len : 1, def : ' ' },
-            COM : {start : 17, len : 1, def : ' ' }
+            COM : {start : 17, len : 1, def : ' ' },
+            MFHD : {start : 17, len : 1, def : 'u' }
         }
     },
     Indx : {

Modified: trunk/Open-ILS/xul/staff_client/server/cat/marcedit.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/marcedit.xul	2010-07-14 15:03:15 UTC (rev 16928)
+++ trunk/Open-ILS/xul/staff_client/server/cat/marcedit.xul	2010-07-14 15:06:57 UTC (rev 16929)
@@ -78,9 +78,9 @@
                     </columns>
                     <rows>
                         <row>
-                            <label name="Type" control="Type_tb" set="BKS SER VIS MIX MAP SCO REC COM" value="Type" />
+                            <label name="Type" control="Type_tb" set="BKS SER VIS MIX MAP SCO REC COM MFHD" value="Type" />
                             <textbox id="Type_tb" context="clipboard" class="plain" name="Type" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
-                            <label name="ELvl" control="ELvl_tb" set="BKS SER VIS MIX MAP SCO REC COM" value="ELvl" />
+                            <label name="ELvl" control="ELvl_tb" set="BKS SER VIS MIX MAP SCO REC COM MFHD" value="ELvl" />
                             <textbox id="Elvl_tb" context="clipboard" class="plain" name="ELvl" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
                             <label name="Srce" control="Srce_tb" set="BKS SER VIS MIX MAP SCO REC COM" value="Srce" />
                             <textbox id="Srce_tb" context="clipboard" class="plain" name="Srce" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
@@ -178,6 +178,8 @@
                             <textbox id="Tech_tb" context="clipboard" class="plain" name="Tech" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
                             <label name="File" control="File_tb" set="COM" value="File" />
                             <textbox id="File_tb" context="clipboard" class="plain" name="File" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+                            <label name="Item" control="Item_tb" set="MFHD" value="Item" />
+                            <textbox id="Item_tb" context="clipboard" class="plain" name="Item" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
                         </row>
                     </rows>
                 </grid>
@@ -221,6 +223,7 @@
         <menuitem label="SCO" oncommand="changeFFEditor('SCO');"/>
         <menuitem label="REC" oncommand="changeFFEditor('REC');"/>
         <menuitem label="COM" oncommand="changeFFEditor('COM');"/>
+        <menuitem label="MFHD" oncommand="changeFFEditor('MFHD');"/>
     </popup>
 </popupset>
 



More information about the open-ils-commits mailing list