Bug 6950: Hide the resort option when searching for a tag
If you click a link from the Tag Cloud, the results page offers the usual select menu to resort your results. However, doing so resubmits the search as a standard keyword search. Test plan: 1/ Click on a tag 2/ Confirm that the resort dropdown list does not appear. Dropdown list disappears with tags as expected. Signed-off-by: Marc Véron <veron@veron.ch> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
This commit is contained in:
parent
05d57a1880
commit
fc100688a4
|
|
@ -131,10 +131,12 @@
|
|||
<a href="#" class="highlight_toggle" id="highlight_toggle_on">Highlight</a>
|
||||
</div>
|
||||
[% END %]
|
||||
<div class="sort_by pull-right">
|
||||
<select id="sort_by" class="resort" name="sort_by"> [% INCLUDE 'resort_form.inc' %] </select>
|
||||
<input type="submit" class="btn btn-small clearfix" id="sortsubmit" value="Go" />
|
||||
</div>
|
||||
[% UNLESS tag %]
|
||||
<div class="sort_by pull-right">
|
||||
<select id="sort_by" class="resort" name="sort_by"> [% INCLUDE 'resort_form.inc' %] </select>
|
||||
<input type="submit" class="btn btn-small clearfix" id="sortsubmit" value="Go" />
|
||||
</div>
|
||||
[% END %]
|
||||
</div> <!-- / #toolbar -->
|
||||
|
||||
<div id="selections-toolbar" class="toolbar noprint">
|
||||
|
|
|
|||
|
|
@ -345,8 +345,10 @@ if ( $template_type && $template_type eq 'advsearch' ) {
|
|||
# * multivalued CGI paramaters are returned as a packaged string separated by "\0" (null)
|
||||
my $params = $cgi->Vars;
|
||||
my $tag;
|
||||
$tag = $params->{tag} if $params->{tag};
|
||||
|
||||
if ( $params->{tag} ) {
|
||||
$tag = $params->{tag};
|
||||
$template->param( tag => $tag );
|
||||
}
|
||||
|
||||
# String with params with the search criteria for the paging in opac-detail
|
||||
# param value is URI encoded and params separator is HTML encode (&)
|
||||
|
|
|
|||
Loading…
Reference in New Issue