[Koha-patches] [PATCH 1/2] Bug 10444 - In advanced search(more), [+] and [-] should behave like links on hover
Tomas Cohen Arazi
tomascohen at gmail.com
Tue Jun 11 16:51:56 CEST 2013
This patch add href="#" to the [+] and [-] links for adding and removing search terms.
It also defines its style so it doesn't show underlined.
To test:
- Browse your OPAC to "Advanced Search" and then "More options".
- The [+] and [-] don't change the cursor on hover
- Apply the patch, reload and see the cursor changes
- Functionality should remain unchanged
Regards
To+
Sponsored-by: Universidad Nacional de Córdoba
---
koha-tmpl/opac-tmpl/prog/en/css/opac.css | 4 ++++
.../opac-tmpl/prog/en/modules/opac-advsearch.tt | 4 ++--
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/koha-tmpl/opac-tmpl/prog/en/css/opac.css b/koha-tmpl/opac-tmpl/prog/en/css/opac.css
index 84b8489..06456e5 100644
--- a/koha-tmpl/opac-tmpl/prog/en/css/opac.css
+++ b/koha-tmpl/opac-tmpl/prog/en/css/opac.css
@@ -30,6 +30,10 @@ body {
color : #C00;
}
+a.ButtonPlus, a.ButtonLess {
+ text-decoration : none;
+}
+
caption {
font-size : 140%;
font-weight : bold;
diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-advsearch.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-advsearch.tt
index 8f763d1..eeed2eb 100644
--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-advsearch.tt
+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-advsearch.tt
@@ -125,8 +125,8 @@
[% IF ( expanded_options ) %]
<!-- [% IF ( search_box.scan_index ) %]<input type="checkbox" name="scan" id="scan" value="1" /> Scan Indexes[% END %] -->
[% IF ( !loop.first ) %]
- <a class="ButtonPlus" name="ButtonPlus" title="Add another field">[+]</a>
- <a class="ButtonLess" title="Remove field">[-]</a>
+ <a class="ButtonPlus" name="ButtonPlus" title="Add another field" href="#">[+]</a>
+ <a class="ButtonLess" title="Remove field" href="#">[-]</a>
[% END %]
[% END %]
</p>
--
1.7.9.5
More information about the Koha-patches
mailing list