Skip to content

Commit

Permalink
fix citation-type for researchers. #299
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Jun 30, 2019
1 parent ca12ae5 commit 37f10cb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/graphql/types/dataset_connection_with_meta_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def software_connection_count
end

def researcher_connection_count
Event.query(nil, citation_type: "Dataset-Researcher").results.total
Event.query(nil, citation_type: "Dataset-Person").results.total
end

def funder_connection_count
Expand Down
2 changes: 1 addition & 1 deletion app/graphql/types/publication_connection_with_meta_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def software_connection_count
end

def researcher_connection_count
Event.query(nil, citation_type: "Researcher-ScholarlyArticle").results.total
Event.query(nil, citation_type: "Person-ScholarlyArticle").results.total
end

def funder_connection_count
Expand Down
6 changes: 3 additions & 3 deletions app/graphql/types/researcher_connection_with_meta_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ def total_count
end

def publication_connection_count
Event.query(nil, citation_type: "Researcher-ScholarlyArticle").results.total
Event.query(nil, citation_type: "Person-ScholarlyArticle").results.total
end

def dataset_connection_count
Event.query(nil, citation_type: "Dataset-Researcher").results.total
Event.query(nil, citation_type: "Dataset-Person").results.total
end

def software_connection_count
Event.query(nil, citation_type: "Researcher-SoftwareSourceCode").results.total
Event.query(nil, citation_type: "Person-SoftwareSourceCode").results.total
end
end
2 changes: 1 addition & 1 deletion app/graphql/types/software_connection_with_meta_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def dataset_connection_count
end

def researcher_connection_count
Event.query(nil, citation_type: "Researcher-SoftwareSourceCode").results.total
Event.query(nil, citation_type: "Person-SoftwareSourceCode").results.total
end

def funder_connection_count
Expand Down

0 comments on commit 37f10cb

Please sign in to comment.