#NEWLINE# def biblio( self , aliases , provider_url_template = None , cache_enabled = True ) : #NEWLINE# #INDENT# aliases_dict = provider . alias_dict_from_tuples ( aliases ) #NEWLINE# if ( not ( 'pmid' in aliases_dict ) ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# id = self [ 'pmid' ] [ 0 ] #NEWLINE# self . logger . debug ( ( '%s getting biblio for %s' % ( self . provider_name , id ) ) ) #NEWLINE# biblio_dict = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# efetch_url = self . _get_templated_url ( self . biblio_url_efetch_template , id , 'biblio' ) #NEWLINE# efetch_page = self . _get_eutils_page ( efetch_url , id , cache_enabled = cache_enabled ) #NEWLINE# biblio_dict . update ( self . _extract_biblio_efetch ( efetch_page , id ) ) #NEWLINE# elink_url = self . _get_templated_url ( self . biblio_url_elink_template , id , 'biblio' ) #NEWLINE# elink_page = self . _get_eutils_page ( elink_url , id , cache_enabled = cache_enabled ) #NEWLINE# biblio_dict . update ( self . _extract_biblio_elink ( elink_page , id ) ) #NEWLINE# if ( 'pmc' in aliases_dict ) : #NEWLINE# #INDENT# biblio_dict [ 'free_fulltext_url' ] = ( self . pmc_article_template % aliases_dict [ 'pmc' ] [ 0 ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( ( 'issn' in biblio_dict ) and provider . is_issn_in_doaj ( biblio_dict [ 'issn' ] ) ) : #NEWLINE# #INDENT# biblio_dict [ 'free_fulltext_url' ] = ( self . aliases_pubmed_url_template % id ) #NEWLINE# #UNINDENT# #UNINDENT# return biblio_dict