[Bug 39216] New: Add an item type dropdown filter to the OPAC main search
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39216 Bug ID: 39216 Summary: Add an item type dropdown filter to the OPAC main search Change sponsored?: --- Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: OPAC Assignee: oleonard@myacpl.org Reporter: Laura.escamilla@bywatersolutions.com QA Contact: testopia@bugs.koha-community.org Created attachment 178820 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=178820&action=edit Dropdown example image Some libraries would like to have the option of filtering their searches by item type during their main search. I have attached an image as an example. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39216 Sarah Cornell <sbcornell@cityofportsmouth.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sbcornell@cityofportsmouth. | |com --- Comment #1 from Sarah Cornell <sbcornell@cityofportsmouth.com> --- We are using the dropdown in the screenshot. It's convenient for patrons to be able to add these limits ahead of time even though they can also use the facets after they see the results. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39216 --- Comment #2 from Owen Leonard <oleonard@myacpl.org> --- (In reply to Sarah Cornell from comment #1)
We are using the dropdown in the screenshot.
Is it a customization you've added via plugin or JS? Or a customization your support company did for you? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39216 --- Comment #3 from Sarah Cornell <sbcornell@cityofportsmouth.com> --- It's this JS. Not sure which developer created it, but it was ByWater not library staff. //BEGIN Add Search Limits dropdown to Main Search Box opac-main.pl $(document).ready(function() { // Append the dropdown to the search form if the element exists if ($("#opac-main-search .row.gx-2").length) { $("#opac-main-search .row.gx-2").append(` <div class="col-sm-auto order-2 order-sm-2"> <select id='item_types' class='form-select'> <option value=''>All Items</option> <option id='book_search' value='http://portsmouth.bywatersolutions.com/cgi-bin/koha/opac-search.pl?&limit=mc-itype%3AD1&limit=mc-itype%3AA&limit=mc-itype%3AD3&limit=mc-itype%3AB&limit=mc-itype%3AD7&limit=mc-itype%3AAN'>Books</option> <option id='audiobook_limit' value='http://portsmouth.bywatersolutions.com/cgi-bin/koha/opac-search.pl?&limit=mc-itype%3AQ&limit=mc-itype%3AQ3'>Books on CD</option> <option id='dvdmovie_limit' value='http://portsmouth.bywatersolutions.com/cgi-bin/koha/opac-search.pl?&limit=mc-itype%3AV&limit=mc-itype%3AV2&limit=mc-itype%3AVN'>DVDs</option> <option id='music_limit' value='http://portsmouth.bywatersolutions.com/cgi-bin/koha/opac-search.pl?&limit=mc-itype%3AX'>Music CDs</option> <option id='largetype_limit' value='http://portsmouth.bywatersolutions.com/cgi-bin/koha/opac-search.pl?&limit=mc-loc%3APBLP'>Large Print Books</option> <option id='digital_limit' value='http://portsmouth.bywatersolutions.com/cgi-bin/koha/opac-search.pl?&limit=mc-itype%3AY&limit=mc-itype%3AZ&limit=mc-itype%3AT&limit=mc-itype%3AJ'>Digital Content</option> </select> </div> `); console.log("Dropdown appended"); } else { console.log("Could not find target element (#opac-main-search .row.gx-2)"); } -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org