app/models/plan.rb
# Retrieves the Plan's most recent DOI
Retrieves the Plan's most recent DOI
Retrieves the Plan ' s most recent DOI
def doi
    return nil unless Rails.configuration.x.allow_doi_minting
    schemes = IdentifierScheme.for_identification
    if schemes.any?
      identifiers.select { |id| schemes.include?(id.identifier_scheme) }.last
    else
      identifiers.select { |id| %w[ark doi].include?(id.identifier_format) }.last
    end
  end
def doi return nil unless Rails . configuration . x . allow_doi_minting schemes = IdentifierScheme . for_identification if schemes . any? identifiers . select { | id | schemes . include? ( id . identifier_scheme ) } . last else identifiers . select { | id | %w[ ark doi ] . include? ( id . identifier_format ) } . last end end
Retrieves the Plan's most recent DOI
Retrieves the Plan ' s most recent DOI
# If there is curently no identifier schemes defined as identification