* Brought search results against WGs and document titles into consistency with results from searching for individual documents * Added the IPR count to the link on the documents main page (when not zero) * Built on Henrik's reimplementation of all_related_*, making the *_related_* functions return DocAlias lists consistently, and added corresponding _relations_ functions to get lists of actual RelatedDocument objects. * Added getting the DocAlias with the same name to Document * Added getting related IPR disclosures (as described in the first bullet) to Document * Simplified ipr/related.py * Removed the use of DraftLikeDocAlias and IETFWG from ipr/search.py. Retooled the various search functions and templates to use DocAlias and IprDocAlias directly. * Removed dead code from ipr/search.py * Removed the special handling of WG 2000 from ipr/search.py Fixes bug 1071 - Legacy-Id: 6042
48 lines
1.9 KiB
HTML
48 lines
1.9 KiB
HTML
{# Copyright The IETF Trust 2007, All Rights Reserved #}
|
|
{% extends "ipr/search_result.html" %}
|
|
{% load ietf_filters %}
|
|
{% block search_result %}
|
|
<table cellpadding="1" cellspacing="0" border="0">
|
|
|
|
<tr><td colspan="3">Total number of IPR disclosures found: {{ iprs|length }} </td></tr>
|
|
{% for ipr in iprs %}
|
|
<tr valign="top" bgcolor="#dadada">
|
|
<td width="100">{{ ipr.submitted_date }}</td>
|
|
<td width="90"><li>ID # {{ ipr.ipr_id }}</li></td>
|
|
<td><a href="{% url ietf.ipr.views.show ipr_id=ipr.ipr_id %}">"{{ ipr.title|escape }}"</a></td>
|
|
</tr>
|
|
{% endfor %}
|
|
|
|
<tr><td colspan="3"><hr>Total number of documents searched: {{ docs|length}}</td></tr>
|
|
{% for doc in docs %}
|
|
<tbody bgcolor="#{% cycle dadada,eaeaea as bgcolor %}">
|
|
<tr >
|
|
<td colspan="3">
|
|
Search result on {{ doc.name|rfcspace|lstrip:"0"|rfcnospace }}, "{{ doc.document.title|escape }}"{% ifnotequal doc first %}{% if doc.related %}, that was {{ doc.relation|lower }} {{ doc.related.source|rfcspace|lstrip:"0"|rfcnospace }}, "{{ doc.related.source.title }}"{% endif %}
|
|
{% endifnotequal %}
|
|
</td>
|
|
</tr>
|
|
{% if doc.iprs %}
|
|
{% for ipr in doc.iprs %}
|
|
<tr valign="top">
|
|
<td width="100">{{ ipr.submitted_date }}</td>
|
|
<td width="90"><li>ID # {{ ipr.ipr_id }}</li></td>
|
|
<td><a href="{% url ietf.ipr.views.show ipr_id=ipr.ipr_id %}">"{{ ipr.title|escape }}"</a></td>
|
|
</tr>
|
|
{% endfor %}
|
|
{% else %}
|
|
<tr>
|
|
<td></td>
|
|
<td colspan="2">
|
|
No IPR disclosures have been submitted directly on <i>{{ doc.name|rfcspace|lstrip:"0" }}</i>{% if iprs %},
|
|
but there are disclosures on {% ifequal docs|length 2 %}a related document{% else %}related documents{% endifequal %}, listed on this page{% endif %}.
|
|
</b>
|
|
</td>
|
|
</tr>
|
|
{% endif %}
|
|
</tbody>
|
|
{% endfor %}
|
|
|
|
</table>
|
|
{% endblock %}
|