Bug 12576: Make the more/fewer options and "new search" links on the advanced search...
authorSean Hamlin <seanh@catalyst.net.nz>
Fri, 25 Jul 2014 02:51:35 +0000 (14:51 +1200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Fri, 22 Aug 2014 14:13:02 +0000 (11:13 -0300)
How to test:
1/ Visit /cgi-bin/koha/opac-search.pl
2/ Assert the "More/Fewer options" buttons look like bootstrap default buttons
3/ Assert the "New search" button looks like a bootstrap default button
4/ Assert the visited colour of the buttons remains #333 (light grey)
5/ Assert the buttons still function as expected

Signed-off-by: Nick Clemens <nick@quecheelibrary.org>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt
koha-tmpl/opac-tmpl/bootstrap/less/opac.less

index d9b2d4b..c265578 100644 (file)
     <p>
         <input class="btn btn-success" type="submit" accesskey="s" name="do" title="Search" value="Search" />
         [% IF ( expanded_options ) %]
-            <a href="/cgi-bin/koha/opac-search.pl?expanded_options=0">[Fewer options]</a>
+            <a href="/cgi-bin/koha/opac-search.pl?expanded_options=0" class="btn btn-default more-less-options">Fewer options</a>
         [% ELSE %]
-            <a href="/cgi-bin/koha/opac-search.pl?expanded_options=1">[More options]</a>
+            <a href="/cgi-bin/koha/opac-search.pl?expanded_options=1" class="btn btn-default more-less-options">More options</a>
         [% END %]
-        <a href="/cgi-bin/koha/opac-search.pl?do=Clear">[New search]</a>
+        <a href="/cgi-bin/koha/opac-search.pl?do=Clear" class="btn btn-default new-search">New search</a>
     </p>
 [% END %]
 
index bccfcb0..e23ae4d 100644 (file)
@@ -57,6 +57,11 @@ a {
         font-weight: bold;
         font-size : 108%;
     }
+    &.btn {
+        &:visited {
+            color : #333;
+        }
+    }
     &.btn-primary {
         &:visited {
             color : #FFF;
@@ -360,7 +365,7 @@ td {
     background: linear-gradient(to bottom, #c7c7c1 38%,#a7a7a2 100%);
     /* W3C */
     filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#c7c7c1', endColorstr='#a7a7a2',GradientType=0 );
-    /* IE6-9 */;
+    /* IE6-9 */
     label {
         font-size: 115%;
         font-weight: bold;