Wrong PDF file links in the BibTex file obtained after running ris2xml and xml2bib

jvilhena
2014-03-22
2014-03-24
  • jvilhena
    jvilhena
    2014-03-22

    Hello,
    When exporting the references from Mendeley (reference manager) to a BibTex file, the PDF links of file names with no ASCII characters are wrong but when exporting to a RIS file the PDF links are correct. Because of this Mendeley behavior I tried to use bibutils 5.3, which I have managed to get compiled in windows trough Cygwin after my other post in this forum, to convert the RIS file to a BibTex file throughout sequential use of ris2xml and xml2bib, but I also got wrong PDF links in the BibTex resulting file.

    Here is a reference whith the correct file link in the RIS file:
    TY - JOUR
    T1 - Optimal shape design as a material distribution problem
    A1 - Bendsøe, MP P.
    Y1 - 1989///
    JF - Structural optimization
    VL - 202
    SP - 193
    EP - 202
    SN - 1615-147X
    DO - 10.1007/BF01650949
    UR - http://link.springer.com/article/10.1007/BF01650949
    L1 - file:///D:/_jnrvilhena/phd/thesis/references/Bendsøe - 1989 - Optimal shape design as a material distribution problem.pdf
    N2 - Shape optimization ...

    And, here is the same reference whith the wrong file link in BibTex file after processing:
    @Article{Bendsøe1989,
    author="Bends{\o}e, M. P. P.",
    title="Optimal shape design as a material distribution problem",
    journal="Structural optimization",
    year="1989",
    volume="202",
    pages="193--202",
    abstract="Shape optimization ...",
    issn="1615-147X",
    doi="10.1007/BF01650949",
    url="http://link.springer.com/article/10.1007/BF01650949",
    file=":///D:/_jnrvilhena/phd/thesis/references/Bends{\o}e - 1989 - Optimal shape design as a material distribution problem.pdf:PDF"
    }

    Is this a bug or is there a way to correct this?

    Best regards
    JVilhena

     
  • Chris Putnam
    Chris Putnam
    2014-03-24

    Thanks for the useful bug report. It certainly is a bug. I never considered that the 'file' entries need to be protected from latex entries like URLs, etc. But easily fixable.

    The new version 5.4 works for your example.