]> git.lyx.org Git - features.git/commitdiff
Fix suprious comma in book and thesis bib preview.
authorJuergen Spitzmueller <spitz@lyx.org>
Thu, 6 Sep 2018 12:46:44 +0000 (14:46 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Mon, 8 Oct 2018 09:40:24 +0000 (11:40 +0200)
Fixes: #11272
(cherry picked from commit 399a4d7e718f7e6e88f6110aa1fd3d933ab59887)

lib/layouts/stdciteformats.inc
status.23x

index a2378ce917a7d440fee5f3abda8eefc1e2b48a74..4c8c5a4efd47bd4989d0b79e9a29f4c31499f78e 100644 (file)
@@ -54,16 +54,17 @@ CiteFormat default
        !quotetitle "%title%"
        !emphtitle {!<i>!}%title%{!</i>!}
        !emphjournal {!<i>!}{%journal%[[%journal%]][[{%journaltitle%[[%journaltitle%]]}]]}{!</i>!}
-       !location {%address%[[%address%: ]][[{%location%[[%location%: ]]}]]}
+       !locpub {%publisher%[[{%address%[[%address%: ]][[{%location%[[%location%: ]]}]]}%publisher%, ]][[{%address%[[%address%, ]][[{%location%[[%location%, ]]}]]}]]}
+       !locinst {%school%[[{%address%[[%address%: ]][[{%location%[[%location%: ]]}]]}%school%, ]][[{%institution%[[{%address%[[%address%: ]][[{%location%[[%location%: ]]}]]}%institution%, ]][[{%address%[[%address%, ]][[{%location%[[%location%, ]]}]]}]]}]]}
 
        #
        # Entry types. Note that final punctuation will be added later, if needed.
        #
-       !insomething %fullnames:author%, %!quotetitle%, %B_in%{%fullbynames:editor%[[ %fullbynames:editor%, %!makeed%,]]} {!<i>!}%booktitle%{!</i>!}%!volnum%{%edition%[[ %edition%]]} (%!location%%publisher%, %year%)%!pages%{%note%[[. %note%]]}
+       !insomething %fullnames:author%, %!quotetitle%, %B_in%{%fullbynames:editor%[[ %fullbynames:editor%, %!makeed%,]]} {!<i>!}%booktitle%{!</i>!}%!volnum%{%edition%[[ %edition%]]} (%!locpub%%year%)%!pages%{%note%[[. %note%]]}
 
        article %fullnames:author%, %!quotetitle%, %!emphjournal% {%volume%[[ %volume%{%number%[[, %number%]]}]]} (%year%)%!pages%{%note%[[. %note%]]}
 
-       !booklike %!authoredit%%!emphtitle%%!volnum%{%edition%[[ %edition%]]} (%!location%%publisher%, %year%){%note%[[. %note%]]}
+       !booklike %!authoredit%%!emphtitle%%!volnum%{%edition%[[ %edition%]]} (%!locpub%%year%){%note%[[. %note%]]}
        book %!booklike%
        collection %!booklike%
        proceedings %!booklike%
@@ -71,7 +72,7 @@ CiteFormat default
        incollection %!insomething%
        inproceedings %!insomething%
 
-       !theses %fullnames:author%, %title% (%!location%{%school%[[%school%]][[%institution%]]}, %year%){%note%[[. %note%]]}
+       !theses %fullnames:author%, %title% (%!locinst%%year%){%note%[[. %note%]]}
        thesis %!theses%
        phdthesis %!theses%
        mastersthesis %!theses%
index 0a74e1543212f53cebbccac5ddd78287d9505b21..654d0993114425f6f50032c61bb0c58db04ab448 100644 (file)
@@ -164,6 +164,8 @@ What's new
 
 - Allow adjustment of margin settings in InsetLayout (bug 10177).
 
+- Fix suprious comma in book and thesis bib preview (bug 11272).
+
 
 * INTERNALS