Skip to content

Commit

Permalink
feat: add target to bibxml-ids (#5148)
Browse files Browse the repository at this point in the history
  • Loading branch information
rjsparks committed Feb 15, 2023
1 parent 182158b commit 9ea8523
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ietf/doc/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1207,5 +1207,5 @@ def bibxml_for_draft(doc, rev=None):
if name.startswith('rfc'): # bibxml3 does not speak of RFCs
raise Http404()

return render_to_string('doc/bibxml.xml', {'name':name, 'doc':doc, 'doc_bibtype':'I-D'})
return render_to_string('doc/bibxml.xml', {'name':name, 'doc':doc, 'doc_bibtype':'I-D', 'settings':settings})

2 changes: 1 addition & 1 deletion ietf/templates/doc/bibxml.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<reference anchor="{{doc_bibtype}}.{{name|slice:"6:"}}">
<reference anchor="{{doc_bibtype}}.{{name|slice:"6:"}}" target="{{ settings.IDTRACKER_BASE_URL }}{% url "ietf.doc.views_doc.document_html" name=doc.name rev=doc.rev %}">
<front>
<title>{{doc.title}}</title>{% for author in doc.documentauthor_set.all %}
<author initials="{{ author.person.initials }}" surname="{{ author.person.last_name }}" fullname="{{ author.person.name }}">
Expand Down

0 comments on commit 9ea8523

Please sign in to comment.