Skip to content

Commit 7d112a5

Browse files
committed
api change for citations label
1 parent 3cc5505 commit 7d112a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

views/works/item.haml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
- title = attributes["title"].to_s.gsub(/"/, '\"')
88
- views = metrics.to_h.fetch("unique-dataset-investigations-regular", 0).to_i
99
- downloads = metrics.to_h.fetch("unique-dataset-requests-regular", 0).to_i
10-
- citations = metrics.to_h.dig(:citations, "count").to_i
10+
- citations = metrics.to_h.dig(:citations, "citations").to_i
1111
- references = metrics.to_h.dig(:references, "count").to_i
1212
- relations = metrics.to_h.dig(:relations, "count").to_i
1313
- if @work.present? && Array.wrap(metrics.to_h.dig(:views_histogram, "yearMonths")).any?

0 commit comments

Comments
 (0)