using the htmlization code previously developed for tools.ietf.org. As the generation of the htmlized page is a bit too costly to do on the fly for often-referenced drafts and RFCs, the part of each page which contains the htmlized document is cached on file with a cache time of 2 weeks. Changed all links which pointed to the htmlized version on tools to instead point at the datatracker htmlized document. Tweaked some URLs which didn't permit retrieval of intermediate-rev-charters. Narrowed the pattern for document names to disallow dots in names, and instead explicitly enumerated the few historical draftw with dots in the name. Added a file-system cache for the htmlized documents, and specified a max_entries value for caches, overriding the default 300 entries. Tweaked the code for new author email entries to provide a time if missing in an updated entry. Changed links in various email templates which pointed at tools.ietf.org pages to instead point at datatracker pages, where appropriate. Changed the search result rows to provide links to both the current meta- information document pages (with a (i) info symbol) and to the new htmlized document pages. - Legacy-Id: 13040
37 lines
2.6 KiB
BibTeX
37 lines
2.6 KiB
BibTeX
{% spaceless %}
|
|
|
|
{% load ietf_filters %}
|
|
|
|
{% if doc.get_state_slug == "rfc" %}
|
|
{% if doc.stream|slugify == "legacy" %}
|
|
% Datatracker information for RFCs on the Legacy Stream is unfortunately often
|
|
% incorrect. Please correct the bibtex below based on the information in the
|
|
% actual RFC at https://rfc-editor.org/rfc/rfc{{ doc.rfc_number }}.txt
|
|
{% endif %}
|
|
@misc{% templatetag openbrace %}rfc{{ doc.rfc_number }},
|
|
series = {Request for Comments},
|
|
number = {{ doc.rfc_number }},
|
|
howpublished = {% templatetag openbrace %}RFC {{ doc.rfc_number }}{% if doc.doc.intended_std_level %} ({{ doc.intended_std_level }}){% endif %}{% templatetag closebrace %},
|
|
publisher = {RFC Editor},
|
|
doi = {% templatetag openbrace %}10.17487/rfc{{ doc.rfc_number }}{% templatetag closebrace %},
|
|
url = {https://rfc-editor.org/rfc/rfc{{ doc.rfc_number }}.txt},{% else %}
|
|
{% if published %}%% You should probably cite rfc{{ latest_revision.doc.rfc_number }} instead of this I-D.{% else %}{% if replaced_by %}%% You should probably cite {{replaced_by|join:" or "}} instead of this I-D.{% else %}
|
|
{% if doc.rev != latest_revision.rev %}%% You should probably cite {{latest_revision.doc.name}}-{{latest_revision.rev}} instead of this revision.{%endif%}{% endif %}{% endif %}
|
|
@techreport{% templatetag openbrace %}{{doc.name|slice:"6:"}}-{{doc.rev}},
|
|
number = {% templatetag openbrace %}{{doc.name}}-{{doc.rev}}{% templatetag closebrace %},
|
|
type = {% templatetag openbrace %}Internet-Draft{% templatetag closebrace %},
|
|
institution = {% templatetag openbrace %}Internet Engineering Task Force{% templatetag closebrace %},
|
|
publisher = {% templatetag openbrace %}Internet Engineering Task Force{% templatetag closebrace %},
|
|
note = {% templatetag openbrace %}Work in Progress{% templatetag closebrace %},
|
|
url = {% templatetag openbrace %}https://datatracker.ietf.org/doc/html/{{doc.name}}-{{doc.rev}}{% templatetag closebrace %},{% endif %}
|
|
author = {% templatetag openbrace %}{% for entry in doc.authors.all %}{% with entry.person as author %}{{author.name}}{% endwith %}{% if not forloop.last %} and {% endif %}{% endfor %}{% templatetag closebrace %},
|
|
title = {% templatetag openbrace %}{% templatetag openbrace %}{{doc.title}}{% templatetag closebrace %}{% templatetag closebrace %},
|
|
pagetotal = {{ doc.pages }},
|
|
year = {{ doc.pub_date.year }},
|
|
month = {{ doc.pub_date|date:"b" }},{% if not doc.rfc_number or doc.pub_date.day == 1 and doc.pub_date.month == 4 %}
|
|
day = {{ doc.pub_date.day }},{% endif %}
|
|
abstract = {% templatetag openbrace %}{{ doc.abstract|clean_whitespace }}{% templatetag closebrace %},
|
|
{% templatetag closebrace %}
|
|
|
|
{% endspaceless %}
|