diff --git a/ietf/doc/views_doc.py b/ietf/doc/views_doc.py index 8bca007f1..48ea4e7aa 100644 --- a/ietf/doc/views_doc.py +++ b/ietf/doc/views_doc.py @@ -1431,11 +1431,17 @@ def document_shepherd_writeup_template(request, type): def document_references(request, name): doc = get_object_or_404(Document,name=name) refs = doc.references() + if doc.type_id in ["bcp","std","fyi"]: + for rfc in doc.contains(): + refs |= rfc.references() return render(request, "doc/document_references.html",dict(doc=doc,refs=sorted(refs,key=lambda x:x.target.name),)) def document_referenced_by(request, name): doc = get_object_or_404(Document,name=name) refs = doc.referenced_by() + if doc.type_id in ["bcp","std","fyi"]: + for rfc in doc.contains(): + refs |= rfc.referenced_by() full = ( request.GET.get('full') != None ) numdocs = refs.count() if not full and numdocs>250: diff --git a/ietf/templates/doc/document_referenced_by.html b/ietf/templates/doc/document_referenced_by.html index 8d308fc7e..2c1729f99 100644 --- a/ietf/templates/doc/document_referenced_by.html +++ b/ietf/templates/doc/document_referenced_by.html @@ -1,13 +1,13 @@ {% extends "base.html" %} -{# Copyright The IETF Trust 2015, All Rights Reserved #} +{# Copyright The IETF Trust 2015-2023, All Rights Reserved #} {% load origin static ietf_filters %} {% block pagehead %} {% endblock %} -{% block title %}References to {{ name }}{% endblock %} +{% block title %}References to {{ name|prettystdname }}{% endblock %} {% block content %} {% origin %} -

References to {{ name }}

+

References to {{ name|prettystdname }}

These dependencies are extracted using heuristics looking for strings with particular prefixes. Notably, this means that references to I-Ds by title only are not reflected here. If it's really important, please inspect the documents' references sections directly.

diff --git a/ietf/templates/doc/document_references.html b/ietf/templates/doc/document_references.html index 18e00296c..8725b759c 100644 --- a/ietf/templates/doc/document_references.html +++ b/ietf/templates/doc/document_references.html @@ -1,13 +1,13 @@ {% extends "base.html" %} -{# Copyright The IETF Trust 2015, All Rights Reserved #} +{# Copyright The IETF Trust 2015-2023, All Rights Reserved #} {% load origin static ietf_filters %} {% block pagehead %} {% endblock %} -{% block title %}References from {{ doc.name }}{% endblock %} +{% block title %}References from {{ doc.name|prettystdname }}{% endblock %} {% block content %} {% origin %} -

References from {{ doc.name }}

+

References from {{ doc.name|prettystdname }}

These dependencies are extracted using heuristics looking for strings with particular prefixes. Notably, this means that references to I-Ds by title only are not reflected here. If it's really important, please inspect the documents' references sections directly.

diff --git a/ietf/templates/doc/document_subseries.html b/ietf/templates/doc/document_subseries.html index 93fb33273..55c934acd 100644 --- a/ietf/templates/doc/document_subseries.html +++ b/ietf/templates/doc/document_subseries.html @@ -6,8 +6,24 @@ {% block content %} {% origin %} {{ top|safe }} -

{{ doc.name|slice:":3"|upper }} {{ doc.name|slice:"3:"}} consists of:

+

{{ doc.name|slice:":3"|upper }} {{ doc.name|slice:"3:"}} {% if doc.contains %}consists of:{% else %}currently contains no RFCs{% endif %}

{% for rfc in doc.contains %}

RFC {{rfc.name|slice:"3:"}} : {{rfc.title}}

{% endfor %} +
+ + + + References + + + + + Referenced by + +
{% endblock %} \ No newline at end of file