@@ -43,7 +43,7 @@ def construct_body(result):
4343 title = result['title']
4444
4545 # construct content body
46− content = """{title}<br />{authors} {journal} <strong>{volume}</strong> {page} ({year})"""
46+ content = """{title} - {authors} {journal} ({volume}) {page} ({year})"""
4747
4848 # replace placeholders with actual content
4949 try:
@@ -84,15 +84,18 @@ def response(resp):
8484 continue
8585 if result['status'] == 'OBS':
8686 # expand title to add some sort of warning message
87− title = gettext('{title} (OBSOLETE)').format(title=result['title'])
88− superseded_url = pdbe_entry_url.format(pdb_id=result['superseded_by'])
87+ title = gettext('{title} (OBSOLETE)').format(title=result['title'])
88+ try:
89+ superseded_url = pdbe_entry_url.format(pdb_id=result['superseded_by'])
90+ except:
91+ continue
8992
9093 # since we can't construct a proper body from the response, we'll make up our own
9194 msg_superseded = gettext("This entry has been superseded by")
92− content = '<em>{msg_superseded} \<a href="{url}">{pdb_id}</a></em>'.format(
95+ content = '{msg_superseded}: {url} ({pdb_id})'.format(
9396 msg_superseded=msg_superseded,
9497 url=superseded_url,
95− pdb_id=result['superseded_by'], )
98+ pdb_id=result['superseded_by'])
9699
97100 # obsoleted entries don't have preview images
98101 img_src = None