]> git.lyx.org Git - features.git/commitdiff
Fixes to References dialog (read-only status) and to Bibtex bibliography
authorAngus Leeming <leeming@lyx.org>
Thu, 9 Aug 2001 15:08:06 +0000 (15:08 +0000)
committerAngus Leeming <leeming@lyx.org>
Thu, 9 Aug 2001 15:08:06 +0000 (15:08 +0000)
output.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2463 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/controllers/ChangeLog
src/frontends/controllers/GUI.h
src/frontends/controllers/biblio.C

index 16722b66f50ca6896cbc6061d0969d7978f92da8..09a94ae0b0c5d0658df3e87c6992db896cc8b079 100644 (file)
@@ -1,3 +1,11 @@
+2001-08-09  Angus Leeming  <a.leeming@ic.ac.uk>
+
+       * GUI.h: Button controller for Reference dialog changed to
+       NoRepeatedApplyReadOnlyPolicy.
+
+       * biblio.C (getInfo): output volume and number info. Move year to end
+       of string.
+
 2001-08-09  Allan Rae  <rae@lyx.org>
 
        * Makefile.am (SUBDIRS, dist-hook): remove bogus entries. 
index 2a6e509c5cc7e11a73b9c46e87788c49a46d557e..c46bec48428bd50979faaa2cd26505cb2ff89728 100644 (file)
@@ -285,11 +285,11 @@ class ControlRef;
 
 template <class GUIview, class GUIbc>
 class GUIRef :
-       public GUI<ControlRef, GUIview, NoRepeatedApplyPolicy, GUIbc> {
+       public GUI<ControlRef, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc> {
 public:
        ///
        GUIRef(LyXView & lv, Dialogs & d)
-               : GUI<ControlRef, GUIview, NoRepeatedApplyPolicy, GUIbc>(lv, d) {}
+               : GUI<ControlRef, GUIview, NoRepeatedApplyReadOnlyPolicy, GUIbc>(lv, d) {}
 };
 
 
@@ -349,7 +349,7 @@ public:
 };
 
 
-/** Specialization for TabularCreate dialog
+/** Specialization for Thesaurus dialog
  */
 class ControlThesaurus;
 
index 9b2096e0c9adfacab25dbc72fb38762d54a0a1da..9a6a8fabb4c20f1e2ae74fd06a302518f6510f03 100644 (file)
@@ -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,8 +275,14 @@ 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;