backporting MARC editor changes at GPLS (strong) demand
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 19 Jun 2007 20:51:01 +0000 (20:51 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 19 Jun 2007 20:51:01 +0000 (20:51 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_0_6@7450 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/cat/marcedit.js
Open-ILS/xul/staff_client/server/cat/marcedit.xul

index 83c4fda..443004e 100644 (file)
@@ -419,7 +419,7 @@ function createMARCTextbox (element,attrs) {
 }
 
 var rec_type = {
-        BKS : { Type : /[at]{1}/,      BLvl : /[acdm]{1}/ },
+       BKS : { Type : /[at]{1}/,       BLvl : /[acdm]{1}/ },
        SER : { Type : /[a]{1}/,        BLvl : /[bs]{1}/ },
        VIS : { Type : /[gkro]{1}/,     BLvl : /[abcdms]{1}/ },
        MIX : { Type : /[p]{1}/,        BLvl : /[cd]{1}/ },
@@ -430,6 +430,182 @@ var rec_type = {
 };
 
 var ff_pos = {
+       TrAr : {
+               _8 : {
+                       SCO : {start : 33, len : 1, def : ' ' },
+                       REC : {start : 33, len : 1, def : 'n' },
+               },
+               _6 : {
+                       SCO : {start : 16, len : 1, def : ' ' },
+                       REC : {start : 16, len : 1, def : 'n' },
+               },
+       },
+       TMat : {
+               _8 : {
+                       VIS : {start : 33, len : 1, def : ' ' },
+               },
+               _6 : {
+                       VIS : {start : 16, len : 1, def : ' ' },
+               },
+       },
+       Time : {
+               _8 : {
+                       VIS : {start : 18, len : 3, def : ' ' },
+               },
+               _6 : {
+                       VIS : {start : 1, len : 3, def : ' ' },
+               },
+       },
+       Tech : {
+               _8 : {
+                       VIS : {start : 34, len : 1, def : 'n' },
+               },
+               _6 : {
+                       VIS : {start : 17, len : 1, def : 'n' },
+               },
+       },
+       SrTp : {
+               _8 : {
+                       SER : {start : 21, len : 1, def : ' ' },
+               },
+               _6 : {
+                       SER : {start : 4, len : 1, def : ' ' },
+               },
+       },
+       Srce : {
+               _8 : {
+                       BKS : {start : 39, len : 1, def : 'd' },
+                       SER : {start : 39, len : 1, def : 'd' },
+                       VIS : {start : 39, len : 1, def : 'd' },
+                       MIX : {start : 39, len : 1, def : 'd' },
+                       MAP : {start : 39, len : 1, def : 'd' },
+                       SCO : {start : 39, len : 1, def : 'd' },
+                       REC : {start : 39, len : 1, def : 'd' },
+                       COM : {start : 39, len : 1, def : 'd' },
+               }
+       },
+       SpFm : {
+               _8 : {
+                       MAP : {start : 33, len : 2, def : ' ' },
+               },
+               _6 : {
+                       MAP : {start : 16, len : 2, def : ' ' },
+               },
+       },
+       Relf : {
+               _8 : {
+                       MAP : {start : 18, len : 4, def : ' ' },
+               },
+               _6 : {
+                       MAP : {start : 1, len : 4, def : ' ' },
+               },
+       },
+       Regl : {
+               _8 : {
+                       SER : {start : 19, len : 1, def : ' ' },
+               },
+               _6 : {
+                       SER : {start : 2, len : 1, def : ' ' },
+               },
+       },
+       Proj : {
+               _8 : {
+                       MAP : {start : 22, len : 2, def : ' ' },
+               },
+               _6 : {
+                       MAP : {start : 5, len : 2, def : ' ' },
+               },
+       },
+       Part : {
+               _8 : {
+                       SCO : {start : 21, len : 1, def : ' ' },
+                       REC : {start : 21, len : 1, def : 'n' },
+               },
+               _6 : {
+                       SCO : {start : 4, len : 1, def : ' ' },
+                       REC : {start : 4, len : 1, def : 'n' },
+               },
+       },
+       Orig : {
+               _8 : {
+                       SER : {start : 22, len : 1, def : ' ' },
+               },
+               _6 : {
+                       SER : {start : 5, len : 1, def : ' ' },
+               },
+       },
+       LTxt : {
+               _8 : {
+                       SCO : {start : 30, len : 2, def : ' ' },
+                       REC : {start : 30, len : 2, def : ' ' },
+               },
+               _6 : {
+                       SCO : {start : 13, len : 2, def : ' ' },
+                       REC : {start : 13, len : 2, def : ' ' },
+               },
+       },
+       Freq : {
+               _8 : {
+                       SER : {start : 18, len : 1, def : ' ' },
+               },
+               _6 : {
+                       SER : {start : 1, len : 1, def : ' ' },
+               },
+       },
+       FMus : {
+               _8 : {
+                       SCO : {start : 20, len : 1, def : ' ' },
+                       REC : {start : 20, len : 1, def : 'n' },
+               },
+               _6 : {
+                       SCO : {start : 3, len : 1, def : ' ' },
+                       REC : {start : 3, len : 1, def : 'n' },
+               },
+       },
+       File : {
+               _8 : {
+                       COM : {start : 26, len : 1, def : 'u' },
+               },
+               _6 : {
+                       COM : {start : 9, len : 1, def : 'u' },
+               },
+       },
+       EntW : {
+               _8 : {
+                       SER : {start : 24, len : 1, def : ' ' },
+               },
+               _6 : {
+                       SER : {start : 7, len : 1, def : ' ' },
+               },
+       },
+       AccM : {
+               _8 : {
+                       SCO : {start : 24, len : 6, def : ' ' },
+                       REC : {start : 24, len : 6, def : ' ' },
+               },
+               _6 : {
+                       SCO : {start : 7, len : 6, def : ' ' },
+                       REC : {start : 7, len : 6, def : ' ' },
+               },
+       },
+       Comp : {
+               _8 : {
+                       SCO : {start : 18, len : 2, def : ' ' },
+                       REC : {start : 18, len : 2, def : ' ' },
+               },
+               _6 : {
+                       SCO : {start : 1, len : 2, def : ' ' },
+                       REC : {start : 1, len : 2, def : ' ' },
+               },
+       },
+       CrTp : {
+               _8 : {
+                       MAP : {start : 25, len : 1, def : ' ' },
+               },
+               _6 : {
+                       MAP : {start : 8, len : 1, def : ' ' },
+               },
+       },
        Ctry : {
                _8 : {
                        BKS : {start : 15, len : 3, def : ' ' },
index 9eb8192..37f0c8e 100644 (file)
                                                        <label name="Date2" set="BKS SER VIS MIX MAP SCO REC COM" value="Date2" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
                                                        <textbox class="plain" name="Date2" maxlength="4" size="4" oninput="updateFixedFields(this);"/>
                                                </row>
+                                               <row>
+                                                       <label name="SrTp" set="SER" value="SrTp" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
+                                                       <textbox class="plain" name="SrTp" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
+                                                       <label name="Regl" set="SER" value="Regl" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
+                                                       <textbox class="plain" name="Regl" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
+                                                       <label name="Orig" set="SER" value="Orig" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
+                                                       <textbox class="plain" name="Orig" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
+                                                       <label name="Freq" set="SER" value="Freq" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
+                                                       <textbox class="plain" name="Freq" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
+                                                       <label name="EntW" set="SER" value="EntW" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
+                                                       <textbox class="plain" name="EntW" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
+                                               </row>
+                                               <row>
+                                                       <label name="TrAr" set="SCO REC" value="TrAr" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
+                                                       <textbox class="plain" name="TrAr" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
+                                                       <label name="Part" set="SCO REC" value="Part" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
+                                                       <textbox class="plain" name="Part" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
+                                                       <label name="LTxt" set="SCO REC" value="LTxt" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
+                                                       <textbox class="plain" name="LTxt" maxlength="2" size="2" oninput="updateFixedFields(this);"/>
+                                                       <label name="FMus" set="SCO REC" value="FMus" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
+                                                       <textbox class="plain" name="FMus" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
+                                                       <label name="AccM" set="SCO REC" value="AccM" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
+                                                       <textbox class="plain" name="AccM" maxlength="6" size="6" oninput="updateFixedFields(this);"/>
+                                                       <label name="Comp" set="SCO REC" value="Comp" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
+                                                       <textbox class="plain" name="Comp" maxlength="2" size="2" oninput="updateFixedFields(this);"/>
+                                               </row>
+                                               <row>
+                                                       <label name="SpFm" set="MAP" value="SpFm" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
+                                                       <textbox class="plain" name="SpFm" maxlength="2" size="2" oninput="updateFixedFields(this);"/>
+                                                       <label name="Relf" set="MAP" value="Relf" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
+                                                       <textbox class="plain" name="Relf" maxlength="4" size="4" oninput="updateFixedFields(this);"/>
+                                                       <label name="Proj" set="MAP" value="Proj" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
+                                                       <textbox class="plain" name="Proj" maxlength="2" size="2" oninput="updateFixedFields(this);"/>
+                                                       <label name="CrTp" set="MAP" value="CrTp" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
+                                                       <textbox class="plain" name="CrTp" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
+                                               </row>
+                                               <row>
+                                                       <label name="TMat" set="VIS" value="TMat" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
+                                                       <textbox class="plain" name="TMat" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
+                                                       <label name="Time" set="VIS" value="Time" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
+                                                       <textbox class="plain" name="Time" maxlength="3" size="3" oninput="updateFixedFields(this);"/>
+                                                       <label name="Tech" set="VIS" value="Tech" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
+                                                       <textbox class="plain" name="Tech" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
+                                                       <label name="File" set="COM" value="File" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
+                                                       <textbox class="plain" name="File" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
+                                               </row>
                                        </rows>
                                </grid>
                        </vbox>