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 years ago
parent
commit
56cb70c062
1 changed files with 1 additions and 1 deletions
  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>