@@ -48,14 +48,16 @@ def response(resp):
49 url = entry.xpath('.//id')[0].text
49 url = entry.xpath('.//id')[0].text
51+ content_string = '{doi_content}{abstract_content}'
51− content = entry.xpath('.//summary')[0].text
53+ abstract = entry.xpath('.//summary')[0].text
53 # If a doi is available, add it to the snipppet
55 # If a doi is available, add it to the snipppet
55− doi = entry.xpath('.//link[@title="doi"]')[0].text
57+ doi_content = entry.xpath('.//link[@title="doi"]')[0].text
56− content = 'DOI: ' + doi + ' Abstract: ' + content
58+ content = content_string.format(doi_content=doi_content, abstract_content=abstract_content)
58− pass
60+ content = content_string.format(abstract_content=abstract_content)
60 if len(content) > 300:
62 if len(content) > 300:
61 content = content[0:300] + "..."
63 content = content[0:300] + "..."