From be5dbf6d7617bd4ccda4580c7fc9f833c686cb15 Mon Sep 17 00:00:00 2001 From: Yao-Yuan Mao Date: Mon, 17 Feb 2020 13:56:51 -0600 Subject: [PATCH 1/2] version increment --- adstex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adstex.py b/adstex.py index 6f55eeb..f3e29f0 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 From 7f2bdbe5a097bf73656664246add5fd24a5b73ba Mon Sep 17 00:00:00 2001 From: Yao-Yuan Mao Date: Mon, 17 Feb 2020 13:57:06 -0600 Subject: [PATCH 2/2] qoute identifier input --- adstex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adstex.py b/adstex.py index f3e29f0..794d6cd 100644 --- a/adstex.py +++ b/adstex.py @@ -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: