Bug 33190: Add search history button to advance search form if EnableSearchHistory keep
Add 'search history' button to advanced search button groups if 'EnableSearchHistory' sys pref is set to 'keep' via added code block to advsearch.tt To test: 1) Login to Koha dev box instance 2) Select 'Advanced search module' '/cgi-bin/koha/catalogue/search.pl' 'Search history' icon will not be visible in tools groups in form. 3) Select 'koha administration' module '/cgi-bin/koha/admin/admin-home.pl' 4) Enter 'EnableSearchHistory' string into top search field 5) Change ' EnableSearchHistory' value to 'keep' 6) Press 'Save all Searching preferences' to save pref changes 7) Navigate back to Koha landing home '/cgi-bin/koha/mainpage.pl' 8) Select 'Advanced search module' '/cgi-bin/koha/catalogue/search.pl' 9) 'Search history' icon will now be visible in tools groups in form 10) SIGN OFF Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
8c663b9df3
commit
c0511a5af3
|
|
@ -93,6 +93,12 @@
|
|||
<div class="btn-group">
|
||||
<a href="/cgi-bin/koha/catalogue/itemsearch.pl" class="btn btn-link"><i class="fa fa-search"></i> Go to item search</a>
|
||||
</div>
|
||||
|
||||
[% IF Koha.Preference('EnableSearchHistory') %]
|
||||
<div class="btn-group">
|
||||
<a href="/cgi-bin/koha/catalogue/search-history.pl" class="btn btn-link"><i class="fa fa-history"></i> Search history</a>
|
||||
</div>
|
||||
[% END %]
|
||||
</div> <!-- /#toolbar -->
|
||||
<!-- /SEARCH BUTTONS -->
|
||||
[% END %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue