[open-ils-commits] [GIT] Evergreen ILS branch rel_2_0 updated. f167eedc06b11f6c4813b723e4e6deb966486725

Evergreen Git git at git.evergreen-ils.org
Thu Aug 4 14:52:12 EDT 2011


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_0 has been updated
       via  f167eedc06b11f6c4813b723e4e6deb966486725 (commit)
      from  01ceacd2fd1d01df184567ce73c8b0357fcb720f (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 f167eedc06b11f6c4813b723e4e6deb966486725
Author: Thomas Berezansky <tsbere at mvlc.org>
Date:   Thu Jul 28 11:04:36 2011 -0400

    Only update MARC on full entry of fixed fields
    
    AKA:
    Lang is 3 characters long. Entering 1 character would cause focus to leave.
    MARC would also update incorrectly.
    
    This only triggers the update when the full 3 characters are entered.
    
    This not only prevents issues with catalogers editing multi-character fixed
    fields but also makes it less likely they accidentally corrupt the records.
    
    Signed-off-by: Thomas Berezansky <tsbere at mvlc.org>
    Signed-off-by: Mike Rylander <mrylander at gmail.com>

diff --git a/Open-ILS/xul/staff_client/server/cat/marcedit.js b/Open-ILS/xul/staff_client/server/cat/marcedit.js
index f39401b..15ffbc8 100644
--- a/Open-ILS/xul/staff_client/server/cat/marcedit.js
+++ b/Open-ILS/xul/staff_client/server/cat/marcedit.js
@@ -1444,6 +1444,9 @@ function updateFixedFields (element) {
 
     var rtype = _record_type;
     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 parts = {
         ldr : _record.leader,

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/xul/staff_client/server/cat/marcedit.js |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list