*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content
Snippets Groups Projects

Add the default creator as contributor as well

Merged Moser, Maximilian requested to merge mm/creators-default into master
1 file
+ 3
6
Compare changes
  • Side-by-side
  • Inline
@@ -81,12 +81,7 @@ def current_user_as_creator():
full_name = "{}, {}".format(last_name, first_name)
# TODO parse affiliation from user profile
creator = {
"affiliations": [
{
"identifiers": [{"identifier": "04d836q62", "scheme": "ror"}],
"name": "TU Wien, Vienna, Austria",
}
],
"affiliations": [{"id": "04d836q62", "name": "TU Wien"}],
"person_or_org": {
"family_name": last_name,
"given_name": first_name,
@@ -94,6 +89,8 @@ def current_user_as_creator():
"name": full_name,
"type": "personal",
},
"role": "contactperson"
}
return [creator]
Loading