#NEWLINE# @ staticmethod #NEWLINE# def get_entries( source_field , file_path , cache_path , file_format , desc_fields , desc_format , wrap_chars ) : #NEWLINE# #INDENT# file_path = os . path . expanduser ( file_path ) #NEWLINE# cache_path = os . path . expanduser ( cache_path ) #NEWLINE# if ( file_format == 'bibtex' ) : #NEWLINE# #INDENT# from citation_vim.bibtex.parser import bibtexParser #NEWLINE# parser = bibtexParser ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( file_format == 'zotero' ) : #NEWLINE# #INDENT# from citation_vim.zotero.parser import zoteroParser #NEWLINE# parser = zoteroParser ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# print ( "g:citation_vim_file_format variable must be either 'zotero' or 'bibtex'" ) #NEWLINE# return [ ] #NEWLINE# #UNINDENT# #UNINDENT# entries = parser . load ( source_field , file_path , cache_path ) #NEWLINE# output = [ ] #NEWLINE# for entry in entries : #NEWLINE# #INDENT# description = entry . describe ( source_field , desc_fields , desc_format , wrap_chars ) #NEWLINE# output . append ( [ getattr ( entry , source_field ) , file_path ] ) #NEWLINE# #UNINDENT# return output