From 6f73697a6c45578f4296c693c39214d2b63177fe 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. --- .../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 c6b092f980..2e12466365 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt @@ -71,6 +71,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 @@ -331,6 +333,7 @@ + [% END %] [% ELSE # /IF total %]
@@ -365,52 +368,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