[open-ils-commits] ***SPAM*** [GIT] Evergreen ILS branch rel_2_7 updated. f33b4737878ab0fdf77c23b4d090808406c8ff08
Evergreen Git
git at git.evergreen-ils.org
Tue Dec 16 15:20:46 EST 2014
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, rel_2_7 has been updated
via f33b4737878ab0fdf77c23b4d090808406c8ff08 (commit)
from 402b5d0da5495aff8d6f267a60dc3707a21050f8 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit f33b4737878ab0fdf77c23b4d090808406c8ff08
Author: Mike Rylander <mrylander at gmail.com>
Date: Fri May 18 08:30:08 2012 -0400
LP#921142: Bring back automatic padding of short fixed fields in the GUI MARC editor
Bring back automatic padding of short fixed fields in the GUI MARC
editor. Also, use onblur instead of oninput, so that we've already lost
focus and don't care if that happens again.
Signed-off-by: Mike Rylander <mrylander at gmail.com>
Signed-off-by: Remington Steed <rjs7 at calvin.edu>
Signed-off-by: Ben Shum <bshum at biblio.org>
diff --git a/Open-ILS/web/js/dojo/MARC/FixedFields.js b/Open-ILS/web/js/dojo/MARC/FixedFields.js
index b4df704..14027a4 100644
--- a/Open-ILS/web/js/dojo/MARC/FixedFields.js
+++ b/Open-ILS/web/js/dojo/MARC/FixedFields.js
@@ -1779,6 +1779,10 @@ if(!dojo._hasResource["MARC.FixedFields"]) {
if (MARC.Record._ff_pos[field].ldr && _l) {
if (MARC.Record._ff_pos[field].ldr[rtype]) { // It's in the leader
val = value.substr(0, MARC.Record._ff_pos[field].ldr[rtype].len);
+ if (val.length < MARC.Record._ff_pos[field].ldr[rtype].len) {
+ //right-pad val with the appropriate default character
+ val += Array(MARC.Record._ff_pos[field].ldr[rtype].len - val.length + 1).join(MARC.Record._ff_pos[field].ldr[rtype].def);
+ }
this.leader =
_l.substring(0, MARC.Record._ff_pos[field].ldr[rtype].start) +
val +
@@ -1790,6 +1794,10 @@ if(!dojo._hasResource["MARC.FixedFields"]) {
} else if (MARC.Record._ff_pos[field]._8 && _8) {
if (MARC.Record._ff_pos[field]._8[rtype]) { // Nope, it's in the 008
val = value.substr(0, MARC.Record._ff_pos[field]._8[rtype].len);
+ if (val.length < MARC.Record._ff_pos[field]._8[rtype].len) {
+ //right-pad val with the appropriate default character
+ val += Array(MARC.Record._ff_pos[field]._8[rtype].len - val.length + 1).join(MARC.Record._ff_pos[field]._8[rtype].def);
+ }
this.field('008').update(
_8.substring(0, MARC.Record._ff_pos[field]._8[rtype].start) +
val +
@@ -1804,6 +1812,10 @@ if(!dojo._hasResource["MARC.FixedFields"]) {
if (!val && MARC.Record._ff_pos[field]._6 && _6) {
if (MARC.Record._ff_pos[field]._6[rtype]) { // ok, maybe the 006?
val = value.substr(0, MARC.Record._ff_pos[field]._6[rtype].len);
+ if (val.length < MARC.Record._ff_pos[field]._6[rtype].len) {
+ //right-pad val with the appropriate default character
+ val += Array(MARC.Record._ff_pos[field]._6[rtype].len - val.length + 1).join(MARC.Record._ff_pos[field]._6[rtype].def);
+ }
this.field('006').update(
_6.substring(0, MARC.Record._ff_pos[field]._6[rtype].start) +
val +
diff --git a/Open-ILS/xul/staff_client/server/cat/marcedit.js b/Open-ILS/xul/staff_client/server/cat/marcedit.js
index b404510..2a05414 100644
--- a/Open-ILS/xul/staff_client/server/cat/marcedit.js
+++ b/Open-ILS/xul/staff_client/server/cat/marcedit.js
@@ -1078,12 +1078,7 @@ function fillFixedFields () {
}
function updateFixedFields (element) {
- var grid = document.getElementById('leaderGrid');
- var recGrid = document.getElementById('recGrid');
var new_value = element.value;
- // Don't take focus away/adjust the record on partial changes
- var length = element.getAttribute('maxlength');
- if(new_value.length < length) return true;
var marc_rec = new MARC.Record ({ delimiter : '$', marcxml : xml_record.toXMLString() });
marc_rec.setFixedField(element.getAttribute('name'), new_value);
diff --git a/Open-ILS/xul/staff_client/server/cat/marcedit.xul b/Open-ILS/xul/staff_client/server/cat/marcedit.xul
index 1af5df9..68c1fa0 100644
--- a/Open-ILS/xul/staff_client/server/cat/marcedit.xul
+++ b/Open-ILS/xul/staff_client/server/cat/marcedit.xul
@@ -80,157 +80,157 @@
<rows>
<row>
<label name="Type" control="Type_tb" set="BKS SER VIS MIX MAP SCO REC COM" value="Type" />
- <textbox id="Type_tb" context="clipboard" class="plain" name="Type" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="Type_tb" context="clipboard" class="plain" name="Type" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" onblur="updateFixedFields(this);" onfocus="this.select();"/>
<label name="ELvl" control="ELvl_tb" set="BKS SER VIS MIX MAP SCO REC COM" value="ELvl" />
- <textbox id="ELvl_tb" context="clipboard" class="plain" name="ELvl" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="ELvl_tb" context="clipboard" class="plain" name="ELvl" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" onblur="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" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="Srce_tb" context="clipboard" class="plain" name="Srce" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" onblur="updateFixedFields(this);" onfocus="this.select();"/>
<label name="Audn" control="Audn_tb" set="BKS VIS SCO REC COM" value="Audn" />
- <textbox id="Audn_tb" context="clipboard" class="plain" name="Audn" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="Audn_tb" context="clipboard" class="plain" name="Audn" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" onblur="updateFixedFields(this);" onfocus="this.select();"/>
<label name="Ctrl" control="Ctrl_tb" set="BKS SER VIS MIX MAP SCO REC COM" value="Ctrl" />
- <textbox id="Ctrl_tb" context="clipboard" class="plain" name="Ctrl" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="Ctrl_tb" context="clipboard" class="plain" name="Ctrl" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" onblur="updateFixedFields(this);" onfocus="this.select();"/>
<label name="Lang" control="Lang_tb" set="BKS SER VIS MIX MAP SCO REC COM" value="Lang" />
- <textbox id="Lang_tb" context="clipboard" class="plain" name="Lang" maxlength="3" size="3" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="Lang_tb" context="clipboard" class="plain" name="Lang" maxlength="3" size="3" onkeypress="set_lock_on_keypress(event);" onblur="updateFixedFields(this);" onfocus="this.select();"/>
</row>
<row>
<label name="BLvl" control="BLvl_tb" set="BKS SER VIS MIX MAP SCO REC COM" value="BLvl" />
- <textbox id="BLvl_tb" context="clipboard" class="plain" name="BLvl" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="BLvl_tb" context="clipboard" class="plain" name="BLvl" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" onblur="updateFixedFields(this);" onfocus="this.select();"/>
<label name="Form" control="Form_tb" set="BKS SER VIS MIX MAP SCO REC" value="Form" />
- <textbox id="Form_tb" context="clipboard" class="plain" name="Form" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="Form_tb" context="clipboard" class="plain" name="Form" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" onblur="updateFixedFields(this);" onfocus="this.select();"/>
<label name="Conf" control="Conf_tb" set="BKS SER" value="Conf" />
- <textbox id="Conf_tb" context="clipboard" class="plain" name="Conf" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="Conf_tb" context="clipboard" class="plain" name="Conf" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" onblur="updateFixedFields(this);" onfocus="this.select();"/>
<label name="Biog" control="Biog_tb" set="BKS" value="Biog" />
- <textbox id="Biog_tb" context="clipboard" class="plain" name="Biog" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="Biog_tb" context="clipboard" class="plain" name="Biog" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" onblur="updateFixedFields(this);" onfocus="this.select();"/>
<label name="MRec" control="MRec_tb" set="BKS SER VIS MIX MAP SCO REC COM" value="MRec" />
- <textbox id="MRec_tb" context="clipboard" class="plain" name="MRec" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="MRec_tb" context="clipboard" class="plain" name="MRec" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" onblur="updateFixedFields(this);" onfocus="this.select();"/>
<label name="Ctry" control="Ctry_tb" set="BKS SER VIS MIX MAP SCO REC COM" value="Ctry" />
- <textbox id="Ctry_tb" context="clipboard" class="plain" name="Ctry" maxlength="3" size="3" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="Ctry_tb" context="clipboard" class="plain" name="Ctry" maxlength="3" size="3" onkeypress="set_lock_on_keypress(event);" onblur="updateFixedFields(this);" onfocus="this.select();"/>
</row>
<row>
<label name="S/L" control="s_l_tb" set="SER" value="S/L" />
- <textbox id="s_l_tb" context="clipboard" class="plain" name="S/L" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="s_l_tb" context="clipboard" class="plain" name="S/L" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" onblur="updateFixedFields(this);" onfocus="this.select();"/>
<label name="Cont" control="Cont_tb" set="BKS SER" value="Cont" />
- <textbox id="Cont_tb" context="clipboard" class="plain" name="Cont" maxlength="4" size="4" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="Cont_tb" context="clipboard" class="plain" name="Cont" maxlength="4" size="4" onkeypress="set_lock_on_keypress(event);" onblur="updateFixedFields(this);" onfocus="this.select();"/>
<label name="GPub" control="GPub_tb" set="BKS SER VIS MAP COM" value="GPub" />
- <textbox id="GPub_tb" context="clipboard" class="plain" name="GPub" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="GPub_tb" context="clipboard" class="plain" name="GPub" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" onblur="updateFixedFields(this);" onfocus="this.select();"/>
<label name="LitF" control="LitF_tb" set="BKS" value="LitF" />
- <textbox id="LitF_tb" context="clipboard" class="plain" name="LitF" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="LitF_tb" context="clipboard" class="plain" name="LitF" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" onblur="updateFixedFields(this);" onfocus="this.select();"/>
<label name="Indx" control="Indx_tb" set="BKS MAP" value="Indx" />
- <textbox id="Indx_tb" context="clipboard" class="plain" name="Indx" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="Indx_tb" context="clipboard" class="plain" name="Indx" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" onblur="updateFixedFields(this);" onfocus="this.select();"/>
<label name="Alph" control="Alph_tb" set="SER" value="Alph" />
- <textbox id="Alph_tb" context="clipboard" class="plain" name="Alph" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="Alph_tb" context="clipboard" class="plain" name="Alph" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" onblur="updateFixedFields(this);" onfocus="this.select();"/>
</row>
<row>
<label name="Desc" control="Desc_tb" set="BKS SER VIS MIX MAP SCO REC COM" value="Desc" />
- <textbox id="Desc_tb" context="clipboard" class="plain" name="Desc" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="Desc_tb" context="clipboard" class="plain" name="Desc" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" onblur="updateFixedFields(this);" onfocus="this.select();"/>
<label name="Ills" control="Ills_tb" set="BKS" value="Ills" />
- <textbox id="Ills_tb" context="clipboard" class="plain" name="Ills" maxlength="4" size="4" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="Ills_tb" context="clipboard" class="plain" name="Ills" maxlength="4" size="4" onkeypress="set_lock_on_keypress(event);" onblur="updateFixedFields(this);" onfocus="this.select();"/>
<label name="Fest" control="Fest_tb" set="BKS" value="Fest" />
- <textbox id="Fest_tb" context="clipboard" class="plain" name="Fest" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="Fest_tb" context="clipboard" class="plain" name="Fest" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" onblur="updateFixedFields(this);" onfocus="this.select();"/>
<label name="DtSt" control="DtSt_tb" set="BKS SER VIS MIX MAP SCO REC COM" value="DtSt" />
- <textbox id="DtSt_tb" context="clipboard" class="plain" name="DtSt" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="DtSt_tb" context="clipboard" class="plain" name="DtSt" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" onblur="updateFixedFields(this);" onfocus="this.select();"/>
<label name="Date1" control="Date1_tb" set="BKS SER VIS MIX MAP SCO REC COM" value="Date1" />
- <textbox id="Date1_tb" context="clipboard" class="plain" name="Date1" maxlength="4" size="4" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="Date1_tb" context="clipboard" class="plain" name="Date1" maxlength="4" size="4" onkeypress="set_lock_on_keypress(event);" onblur="updateFixedFields(this);" onfocus="this.select();"/>
<label name="Date2" control="Date2_tb" set="BKS SER VIS MIX MAP SCO REC COM" value="Date2" />
- <textbox id="Date2_tb" context="clipboard" class="plain" name="Date2" maxlength="4" size="4" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="Date2_tb" context="clipboard" class="plain" name="Date2" maxlength="4" size="4" onkeypress="set_lock_on_keypress(event);" onblur="updateFixedFields(this);" onfocus="this.select();"/>
</row>
<row>
<label name="SrTp" control="SrTp_tb" set="SER" value="SrTp" />
- <textbox id="SrTp_tb" context="clipboard" class="plain" name="SrTp" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="SrTp_tb" context="clipboard" class="plain" name="SrTp" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" onblur="updateFixedFields(this);" onfocus="this.select();"/>
<label name="Regl" control="Regl_tb" set="SER" value="Regl" />
- <textbox id="Regl_tb" context="clipboard" class="plain" name="Regl" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="Regl_tb" context="clipboard" class="plain" name="Regl" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" onblur="updateFixedFields(this);" onfocus="this.select();"/>
<label name="Orig" control="Orig_tb" set="SER" value="Orig" />
- <textbox id="Orig_tb" context="clipboard" class="plain" name="Orig" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="Orig_tb" context="clipboard" class="plain" name="Orig" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" onblur="updateFixedFields(this);" onfocus="this.select();"/>
<label name="Freq" control="Freq_tb" set="SER" value="Freq" />
- <textbox id="Freq_tb" context="clipboard" class="plain" name="Freq" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="Freq_tb" context="clipboard" class="plain" name="Freq" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" onblur="updateFixedFields(this);" onfocus="this.select();"/>
<label name="EntW" control="EntW_tb" set="SER" value="EntW" />
- <textbox id="EntW_tb" context="clipboard" class="plain" name="EntW" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="EntW_tb" context="clipboard" class="plain" name="EntW" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" onblur="updateFixedFields(this);" onfocus="this.select();"/>
</row>
<row>
<label name="TrAr" control="TrAr_tb" set="SCO REC" value="TrAr" />
- <textbox id="TrAr_tb" context="clipboard" class="plain" name="TrAr" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="TrAr_tb" context="clipboard" class="plain" name="TrAr" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" onblur="updateFixedFields(this);" onfocus="this.select();"/>
<label name="Part" control="Part_tb" set="SCO REC" value="Part" />
- <textbox id="Part_tb" context="clipboard" class="plain" name="Part" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="Part_tb" context="clipboard" class="plain" name="Part" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" onblur="updateFixedFields(this);" onfocus="this.select();"/>
<label name="LTxt" control="LTxt_tb" set="SCO REC" value="LTxt" />
- <textbox id="LTxt_tb" context="clipboard" class="plain" name="LTxt" maxlength="2" size="2" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="LTxt_tb" context="clipboard" class="plain" name="LTxt" maxlength="2" size="2" onkeypress="set_lock_on_keypress(event);" onblur="updateFixedFields(this);" onfocus="this.select();"/>
<label name="FMus" control="FMus_tb" set="SCO REC" value="FMus" />
- <textbox id="FMus_tb" context="clipboard" class="plain" name="FMus" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="FMus_tb" context="clipboard" class="plain" name="FMus" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" onblur="updateFixedFields(this);" onfocus="this.select();"/>
<label name="AccM" control="AccM_tb" set="SCO REC" value="AccM" />
- <textbox id="AccM_tb" context="clipboard" class="plain" name="AccM" maxlength="6" size="6" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="AccM_tb" context="clipboard" class="plain" name="AccM" maxlength="6" size="6" onkeypress="set_lock_on_keypress(event);" onblur="updateFixedFields(this);" onfocus="this.select();"/>
<label name="Comp" control="Comp_tb" set="SCO REC" value="Comp" />
- <textbox id="Comp_tb" context="clipboard" class="plain" name="Comp" maxlength="2" size="2" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="Comp_tb" context="clipboard" class="plain" name="Comp" maxlength="2" size="2" onkeypress="set_lock_on_keypress(event);" onblur="updateFixedFields(this);" onfocus="this.select();"/>
</row>
<row>
<label name="SpFm" control="SpFm_tb" set="MAP" value="SpFm" />
- <textbox id="SpFm_tb" context="clipboard" class="plain" name="SpFm" maxlength="2" size="2" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="SpFm_tb" context="clipboard" class="plain" name="SpFm" maxlength="2" size="2" onkeypress="set_lock_on_keypress(event);" onblur="updateFixedFields(this);" onfocus="this.select();"/>
<label name="Relf" control="Relf_tb" set="MAP" value="Relf" />
- <textbox id="Relf_tb" context="clipboard" class="plain" name="Relf" maxlength="4" size="4" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="Relf_tb" context="clipboard" class="plain" name="Relf" maxlength="4" size="4" onkeypress="set_lock_on_keypress(event);" onblur="updateFixedFields(this);" onfocus="this.select();"/>
<label name="Proj" control="Proj_tb" set="MAP" value="Proj" />
- <textbox id="Proj_tb" context="clipboard" class="plain" name="Proj" maxlength="2" size="2" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="Proj_tb" context="clipboard" class="plain" name="Proj" maxlength="2" size="2" onkeypress="set_lock_on_keypress(event);" onblur="updateFixedFields(this);" onfocus="this.select();"/>
<label name="CrTp" control="CrTp_tb" set="MAP" value="CrTp" />
- <textbox id="CrTp_tb" context="clipboard" class="plain" name="CrTp" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="CrTp_tb" context="clipboard" class="plain" name="CrTp" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" onblur="updateFixedFields(this);" onfocus="this.select();"/>
</row>
<row>
<label name="TMat" control="TMat_tb" set="VIS" value="TMat" />
- <textbox id="TMat_tb" context="clipboard" class="plain" name="TMat" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="TMat_tb" context="clipboard" class="plain" name="TMat" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" onblur="updateFixedFields(this);" onfocus="this.select();"/>
<label name="Time" control="Time_tb" set="VIS" value="Time" />
- <textbox id="Time_tb" context="clipboard" class="plain" name="Time" maxlength="3" size="3" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="Time_tb" context="clipboard" class="plain" name="Time" maxlength="3" size="3" onkeypress="set_lock_on_keypress(event);" onblur="updateFixedFields(this);" onfocus="this.select();"/>
<label name="Tech" control="Tech_tb" set="VIS" value="Tech" />
- <textbox id="Tech_tb" context="clipboard" class="plain" name="Tech" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="Tech_tb" context="clipboard" class="plain" name="Tech" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" onblur="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" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="File_tb" context="clipboard" class="plain" name="File" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" onblur="updateFixedFields(this);" onfocus="this.select();"/>
</row>
<row>
<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" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="Type_tbmfhd" context="clipboard" class="plain" name="Type" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" onblur="updateFixedFields(this);" onfocus="this.select();"/>
<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" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="ELvl_tbmfhd" context="clipboard" class="plain" name="ELvl" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" onblur="updateFixedFields(this);" onfocus="this.select();"/>
<label name="Item" control="Item_tbmfhd" set="MFHD" value="Item" />
- <textbox id="Item_tbmfhd" context="clipboard" class="plain" name="Item" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="Item_tbmfhd" context="clipboard" class="plain" name="Item" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" onblur="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" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="GeoDiv_tb" context="clipboard" class="plain" name="GeoDiv" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" onblur="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" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="Roman_tb" context="clipboard" class="plain" name="Roman" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" onblur="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" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="CatLang_tb" context="clipboard" class="plain" name="CatLang" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" onblur="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" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="Kind_tb" context="clipboard" class="plain" name="Kind" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" onblur="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" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="Rules_tb" context="clipboard" class="plain" name="Rules" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" onblur="updateFixedFields(this);" onfocus="this.select();"/>
<label name="Subj" control="Subj_tb" set="AUT" value="Subj" />
- <textbox id="Subj_tb" context="clipboard" class="plain" name="Subj" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="Subj_tb" context="clipboard" class="plain" name="Subj" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" onblur="updateFixedFields(this);" onfocus="this.select();"/>
<label name="Series" control="Series_tb" set="AUT" value="Series" />
- <textbox id="Series_tb" context="clipboard" class="plain" name="Series" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="Series_tb" context="clipboard" class="plain" name="Series" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" onblur="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" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="SerNum_tb" context="clipboard" class="plain" name="SerNum" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" onblur="updateFixedFields(this);" onfocus="this.select();"/>
<label name="NameUse" control="NameUse_tb" set="AUT" value="NameUse" />
- <textbox id="NameUse_tb" context="clipboard" class="plain" name="NameUse" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="NameUse_tb" context="clipboard" class="plain" name="NameUse" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" onblur="updateFixedFields(this);" onfocus="this.select();"/>
</row>
<row>
<label name="SubjUse" control="SubjUse_tb" set="AUT" value="SubjUse" />
- <textbox id="SubjUse_tb" context="clipboard" class="plain" name="SubjUse" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="SubjUse_tb" context="clipboard" class="plain" name="SubjUse" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" onblur="updateFixedFields(this);" onfocus="this.select();"/>
<label name="SerUse" control="SerUse_tb" set="AUT" value="SerUse" />
- <textbox id="SerUse_tb" context="clipboard" class="plain" name="SerUse" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="SerUse_tb" context="clipboard" class="plain" name="SerUse" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" onblur="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" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="TypeSubd_tb" context="clipboard" class="plain" name="TypeSubd" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" onblur="updateFixedFields(this);" onfocus="this.select();"/>
<label name="GovAgn" control="GovAgn_tb" set="AUT" value="GovAgn" />
- <textbox id="GovAgn_tb" context="clipboard" class="plain" name="GovAgn" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="GovAgn_tb" context="clipboard" class="plain" name="GovAgn" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" onblur="updateFixedFields(this);" onfocus="this.select();"/>
<label name="RefStatus" control="RefStatus_tb" set="AUT" value="RefStatus" />
- <textbox id="RefStatus_tb" context="clipboard" class="plain" name="RefStatus" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="RefStatus_tb" context="clipboard" class="plain" name="RefStatus" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" onblur="updateFixedFields(this);" onfocus="this.select();"/>
<label name="UpdStatus" control="UpdStatus_tb" set="AUT" value="UpdStatus" />
- <textbox id="UpdStatus_tb" context="clipboard" class="plain" name="UpdStatus" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="UpdStatus_tb" context="clipboard" class="plain" name="UpdStatus" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" onblur="updateFixedFields(this);" onfocus="this.select();"/>
</row>
<row>
<label name="Name" control="Name_tb" set="AUT" value="Name" />
- <textbox id="Name_tb" context="clipboard" class="plain" name="Name" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="Name_tb" context="clipboard" class="plain" name="Name" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" onblur="updateFixedFields(this);" onfocus="this.select();"/>
<label name="Status" control="Status_tb" set="AUT" value="Status" />
- <textbox id="Status_tb" context="clipboard" class="plain" name="Status" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="Status_tb" context="clipboard" class="plain" name="Status" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" onblur="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" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="ModRec_tb" context="clipboard" class="plain" name="ModRec" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" onblur="updateFixedFields(this);" onfocus="this.select();"/>
<label name="Source" control="Source_tb" set="AUT" value="Source" />
- <textbox id="Source_tb" context="clipboard" class="plain" name="Source" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" oninput="updateFixedFields(this);" onfocus="this.select();"/>
+ <textbox id="Source_tb" context="clipboard" class="plain" name="Source" maxlength="1" size="1" onkeypress="set_lock_on_keypress(event);" onblur="updateFixedFields(this);" onfocus="this.select();"/>
</row>
</rows>
-----------------------------------------------------------------------
Summary of changes:
Open-ILS/web/js/dojo/MARC/FixedFields.js | 12 ++
Open-ILS/xul/staff_client/server/cat/marcedit.js | 5 -
Open-ILS/xul/staff_client/server/cat/marcedit.xul | 130 ++++++++++----------
3 files changed, 77 insertions(+), 70 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list