Open adrian-tymorek opened 2 years ago
Thanks! I will have a look as soon as possible.
I was bitten by this bug as well, and it seems to be case-sensitive. Consider the following example:
@book{Grant2007,
Address = {New York},
Author = {Grant, Ian P.},
Isbn = {978-0-387-34671-7},
Publisher = {Springer},
Title = {Relativistic quantum theory of atoms and molecules:
{T}heory and computation},
Year = 2007
}
@article{Stone2005,
author = {N.J. Stone},
title = {Table of Nuclear Magnetic Dipole and Electric
Quadrupole Moments},
journal = {Atomic Data and Nuclear Data Tables},
volume = 90,
number = 1,
pages = {75-176},
year = 2005,
doi = {10.1016/j.adt.2005.04.001},
url = {http://dx.doi.org/10.1016/j.adt.2005.04.001},
}
@book{FroeseFischer1997,
Address = {Bristol, UK Philadelphia, Penn},
Author = {Froese Fischer, Charlotte and Brage, Tomas and
Jönsson, Per},
Isbn = {0-7503-0466-9},
Publisher = {Institute of Physics Publ},
Title = {Computational atomic structure : an {MCHF} approach},
Year = 1997
}
@article{Javanainen1988,
author = {J. Javanainen and J. H. Eberly and Qichang Su},
title = {Numerical Simulations of Multiphoton Ionization and
Above-Threshold Electron Spectra},
journal = {Physical Review A},
volume = 38,
number = 7,
pages = {3430-3446},
year = 1988,
doi = {10.1103/physreva.38.3430},
url = {http://dx.doi.org/10.1103/PhysRevA.38.3430},
}
Note that Author
and author
are differently cases. Running BibParser.parse_file
on this input gives
julia> BibParser.parse_file("docs/src/debug.bib")
OrderedCollections.OrderedDict{String, BibInternal.Entry} with 4 entries:
"Grant2007" => Entry(Access("", "", ""), Name[Name("", "Grant", "", "Ian", "P.")], "", Date("", "", "2007"), Name[], Eprint("", "", ""), "Grant2007", In("New York", "", "", "", "", "", "", "", "Springer", "", "", ""), Dict("isbn"=>"978-0-387-34671-7"), "Relativistic quantum theory of atoms and molecules:\n…
"Stone2005" => Entry(Access("10.1016/j.adt.2005.04.001", "", "http://dx.doi.org/10.1016/j.adt.2005.04.001"), Name[Name("", "Grant", "", "Ian", "P.")], "", Date("", "", "2007"), Name[], Eprint("", "", ""), "Stone2005", In("New York", "", "", "", "Atomic Data and Nuclear Data Tables", "1", "", "75-176", "Spr…
"FroeseFischer1997" => Entry(Access("", "", ""), Name[Name("", "Froese Fischer", "", "Charlotte", ""), Name("", "Brage", "", "Tomas", ""), Name("", "Jönsson", "", "Per", "")], "", Date("", "", "1997"), Name[], Eprint("", "", ""), "FroeseFischer1997", In("Bristol, UK Philadelphia, Penn", "", "", "", "", "", "", "",…
"Javanainen1988" => Entry(Access("10.1103/physreva.38.3430", "", "http://dx.doi.org/10.1103/PhysRevA.38.3430"), Name[Name("", "Froese Fischer", "", "Charlotte", ""), Name("", "Brage", "", "Tomas", ""), Name("", "Jönsson", "", "Per", "")], "", Date("", "", "1997"), Name[], Eprint("", "", ""), "Javanainen1988", I…
whereas changing the order of entries, or ensuring consistent cases for all entries instead yields
OrderedCollections.OrderedDict{String, BibInternal.Entry} with 4 entries:
"Grant2007" => Entry(Access("", "", ""), Name[Name("", "Grant", "", "Ian", "P.")], "", Date("", "", "2007"), Name[], Eprint("", "", ""), "Grant2007", In("New York", "", "", "", "", "", "", "", "Springer", "", "", ""), Dict("isbn"=>"978-0-387-34671-7"), "Relativistic quantum theory of atoms and molecules:\n…
"Stone2005" => Entry(Access("10.1016/j.adt.2005.04.001", "", "http://dx.doi.org/10.1016/j.adt.2005.04.001"), Name[Name("", "Stone", "", "N.J.", "")], "", Date("", "", "2005"), Name[], Eprint("", "", ""), "Stone2005", In("New York", "", "", "", "Atomic Data and Nuclear Data Tables", "1", "", "75-176", "Spri…
"FroeseFischer1997" => Entry(Access("", "", ""), Name[Name("", "Froese Fischer", "", "Charlotte", ""), Name("", "Brage", "", "Tomas", ""), Name("", "Jönsson", "", "Per", "")], "", Date("", "", "1997"), Name[], Eprint("", "", ""), "FroeseFischer1997", In("Bristol, UK Philadelphia, Penn", "", "", "", "", "", "", "",…
"Javanainen1988" => Entry(Access("10.1103/physreva.38.3430", "", "http://dx.doi.org/10.1103/PhysRevA.38.3430"), Name[Name("", "Javanainen", "", "J.", ""), Name("", "Eberly", "", "J.", " H."), Name("", "Su", "", "Qichang", "")], "", Date("", "", "1988"), Name[], Eprint("", "", ""), "Javanainen1988", In("Bristol,…
as expected.
I think there is a strange behavior in case some entries have missing fields. That is, suppose that entries number 1 and 4 have
abstract
field, but in entries 2 and 3 it's missing. In that caseabstract
field is added to entries 2 and 3 and it's value is copied from the first entry. I've noticed that behavior forabstract
,comment
andx-color
fields, but I guess it may be true for other fields too.Here is a minimal example: