43 title = result[
'title']
46 content =
"""{title} - {authors} {journal} ({volume}) {page} ({year})"""
51 content = content.format(
52 title=result[
'citation_title'],
53 authors=result[
'entry_author_list'][0],
54 journal=result[
'journal'],
55 volume=result[
'journal_volume'],
56 page=result[
'journal_page'],
57 year=result[
'citation_year'],
60 content = content.format(
61 title=result[
'citation_title'],
62 authors=result[
'entry_author_list'][0],
66 year=result[
'release_year'],
68 thumbnail = pdbe_preview_url.format(pdb_id=result[
'pdb_id'])
75 thumbnail = pdbe_preview_url.format(pdb_id=result[
'pdb_id'])
79 return [title, content, thumbnail]
85 json = loads(resp.text)[
'response'][
'docs']
90 if result[
'status']
in pdb_unpublished_codes:
94 if result[
'status'] ==
'OBS':
96 title = gettext(
'{title} (OBSOLETE)').
format(title=result[
'title'])
98 superseded_url = pdbe_entry_url.format(pdb_id=result[
'superseded_by'])
103 msg_superseded = gettext(
"This entry has been superseded by")
104 content =
'{msg_superseded}: {url} ({pdb_id})'.
format(
105 msg_superseded=msg_superseded, url=superseded_url, pdb_id=result[
'superseded_by']
115 'url': pdbe_entry_url.format(pdb_id=result[
'pdb_id']),
118 'thumbnail': thumbnail,