Skip to content

Commit

Permalink
citation_count dump for anyid: fix omid with multi anyids
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanhb committed Aug 29, 2024
1 parent c1859b7 commit 9b0dd55
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions scripts/citation_count_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,13 @@ def main():
cits_count = row[1]

# check if the omid has a corresponding anyid with the wanted prefix
any_id = None
l_any_id = []
for __anyid in s_any_id:
if __anyid.startswith(anyid_pref):
any_id = __anyid.replace(anyid_pref+":","")
break
l_any_id.append(__anyid.replace(anyid_pref+":",""))

# check in case this any_id was already processed we need to dissambiguate
if any_id:
for any_id in l_any_id:
anyid_citation_count[any_id] = cits_count
anyids_map[any_id].add(omid.replace("br/",""))

Expand Down

0 comments on commit 9b0dd55

Please sign in to comment.