---------------------*/}}
{{- define "publication-contributors" -}}

  {{ $citationType := .type }}

  {{ $contributors := (where $.Site.Data.publication.contributor "type" "primary") }}
  {{- $contributorLength := len $contributors -}}

  {{- $editors := (where $contributors "role" "eq" "editor") -}}
  {{- $editorLength := len $editors -}}

  {{/* Set the value of $editorTag
    If the primary contributors are listed as role: editor, we need to add "ed(s)" or "editor(s)" to the list of contributor names
  