lib/adiwg/mdtranslator/readers/fgdc/modules/module_entityOverview.rb in adiwg-mdtranslator-2.9.2 vs lib/adiwg/mdtranslator/readers/fgdc/modules/module_entityOverview.rb in adiwg-mdtranslator-2.10.0
- old
+ new
@@ -22,14 +22,17 @@
hEntity = intMetadataClass.newEntity
hEntity[:entityId] = UUIDTools::UUID.random_create.to_s
hEntity[:entityName] = 'Entity Overview'
hEntity[:entityCode] = 'overview'
- # entity attribute 5.2.1 (eaover) - entity attribute overview
+ # entity attribute 5.2.1 (eaover) - entity attribute overview (required)
# -> dataDictionary.entities.entityDefinition
definition = xOverview.xpath('./eaover').text
unless definition.empty?
hEntity[:entityDefinition] = definition
+ end
+ if definition.empty?
+ hResponseObj[:readerExecutionMessages] << 'WARNING: FGDC reader: entityAttribute overview definition is missing'
end
# entity attribute 5.2.2 (eadetcit) - entity attribute detail citation []
# -> dataDictionary.entities.entityReference.title
axReference = xOverview.xpath('./eadetcit')