Bug 16363: Add floating toolbar to advanced search
authorAleisha <aleishaamohia@hotmail.com>
Wed, 27 Apr 2016 04:08:40 +0000 (04:08 +0000)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 29 Apr 2016 10:49:49 +0000 (10:49 +0000)
EDIT: Ah yes I was so sure it wasn't mini but couldn't remember what to
use! Thanks for that Owen

To test:
1) Go to advanced search
2) Confirm Save, More Options and Clear fields (notice change from New
search to Clear fields) are in toolbar and work as expected

Sponsored-by: Catalyst IT
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt

index e2bd3cc..6019f4c 100644 (file)
@@ -1,6 +1,7 @@
 [% INCLUDE 'doc-head-open.inc' %]
 <title>Koha &rsaquo; Catalog &rsaquo; Advanced search</title>
 [% INCLUDE 'doc-head-close.inc' %]
+<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.fixFloat.js"></script>
 <script type="text/JavaScript" language="JavaScript">
        /**
         *  Function add_field();
@@ -16,6 +17,7 @@
        $(document).ready(function() {
                $("input[name=q]:eq(0)").focus();
         $('#advsearches').tabs();
+        $('#toolbar').fixFloat();
        });
 </script>
 </head>
 <h1>Advanced search</h1>
 <a href="/cgi-bin/koha/catalogue/itemsearch.pl">Go to item search</a>
 
+<!-- SEARCH BUTTONS -->
+<div id="toolbar" class="btn-toolbar">
+    <fieldset class="action" id="submit1">
+        <div class="btn-group">
+            <button class="btn btn-small" type="submit" accesskey="s"><i class="fa fa-search"></i> Search</button>
+        </div>
+        <div class="btn-group">
+        [% IF ( expanded_options ) %]
+            <a href="/cgi-bin/koha/catalogue/search.pl?expanded_options=0" class="btn-small"><i class="fa fa-search-minus"></i> Fewer options</a>
+        </div>
+        [% ELSE %]
+            <a href="/cgi-bin/koha/catalogue/search.pl?expanded_options=1" class="btn-small"><i class="fa fa-search-plus"></i> More options</a>
+        </div>
+        [% END %]
+        <div class="btn-group">
+            <a href="/cgi-bin/koha/catalogue/search.pl?do=Clear" class="btn-small"><i class="fa fa-times"></i> Clear fields</a>
+        </div>
+    </fieldset>
+</div>
+<!-- /SEARCH BUTTONS -->
+
+
 [% IF ( outer_servers_loop ) %]
 <!-- DATABASES -->
 
     </fieldset>
 <!-- /BOOLEAN SEARCH OPTIONS -->
 
-<!-- SEARCH BUTTONS -->
-            <fieldset class="action" id="submit1"><input class="submit" type="submit" accesskey="s" value="Search" />
-            [% IF ( expanded_options ) %]
-            <a href="/cgi-bin/koha/catalogue/search.pl?expanded_options=0">[Fewer options]</a>
-            [% ELSE %]
-            <a href="/cgi-bin/koha/catalogue/search.pl?expanded_options=1">[More options]</a>
-            [% END %]
-            <a href="/cgi-bin/koha/catalogue/search.pl?do=Clear">[New search]</a>
-            </fieldset>
-<!-- /SEARCH BUTTONS -->
 </div>
 <!-- MC-TYPE LIMITS -->
     <div class="yui-g">
         </p>
 </fieldset>
 <!-- /RANK LIMITS -->
-
-<!-- SEARCH BUTTONS -->
-            <fieldset class="action" id="submit2"><input class="submit" type="submit" accesskey="s" value="Search" />
-            [% IF ( expanded_options ) %]
-            <a href="/cgi-bin/koha/catalogue/search.pl?expanded_options=0">[Fewer options]</a>
-            [% ELSE %]
-            <a href="/cgi-bin/koha/catalogue/search.pl?expanded_options=1">[More options]</a>
-            [% END %]
-            <a href="/cgi-bin/koha/catalogue/search.pl?do=Clear">[New search]</a> 
-            </fieldset>
-<!-- /SEARCH BUTTONS -->
 </div>
 </div>
 </form>