Skip to content

Commit

Permalink
Merge pull request #158 from acdh-oeaw/ms/147-Add-section-on-exchange…
Browse files Browse the repository at this point in the history
…-with-other-academies

fix: adds section on WissenschaftlerInnenaustausch
  • Loading branch information
sennierer authored Nov 6, 2023
2 parents 46caccd + 35457dd commit 47d819d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions paas_theme/provide_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -919,6 +919,9 @@ def enrich_person_context(person_object, context):
relation_type_id__in=classes["akad_funktionen"]["präsidentin"][0],
)
],
"WissenschaftlerInnenaustausch": [
f"{rel.related_place.name} {get_date_range(rel, classes['time_ranges_ids'])}" for rel in person_object.personplace_set.filter(relation_type_id=3375).order_by("start_date")
],
"Mitgliedschaften in anderen Akademien": [
f'<a href="/institution/{rel.related_institution_id}">{rel.related_institution}</a>, {rel.relation_type.name} {get_date_range(rel, classes["time_ranges_ids"])}'
for rel in person_object.personinstitution_set.filter(
Expand Down

0 comments on commit 47d819d

Please sign in to comment.