[open-ils-commits] [GIT] Evergreen ILS branch rel_2_1 updated. 1ee724d1d498249f6d59d7040854a45107c80fb1

Evergreen Git git at git.evergreen-ils.org
Tue Nov 8 15:13:07 EST 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_1 has been updated
       via  1ee724d1d498249f6d59d7040854a45107c80fb1 (commit)
      from  da8fdaa627f919c7bad4569f6a4b50794e4c8686 (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 1ee724d1d498249f6d59d7040854a45107c80fb1
Author: Thomas Berezansky <tsbere at mvlc.org>
Date:   Mon Nov 7 17:28:02 2011 -0500

    Fix vanishing whitespace in marc editor
    
    XML.ignoreWhitespace and XML.prettyPrinting cause whitespace to vanish.
    
    So disable them at the top of marcedit.js.
    
    Signed-off-by: Thomas Berezansky <tsbere at mvlc.org>
    Signed-off-by: Jason Etheridge <jason at esilibrary.com>

diff --git a/Open-ILS/xul/staff_client/server/cat/marcedit.js b/Open-ILS/xul/staff_client/server/cat/marcedit.js
index 422fa7a..7d27610 100644
--- a/Open-ILS/xul/staff_client/server/cat/marcedit.js
+++ b/Open-ILS/xul/staff_client/server/cat/marcedit.js
@@ -18,6 +18,10 @@
  * GNU General Public License for more details.  
  *
  */
+// We need whitespace in MARC fields, so disable ignoring it
+XML.ignoreWhitespace = false;
+// Pretty printing kills whitespace too, so disable it.
+XML.prettyPrinting = false;
 var xmlDeclaration = /^<\?xml version[^>]+?>/;
 
 var serializer = new XMLSerializer();

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

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


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list