From 0070f43ea15074974f14e3664ed708cadb843ba2 Mon Sep 17 00:00:00 2001 From: Yao-Yuan Mao Date: Fri, 6 Dec 2024 08:04:31 -0700 Subject: [PATCH] Update adstex.py --- adstex.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/adstex.py b/adstex.py index c5ccda9..b7240f2 100644 --- a/adstex.py +++ b/adstex.py @@ -30,7 +30,7 @@ except ImportError: from urllib import unquote -__version__ = "0.5.3" +__version__ = "0.5.4" _this_year = date.today().year % 100 _this_cent = date.today().year // 100 @@ -176,7 +176,7 @@ def id2bibcode(id_this, possible_id_types=("bibcode", "doi", "arxiv")): def authoryear2bibcode(author, year, key): - q = 'author:"^{}" year:{} database:{}'.format(author, year, _database) + q = 'first_author:"{}" year:{} database:{}'.format(author, year, _database) entries = list( fixedAdsSearchQuery( q=q,