]> git.evergreen-ils.org Git - Evergreen.git/commit
Acq: Be fuzzy about case when retrieving EDI documents
authorLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Mon, 15 Apr 2013 18:06:54 +0000 (14:06 -0400)
committerBen Shum <bshum@biblio.org>
Fri, 7 Jun 2013 00:01:22 +0000 (20:01 -0400)
commit33b496412b5f2f49a096c54160aa2ed39b33af6f
tree3d590e4741b4e6ed01fd054b3d39ac5b2d1794c8
parentdeba8502795145d5272b21015e6d0e383db91f1b
Acq: Be fuzzy about case when retrieving EDI documents

The edi_fetcher relies on a routine in OpenILS::Acq::EDI to, among
other things, try to avoid fetching the same EDI document multiple times
when many rows in acq.edi_account refer to the same host and login
credentials.

Since in practice most vendors seem to run FTP servers for EDI on
Windows, not UNIX, and pathnames are therefore case-insensitive, that
test for other occurrences ought also to be case-insensitive.

If I were to look at this as a purist, I could argue that vendor servers
might sometimes by run on UNIX, and that for some reason it is possible
that different vendor-to-buyer EDI documents (order responses or
invoices) could have pathnames that differ only in the case of some
characters.  But that seems wildly unlikely.  If anyone does take this
possibility seriously, perhaps acq.edi_account needs a Boolean column to
indicate the remote host's case [in]sensitivity.

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/EDI.pm