#NEWLINE# @ cached_property #NEWLINE# def is_preprint( self ) : #NEWLINE# #INDENT# doi_fragments = [ '/npre.' , '/peerj.preprints' , '.figshare.' ] #NEWLINE# url_fragments = [ 'figshare.com/' ] #NEWLINE# if ( self . aliases and self . aliases . display_arxiv ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# if ( self . aliases and self . aliases . display_doi ) : #NEWLINE# #INDENT# if any ( ( ( fragment in self . aliases . display_doi ) for fragment in doi_fragments ) ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# #UNINDENT# if ( self . aliases and self . aliases . resolved_url ) : #NEWLINE# #INDENT# if any ( ( ( fragment in self . aliases . resolved_url ) for fragment in url_fragments ) ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# #UNINDENT# return False