diff --git a/src/crawler/by_source/isrp_crawler.py b/src/crawler/by_source/isrp_crawler.py index 8b778e27b47f39d8c517b6365571b9f56092f105..e3e8f7b044fa5e3c4df8b2c1b53202b05b3c47be 100644 --- a/src/crawler/by_source/isrp_crawler.py +++ b/src/crawler/by_source/isrp_crawler.py @@ -123,6 +123,9 @@ class IsrpCrawler(BaseCollectionCrawler): xarticle.url = url xarticle.pid = cleanup_str(pid) + # Sometimes the source DOI has white spaces at the end + if xarticle.doi: + xarticle.doi = xarticle.doi.strip() lang = langcodes.Language.get(xarticle.lang).language if lang: xarticle.lang = lang