From a4be7076fa8aaef74431da19b962b7832cac1489 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Wed, 12 Apr 2023 20:59:34 +0000 Subject: [PATCH] Bug 33505: Improve styling of scan index page This patch makes some changes to the 'scan index' page. * Updates second h1 heading "Scan index:" to h2 level heading "Scan index" * Removes table from the search form * Moves search index pull down and search term into one line * Reorders options with search index first and search term after, matching the advanced search form * Removes the catalog results toolbar from the top, card hold etc. are not needed here. * Fixes doubled up id attribute: scan-index by turning one into scan-index-term. To test: * Go to advanced search in staff interface * Activate 'More options' * Check checkbox for scan indexes * Switch to author (especially when using Elasticsearch) * Search for C * Check display, especially search options, options at the top of the page etc. * Apply patch * Verify changes listed above * Regression test the normal search results, all should look the same with and without patch. * If you think the scan index page is nicer now - sign off. Signed-off-by: Nick Clemens Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 358cb91a72e85d6ec0e85b8d88b1793062113bd3) Signed-off-by: Martin Renvoize (cherry picked from commit a0d28c0620da21e18af660acde0b9e2eb223333e) Signed-off-by: Lucas Gass (cherry picked from commit 44d4a0c6e0a486e2fe8908a12d52deac337d64e8) Signed-off-by: Arthur Suzuki --- .../prog/en/modules/catalogue/results.tt | 83 +++++++++---------- 1 file changed, 38 insertions(+), 45 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt index 3a5219e969..8a4650bfea 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt @@ -74,6 +74,8 @@

[% total | html %] result(s) found [% IF ( query_desc ) %]for '[% query_desc | html %]'[% END %][% IF limit_desc %] with limit(s): '[% limit_desc | html %]'[% END %][% IF ( LibraryName ) %] in [% LibraryName | html %] Catalog[% END %].

+ + [% UNLESS scan %] Edit this search
@@ -317,6 +319,7 @@
+ [% END %] [% ELSE # /IF total %] @@ -346,52 +349,42 @@ [% IF ( total ) %] [% IF ( scan ) %] -

Scan index:

+

Scan index

- - - - - - - -
- [% IF ( scan_search_term_to_use ) %] - Scan index for: - [% ELSE %] - Scan index for: - [% END %] -
- - - - -
+ + + [% IF ( scan_search_term_to_use ) %] + + [% ELSE %] + Scan index for: + [% END %] + +
-- 2.20.1