mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-24 13:48:59 +00:00
Add modifier to jurabib and natbib (author-year) modules.
This commit is contained in:
parent
3d4076b598
commit
66f44f46c2
@ -89,7 +89,7 @@ CiteFormat authoryear
|
|||||||
!textbefore2 {%textbefore%[[/%textbefore%]][[{%dialog%[[/<%_before%>]]}]]}
|
!textbefore2 {%textbefore%[[/%textbefore%]][[{%dialog%[[/<%_before%>]]}]]}
|
||||||
!textafter {%textafter%[[, %textafter%]]}
|
!textafter {%textafter%[[, %textafter%]]}
|
||||||
!textafter2 {%textafter%[[ %textafter%]]}
|
!textafter2 {%textafter%[[ %textafter%]]}
|
||||||
!year {%year%[[%year%]][[??]]}
|
!year {%year%[[%year%]][[??]]}{%modifier%[[%modifier%]]}
|
||||||
|
|
||||||
# cite styles
|
# cite styles
|
||||||
cite %!cite%
|
cite %!cite%
|
||||||
|
@ -55,7 +55,7 @@ CiteFormat default
|
|||||||
!abbrvauthor {%abbrvauthor%[[%abbrvauthor%]][[??]]}
|
!abbrvauthor {%abbrvauthor%[[%abbrvauthor%]][[??]]}
|
||||||
!textbefore {%textbefore%[[%textbefore% ]]}
|
!textbefore {%textbefore%[[%textbefore% ]]}
|
||||||
!textafter {%textafter%[[, %textafter%]]}
|
!textafter {%textafter%[[, %textafter%]]}
|
||||||
!year {%year%[[%year%]][[??]]}
|
!year {%year%[[%year%]][[??]]}{%modifier%[[%modifier%]]}
|
||||||
|
|
||||||
# cite styles
|
# cite styles
|
||||||
citet %!citet%%!textafter%%!close%
|
citet %!citet%%!textafter%%!close%
|
||||||
|
@ -665,7 +665,7 @@ docstring BibTeXInfo::getValueForKey(string const & oldkey, Buffer const & buf,
|
|||||||
key = oldkey.substr(6);
|
key = oldkey.substr(6);
|
||||||
cleanit = true;
|
cleanit = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
docstring ret = operator[](key);
|
docstring ret = operator[](key);
|
||||||
if (ret.empty() && xref)
|
if (ret.empty() && xref)
|
||||||
ret = (*xref)[key];
|
ret = (*xref)[key];
|
||||||
@ -680,6 +680,8 @@ docstring BibTeXInfo::getValueForKey(string const & oldkey, Buffer const & buf,
|
|||||||
ret = bib_key_;
|
ret = bib_key_;
|
||||||
else if (key == "label")
|
else if (key == "label")
|
||||||
ret = label_;
|
ret = label_;
|
||||||
|
else if (key == "modifier" && modifier_ != 0)
|
||||||
|
ret = modifier_;
|
||||||
else if (key == "abbrvauthor")
|
else if (key == "abbrvauthor")
|
||||||
// Special key to provide abbreviated author names.
|
// Special key to provide abbreviated author names.
|
||||||
ret = getAbbreviatedAuthor(buf, false);
|
ret = getAbbreviatedAuthor(buf, false);
|
||||||
@ -714,7 +716,7 @@ docstring BibTeXInfo::getValueForKey(string const & oldkey, Buffer const & buf,
|
|||||||
}
|
}
|
||||||
if (cleanit)
|
if (cleanit)
|
||||||
return html::cleanAttr(ret);
|
return html::cleanAttr(ret);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user