lib/adiwg/mdtranslator/readers/mdJson/modules/module_series.rb in adiwg-mdtranslator-2.13.0 vs lib/adiwg/mdtranslator/readers/mdJson/modules/module_series.rb in adiwg-mdtranslator-2.13.1

- old
+ new

@@ -1,23 +1,25 @@ # unpack series # Reader - ADIwg JSON to internal data structure # History: -# Stan Smith 2018-02-19 refactored error and warning messaging +# Stan Smith 2018-06-25 refactored error and warning messaging # Stan Smith 2016-10-12 original script module ADIWG module Mdtranslator module Readers module MdJson module Series - def self.unpack(hSeries, responseObj) + def self.unpack(hSeries, responseObj, inContext = nil) + @MessagePath = ADIWG::Mdtranslator::Readers::MdJson::MdJson + # return nil object if input is empty if hSeries.empty? - responseObj[:readerExecutionMessages] << 'WARNING: mdJson reader: citation series object is empty' + @MessagePath.issueWarning(760, responseObj, inContext) return nil end # instance classes needed in script intMetadataClass = InternalMetadata.new