<<

NAME

Edifact - Edifact message handler

DESCRIPTION

   Koha module for parsing Edifact messages

SUBROUTINES

new

     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

interchange_header

     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'

interchange_trailer

     called either with the string 'interchange_control_count' or
     'interchange_control_reference' will return the corresponding field from
     the interchange trailer

new_data_iterator

     Sets the object's data_iterator to point to the UNH segment

next_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

get_transmission

     This method is useful in debugg:ing. Call on an Edifact object
     it returns the object's transmission member

message_type

     return the object's message type

message_array

     return an array of Message objects contained in the Edifact transmission

Internal Methods

_init

  Called by the constructor to do the parsing of the transmission

service_string_advice

  Examines the Service String Advice returns 1 if the default separartors are in use
  undef otherwise

segmentize

   takes a raw Edifact message and returns a reference to an array of
   its segments

msgcharset

    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

AUTHOR

   Colin Campbell <colin.campbell@ptfs-europe.com>

COPYRIGHT

   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

<<