Skip to content

Commit

Permalink
serials importer: remove substrings only from the end of the title
Browse files Browse the repository at this point in the history
* closes #923
  • Loading branch information
anikachurilova authored and kpsherva committed Nov 4, 2024
1 parent 9c597d0 commit 95cef8b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cds_ils/importer/series/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ def _normalize_title(title):
# will become
# `international series of numerical mathematics`
for substring in IGNORE_SUFFIXES:
t = rreplace(t, substring, "")
if re.search(substring + "$", t):
t = rreplace(t, substring, "")
return t.strip()

def update_series(self, matched_series, json_series):
Expand Down

0 comments on commit 95cef8b

Please sign in to comment.