diff --git a/adstex.py b/adstex.py index 6f55eeb..794d6cd 100644 --- a/adstex.py +++ b/adstex.py @@ -28,7 +28,7 @@ except ImportError: from urllib import unquote -__version__ = "0.3.6" +__version__ = "0.3.7" _this_year = date.today().year % 100 _this_cent = date.today().year // 100 @@ -159,7 +159,7 @@ def id2bibcode(id_this, possible_id_types=("bibcode", "doi", "arxiv")): for id_type in possible_id_types: m = _re_id[id_type].search(id_this) if m: - s = fixedAdsSearchQuery(q="identifier:{}".format(m.group()), fl=["bibcode"]) + s = fixedAdsSearchQuery(q="identifier:\"{}\"".format(m.group()), fl=["bibcode"]) try: return next(s).bibcode except StopIteration: