lib/adiwg/mdtranslator/readers/fgdc/modules/module_attribute.rb in adiwg-mdtranslator-2.6.1 vs lib/adiwg/mdtranslator/readers/fgdc/modules/module_attribute.rb in adiwg-mdtranslator-2.7.0
- old
+ new
@@ -1,10 +1,10 @@
# Reader - fgdc to internal data structure
# unpack fgdc entity attribute
# History:
-# Stan Smith 2017-10-30 added timePeriodOfValues
+# Stan Smith 2017-10-30 added timePeriod
# Stan Smith 2017-09-06 original script
require 'nokogiri'
require 'adiwg/mdtranslator/internal/internal_metadata_obj'
require_relative 'module_enumerated'
@@ -98,12 +98,12 @@
end
axBegin = xAttribute.xpath('./begdatea')
# entity attribute 5.1.2.5 (begdatea) - beginning date of attribute values
# entity attribute 5.1.2.6 (enddatea) - ending date of attribute values
- # -> dataDictionary.entities.attributes.timePeriodOfValues.startDateTime
- # -> dataDictionary.entities.attributes.timePeriodOfValues.endDateTime
+ # -> dataDictionary.entities.attributes.timePeriod.startDateTime
+ # -> dataDictionary.entities.attributes.timePeriod.endDateTime
axBegin.each_with_index do |xBegin, index|
beginDate = xBegin.text
unless beginDate.empty?
hTimePeriod = intMetadataClass.newTimePeriod
hDateTime = DateTime.unpack(beginDate, nil, hResponseObj)
@@ -114,10 +114,10 @@
hDateTime = DateTime.unpack(endDate, nil, hResponseObj)
unless hDateTime.nil?
hTimePeriod[:endDateTime] = hDateTime
end
hTimePeriod[:description] = 'attribute date range'
- hAttribute[:timePeriodOfValues] << hTimePeriod
+ hAttribute[:timePeriod] << hTimePeriod
end
end
# entity attribute 5.1.2.7 (attrvai) - attribute value accuracy information