Bug#694782: kbibtex: KBibTex cut DOI with more then one slash

roucaries bastien roucaries.bastien+debian at gmail.com
Tue Dec 4 12:49:07 UTC 2012


control: tags -1 pending


On Tue, Dec 4, 2012 at 1:46 PM, David Wagner <wagdav at gmail.com> wrote:
> Hi Bastien,
>
> Thanks for dealing with this bug!
>
> On 4 December 2012 13:12, roucaries bastien
> <roucaries.bastien+debian at gmail.com> wrote:
>> Do you suffer dataloss ?
>
> I had the bibtex file in version control, so I did not, but the
> problem can, indeed, cause dataloss.
>
>> Could you try:
>> - create a bibtex item with a doi with double slash
>
> touch test.bib # and put some content
> cp test.bib original.bib
>
> Then I do the following steps:
>> - open it with kbibtex
>> - double click on the item, modify the title of the item (not the doi)
>
> I remove the "on MAST" from the end of the title (see below).
>
>> - save it
>> - check if doi is cut
>
> $ diff -u original.bib test.bib
> --- original.bib        2012-12-04 13:35:41.000000000 +0100
> +++ test.bib    2012-12-04 13:36:42.000000000 +0100
> @@ -1,11 +1,13 @@
> - at Article{ ben2009structure,
> -    title = "{The structure and motion of inter-ELM filaments on MAST}",
> -    author = "N. {Ben Ayed} and A. Kirk and B. Dudson and S.
> Tallents and R.G.L. Vann and H.R. Wilson",
> -    journal = "Plasma Physics and Controlled Fusion",
> -    volume = "51",
> -    pages = "035016",
> -    year = "2009",
> -    publisher = "Institute of Physics Publishing",
> -    doi = "10.1088/0741-3335/50/12/124012"
> + at comment{x-kbibtex-personnameformatting=<%l><, %f>}
> +
> + at article{ben2009structure,
> +       author = "{Ben Ayed}, N. and Kirk, A. and Dudson, B. and
> Tallents, S. and Vann, R.G.L. and Wilson, H.R.",
> +       doi = "10.1088/0741-3335",
> +       journal = "Plasma Physics and Controlled Fusion",
> +       pages = "035016",
> +       publisher = "Institute of Physics Publishing",
> +       title = "{The structure and motion of inter-ELM filaments}",
> +       volume = "51",
> +       year = "2009"
>  }
>
> So yes, the DOI is cut.
>
> Cheers,
> --
> David Wagner

I am compiling a new revision.

I will upload as soon as possible. You could find the revised version
on mentors in a few minutes



More information about the debian-science-maintainers mailing list