Skip to content

Commit e4eb78d

Browse files
committed
[IEXP-595] adjusted authority search box
1 parent bbd15b8 commit e4eb78d

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

isiscb/tenants/templates/tenants/search/search_results_authorities.html

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
{% if query %}
66
<div class="panel-group hidden-print" id="type_panel">
7-
<div class='panel panel-default'>
7+
<div class='panel panel-info'>
88
<div class='panel-heading'>
99
<h4 class='panel-title'>
1010
<a id="authoritiesHeading" data-toggle="collapse" data-parent="#accordion" href="#" class="accordion-toggle">
11-
All Authorities
11+
Authorities containing search term
1212
</a>
1313
</h4>
1414
</div>
@@ -17,20 +17,25 @@ <h4 class='panel-title'>
1717
<div class="row" style="margin-bottom:10px;">
1818
<div class="col-md-12 panel-cell" style="padding-top:4px">
1919
<div class="dropdown">
20+
<div class="btn-group btn-group-sm" role="group">
2021
{% if sort_order_dir_authority == 'descend' %}
2122
<a href="{{ request.get_full_path|set_sort_direction:'sort_order_dir_authority:ascend'|set_index_model:'models:isisdata.authority' }}" title="Current sort order: descending" class="btn btn-default"><span class="glyphicon glyphicon-sort-by-attributes-alt"></span></a>
2223
{% else %}
2324
<a href="{{ request.get_full_path|set_sort_direction:'sort_order_dir_authority:descend'|set_index_model:'models:isisdata.authority' }}" title="Current sort order: ascending" class="btn btn-default"><span class="glyphicon glyphicon-sort-by-attributes"></span></a>
2425
{% endif %}
26+
</div>
2527

26-
<button class="btn btn-default dropdown-toggle" type="button" id="sort_dropdown" data-toggle="dropdown" aria-haspopup="true">
28+
<div class="btn-group btn-group-sm" role="group">
29+
<button class="btn btn-default btn-sm dropdown-toggle" type="button" id="sort_dropdown" data-toggle="dropdown" aria-haspopup="true">
2730
Sort: {{ sort_order_authority|get_current_sort_order_authority }}
2831
<span class="caret"></span>
2932
</button>
3033
<ul class="dropdown-menu" aria-labelledby="dropdownMenu1">
3134
<li><a href="{{ request.get_full_path|set_page_to_one|set_sort_order:'sort_order_authority:name'|set_index_model:'models:isisdata.authority' }}">Name</a></li>
3235
<li><a href="{{ request.get_full_path|set_page_to_one|set_sort_order:'sort_order_authority:citation_count'|set_index_model:'models:isisdata.authority' }}">Count</a></li>
3336
</ul>
37+
</div>
38+
3439
</div>
3540
</div>
3641
</div>
@@ -73,12 +78,11 @@ <h5 style="margin:4px 0"><small>Select the type of authority you would like see.
7378
<div class="authority-search-result">
7479
<p style="padding-left: 8px; margin-bottom: 15px;">
7580
<span class="label label-default">{{ result.authority_type }}</span>
76-
{% url 'tenants:authority' tenant_id result.id|get_pk as authority_url %}
77-
<a href="{{ authority_url }}?fromsearch=true&query_string={{ query }}&last_query={{ request.get_full_path|encode_query }}">{{ result.name }}</a>
81+
{{ result.name }}
7882
{% with result.dates as dates %}
7983
{% if dates %}({{ dates|join_attributes_flat:', ' }}){% endif %}
8084
{% endwith %}
81-
({{ result.citation_count }})
85+
({{ result.citation_count }}) <a href="{% url 'tenants:authority' tenant_id result.id|get_pk%}?fromsearch=true&query_string={{ query }}&last_query={{ request.get_full_path|encode_query }}"><i class="fas fa-external-link-alt"></i></a>
8286

8387
<span class="visible-print-inline">({{ authority_url }})</span>
8488

0 commit comments

Comments
 (0)