source: telemeta/templates/telemeta/search_results.html @ c9f9871

cremcrem2devdev2diademsdj1.6feature/breadcrumbsfeature/ts-0.5feature/ts-0.5.4feature/writecachegenericinstru_searchlamlam2mapsv3mergenlivemultirelease/1.4.4sabiodsecurityserversocialstoragetelecastertest
Last change on this file since c9f9871 was c9f9871, checked in by yomguy <yomguy@…>, 3 years ago

try instrument filter

  • Property mode set to 100644
File size: 4.7 KB
Line 
1{% extends "telemeta/base.html" %}
2{% load telemeta_utils %}
3{% load i18n %}
4
5{% block head_title %}{% trans "Search Results" %} - {{ block.super }}{% endblock %}
6
7{% block title %}
8 <img src="{% url telemeta-images "search_red.png" %}" alt="search-results" style="vertical-align:middle" /> {% trans "Search Results" %}
9{% endblock %}
10
11{% block title_buttons %}
12    {% ifequal type 'items' %}
13     <a href="{% url telemeta-search-items %}?{{criteria|with_no_sound|build_query_string}}" class="component_icon button icon_filter">{% trans "All" %}</a>
14     <a href="{% url telemeta-search-items %}?{{criteria|with_sound|build_query_string}}" class="component_icon button icon_filter">{% trans "Sounds" %}</a>
15    {% endifequal %}
16    {% ifequal type 'collections' %}
17     <a href="{% url telemeta-search-collections %}?{{criteria|with_no_sound|build_query_string}}" class="component_icon button icon_filter">{% trans "All" %}</a>
18     <a href="{% url telemeta-search-collections %}?{{criteria|with_sound|build_query_string}}" class="component_icon button icon_filter">{% trans "Sounds" %}</a>
19    {% endifequal %}
20{% endblock %}
21
22{% block content %}
23{% if criteria %}
24<ul>
25  {% if criteria.pattern %}
26    <li><b>{% trans "Search pattern" %}:</b> {{criteria.pattern}}</li>
27  {% endif %}
28  {% if criteria.location %}
29    <li><b>{% field_label "Location" %}:</b> {{criteria.location}}</li>
30  {% endif %}
31  {% if criteria.instrument %}
32  <li><b>{% field_label "Instrument" %}:</b> {{criteria.instrument}}</li>
33  {% endif %}
34  {% if criteria.ethnic_group %}
35    <li><b>{% field_label "EthnicGroup" %}:</b> {{criteria.ethnic_group}}</li>
36  {% endif %}
37  {% if criteria.creator %}
38    <li><b>{% field_label "MediaCollection" "creator" %}:</b> {{criteria.creator}}</li>
39  {% endif %}
40  {% if criteria.collector %}
41    <li><b>{% field_label "MediaCollection" "collector" %}:</b> {{criteria.collector}}</li>
42  {% endif %}
43  {% if criteria.title %}
44    <li><b>{% trans "Title" %}:</b> {{criteria.title}}</li>
45  {% endif %}
46  {% if criteria.rec_year_from %}
47    <li><b>{% trans "Year of recording" %}:</b> {{criteria.rec_year_from}}
48     {% ifnotequal criteria.rec_year_to criteria.rec_year_from %}
49     {% trans "to" %} {{criteria.rec_year_to}}
50     {% endifnotequal %}
51    </li>
52  {% endif %}
53  {% if criteria.pub_year_from %}
54    <li><b>{% trans "Year of publication" %}:</b> {{criteria.pub_year_from}}
55     {% ifnotequal criteria.pub_year_to criteria.pub_year_from %}
56     {% trans "to" %} {{criteria.pub_year_to}}
57     {% endifnotequal %}
58    </li>
59  {% endif %}
60    {% if criteria.sound %}
61    <li><b>{% trans "Sound" %}:</b> {{criteria.sound}}</li>
62  {% endif %}
63</ul>
64{% endif %}
65
66{% ifequal type 'items' %}
67<p><b>Items ({{items_num}}) | <a href="{% url telemeta-search-collections %}?{{criteria|build_query_string}}">Collections ({{collections_num}})</a> | <a href="{% url telemeta-search-corpus %}?{{criteria|build_query_string}}">Corpus ({{corpus_num}})</a> | <a href="{% url telemeta-search-fonds %}?{{criteria|build_query_string}}">Fonds ({{fonds_num}})</a></b></p>
68  {% with object_list as items %}
69   <div class="fullpage">
70      {% include "telemeta/inc/mediaitem_list.html" %}
71   </div>
72  {% endwith %}   
73{% endifequal %}
74 
75{% ifequal type 'collections' %}
76<p><b><a href="{% url telemeta-search-items %}?{{criteria|build_query_string}}">Items ({{items_num}})</a> | Collections ({{collections_num}}) | <a href="{% url telemeta-search-corpus %}?{{criteria|build_query_string}}">Corpus ({{corpus_num}})</a> | <a href="{% url telemeta-search-fonds %}?{{criteria|build_query_string}}">Fonds ({{fonds_num}})</a>
77  </b></p>
78  {% with object_list as collections %}
79   <div class="fullpage">
80      {% include "telemeta/inc/collection_list.html" %}
81   </div>
82  {% endwith %}
83{% endifequal %}
84
85{% if type == 'corpus' %}
86<p><b><a href="{% url telemeta-search-items %}?{{criteria|build_query_string}}">Items ({{items_num}})</a> | <a href="{% url telemeta-search-collections %}?{{criteria|build_query_string}}">Collections ({{collections_num}})</a> | Corpus ({{corpus_num}}) | <a href="{% url telemeta-search-fonds %}?{{criteria|build_query_string}}">Fonds ({{fonds_num}})</a>
87</b></p>
88{% endif %}
89
90{% if type == 'fonds' %}
91<p><b><a href="{% url telemeta-search-items %}?{{criteria|build_query_string}}">Items ({{items_num}})</a> | <a href="{% url telemeta-search-collections %}?{{criteria|build_query_string}}">Collections ({{collections_num}})</a> | <a href="{% url telemeta-search-corpus %}?{{criteria|build_query_string}}">Corpus ({{corpus_num}})</a> | Fonds ({{fonds_num}})
92</b></p>
93{% endif %}
94
95{% if type == 'corpus' or type == 'fonds' %}
96{% with object_list as resources and type as type %}
97<div class="fullpage">
98{% include "telemeta/inc/resource_list.html" %}
99</div>
100{% endwith %}
101{% endif %}
102
103
104{% endblock %}
Note: See TracBrowser for help on using the repository browser.