#NEWLINE# def biblio( self , aliases , provider_url_template = None , cache_enabled = True ) : #NEWLINE# #INDENT# biblio = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# aliases_dict = provider . alias_dict_from_tuples ( aliases ) #NEWLINE# if ( 'url' in aliases_dict ) : #NEWLINE# #INDENT# url = aliases_dict [ 'url' ] [ 0 ] #NEWLINE# url_fragments_to_exclude = [ 'scopus.com/inward' , 'ncbi.nlm.nih.gov/pubmed' , 'doi.org/' , 'mendeley.com/' ] #NEWLINE# if ( url and ( not any ( ( ( fragment in url ) for fragment in url_fragments_to_exclude ) ) ) ) : #NEWLINE# #INDENT# if ( not provider_url_template ) : #NEWLINE# #INDENT# provider_url_template = self . biblio_url_template #NEWLINE# #UNINDENT# biblio = self . get_biblio_for_id ( url , provider_url_template , cache_enabled ) #NEWLINE# #UNINDENT# #UNINDENT# return biblio