Edifact - Edifact message handler
Koha module for parsing Edifact messages
my $e = Koha::Edifact->new( { filename => 'myfilename' } ); or my $e = Koha::Edifact->new( { transmission => $msg_variable } ); instantiate the Edifact parser, requires either to be passed an in-memory edifact message as transmission or a filename which it will read on creation
will return the data in the header field designated by the parameter specified. Valid parameters are: 'sender', 'recipient', 'datetime', 'interchange_control_reference', and 'application_reference'
called either with the string 'interchange_control_count' or 'interchange_control_reference' will return the corresponding field from the interchange trailer
Sets the object's data_iterator to point to the UNH segment
Returns the next segment pointed to by the data_iterator. Increments the data_iterator member or destroys it if segment UNZ has been reached
This method is useful in debugg:ing. Call on an Edifact object it returns the object's transmission member
return the object's message type
return an array of Message objects contained in the Edifact transmission
Called by the constructor to do the parsing of the transmission
Examines the Service String Advice returns 1 if the default separartors are in use undef otherwise
takes a raw Edifact message and returns a reference to an array of its segments
Return the character set the message was encoded in. The default is iso-8859-1 We preserve this info but will have converted to utf-8 on ingest
Colin Campbell <colin.campbell@ptfs-europe.com>
Copyright 2014,2015, PTFS-Europe Ltd This program is free software, You may redistribute it under under the terms of the GNU General Public License