lib/adiwg/mdtranslator/readers/mdJson/modules/module_taxonomy.rb in adiwg-mdtranslator-2.12.0 vs lib/adiwg/mdtranslator/readers/mdJson/modules/module_taxonomy.rb in adiwg-mdtranslator-2.13.0
- old
+ new
@@ -51,25 +51,20 @@
unless hTaxonomy['generalScope'] == ''
intTaxonomy[:generalScope] = hTaxonomy['generalScope']
end
end
- # taxonomy - identification reference (required) [{identifier}]
+ # taxonomy - identification reference [{identifier}]
if hTaxonomy.has_key?('identificationReference')
aItems = hTaxonomy['identificationReference']
aItems.each do |hItem|
unless hItem.empty?
hReturn = Identifier.unpack(hItem, responseObj)
unless hReturn.nil?
intTaxonomy[:idReferences] << hReturn
end
end
end
- end
- if intTaxonomy[:idReferences].empty?
- responseObj[:readerExecutionMessages] << 'ERROR: mdJson reader: taxonomy identification reference object is missing'
- responseObj[:readerExecutionPass] = false
- return nil
end
# taxonomy - observer [responsibleParty]
if hTaxonomy.has_key?('observer')
aItems = hTaxonomy['observer']