* 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
53 lines
2.1 KiB
HTML
53 lines
2.1 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"><b>{% block search_header %}Search result on {{ q }}{% endblock %}</b></td></tr>
|
|
{% if not count %}
|
|
<tr>
|
|
<td></td>
|
|
<td colspan="2">
|
|
<b>No IPR disclosures related to a document with the word(s) <i>{{ q }}</i> in the title have been submitted.</b>
|
|
</td>
|
|
</tr>
|
|
{% else %}
|
|
<tr><td colspan="3">Total number of IPR disclosures found: {{ count }} </td></tr>
|
|
|
|
{% block iprlist %}
|
|
{% for alias in docs %}
|
|
<tbody bgcolor="#{% cycle dadada,eaeaea as bgcolor %}">
|
|
<tr >
|
|
<td colspan="3">
|
|
IPR that is related to <b><i>{{ alias.name|rfcspace|lstrip:"0"|rfcnospace }}, "{{ alias.document.title|escape }}"{% if alias.related %}, that was {{ alias.relation|lower }} {{ alias.related.source.name|rfcspace|lstrip:"0"|rfcnospace }}, "{{ alias.related.source.title }}"{% endif %}
|
|
</i><!--,</b> which has the string <b>"<i>{{ q }}</i>"</b> within the document title.-->
|
|
</td>
|
|
</tr>
|
|
{% if alias.iprs %}
|
|
{% for ipr in alias.iprs %}
|
|
<tr valign="top">
|
|
<td width="100">{{ ipr.submitted_date }}</td>
|
|
<td width="90"><li>ID # {{ ipr.ipr_id }}</li></td>
|
|
<td>
|
|
{% for item in ipr.updated_by.all %}
|
|
{% ifequal item.processed 1 %}
|
|
IPR disclosure ID# {{ item.ipr.ipr_id }} "<a href="{% url ietf.ipr.views.show item.ipr.ipr_id %}">{{ item.ipr.title|escape }}</a>" Updates
|
|
{% endifequal %}
|
|
{% endfor %}
|
|
<a href="{% url ietf.ipr.views.show ipr.ipr_id %}">"{{ ipr.title|escape }}"</a>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
{% else %}
|
|
<tr>
|
|
<td></td>
|
|
<td colspan="2"><b>No IPR disclosures related to <i>{{ alias.name|rfcspace|lstrip:"0" }}</i> have been submitted</b></td>
|
|
</tr>
|
|
{% endif %}
|
|
</tbody>
|
|
{% endfor %}
|
|
{% endblock %}
|
|
{% endif %}
|
|
</table>
|
|
{% endblock %}
|