Update parsed2Bibtex
This commit is contained in:
parent
4eb2aeb9d8
commit
bd8d1c3898
@ -107,8 +107,6 @@ Here are some sources of inspirations for this project :
|
|||||||
|
|
||||||
A list of ideas and TODO. Don't hesitate to give feedback on the ones you really want or to propose your owns.
|
A list of ideas and TODO. Don't hesitate to give feedback on the ones you really want or to propose your owns.
|
||||||
|
|
||||||
10. Refactor
|
|
||||||
11. Use bibtex-parser lib to write bibtex, instead of parsed2BibTex
|
|
||||||
20. No DOI for arXiv / HAL
|
20. No DOI for arXiv / HAL
|
||||||
30. Parameter to disable remote search
|
30. Parameter to disable remote search
|
||||||
40. Open file
|
40. Open file
|
||||||
|
@ -7,7 +7,6 @@ import tools
|
|||||||
import params
|
import params
|
||||||
from bibtexparser.bparser import BibTexParser
|
from bibtexparser.bparser import BibTexParser
|
||||||
from bibtexparser.customization import homogeneize_latex_encoding
|
from bibtexparser.customization import homogeneize_latex_encoding
|
||||||
from bibtexparser.bwriter import bibtex as bibTexWriter
|
|
||||||
|
|
||||||
|
|
||||||
def getNewName(src, bibtex):
|
def getNewName(src, bibtex):
|
||||||
@ -45,7 +44,7 @@ def parsed2Bibtex(parsed):
|
|||||||
|
|
||||||
for field in [i for i in sorted(parsed) if i not in ['type', 'id']]:
|
for field in [i for i in sorted(parsed) if i not in ['type', 'id']]:
|
||||||
bibtex += "\t"+field+"={"+parsed[field]+"},\n"
|
bibtex += "\t"+field+"={"+parsed[field]+"},\n"
|
||||||
bibtex += "}\n"
|
bibtex += "}\n\n"
|
||||||
return bibtex
|
return bibtex
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user