Skip to content

Commit

Permalink
articles: legacy serilizer updates
Browse files Browse the repository at this point in the history
Signed-off-by: pamfilos <[email protected]>
  • Loading branch information
pamfilos committed Sep 19, 2024
1 parent bae0bd6 commit ed62f14
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scoap3/articles/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,15 @@ def get_metadata(self, obj):
{
"filetype": entry.file.type,
"size": entry.file.size,
"key": entry.file.name,
}
for entry in obj.related_files.all()
],
"abstracts": [
{
"source": {
entry.publisher.name for entry in obj.publication_info.all()
},
"source": "".join(
[entry.publisher.name for entry in obj.publication_info.all()]
),
"value": obj.abstract,
}
],
Expand Down Expand Up @@ -143,7 +144,7 @@ def get_metadata(self, obj):
}
for entry in obj.related_licenses.all()
],
"page_nr": [{entry.page_end for entry in obj.publication_info.all()}],
"page_nr": [int(entry.page_end) for entry in obj.publication_info.all()],
"publication_info": [
{
"artid": entry.artid,
Expand Down

0 comments on commit ed62f14

Please sign in to comment.