From d3a6caa8c261ef881d6cff627d4eb2af25c1836d Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Sun, 12 Apr 2020 21:43:24 +0200 Subject: [PATCH] fix bibtex in graphql --- app/graphql/types/doi_item.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/graphql/types/doi_item.rb b/app/graphql/types/doi_item.rb index cbdfe33d9..50f7ba14f 100644 --- a/app/graphql/types/doi_item.rb +++ b/app/graphql/types/doi_item.rb @@ -199,7 +199,7 @@ def bibtex keywords: object.subjects.present? ? Array.wrap(object.subjects).map { |k| parse_attributes(k, content: "subject", first: true) }.join(", ") : nil, language: object.language, title: parse_attributes(object.titles, content: "title", first: true), - journal: object.container && container["title"], + journal: object.container && object.container["title"], volume: object.container.to_h["volume"], issue: object.container.to_h["issue"], pages: pages,