Skip to content

Commit

Permalink
no options for formatted citation
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Nov 18, 2019
1 parent d78ce4a commit 74f1c09
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/graphql/types/doi_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,8 @@ def descriptions(first: nil)
object.descriptions[0...first]
end

def formatted_citation(style: "apa", locale: "en-US")
object.style = style
object.locale = locale
def formatted_citation
# defaults to style: apa and locale: en-US
object.citation
end
end

0 comments on commit 74f1c09

Please sign in to comment.