Skip to content

Commit

Permalink
Merge pull request #16 from gwu-libraries/add-abstracts-to-citations-…
Browse files Browse the repository at this point in the history
…references

Add abstracts to added citations/references
  • Loading branch information
alepbloyd authored Aug 27, 2024
2 parents 4a517db + c0db251 commit eb2a8e5
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 eb2a8e5

Please sign in to comment.