lib/adiwg/mdtranslator/readers/fgdc/modules/module_taxonSystem.rb in adiwg-mdtranslator-2.14.2 vs lib/adiwg/mdtranslator/readers/fgdc/modules/module_taxonSystem.rb in adiwg-mdtranslator-2.15.0
- old
+ new
@@ -1,9 +1,10 @@
# Reader - fgdc to internal data structure
# unpack fgdc taxonomy system
# History:
+# Stan Smith 2019-05-17 fixed, changed idref output from identifier to citation
# Stan Smith 2017-09-20 original script
require 'nokogiri'
require 'adiwg/mdtranslator/internal/internal_metadata_obj'
require_relative 'module_citation'
@@ -62,13 +63,10 @@
axTaxRef = xSystem.xpath('./idref')
unless axTaxRef.empty?
axTaxRef.each do |xTaxRef|
hCitation = Citation.unpack(xTaxRef, hResponseObj)
unless hCitation.nil?
- hIdentifier = intMetadataClass.newIdentifier
- hIdentifier[:identifier] = 'none'
- hIdentifier[:citation] = hCitation
- hTaxonomy[:idReferences] << hIdentifier
+ hTaxonomy[:idReferences] << hCitation
end
end
end
# taxonomy bio.2.3 (ider) - taxonomic identifier [] {contact}