From 4de566657ded628aa33b41a87caa6acfe294405a Mon Sep 17 00:00:00 2001 From: Aleisha Date: Wed, 27 Apr 2016 04:45:08 +0000 Subject: [PATCH] Bug 16364: Cleaning up appearance of advanced search This patch uses the page space a bit more wisely to reduce scrolling To test: 1) Go to advanced search 2) Notice Subtype limits and Sorting divs are now stacked and Location and availability div is floated to the right (reduces scrolling) 3) Click [More options] 4) Notice Item type div becomes smaller and Limits div is now floated to the right 5) Notice that checkboxes next to item types are nicely aligned Sponsored-by: Catalyst IT --- koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css | 17 +++++++++++++++++ .../prog/en/modules/catalogue/advsearch.tt | 14 +++++++------- 2 files changed, 24 insertions(+), 7 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css index a638129..2bd0588 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css +++ b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css @@ -327,6 +327,23 @@ fieldset.lastchecked { border-bottom-right-radius: 0; } +fieldset.subtype, +fieldset.sortby { + width: 50%; + float: left; +} + +fieldset.avail, +fieldset.basiclimits { + width: 30%; + float: right; +} + +select.subtype { + margin: 1px; + display: block; +} + legend { font-size : 123.1%; font-weight : bold; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt index e2bd3cc..507fba9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt @@ -112,12 +112,12 @@ [% END %] [% FOREACH advsearchloo IN advancedsearchesloop %] -
+

Limit to any of the following:

[% FOREACH itemtypeloo IN advsearchloo.code_loop %] - [% IF ( loop.last ) %][% ELSE %][% UNLESS ( loop.count % 5 ) %][% END %][% END %] [% END %] @@ -127,12 +127,12 @@ [% IF ( expanded_options ) %] -
+
Limits

-   (format: yyyy-yyyy)

+
(format: yyyy-yyyy)

@@ -160,7 +160,7 @@ [% INCLUDE 'subtypes_unimarc.inc' %] [% ELSE %] -
+
Subtype limits

@@ -261,7 +261,7 @@ -
Sorting +
Sorting