lib/datacite/mapping/resource_extensions.rb
def convert_funding!
        funder_contribs.zip(funding_descriptions) do |funder_contrib, funding_desc|
          contributors.delete(funder_contrib)
          descriptions.delete(funding_desc)
          all_names, all_grants = names_and_grants(funder_contrib, funding_desc)
          all_names.zip(all_grants).each { |funder_name, grant_number| add_funding_reference(funder_contrib, funder_name, grant_number) }
        end
      end
# Converts deprecated funder contributors to FundingReferences
Converts deprecated funder contributors to FundingReferences
Converts deprecated funder contributors to FundingReferences
def convert_funding!
        funder_contribs.zip(funding_descriptions) do |funder_contrib, funding_desc|
          contributors.delete(funder_contrib)
          descriptions.delete(funding_desc)
          all_names, all_grants = names_and_grants(funder_contrib, funding_desc)
          all_names.zip(all_grants).each { |funder_name, grant_number| add_funding_reference(funder_contrib, funder_name, grant_number) }
        end
      end
def convert_funding! funder_contribs . zip ( funding_descriptions ) do | funder_contrib , funding_desc | contributors . delete ( funder_contrib ) descriptions . delete ( funding_desc ) all_names , all_grants = names_and_grants ( funder_contrib , funding_desc ) all_names . zip ( all_grants ) . each { | funder_name , grant_number | add_funding_reference ( funder_contrib , funder_name , grant_number ) } end end
Converts deprecated funder contributors to FundingReferences
Converts deprecated funder contributors to FundingReferences