diff --git a/cds_ils/importer/series/importer.py b/cds_ils/importer/series/importer.py index d18706802..c0a79b03f 100644 --- a/cds_ils/importer/series/importer.py +++ b/cds_ils/importer/series/importer.py @@ -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):