It is convenient for me to change this for use in XHTML output, but I also

have been wanting to change it for a while. It is not very useful to have
a bunch of years listed in the citations TOC (which you get if you have used
\citeyear very often. Better, it seems to me, to see the citation keys.

Of course, this can be switched again if need be, and I can figure out a 
different way to handle my own problem.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30053 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2009-06-11 21:23:18 +00:00
parent 2b118ae71e
commit 21121f3fb5
3 changed files with 10 additions and 1 deletions

View File

@ -900,6 +900,13 @@ void InsetBibtex::validate(LaTeXFeatures & features) const
}
int InsetBibtex::xhtml(odocstream &, OutputParams const &) const
{
//Toc const & toc = buffer().tocBackend().toc("citation");
return 0;
}
docstring InsetBibtex::contextMenu(BufferView const &, int, int) const
{
return from_ascii("context-bibtex");

View File

@ -52,6 +52,8 @@ public:
///
void validate(LaTeXFeatures &) const;
///
int xhtml(odocstream &, OutputParams const &) const;
///
static ParamInfo const & findInfo(std::string const &);
///
static std::string defaultCommand() { return "bibtex"; };

View File

@ -466,7 +466,7 @@ void InsetCitation::updateLabels(ParIterator const &)
void InsetCitation::addToToc(DocIterator const & cpit)
{
Toc & toc = buffer().tocBackend().toc("citation");
toc.push_back(TocItem(cpit, 0, cache.screen_label));
toc.push_back(TocItem(cpit, 0, getParam("key")));
}