lib/whedon/bibtex_parser.rb
# Chooses what sort of citation to make based upon whether there is a DOI
# present in the bibtex entry
Chooses what sort of citation to make based upon whether there is a DOI
present in the bibtex entry
Chooses what sort of citation to make based upon whether there is a DOI present in the bibtex entry
def make_citation(entry)
      if entry.has_field?('doi') && !entry.doi.empty?
        return doi_citation(entry)
      else
        return general_citation(entry)
      end
    end
def make_citation ( entry ) if entry . has_field? ( 'doi' ) && ! entry . doi . empty? return doi_citation ( entry ) else return general_citation ( entry ) end end
Chooses what sort of citation to make based upon whether there is a DOI
present in the bibtex entry
Chooses what sort of citation to make based upon whether there is a DOI present in the bibtex entry
entry
<not_specific>