Skip to content

Commit

Permalink
Map rights (licenses) between schema formats
Browse files Browse the repository at this point in the history
  • Loading branch information
cc-a committed Aug 20, 2024
1 parent 4401683 commit ec2c2b1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test_data/create_test_data_records.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,12 @@ def datacite_to_invenio_schema(datacite):
}
for date_meta in data["dates"]
],
"rights": [
{
"id": rights_meta.get("rightsIdentifier", "cc0-1.0").lower(),
}
for rights_meta in data["rightsList"]
],
},
}

Expand Down

0 comments on commit ec2c2b1

Please sign in to comment.