[open-ils-commits] r767 - acq_edi/trunk/lib/edi (mbklein)

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Feb 4 14:35:59 EST 2010


Author: mbklein
Date: 2010-02-04 14:35:55 -0500 (Thu, 04 Feb 2010)
New Revision: 767

Modified:
   acq_edi/trunk/lib/edi/mapper.rb
Log:
Added support for edi4r-tdid with automatic fallback

Modified: acq_edi/trunk/lib/edi/mapper.rb
===================================================================
--- acq_edi/trunk/lib/edi/mapper.rb	2010-02-04 01:58:28 UTC (rev 766)
+++ acq_edi/trunk/lib/edi/mapper.rb	2010-02-04 19:35:55 UTC (rev 767)
@@ -1,5 +1,10 @@
 require 'edi4r'
 require 'edi4r/edifact'
+begin
+  require 'edi4r-tdid'
+rescue LoadError
+  warn "WARNING: edi4r-tdid not found. Only EDIFACT versions d96a and d01b will be supported!"
+end
 require 'forwardable'
 require 'json'
 



More information about the open-ils-commits mailing list