Sha256: b89840046ef0deb6263a9a674196d8c655c27027f87526f955952acb9368ba60

Contents?: true

Size: 692 Bytes

Versions: 60

Compression:

Stored size: 692 Bytes

Contents

# unpack citation
# Reader - ScienceBase JSON to internal data structure

# History:
#   Stan Smith 2016-06-19 original script

module ADIWG
   module Mdtranslator
      module Readers
         module SbJson

            module Citation

               def self.unpack(hSbJson, hCitation, hResponseObj)

                  if hSbJson.has_key?('citation')
                     sbCitation = hSbJson['citation']
                     unless sbCitation.nil? || sbCitation == ''
                        hCitation[:otherDetails][0] = sbCitation
                     end
                  end

                  return hCitation

               end

            end

         end
      end
   end
end

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
adiwg-mdtranslator-2.9.1 lib/adiwg/mdtranslator/readers/sbJson/modules/module_citation.rb
adiwg-mdtranslator-2.9.0 lib/adiwg/mdtranslator/readers/sbJson/modules/module_citation.rb
adiwg-mdtranslator-2.8.0 lib/adiwg/mdtranslator/readers/sbJson/modules/module_citation.rb
adiwg-mdtranslator-2.7.0 lib/adiwg/mdtranslator/readers/sbJson/modules/module_citation.rb
adiwg-mdtranslator-2.6.1 lib/adiwg/mdtranslator/readers/sbJson/modules/module_citation.rb
adiwg-mdtranslator-2.6.0 lib/adiwg/mdtranslator/readers/sbJson/modules/module_citation.rb
adiwg-mdtranslator-2.5.0 lib/adiwg/mdtranslator/readers/sbJson/modules/module_citation.rb
adiwg-mdtranslator-2.4.0 lib/adiwg/mdtranslator/readers/sbJson/modules/module_citation.rb
adiwg-mdtranslator-2.3.5 lib/adiwg/mdtranslator/readers/sbJson/modules/module_citation.rb
adiwg-mdtranslator-2.3.4 lib/adiwg/mdtranslator/readers/sbJson/modules/module_citation.rb
adiwg-mdtranslator-2.3.3 lib/adiwg/mdtranslator/readers/sbJson/modules/module_citation.rb
adiwg-mdtranslator-2.3.2 lib/adiwg/mdtranslator/readers/sbJson/modules/module_citation.rb
adiwg-mdtranslator-2.3.1 lib/adiwg/mdtranslator/readers/sbJson/modules/module_citation.rb
adiwg-mdtranslator-2.3.0 lib/adiwg/mdtranslator/readers/sbJson/modules/module_citation.rb
adiwg-mdtranslator-2.2.0 lib/adiwg/mdtranslator/readers/sbJson/modules/module_citation.rb
adiwg-mdtranslator-2.1.2 lib/adiwg/mdtranslator/readers/sbJson/modules/module_citation.rb
adiwg-mdtranslator-2.1.1 lib/adiwg/mdtranslator/readers/sbJson/modules/module_citation.rb
adiwg-mdtranslator-2.1.0 lib/adiwg/mdtranslator/readers/sbJson/modules/module_citation.rb
adiwg-mdtranslator-2.0.0 lib/adiwg/mdtranslator/readers/sbJson/modules/module_citation.rb
adiwg-mdtranslator-2.0.0rc13 lib/adiwg/mdtranslator/readers/sbJson/modules/module_citation.rb