{{- $p := .pub -}} {{- $prefix := .prefix -}} {{- $page := false -}} {{- with $p.page -}} {{- $page = site.GetPage (printf "/research/%s" .) -}} {{- end -}} {{- $links := slice -}} {{- with $page }}{{ $links = $links | append (printf "Page" .RelPermalink) }}{{ end -}} {{- $pdf := "" -}} {{- if $page }} {{- with $page.Resources.Match "{paper,journal}/*.pdf" }} {{- range first 1 . }} {{- $pdf = .RelPermalink -}} {{- end }} {{- end }} {{- end -}} {{- if not $pdf }}{{ $pdf = $p.pdf }}{{ end -}} {{- with $pdf }}{{ $links = $links | append (printf "PDF" .) }}{{ end -}} {{- $poster := "" -}} {{- if $page }} {{- with $page.Resources.Match "poster/*.pdf" }} {{- range first 1 . }} {{- $poster = .RelPermalink -}} {{- end }} {{- end }} {{- end -}} {{- if not $poster }}{{ $poster = $p.poster }}{{ end -}} {{- with $poster }}{{ $links = $links | append (printf "Poster" .) }}{{ end -}} {{- $slides := "" -}} {{- if $page }} {{- with $page.Resources.Match "talk/*.pdf" }} {{- range first 1 . }} {{- $slides = .RelPermalink -}} {{- end }} {{- end }} {{- end -}} {{- if not $slides }}{{ $slides = $p.slides }}{{ end -}} {{- with $slides }}{{ $links = $links | append (printf "Slides" .) }}{{ end -}} {{- with $p.code }}{{ $links = $links | append (printf "Code" .) }}{{ end -}} {{- with $p.video }}{{ $links = $links | append (printf "Video" .) }}{{ end -}} {{- with $p.doi }}{{ $links = $links | append (printf "DOI" .) }}{{ end -}}
[{{ $prefix }}] {{- with $page -}} {{ $p.title }} {{- else -}} {{ $p.title }} {{- end -}} {{- with $p.note }}{{ . }}{{ end }}
{{- range $i, $a := $p.authors -}} {{- if $i }}, {{ end -}} {{- if eq $a "T. Dehaeze" -}}{{ $a }}{{ else }}{{ $a }}{{ end -}} {{- end -}}. {{- $vol := $p.volume -}} {{- $num := $p.number -}} {{- $pages := $p.pages -}} {{- $year := $p.year -}} {{- $hasDetail := or $vol $num $pages -}} {{- with $p.venue }} {{ . }}{{ end -}} {{- if and $p.venue $hasDetail }},{{ end -}} {{- if and $vol $num }} {{ $vol }}({{ $num }}){{ else if $vol }} {{ $vol }}{{ end -}} {{- if $pages }}{{ if or $vol $num }}:{{ else if $p.venue }} {{ end }}{{ $pages }}{{ end -}} {{- if $year }}{{ if $hasDetail }},{{ end }} {{ $year }}{{ end -}}.
{{ partial "research/link-row.html" $links }}