Skip to content

Commit

Permalink
use correct variable for container-title
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Nov 18, 2019
1 parent a172709 commit 30a69d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/graphql/types/doi_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down

0 comments on commit 30a69d3

Please sign in to comment.