forked from Ponysearch/Ponysearch
[fix] doc of the paper.html template (isbn, issn)
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
94c4cc126b
commit
52023e3d6e
2 changed files with 5 additions and 4 deletions
|
@ -386,11 +386,11 @@ the parameter ``template`` must be set to the desired type.
|
||||||
- DOI number (like ``10.1038/d41586-018-07848-2``)
|
- DOI number (like ``10.1038/d41586-018-07848-2``)
|
||||||
|
|
||||||
* - issn
|
* - issn
|
||||||
- :py:class:`str`
|
- :py:class:`List <list>`\ [\ :py:class:`str`\ ]
|
||||||
- ISSN number like ``1476-4687``
|
- ISSN number like ``1476-4687``
|
||||||
|
|
||||||
* - isbn
|
* - isbn
|
||||||
- :py:class:`str`
|
- :py:class:`List <list>`\ [\ :py:class:`str`\ ]
|
||||||
- ISBN number like ``9780201896831``
|
- ISBN number like ``9780201896831``
|
||||||
|
|
||||||
* - pdf_url
|
* - pdf_url
|
||||||
|
|
|
@ -77,6 +77,7 @@ def response(resp):
|
||||||
if url is None:
|
if url is None:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
publishedDate = None
|
||||||
time = source['publishedDate'] or source['depositedDate']
|
time = source['publishedDate'] or source['depositedDate']
|
||||||
if time:
|
if time:
|
||||||
publishedDate = datetime.fromtimestamp(time / 1000)
|
publishedDate = datetime.fromtimestamp(time / 1000)
|
||||||
|
@ -106,8 +107,8 @@ def response(resp):
|
||||||
# 'pages' : '',
|
# 'pages' : '',
|
||||||
# 'number': '',
|
# 'number': '',
|
||||||
'doi': source['doi'],
|
'doi': source['doi'],
|
||||||
'issn': source['issn'],
|
'issn': [x for x in [source.get('issn')] if x],
|
||||||
'isbn': source.get('isbn'), # exists in the rawRecordXml
|
'isbn': [x for x in [source.get('isbn')] if x], # exists in the rawRecordXml
|
||||||
'pdf_url': source.get('repositoryDocument', {}).get('pdfOrigin'),
|
'pdf_url': source.get('repositoryDocument', {}).get('pdfOrigin'),
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue