From 9551911a2639b393337b0abd0bfbe53442397f15 Mon Sep 17 00:00:00 2001 From: Kesara Rathnayake Date: Thu, 25 Jul 2024 09:27:09 +1200 Subject: [PATCH] feat: Provide xml2rfc compatible BibXML for BibXML download button (#447) Fixes #445 --- main/templates/citation/export.html | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/main/templates/citation/export.html b/main/templates/citation/export.html index c893ecfd..5bf09350 100644 --- a/main/templates/citation/export.html +++ b/main/templates/citation/export.html @@ -22,6 +22,23 @@ {% endfor %} {% for format in available_serialization_formats %} + {% if format == "bibxml" and xml2rfc_urls %} + {% for _, url, _ in xml2rfc_urls|slice:":1" %} + + + {{ format }} + + + + + + + + {% endfor %} + {% else %} + {% endif %} {% endfor %} {% else %}