From 77e83492af0e1b938c60b9253ab4589436e5fed4 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 --- .../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 0ab43173bd..10743641b4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt @@ -72,6 +72,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 [% IF ( Koha.Preference('SavedSearchFilters') && CAN_user_parameters_manage_search_filters ) %] | Save search as filter @@ -332,6 +334,7 @@ + [% END %] [% ELSE # /IF total %]
@@ -366,52 +369,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.30.2