I worked out the template for reports. Three notes:
I could send these over as PRs but I don't want to clog the PR flow if there is no intent of using them, or they will be rejected. further instruction is needed in this regard.
In contrast to my previous template for Thesis works #30 I created a template for if archive metadata is present in the CSL. this is referenced just like the authorPart and DOIpart templates. and is included below
Issue #26 points out that corporate authors are not handled by the authorPart. Many Reports have Institutional authors. So many reports are going to show "no author" until the authorPart is revised.
{{/* BEGIN ArchivalID */}}
{{- define "ArchivalID" }}
{{ if isset . "archive" -}}  Available from <meta itemprop="Organization" itemtype="http://schema.org/Organization"
itemscope><span itemprop="name">{{- echoParam . "archive" -}}</span>.  ({{- if isset . "archive_location" -}}{{- echoParam . "archive_location" -}}{{- end }}</span>)</span>.
{{- end -}}
{{- end }}
{{/* END ArchivalID */}}
{{/* -------------------- BEGIN REPORT TYPE -------------------- */}}
{{- else if eq .type "report" -}}
<span itemscope
itemtype="https://schema.org/Report"
data-type="report">
{{- template "authorPart" . }}
 
{{- template "issuedPart" . }}.
 
{{- if .title -}}
<span itemprop="name">
<i>{{- .title | markdownify -}}</i>
</span>
{{- end -}}
{{- if isset . "number" -}}<span itemprop="reportNumber"> ({{- echoParam . "number" -}})</span>
{{- end -}}.
{{ if isset . "publisher-place" -}}
<meta itemprop="contentLocation"
value="{{- echoParam . "publisher-place" -}}">
{{- end -}}
{{- with .publisher -}}
<span itemprop="Organization"
itemtype="http://schema.org/Organization"
itemscope>
<span itemprop="name">
{{- . -}}{{- end -}}
</span> {{ if isset . "publisher-place" -}}:  <span itemprop="location">{{- echoParam . "publisher-place" -}}</span></span>.
{{- end }}
{{- template "ArchivalID" . -}}
{{- template "DOIPart" . -}}
</span>
{{/* -------------------- END REPORT TYPE -------------------- */}}
Greetings,
I worked out the template for reports. Three notes:
authorPart
andDOIpart templates
. and is included belowauthorPart
. Many Reports have Institutional authors. So many reports are going to show "no author" until theauthorPart
is revised.