
    iR	                     f    d Z dgZddlZddlmZ ddlmZ ej                   G d ded	             Z	y)
a  Typification of the *paper* results.

.. _BibTeX field types: https://en.wikipedia.org/wiki/BibTeX#Field_types
.. _BibTeX format: https://www.bibtex.com/g/bibtex-format/

Results of this type are rendered in the :origin:`paper.html
<searx/templates/simple/result_templates/paper.html>` template.

Related topics:

- `BibTeX field types`_
- `BibTeX format`_

----

.. autoclass:: Paper
   :members:
   :show-inheritance:

Paper    N)DateTime   )
MainResultc                   r    e Zd ZU dZdZeed<   dZedz  ed<   	 dZ	eed<   	 dZ
eed<   	 g Zee   ed	<   	 dZeed
<   	 g Zee   ee   z  ed<   	 dZeed<   	 dZeed<   	 dZeed<   	 dZeez  ed<   	 dZeed<   	 dZeed<   	 dZeed<   	 g Zee   ed<   	 g Zee   ed<   	 dZeed<   	 dZeed<   	  fdZ xZS )r   zNResult type suitable for displaying scientific papers and other
    documents.z
paper.htmltemplateNdate_of_publication contentcommentstagstypeauthorseditor	publisherjournalvolumepagesnumberdoiissnisbnpdf_urlhtml_urlc                     t         |           | j                  (| j                  t	        | j                        | _        y y y )N)super__post_init__r	   publishedDater   )self	__class__s    )/root/searxng/searx/result_types/paper.pyr   zPaper.__post_init__[   sA    ##+0B0B0N'/0B0B'CD$ 1O+    )__name__
__module____qualname____doc__r   str__annotations__r	   r   r   r   r   listr   r   setr   r   r   r   intr   r   r   r   r   r   r   r   __classcell__)r    s   @r!   r   r       s     !Hc +/D/*GS3Hc8D$s)D#NL$&GT#YS!&, FC#Is GSGFC#IE3O*FCICM;D$s)1D$s)5GS2Hc+D Dr"   T)kw_only)
r&   __all__typingtsearx.weatherr   _baser   finalr    r"   r!   <module>r5      s@   , )  "  =DJ =D 	=Dr"   