BUGFIX: Reverse Lookups working

This commit is contained in:
Simon Martens
2025-01-03 23:01:34 +01:00
parent 9ca2ebb75f
commit f2fd9f9c0a
3 changed files with 26 additions and 50 deletions

View File

@@ -45,10 +45,10 @@
{{- if ne (len $a.Works) 0 -}}
<div>
{{ range $_, $w := $a.Works }}
{{- if ne (len $w.Citation.InnerXML ) 0 -}}
{{- if ne (len $w.Item.Citation.InnerXML ) 0 -}}
<script type="application/xml" xslt-template="transform-citation" xslt-onload>
<xml>
{{- Safe $w.Citation.InnerXML -}}
{{- Safe $w.Item.Citation.InnerXML -}}
</xml>
</script>
{{- end -}}
@@ -59,7 +59,7 @@
{{- if ne (len $a.Pieces) 0 -}}
<div>
{{ range $_, $p := $a.Pieces }}
{{- range $_, $i := $p.IssueRefs -}}
{{- range $_, $i := $p.Item.IssueRefs -}}
<div>
<a href="/{{ $i.When }}/{{ $i.Nr }}">{{ $i.Nr }}/{{ $i.When }}</a>
</div>