[Koha-bugs] [Bug 25872] Advanced search on OPAC with limiter but no search term fails when re-sorted

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Aug 6 22:54:08 CEST 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25872

--- Comment #1 from Barbara Johnson <barbara.johnson at bedfordtx.gov> ---
We're using some dropdown lists of search options based on shelving location
codes that patrons can use to easily get to new items.  

<h1>Just Arrived</h1>
<p><form name="searchform" method="get" action="/cgi-bin/koha/opac-search.pl">
<input name="idx" value="kw" type="hidden">
<input name="sort_by" value="acqdate_dsc" type="hidden">
<input name="do" value="OK" type="hidden">
<select name="limit" onchange="this.form.submit()">
<option>-- Please choose --</option>
<option value="mc-loc:FN">New Fiction</option>
<option value="mc-loc:FMN">New Mystery</option>
<option value="mc-loc:FYAN">New YA Fiction</option>
</select>
</form>
</p>

We also use some jQuery for an item type limiter that can be used when
searching.

//BEGIN Add Search Limits to Main Search Box opac-main.pl
    $(".mastheadsearch #masthead_search").after(" <select name='limit'
id='item_type_dropdown'><option value=''>All Items</option><option
id='book_limit' value='mc-itype,phr:BOOK'>Books</option><option
id='dvdmovie_limit' value='mc-itype,phr:DVDMOVIE'>DVDs (Movies &
TV)</option><option id='dvdnf_limit' value='mc-itype,phr:DVDNF'>DVDs
(Non-Fiction)</option></select>");

Because the code doesn't have search terms in it the list of results can't be
sorted.  We could change everything to use direct urls but that takes a lot of
time.  Being able to use locations and item types in the code is easier and
cleaner.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list