From 38a198d0b623215e7f8460cdcaa1339e486c4b8c Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Wed, 15 May 2019 08:53:29 +0200 Subject: [PATCH] use correct citation_type --- .../types/researcher_publication_connection_with_meta_type.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/graphql/types/researcher_publication_connection_with_meta_type.rb b/app/graphql/types/researcher_publication_connection_with_meta_type.rb index beeb9131b..4d694f0e5 100644 --- a/app/graphql/types/researcher_publication_connection_with_meta_type.rb +++ b/app/graphql/types/researcher_publication_connection_with_meta_type.rb @@ -6,7 +6,7 @@ class ResearcherPublicationConnectionWithMetaType < GraphQL::Types::Relay::BaseC field :total_count, Integer, null: false def total_count - Event.query(nil, obj_id: https_to_http(object.parent[:id]), citation_type: "JournalArticle-Person").dig(:meta, "total").to_i + Event.query(nil, obj_id: https_to_http(object.parent[:id]), citation_type: "Person-ScholarlyArticle").dig(:meta, "total").to_i end def https_to_http(url)