浏览代码

[doifile.tmpl] Render both Name and Citation for refs

Backwards compatible template so that older Datacite.yml files are still
rendered properly.
No need for conditionals, since empty fields will have no effect.
Achilleas Koutsou 5 年之前
父节点
当前提交
56cb70c062
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      templates/repo/doifile.tmpl

+ 1 - 1
templates/repo/doifile.tmpl

@@ -42,7 +42,7 @@
 				<td>References</td>
 				<td>
 					{{range $index, $ref := .DOIInfo.References}}
-						{{ $ref.Name }} [{{ $ref.ID }}] ({{ $ref.Reftype }})
+						{{ $ref.Name }} {{ $ref.Citation }} [{{ $ref.ID }}] ({{ $ref.Reftype }})
 						<br>
 					{{end}}
 				</td>