From 30a69d3df2231e884ff4caba918fffdffc658550 Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Mon, 18 Nov 2019 22:53:29 +0100 Subject: [PATCH] use correct variable for container-title --- 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 ebf449161..dafaf31da 100644 --- a/app/graphql/types/doi_item.rb +++ b/app/graphql/types/doi_item.rb @@ -86,7 +86,7 @@ def citeproc_hsh "issued" => get_date(object.dates, "Issued") ? get_date_parts(get_date(object.dates, "Issued")) : nil, "submitted" => Array.wrap(object.dates).find { |d| d["dateType"] == "Submitted" }.to_h.fetch("__content__", nil), "abstract" => parse_attributes(object.descriptions, content: "description", first: true), - "container-title" => object.container_title, + "container-title" => object.container.to_h["title"], "DOI" => object.doi, "volume" => object.container.to_h["volume"], "issue" => object.container.to_h["issue"],