Skip to content

Commit 68441e6

Browse files
authored
Include names of "Editors" (if provided) and no "Authors" provided in Zotero json data for a given entry. (#275)
Prefix Editor(s) name(s) with "Edited by: " in Bibliography entry.
1 parent 57d5b8f commit 68441e6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: layouts/shortcodes/bibTable.html

+1-2
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,7 @@
182182
<tr>
183183
{{ $itemID := (cond (gt (len .id) 0) (replace .id `/` `_`) `_0`) }}
184184
<td><div class="bibTitle">{{ if .url }}<a href="{{ .url }}">{{ .title }}</a>{{ else }}{{ .title }}{{ end }}</div>
185-
{{ if .author }}<div class="authors">
186-
{{ range $na, $au := .author }}{{ if $na }}; {{ end }}{{ if $au.literal }}{{ $au.literal }}{{ else if and $au.family $au.given }}{{ $au.family }}, {{ $au.given }}{{ else }}{{ $au.family }}{{ $au.given }}{{ end }}{{ end }}
185+
{{ if or .author .editor }}<div class="authors">{{ if not .author }}<i>Edited by: </i>{{ end }}{{ range $naE, $auEd := or .author .editor }}{{ if $naE }}; {{ end }}{{ if $auEd.literal }}{{ $auEd.literal }}{{ else if and $auEd.family $auEd.given }}{{ $auEd.family }}, {{ $auEd.given }}{{ else }}{{ $auEd.family }}{{ $auEd.given }}{{ end }}{{ end }}
187186
</div>{{ end }}
188187
{{ if .abstract }}<button type="button" class="abstractExpander left" id="A{{$itemID}}">AAA</button>{{ end }}
189188
{{ if and false .note }}

0 commit comments

Comments
 (0)