Skip to content

Commit

Permalink
openaire: added award title and acronym to serialization.
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandromumo authored and slint committed Feb 26, 2024
1 parent 51df592 commit a6764c9
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions site/zenodo_rdm/openaire/serializers/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,15 @@ def _reverse_funder_acronym(funder_ror):
funder_acronym = _reverse_funder_acronym(funder_ror)
award_program = award.get("program", "")
award_number = award.get("number", "")
award_title = award.get("title", {}).get("en")
award_acronym = award.get("acronym", "")
if funder_acronym and award_program and award_number:
links.append(
f"info:eu-repo/grantAgreement/{funder_acronym}/{award_program}/{award_number}"
)
b_link = f"info:eu-repo/grantAgreement/{funder_acronym}/{award_program}/{award_number}"
if award_title:
b_link += f"/{award_title}"
if award_acronym:
b_link += f"/{award_acronym}"
links.append(b_link)
return links or missing

def get_pids(self, obj):
Expand Down

0 comments on commit a6764c9

Please sign in to comment.