[open-ils-commits] r16934 - trunk/Open-ILS/xul/staff_client/server/cat (dbs)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Jul 14 17:08:38 EDT 2010
Author: dbs
Date: 2010-07-14 17:08:32 -0400 (Wed, 14 Jul 2010)
New Revision: 16934
Modified:
trunk/Open-ILS/xul/staff_client/server/cat/marcedit.css
trunk/Open-ILS/xul/staff_client/server/cat/marcedit.js
trunk/Open-ILS/xul/staff_client/server/cat/marcedit.xul
Log:
Authority records get some fixed-field love in the MARC Editor
Modified: trunk/Open-ILS/xul/staff_client/server/cat/marcedit.css
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/marcedit.css 2010-07-14 19:41:56 UTC (rev 16933)
+++ trunk/Open-ILS/xul/staff_client/server/cat/marcedit.css 2010-07-14 21:08:32 UTC (rev 16934)
@@ -95,6 +95,10 @@
visibility: visible;
}
+grid#leaderGrid[type="AUT"] *[set~="AUT"], grid#leaderGrid[type="AUT"] *[set~="AUT"] + textbox {
+ visibility: visible;
+}
+
grid#leaderGrid[type="MFHD"] *[set~="MFHD"], grid#leaderGrid[type="MFHD"] *[set~="MFHD"] + textbox {
visibility: visible;
}
Modified: trunk/Open-ILS/xul/staff_client/server/cat/marcedit.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/marcedit.js 2010-07-14 19:41:56 UTC (rev 16933)
+++ trunk/Open-ILS/xul/staff_client/server/cat/marcedit.js 2010-07-14 21:08:32 UTC (rev 16934)
@@ -671,6 +671,7 @@
SCO : { Type : /[cd]{1}/, BLvl : /[abcdms]{1}/ },
REC : { Type : /[ij]{1}/, BLvl : /[abcdms]{1}/ },
COM : { Type : /[m]{1}/, BLvl : /[abcdms]{1}/ },
+ AUT : { Type : /[z]{1}/, BLvl : /.{1}/ },
MFHD : { Type : /[uvxy]{1}/, BLvl : /.{1}/ }
};
@@ -909,6 +910,7 @@
SCO : {start : 6, len : 1, def : 'c' },
REC : {start : 6, len : 1, def : 'i' },
COM : {start : 6, len : 1, def : 'm' },
+ AUT : {start : 6, len : 1, def : 'z' },
MFHD : {start : 6, len : 1, def : 'y' }
}
},
@@ -963,6 +965,7 @@
SCO : {start : 17, len : 1, def : ' ' },
REC : {start : 17, len : 1, def : ' ' },
COM : {start : 17, len : 1, def : ' ' },
+ AUT : {start : 17, len : 1, def : 'n' },
MFHD : {start : 17, len : 1, def : 'u' }
}
},
@@ -1121,7 +1124,102 @@
_6 : {
SER : {start : 16, len : 1, def : ' ' }
}
- }
+ },
+ "GeoDiv" : {
+ "_8" : {
+ "AUT" : {"start" : 6, "len" : 1, "def" : ' ' }
+ }
+ },
+ "Roman" : {
+ "_8" : {
+ "AUT" : {"start" : 7, "len" : 1, "def" : ' ' }
+ }
+ },
+ "CatLang" : {
+ "_8" : {
+ "AUT" : {"start" : 8, "len" : 1, "def" : ' ' }
+ }
+ },
+ "Kind" : {
+ "_8" : {
+ "AUT" : {"start" : 9, "len" : 1, "def" : ' ' }
+ }
+ },
+ "Rules" : {
+ "_8" : {
+ "AUT" : {"start" : 10, "len" : 1, "def" : ' ' }
+ }
+ },
+ "SHSys" : {
+ "_8" : {
+ "AUT" : {"start" : 11, "len" : 1, "def" : ' ' }
+ }
+ },
+ "SerType" : {
+ "_8" : {
+ "AUT" : {"start" : 12, "len" : 1, "def" : ' ' }
+ }
+ },
+ "SerNum" : {
+ "_8" : {
+ "AUT" : {"start" : 13, "len" : 1, "def" : ' ' }
+ }
+ },
+ "HeadMain" : {
+ "_8" : {
+ "AUT" : {"start" : 14, "len" : 1, "def" : ' ' }
+ }
+ },
+ "HeadSubj" : {
+ "_8" : {
+ "AUT" : {"start" : 15, "len" : 1, "def" : ' ' }
+ }
+ },
+ "HeadSer" : {
+ "_8" : {
+ "AUT" : {"start" : 16, "len" : 1, "def" : ' ' }
+ }
+ },
+ "TypeSubd" : {
+ "_8" : {
+ "AUT" : {"start" : 17, "len" : 1, "def" : ' ' }
+ }
+ },
+ "TypeGov" : {
+ "_8" : {
+ "AUT" : {"start" : 28, "len" : 1, "def" : ' ' }
+ }
+ },
+ "RefEval" : {
+ "_8" : {
+ "AUT" : {"start" : 29, "len" : 1, "def" : ' ' }
+ }
+ },
+ "RecUpd" : {
+ "_8" : {
+ "AUT" : {"start" : 31, "len" : 1, "def" : ' ' }
+ }
+ },
+ "NameDiff" : {
+ "_8" : {
+ "AUT" : {"start" : 32, "len" : 1, "def" : ' ' }
+ }
+ },
+ "Level" : {
+ "_8" : {
+ "AUT" : {"start" : 33, "len" : 1, "def" : ' ' }
+ }
+ },
+ "ModRec" : {
+ "_8" : {
+ "AUT" : {"start" : 38, "len" : 1, "def" : ' ' }
+ }
+ },
+ "CatSrc" : {
+ "_8" : {
+ "AUT" : {"start" : 39, "len" : 1, "def" : ' ' }
+ }
+ }
};
function recordType (rec) {
@@ -1234,7 +1332,7 @@
p = '_7';
}
- if (!value) {
+ if (p && !value) {
for (var j = 0; j < ff_pos[name][p][rtype].len; j++) {
value += d;
}
Modified: trunk/Open-ILS/xul/staff_client/server/cat/marcedit.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/marcedit.xul 2010-07-14 19:41:56 UTC (rev 16933)
+++ trunk/Open-ILS/xul/staff_client/server/cat/marcedit.xul 2010-07-14 21:08:32 UTC (rev 16934)
@@ -180,13 +180,58 @@
<textbox id="File_tb" context="clipboard" class="plain" name="File" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
</row>
<row>
- <label name="Type" control="Type_tbmfhd" set="MFHD" value="Type" />
+ <label name="Type" control="Type_tbmfhd" set="AUT MFHD" value="Type" />
<textbox id="Type_tbmfhd" context="clipboard" class="plain" name="Type" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
- <label name="ELvl" control="ELvl_tbmfhd" set="MFHD" value="ELvl" />
- <textbox id="Elvl_tbmfhd" context="clipboard" class="plain" name="ELvl" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
- <label name="Item" control="Item_tbmfhd" set="MFHD" value="Item" />
+ <label name="ELvl" control="ELvl_tbmfhd" set="AUT MFHD" value="ELvl" />
+ <textbox id="ELvl_tbmfhd" context="clipboard" class="plain" name="ELvl" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <label name="Item" control="Item_tbmfhd" set="AUT MFHD" value="Item" />
<textbox id="Item_tbmfhd" context="clipboard" class="plain" name="Item" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <label name="GeoDiv" control="GeoDiv_tb" set="AUT" value="GeoDiv" />
+ <textbox id="GeoDiv_tb" context="clipboard" class="plain" name="GeoDiv" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <label name="Roman" control="Roman_tb" set="AUT" value="Roman" />
+ <textbox id="Roman_tb" context="clipboard" class="plain" name="Roman" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <label name="CatLang" control="CatLang_tb" set="AUT" value="CatLang" />
+ <textbox id="CatLang_tb" context="clipboard" class="plain" name="CatLang" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
</row>
+ <row>
+ <label name="Kind" control="Kind_tb" set="AUT" value="Kind" />
+ <textbox id="Kind_tb" context="clipboard" class="plain" name="Kind" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <label name="Rules" control="Rules_tb" set="AUT" value="Rules" />
+ <textbox id="Rules_tb" context="clipboard" class="plain" name="Rules" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <label name="SHSys" control="SHSys_tb" set="AUT" value="SHSys" />
+ <textbox id="SHSys_tb" context="clipboard" class="plain" name="SHSys" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <label name="SerType" control="SerType_tb" set="AUT" value="SerType" />
+ <textbox id="SerType_tb" context="clipboard" class="plain" name="SerType" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <label name="SerNum" control="SerNum_tb" set="AUT" value="SerNum" />
+ <textbox id="SerNum_tb" context="clipboard" class="plain" name="SerNum" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <label name="HeadMain" control="HeadMain_tb" set="AUT" value="HeadMain" />
+ <textbox id="HeadMain_tb" context="clipboard" class="plain" name="HeadMain" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ </row>
+ <row>
+ <label name="HeadSubj" control="HeadSubj_tb" set="AUT" value="HeadSubj" />
+ <textbox id="HeadSubj_tb" context="clipboard" class="plain" name="HeadSubj" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <label name="HeadSer" control="HeadSer_tb" set="AUT" value="HeadSer" />
+ <textbox id="HeadSer_tb" context="clipboard" class="plain" name="HeadSer" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <label name="TypeSubd" control="TypeSubd_tb" set="AUT" value="TypeSubd" />
+ <textbox id="TypeSubd_tb" context="clipboard" class="plain" name="TypeSubd" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <label name="TypeGov" control="TypeGov_tb" set="AUT" value="TypeGov" />
+ <textbox id="TypeGov_tb" context="clipboard" class="plain" name="TypeGov" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <label name="RefEval" control="RefEval_tb" set="AUT" value="RefEval" />
+ <textbox id="RefEval_tb" context="clipboard" class="plain" name="RefEval" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <label name="RecUpd" control="RecUpd_tb" set="AUT" value="RecUpd" />
+ <textbox id="RecUpd_tb" context="clipboard" class="plain" name="RecUpd" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ </row>
+ <row>
+ <label name="NameDiff" control="NameDiff_tb" set="AUT" value="NameDiff" />
+ <textbox id="NameDiff_tb" context="clipboard" class="plain" name="NameDiff" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <label name="Level" control="Level_tb" set="AUT" value="Level" />
+ <textbox id="Level_tb" context="clipboard" class="plain" name="Level" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <label name="ModRec" control="ModRec_tb" set="AUT" value="ModRec" />
+ <textbox id="ModRec_tb" context="clipboard" class="plain" name="ModRec" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <label name="CatSrc" control="CatSrc_tb" set="AUT" value="CatSrc" />
+ <textbox id="CatSrc_tb" context="clipboard" class="plain" name="CatSrc" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ </row>
+
</rows>
</grid>
</vbox>
More information about the open-ils-commits
mailing list