Bugzilla – Attachment 51969 Details for
Bug 16324
Move item search into header
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16324: Move item search into header
Bug-16324-Move-item-search-into-header.patch (text/plain), 2.48 KB, created by
Claire Gravely
on 2016-06-03 07:49:05 UTC
(
hide
)
Description:
Bug 16324: Move item search into header
Filename:
MIME Type:
Creator:
Claire Gravely
Created:
2016-06-03 07:49:05 UTC
Size:
2.48 KB
patch
obsolete
>From cbd0852ccb14c880811a87e49b7fd62f6fb63d31 Mon Sep 17 00:00:00 2001 >From: Aleisha <aleishaamohia@hotmail.com> >Date: Thu, 21 Apr 2016 22:49:29 +0000 >Subject: [PATCH] Bug 16324: Move item search into header > >This patch makes the Search button in the header into a dropdown that holds the Advanced search and the Item search. >This should be applied on top of Bug 16323 so that the dropdowns open on hover and don't require the extra click to open. > >To test: >1) Apply 16323 >2) Hover over Search menu in header and confirm it opens >3) Confirm that Advanced search and Item search are there and both links work as expected > >Sponsored-by: Catalyst IT >Signed-off-by: Claire Gravely <c.gravely@arts.ac.uk> >--- > koha-tmpl/intranet-tmpl/prog/en/includes/header.inc | 14 +++++++++++++- > 1 file changed, 13 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc >index 68ac671..59b4b6f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc >@@ -11,6 +11,12 @@ $(document).ready(function(){ > },function(){ > $(".branch-menu").load(this.href).hide(); > }); >+ >+ $(".search").hover(function(){ >+ $(".search-menu").load(this.href).show(); >+ },function(){ >+ $(".search-menu").load(this.href).hide(); >+ }); > }); > > </script> >@@ -21,7 +27,13 @@ $(document).ready(function(){ > <ul id="toplevelmenu" class="nav"> > [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]<li><a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a></li>[% END %] > [% IF ( CAN_user_borrowers ) %]<li><a href="/cgi-bin/koha/members/members-home.pl">Patrons</a></li>[% END %] >- [% IF ( CAN_user_catalogue ) %]<li><a href="/cgi-bin/koha/catalogue/search.pl">Search</a></li>[% END %] >+ <li class="dropdown search"> >+ <a href="#" class="dropdown-toggle" data-toggle="dropdown">Search <b class="caret"></b></a> >+ <ul class="dropdown-menu search-menu"> >+ [% IF ( CAN_user_catalogue ) %]<li><a href="/cgi-bin/koha/catalogue/search.pl">Advanced search</a></li> >+ <li><a href="/cgi-bin/koha/catalogue/itemsearch.pl">Item search</a></li>[% END %] >+ </ul> >+ </li> > [% IF ( intranetbookbag ) %] > <li><a href="#" id="cartmenulink">Cart<span id="basketcount"></span></a></li> > [% END %] >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 16324
:
50547
|
51969
|
52207
|
52313
|
53073