X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fcontrollers%2Fbiblio.C;h=9a6a8fabb4c20f1e2ae74fd06a302518f6510f03;hb=96e9048c24b7ec1b4cbdf9f470fcea8bf900b8d0;hp=91a4d57fd5f95c78ca05c720e4a593468f0c17fa;hpb=50b65ca806e62f76738a364af6b948d92863aefa;p=lyx.git diff --git a/src/frontends/controllers/biblio.C b/src/frontends/controllers/biblio.C index 91a4d57fd5..9a6a8fabb4 100644 --- a/src/frontends/controllers/biblio.C +++ b/src/frontends/controllers/biblio.C @@ -253,6 +253,8 @@ string const getInfo(InfoMap const & map, string const & key) string title = parseBibTeX(it->second, "title"); string booktitle = parseBibTeX(it->second, "booktitle"); string chapter = parseBibTeX(it->second, "chapter"); + string number = parseBibTeX(it->second, "number"); + string volume = parseBibTeX(it->second, "volume"); string pages = parseBibTeX(it->second, "pages"); string media = parseBibTeX(it->second, "journal"); @@ -265,8 +267,6 @@ string const getInfo(InfoMap const & map, string const & key) ostringstream result; result << author; - if (!year.empty()) - result << ", " << year; if (!title.empty()) result << ", " << title; if (!booktitle.empty()) @@ -275,13 +275,19 @@ string const getInfo(InfoMap const & map, string const & key) result << ", Ch. " << chapter; if (!media.empty()) result << ", " << media; + if (!volume.empty()) + result << ", vol. " << volume; + if (!number.empty()) + result << ", no. " << number; if (!pages.empty()) result << ", pp. " << pages; + if (!year.empty()) + result << ", " << year; if (result.str().empty()) // not a BibTeX record result << it->second; - return result.str(); + return result.str().c_str(); }