]> git.lyx.org Git - lyx.git/blobdiff - src/BiblioInfo.cpp
Cmake build: Creating a define for a header file found
[lyx.git] / src / BiblioInfo.cpp
index 38883e86fb89f0d8a6a941974b80cf332fed1401..84ea4f035f4241bef40b625a0e432e931ed1e2f5 100644 (file)
@@ -689,6 +689,14 @@ docstring BibTeXInfo::getValueForKey(string const & key, Buffer const & buf,
                                + " [" + operator[]("year") + "]";
                else
                        return operator[]("title");
+       } else if (key == "bibentry") {
+               // Special key to provide the full bibliography entry: see getInfo()
+               CiteEngineType const engine_type = buf.params().citeEngineType();
+               DocumentClass const & dc = buf.params().documentClass();
+               string const & format = dc.getCiteFormat(engine_type, to_utf8(entry_type_));
+               int counter = 0;
+               return expandFormat(format, xref, counter, buf,
+                       docstring(), docstring(), docstring(), false);
        } else if (key == "textbefore")
                return before;
        else if (key == "textafter")