Closed thomascpan closed 4 years ago
Describe the bug Parse PubMed OA XML information appears to have a bug with the "subjects" attribute.
To Reproduce
dict_out = pp.parse_pubmed_xml(path) dict_out["subjects"]
Will always be empty. https://github.com/titipata/pubmed_parser/blob/1376aa651f05662742e7e225c831c6ffda0dc91b/pubmed_parser/pubmed_oa_parser.py#L148 I believe the following change will fix the issue.
subjects_node = tree.findall(".//article-categories//subj-group/subject")
Expected behavior Should return subjects.
Describe the bug Parse PubMed OA XML information appears to have a bug with the "subjects" attribute.
To Reproduce
Will always be empty. https://github.com/titipata/pubmed_parser/blob/1376aa651f05662742e7e225c831c6ffda0dc91b/pubmed_parser/pubmed_oa_parser.py#L148 I believe the following change will fix the issue.
Expected behavior Should return subjects.