Skip to content

Commit

Permalink
Merge hepfr data with unifr
Browse files Browse the repository at this point in the history
  • Loading branch information
mmo committed Oct 28, 2021
1 parent a043432 commit 5503af5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions sonar/modules/documents/dojson/rerodoc/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,20 @@ def marc21_to_type_and_organisation(self, key, value):
if value.get('b'):
organisation = value.get('b').lower()

subdivision_name = None

# Specific transformation for `unisi`, because the real acronym is
# `usi`.
if organisation == 'unisi':
organisation = 'usi'

# Add `hepfr` publications to `unifr`
if organisation == 'hepfr':
organisation = 'unifr'
subdivision_name = 'HEP Fribourg'

# Specific transformation for `bpuge` and `mhnge`, because the real
# acronym is `vge`.
subdivision_name = None

if organisation in [
'bpuge', 'mhnge', 'baage', 'bmuge', 'imvge', 'mhsge'
]:
Expand Down

0 comments on commit 5503af5

Please sign in to comment.