cern-sis / issues-scoap3

0 stars 0 forks source link

Fix author's with wrong affiliations #173

Closed drjova closed 11 months ago

drjova commented 1 year ago

Realated to #168

We should go through all records, find the ones that have cooperation agreement with cern in authors.affiliations.value and remove the country. Example code:


 pattern_for_cern_cooperation_agreement = re.compile(r'cooperation agreement with cern', re.IGNORECASE)
match_pattern = pattern_for_cern_cooperation_agreement.search(affiliation['value'])
if match_pattern:
    affiliation.pop("country", None)
ErnestaP commented 1 year ago

@agentilb the changes are done :)