Browse Source

[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 năm trước cách đây
mục cha
commit
56cb70c062
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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>