Skip to content

Commit

Permalink
Add abstracts to added citations/references
Browse files Browse the repository at this point in the history
  • Loading branch information
alepbloyd committed Aug 27, 2024
1 parent 4a517db commit c0db251
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion rails/app/graphql/mutations/add_citations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ def resolve(**attributes)
keywords: citation.keywords,
topics: citation.topics,
is_open_access: citation.is_open_access,
open_access_url: citation.open_access_url
open_access_url: citation.open_access_url,
abstract: citation.abstract
)

created_citations << created_citation
Expand Down
3 changes: 2 additions & 1 deletion rails/app/graphql/mutations/add_references.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ def resolve(**attributes)
keywords: reference.keywords,
topics: reference.topics,
is_open_access: reference.is_open_access,
open_access_url: reference.open_access_url
open_access_url: reference.open_access_url,
abstract: reference.abstract
)

created_references << created_reference
Expand Down
2 changes: 1 addition & 1 deletion react/src/components/graph/nodes/WorkDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function WorkDetails({
>
<tr className="border border-slate-700">
<td
colSpan={Math.max(authors.length, keywords.length, topics.length)}
colSpan={Math.max(authors.length, keywords.length, topics.length) + 1}
>
{abstract}
</td>
Expand Down

0 comments on commit c0db251

Please sign in to comment.