[open-ils-commits] r19310 - in trunk/Open-ILS/src/edi_translator: . misc (gmc)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Jan 26 16:58:53 EST 2011
Author: gmc
Date: 2011-01-26 16:58:47 -0500 (Wed, 26 Jan 2011)
New Revision: 19310
Added:
trunk/Open-ILS/src/edi_translator/misc/
trunk/Open-ILS/src/edi_translator/misc/edi4r-unescaping.patch
Modified:
trunk/Open-ILS/src/edi_translator/README
Log:
patch to edi4r
This is a patch to edi4r which has been submitted; sticking
it here temporarily since at the moment it's unclear whether
edi4r still has an active maintainer.
This patch fixes a bug where question marks in the bibiographic
description ended up being escaped three times over.
Signed-off-by: Galen Charlton <gmc at esilibrary.com>
Modified: trunk/Open-ILS/src/edi_translator/README
===================================================================
--- trunk/Open-ILS/src/edi_translator/README 2011-01-26 19:05:52 UTC (rev 19309)
+++ trunk/Open-ILS/src/edi_translator/README 2011-01-26 21:58:47 UTC (rev 19310)
@@ -1,6 +1,6 @@
EDI Translator XML-RPC Service (for Evergreen)
-Copyright 2010
+Copyright 2010-2011
License: GNU Public License v 2.0 or later
Author: Joe Atzberger
@@ -18,6 +18,8 @@
edi_webrick.rb - the main EDI translator daemon script
install.sh - dependency installer (for debian lenny)
README - this file
+ misc/ - patches to EDI4R; purely temporary until we can
+ get the changes accepted upstream
This service can be run on a local or remote system that has the proper ruby environment
established. See the install.sh script for an example of how to install the needed ruby
Added: trunk/Open-ILS/src/edi_translator/misc/edi4r-unescaping.patch
===================================================================
--- trunk/Open-ILS/src/edi_translator/misc/edi4r-unescaping.patch (rev 0)
+++ trunk/Open-ILS/src/edi_translator/misc/edi4r-unescaping.patch 2011-01-26 21:58:47 UTC (rev 19310)
@@ -0,0 +1,11 @@
+--- old/lib/edi4r/edifact.rb 2011-01-26 11:25:45.000000000 -0500
++++ new/lib/edi4r/edifact.rb 2011-01-26 16:13:16.000000000 -0500
+@@ -342,7 +342,7 @@
+ special_chars = special_chars.map{|c| c.chr}
+ @pattern_esc = Regexp.new( [ '([', special_chars, '])' ].flatten.join)
+ @pattern_unesc = Regexp.new( [
+- '([^', @esc_char, ']?)', '[', @esc_char,
++ '([^', @esc_char.chr, ']?)', '[', @esc_char.chr,
+ ']([', special_chars,'])'
+ ].flatten.join )
+ root.show_una = true
More information about the open-ils-commits
mailing list