fix original publication year

This commit is contained in:
Ben Goldsworthy 2023-10-05 18:26:53 +01:00
parent 2750ca91ef
commit b2dcf3dfd9

View file

@ -23,8 +23,10 @@
</td>
<td>
<p class="year">{{- index . "Year Published" -}}
{{- if ( and ( ne ( index . "Original Publication Year" ) "" ) ( ne ( index . "Original Publication Year" ) ( index . "Year Published" ) ) ( ne ( index . "Original Publication Year" ) nil ) ) -}}
&nbsp;<span class="year--original">(orig.&nbsp;{{ index . "Original Publication Year" }})</span>
{{- if ( index . "Original Publication Year" ) -}}
{{- if ( ne ( index . "Original Publication Year" ) ( index . "Year Published" ) ) -}}
&nbsp;<span class="year--original">(<abbr title="original publication year">orig.</abbr>&nbsp;{{ index . "Original Publication Year" }})</span>
{{- end -}}
{{- end -}}
</td>
<td>
@ -62,8 +64,10 @@
</td>
<td>
<p class="year">{{- index . "Year Published" -}}
{{- if ( and ( ne ( index . "Original Publication Year" ) "" ) ( ne ( index . "Original Publication Year" ) ( index . "Year Published" ) ) ) -}}
&nbsp;<span class="year--original">(orig.&nbsp;{{ index . "Original Publication Year" }})</span>
{{- if ( index . "Original Publication Year" ) -}}
{{- if ( ne ( index . "Original Publication Year" ) ( index . "Year Published" ) ) -}}
&nbsp;<span class="year--original">(<abbr title="original publication year">orig.</abbr>&nbsp;{{ index . "Original Publication Year" }})</span>
{{- end -}}
{{- end -}}
</td>
<td>
@ -106,8 +110,10 @@
</td>
<td>
<p class="year">{{- index . "Year Published" -}}
{{- if ( and ( ne ( index . "Original Publication Year" ) "" ) ( ne ( index . "Original Publication Year" ) ( index . "Year Published" ) ) ) -}}
&nbsp;<span class="year--original">(orig.&nbsp;{{ index . "Original Publication Year" }})</span>
{{- if ( index . "Original Publication Year" ) -}}
{{- if ( ne ( index . "Original Publication Year" ) ( index . "Year Published" ) ) -}}
&nbsp;<span class="year--original">(<abbr title="original publication year">orig.</abbr>&nbsp;{{ index . "Original Publication Year" }})</span>
{{- end -}}
{{- end -}}
</td>
<td>
@ -149,7 +155,9 @@
<td>
<p class="year">{{- index . "Year Published" -}}
{{- if ( index . "Original Publication Year" ) -}}
<span class="year--original">(orig.&nbsp;{{ index . "Orginal Publication Year" }})</span>
{{- if ( ne ( index . "Original Publication Year" ) ( index . "Year Published" ) ) -}}
&nbsp;<span class="year--original">(<abbr title="original publication year">orig.</abbr>&nbsp;{{ index . "Original Publication Year" }})</span>
{{- end -}}
{{- end -}}
</td>
<td>n/a</td>