mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Simplify.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29094 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
920bfedf1f
commit
f7164212b1
@ -165,21 +165,17 @@ docstring const BibTeXInfo::getAbbreviatedAuthor() const
|
|||||||
|
|
||||||
docstring const BibTeXInfo::getYear() const
|
docstring const BibTeXInfo::getYear() const
|
||||||
{
|
{
|
||||||
if (!is_bibtex_) {
|
if (is_bibtex_)
|
||||||
docstring const opt = trim(operator[]("label"));
|
return operator[]("year");
|
||||||
if (opt.empty())
|
|
||||||
return docstring();
|
|
||||||
|
|
||||||
docstring authors;
|
docstring const opt = trim(operator[]("label"));
|
||||||
docstring const tmp = split(opt, authors, '(');
|
if (opt.empty())
|
||||||
docstring year;
|
return docstring();
|
||||||
split(tmp, year, ')');
|
|
||||||
return year;
|
|
||||||
}
|
|
||||||
|
|
||||||
docstring year = operator[]("year");
|
docstring authors;
|
||||||
if (year.empty())
|
docstring const tmp = split(opt, authors, '(');
|
||||||
year = _("No year");
|
docstring year;
|
||||||
|
split(tmp, year, ')');
|
||||||
return year;
|
return year;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user