Skip to content

Commit

Permalink
fixed eupmc
Browse files Browse the repository at this point in the history
  • Loading branch information
ayush4921 committed Mar 8, 2022
1 parent c40970d commit 5e1666a
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions pygetpapers/repository/europe_pmc.py
Original file line number Diff line number Diff line change
Expand Up @@ -573,23 +573,7 @@ def add_fields_to_resultant_dict(
else:
logging.warning("Title not found for paper %s", paper_number)

def write_meta_data_for_paper(self, paper, paper_number, resultant_dict):

logging.debug("Reading Query Result for paper %s", paper_number)
pdfurl = []
htmlurl = []
for x in paper[FULL_TEST_URL_LIST][FULL_TEXT_URL]:
if x[DOCUMENTSTYLE] == PDF and x[AVAILABILITY] == OPENACCESS:
pdfurl.append(x[URL])

if x[DOCUMENTSTYLE] == HTML and x[AVAILABILITY] == OPENACCESS:
htmlurl.append(x[URL])
identifier_for_paper = paper[identifier_for_paper]
resultant_dict = self.download_tools._make_initial_columns_for_paper_dict(
identifier_for_paper, resultant_dict
)
resultant_dict[identifier_for_paper].update(paper)
return htmlurl, identifier_for_paper, pdfurl, resultant_dict


def make_metadata_json(self, resultant_dict, update=False):
if update:
Expand Down

0 comments on commit 5e1666a

Please sign in to comment.