From 36885ec34c99ca08c259162af65e92ef6e20cf26 Mon Sep 17 00:00:00 2001 From: Matt Heffron Date: Sun, 6 Apr 2025 00:24:31 -0700 Subject: [PATCH] Include names of "Editors" (if provided) and no "Authors" provided in Zotero json data for a given entry. Prefix Editor(s) name(s) with "Edited by: " in Bibliography entry. --- layouts/shortcodes/bibTable.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/layouts/shortcodes/bibTable.html b/layouts/shortcodes/bibTable.html index 4af3a6e7f..c9fc28ec7 100644 --- a/layouts/shortcodes/bibTable.html +++ b/layouts/shortcodes/bibTable.html @@ -182,8 +182,7 @@ {{ $itemID := (cond (gt (len .id) 0) (replace .id `/` `_`) `_0`) }}
{{ if .url }}{{ .title }}{{ else }}{{ .title }}{{ end }}
- {{ if .author }}
- {{ 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 }} + {{ if or .author .editor }}
{{ if not .author }}Edited by: {{ 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 }}
{{ end }} {{ if .abstract }}{{ end }} {{ if and false .note }}