mirror of
https://github.com/searxng/searxng.git
synced 2025-07-15 01:09:21 +02:00
[mod] science category: various update of about PR 1705
This commit is contained in:
parent
08b8859705
commit
d6446be38f
8 changed files with 20 additions and 19 deletions
|
@ -33,10 +33,10 @@ def response(resp):
|
|||
if record_type == 'book-chapter':
|
||||
title = record['container-title'][0]
|
||||
if record['title'][0].lower().strip() != title.lower().strip():
|
||||
title = title + ' (' + record['title'][0] + ')'
|
||||
title = html_to_text(title) + ' (' + html_to_text(record['title'][0]) + ')'
|
||||
journal = None
|
||||
else:
|
||||
title = record['title'][0]
|
||||
title = html_to_text(record['title'][0])
|
||||
journal = record.get('container-title', [None])[0]
|
||||
url = record.get('resource', {}).get('primary', {}).get('URL') or record['URL']
|
||||
authors = [author.get('given', '') + ' ' + author.get('family', '') for author in record.get('author', [])]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue