lib/adiwg/mdtranslator/writers/sbJson/sections/sbJson_citation.rb in adiwg-mdtranslator-2.0.0 vs lib/adiwg/mdtranslator/writers/sbJson/sections/sbJson_citation.rb in adiwg-mdtranslator-2.1.0

- old
+ new

@@ -42,20 +42,20 @@ aIndexes.uniq! aIndexes.each do |hIndex| hContact = ADIWG::Mdtranslator::Writers::SbJson.get_contact_by_index(hIndex[:index]) unless hContact.empty? unless hContact[:name].nil? - sbRole = Codelists.codelist_iso_to_sb('iso_sb_role', :isoCode => hIndex[:role]) + sbRole = Codelists.codelist_adiwg2sb('role_adiwg2sb', hIndex[:role]) sbRole = sbRole.nil? ? hIndex[:role] : sbRole citation += hContact[:name] + '(' + sbRole + '), ' end end end # dates hCitation[:dates].each do |hDate| dateStr = AdiwgDateTimeFun.stringDateFromDateObject(hDate) - dateType = Codelists.codelist_iso_to_sb('iso_sb_date', :isoCode => hDate[:dateType]) + dateType = Codelists.codelist_adiwg2sb('date_adiwg2sb', hDate[:dateType]) unless dateType.nil? citation += dateStr + '(' + dateType + '), ' end end