From 74f1c09eb2a88b167408ab3c4ce447fd563d4a17 Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Mon, 18 Nov 2019 18:11:38 +0100 Subject: [PATCH] no options for formatted citation --- app/graphql/types/doi_item.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/graphql/types/doi_item.rb b/app/graphql/types/doi_item.rb index 66f75044f..5298363a8 100644 --- a/app/graphql/types/doi_item.rb +++ b/app/graphql/types/doi_item.rb @@ -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