Bug 14902

Summary: Add qualifier menu to staff side "Search the Catalog"
Product: Koha Reporter: HB-NEKLS <gwilliams>
Component: SearchingAssignee: Nick Clemens (kidclamp) <nick>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: amy, barton, jonathan.druart, jschmidt, kyle, nick, nicole, sally.healey, veron
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: Sponsored Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
The main OPAC search has a qualifier menu available (the Search: Library Catalog/Title/Author/Subject/ISBN/Series/Call Number menu). Now the staff side had this option available, too. Show/Not show with syspref 'IntranetCatalogSearchPulldown'.
Version(s) released in:
Circulation function:
Bug Depends on:    
Bug Blocks: 16799, 19046    
Attachments: Bug 14902 - Add qualifier menu to staff side "Search the Catalog"
Shows combo bar without menu -- normal position.
Shows search bar with menu, pushed below logo.
Bug 14902 - Add qualifier menu to staff side "Search the Catalog"
[SIGNED-OFF] Bug 14902 - Add qualifier menu to staff side "Search the Catalog"
Bug 14902 (QA Followup)
Bug 14902 - Add qualifier menu to staff side "Search the Catalog"

Description HB-NEKLS 2015-09-25 16:27:48 UTC
The main OPAC search has a qualifier menu available (the Search: Library Catalog/Title/Author/Subject/ISBN/Series/Call Number menu). 

It would be nice if the staff side had this option available, too. 

(And yes, I know this is available through Advanced Search, but my librarians would like to see this available through the regular "Search the Catalog."
Comment 1 Kyle M Hall (khall) 2015-11-04 16:21:09 UTC
*** Bug 15132 has been marked as a duplicate of this bug. ***
Comment 2 Nick Clemens (kidclamp) 2016-06-03 17:07:06 UTC Comment hidden (obsolete)
Comment 3 Barton Chittenden 2016-06-21 15:21:03 UTC
Created attachment 52654 [details]
Shows combo bar without menu -- normal position.
Comment 4 Barton Chittenden 2016-06-21 15:21:57 UTC
Created attachment 52655 [details]
Shows search bar with menu, pushed below logo.
Comment 5 Barton Chittenden 2016-06-21 15:23:01 UTC
(In reply to Nick Clemens from comment #2)
> Created attachment 52021 [details] [review] [review]
> Bug 14902 - Add qualifier menu to staff side "Search the Catalog"
> 
> To test:
> 1 - Apply patch and update dabase
> 2 - Check that Search the Catalog links throughout the staff interface
> have not changed
> 3 - Set "IntranetCatalogSearchPulldown" to 'Show'
> 4 - Verify that 'Search the catalog' links through staff client now have
> a dropdwon to  select search index
> 
> I think viewing one file each that includes updated header should be
> sufficient, but please check as many as you can:
> 
> cgi-bin/koha/admin/aqbudgetperiods.pl
> cgi-bin/koha/admin/admin-home.pl
> cgi-bin/koha/cataloguing/addbooks.pl
> cgi-bin/koha/circ/returns.pl
> cgi-bin/koha/circ/circulation-home.pl
> cgi-bin/koha/admin/cities.pl
> cgi-bin/koha/admin/aqcontract.pl
> cgi-bin/koha/admin/currency.pl
> cgi-bin/koha/mainpage.pl
> cgi-bin/koha/tools/letter.pl
> cgi-bin/koha/members/members-home.pl
> cgi-bin/koha/admin/categories.pl
> cgi-bin/koha/admin/preferences.pl
> cgi-bin/koha/admin/printers.pl
> cgi-bin/koha/serials/serials-home.pl
> cgi-bin/koha/acqui/newordersuggestion.pl
> cgi-bin/koha/admin/z3950servers.pl
> 
> Sponsored by:
>   Northeast Kansas Library System (http://nekls.org/)

I've verified that the dropdown is present on the catalog search on the pages above.

The one thing that I noticed was that below a certain screen width, the width of the searchbox + the dropdown forces the catalog search below the Koha logo.

Because this happens when you click 'Search the catalog', this resizing is a bit jarring.

See the attached 'checkout_bar.png' and 'search_bar.png'
Comment 6 Marc VĂ©ron 2016-06-21 15:56:00 UTC
(In reply to Barton Chittenden from comment #5)
(...)
> 
> The one thing that I noticed was that below a certain screen width, the
> width of the searchbox + the dropdown forces the catalog search below the
> Koha logo.
> 
> Because this happens when you click 'Search the catalog', this resizing is a
> bit jarring.
> 
> See the attached 'checkout_bar.png' and 'search_bar.png'

Hi Barton,

That happens with and without patch, maybe it could be fixed with CSS that takes in account the screen width. Can you file a new bug for that?
Comment 7 Nicole C. Engard 2016-06-23 16:44:52 UTC Comment hidden (obsolete)
Comment 8 Barton Chittenden 2016-06-23 19:51:31 UTC Comment hidden (obsolete)
Comment 9 Jonathan Druart 2016-06-24 16:21:43 UTC
Nick,
Why do you add [% USE Koha %] in some templates?
The Koha TT plugin is loaded in doc-head-open.inc and should then be everywhere else.
Comment 10 Nick Clemens (kidclamp) 2016-06-24 20:36:46 UTC Comment hidden (obsolete)
Comment 11 Jonathan Druart 2016-06-25 12:56:07 UTC
Created attachment 52874 [details] [review]
Bug 14902 - Add qualifier menu to staff side "Search the Catalog"

To test:
1 - Apply patch and update dabase
2 - Check that Search the Catalog links throughout the staff interface
have not changed
3 - Set "IntranetCatalogSearchPulldown" to 'Show'
4 - Verify that 'Search the catalog' links through staff client now have
a dropdwon to  select search index

I think viewing one file each that includes updated header should be
sufficient, but please check as many as you can:

cgi-bin/koha/admin/aqbudgetperiods.pl
cgi-bin/koha/admin/admin-home.pl
cgi-bin/koha/cataloguing/addbooks.pl
cgi-bin/koha/circ/returns.pl
cgi-bin/koha/circ/circulation-home.pl
cgi-bin/koha/admin/cities.pl
cgi-bin/koha/admin/aqcontract.pl
cgi-bin/koha/admin/currency.pl
cgi-bin/koha/mainpage.pl
cgi-bin/koha/tools/letter.pl
cgi-bin/koha/members/members-home.pl
cgi-bin/koha/admin/categories.pl
cgi-bin/koha/admin/preferences.pl
cgi-bin/koha/admin/printers.pl
cgi-bin/koha/serials/serials-home.pl
cgi-bin/koha/acqui/newordersuggestion.pl
cgi-bin/koha/admin/z3950servers.pl

Sponsored by:
  Northeast Kansas Library System (http://nekls.org/)

Signed-off-by: Heather Braum <hbraum@nekls.org>

Signed-off-by: Barton Chittenden <barton@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Comment 12 Jonathan Druart 2016-06-25 12:57:03 UTC
(In reply to Nick Clemens from comment #10)
> Created attachment 52866 [details] [review] [review]
> Bug 14902 (QA Followup)
> 
> Remove unnecessary [% USE Koha %]
> 
> Any remaining were tested and needed

Indeed, that's weird.
So I prefer to keep the original patch, which has been widely tested. Sorry for the extra work.
Comment 13 Kyle M Hall (khall) 2016-07-08 14:05:11 UTC
Pushed to master for 16.11, thanks Nick!