From: dbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4> Date: Wed, 14 Jul 2010 15:06:57 +0000 (+0000) Subject: In theory, this would be a step towards MFHD records in the editor looking saner. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=8dc9e23ea939459fb351eced3ef03610a3d4817c;p=contrib%2FConifer.git 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. git-svn-id: svn://svn.open-ils.org/ILS/trunk@16929 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/server/cat/marcedit.js b/Open-ILS/xul/staff_client/server/cat/marcedit.js index 1b2d69eb71..848d10ec23 100644 --- a/Open-ILS/xul/staff_client/server/cat/marcedit.js +++ b/Open-ILS/xul/staff_client/server/cat/marcedit.js @@ -670,7 +670,8 @@ var rec_type = { 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 @@ var ff_pos = { 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,7 +945,12 @@ var ff_pos = { 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 : { @@ -955,7 +962,8 @@ var ff_pos = { 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 : { diff --git a/Open-ILS/xul/staff_client/server/cat/marcedit.xul b/Open-ILS/xul/staff_client/server/cat/marcedit.xul index 4baa212bcf..801fc3c037 100644 --- a/Open-ILS/xul/staff_client/server/cat/marcedit.xul +++ b/Open-ILS/xul/staff_client/server/cat/marcedit.xul @@ -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>