From d52cb39476aad977ffe8b73b16e831f78d3ab8fe Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 14 Sep 2020 00:16:22 -0700 Subject: refs and grobid2json bugfixes from testing --- fatcat_scholar/grobid2json.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fatcat_scholar/grobid2json.py') diff --git a/fatcat_scholar/grobid2json.py b/fatcat_scholar/grobid2json.py index dcf9ce8..898275b 100755 --- a/fatcat_scholar/grobid2json.py +++ b/fatcat_scholar/grobid2json.py @@ -123,7 +123,7 @@ def biblio_info(elem: ET.Element) -> Dict[str, Any]: ref["arxiv_id"] = elem.findtext('.//{%s}idno[@type="arXiv"]' % ns) ref["pmcid"] = elem.findtext('.//{%s}idno[@type="PMCID"]' % ns) ref["pmid"] = elem.findtext('.//{%s}idno[@type="PMID"]' % ns) - el = elem.find(".//{%s}biblScope[@page]" % ns) + el = elem.find('.//{%s}biblScope[@unit="page"]' % ns) if el is not None: if el.attrib.get("from") and el.attrib.get("to"): ref["pages"] = "{}-{}".format(el.attrib["from"], el.attrib["to"]) -- cgit v1.2.3