Bugzilla – Attachment 149578 Details for
Bug 33505
Improve styling of scan index page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33505: Improve styling of scan index page
Bug-33505-Improve-styling-of-scan-index-page.patch (text/plain), 10.98 KB, created by
Katrin Fischer
on 2023-04-12 21:09:56 UTC
(
hide
)
Description:
Bug 33505: Improve styling of scan index page
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2023-04-12 21:09:56 UTC
Size:
10.98 KB
patch
obsolete
>From 5e66da0126e718eb2e06fce0d74ebb5763dd828d Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <katrin.fischer.83@web.de> >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 | 85 +++++++++---------- > 1 file changed, 39 insertions(+), 46 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 ddc14d00b9..ac49e0f495 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt >@@ -46,7 +46,7 @@ > <div class="row"> > <div class="col-sm-10 col-sm-push-2"> > <main> >- >+ > <h1>Search results</h1> > > [% IF ( outer_sup_results_loop ) %] >@@ -71,6 +71,8 @@ > <h3> > [% total | html %] result(s) found [% IF ( query_desc ) %]for <span class="results_query_desc">'[% query_desc | html %]'</span>[% END %][% IF limit_desc %] with limit(s): <span class="results_limit_desc">'[% limit_desc | html %]'</span>[% END %][% IF ( LibraryName ) %] in [% LibraryName | html %] Catalog[% END %]. > </h3> >+ >+ [% UNLESS scan %] > <a href="/cgi-bin/koha/catalogue/search.pl?advsearch=1&edit_search=1&[% query_cgi | $raw %]&[% limit_cgi | $raw %]&sort_by=[% sort_by | $raw %]">Edit this search</a> > [% IF ( Koha.Preference('SavedSearchFilters') && CAN_user_parameters_manage_search_filters ) %] > | <a href="#" id="save_search_filter">Save search as filter</a> >@@ -331,6 +333,7 @@ > > </div> <!-- /#selection_ops --> > </div> <!-- /#searchheader --> >+ [% END %] > > [% ELSE # /IF total %] > <form method="post" name="fz3950" class="fz3950bigrpad"> >@@ -365,52 +368,42 @@ > <!-- Search Results Table --> > [% IF ( total ) %] > [% IF ( scan ) %] >- <h1>Scan index:</h1> >+ <h2>Scan index</h2> > <form action="/cgi-bin/koha/catalogue/search.pl" method="get"> >- <table> >- <tr> >- <td> >- [% IF ( scan_search_term_to_use ) %] >- Scan index for: <input type="text" name="q" id="scan-index" size="35" value="[% scan_search_term_to_use | html %]" /> >- [% ELSE %] >- Scan index for: <input type="text" name="q" id="scan-index" size="35" value="" /> >- [% END %] >- </td> >- </tr> >- <tr> >- <td> >- <label for="scan-index">Indexed in: </label> >- <select name="idx" id="scan-index"> >- [% IF ( header_pulldown == "" ) %]<option selected="selected" value="">Any word</option >- [% ELSE %]<option selected="selected" value="">Any word</option[% END %] >- [% IF ( header_pulldown == "ms_anycommaphr" ) %]<option selected="selected" value="any,phr">Any phrase</option> >- [% ELSE %]<option value="any,phr">Any phrase</option>[% END %] >- [% IF ( header_pulldown == "ms_ti" ) %]<option selected="selected" value="ti">Title</option> >- [% ELSE %]<option value="ti">Title</option>[% END %] >- [% IF ( header_pulldown == "ms_ticommaphr" ) %]<option selected="selected" value="ti,phr">Title phrase</option> >- [% ELSE %]<option value="ti,phr">Title phrase</option>[% END %] >- [% IF ( header_pulldown == ( "ms_au" || "ms_aucommaphr" ) ) %]<option selected="selected" value="au,phr">Author</option> >- [% ELSE %]<option value="au,phr">Author</option>[% END %] >- [% IF ( header_pulldown == "ms_su" ) %]<option selected="selected" value="su">Subject</option> >- [% ELSE %]<option value="su">Subject</option>[% END %] >- [% IF ( header_pulldown == "ms_sucommaphr" ) %]<option selected="selected" value="su,phr">Subject phrase</option> >- [% ELSE %]<option value="su,phr">Subject phrase</option>[% END %] >- [% IF ( header_pulldown == "ms_se" ) %]<option selected="selected" value="se">Series</option> >- [% ELSE %]<option value="se">Series</option>[% END %] >- [% IF ( header_pulldown == "ms_pb" ) %]<option selected="selected" value="pb">Publisher</option> >- [% ELSE %]<option value="pb">Publisher</option>[% END %] >- [% IF ( header_pulldown == "ms_nt" ) %]<option selected="selected" value="nt">Notes</option> >- [% ELSE %]<option value="nt">Notes</option>[% END %] >- [% IF ( header_pulldown == "ms_sn" ) %]<option selected="selected" value="sn">ISBN</option> >- [% ELSE %]<option value="sn">ISBN</option>[% END %] >- [% IF ( header_pulldown == "ms_ss" ) %]<option selected="selected" value="ss">ISSN</option> >- [% ELSE %]<option value="ss">ISSN</option>[% END %] >- </select> >- <input type="hidden" name="scan" value="1" /> >- <input class="submit" type="submit" value="Submit" /> >- </td> >- </tr> >- </table> >+ [% IF ( scan_search_term_to_use ) %] >+ Scan index for: <input type="text" name="q" id="scan-index-term" size="35" value="[% scan_search_term_to_use | html %]" /> >+ [% ELSE %] >+ Scan index for: <input type="text" name="q" id="scan-index-term" size="35" value="" /> >+ [% END %] >+ <label for="scan-index">Indexed in: </label> >+ <select name="idx" id="scan-index"> >+ [% IF ( header_pulldown == "" ) %]<option selected="selected" value="">Any word</option> >+ [% ELSE %]<option selected="selected" value="">Any word</option[% END %] >+ [% IF ( header_pulldown == "ms_anycommaphr" ) %]<option selected="selected" value="any,phr">Any phrase</option> >+ [% ELSE %]<option value="any,phr">Any phrase</option>[% END %] >+ [% IF ( header_pulldown == "ms_ti" ) %]<option selected="selected" value="ti">Title</option> >+ [% ELSE %]<option value="ti">Title</option>[% END %] >+ [% IF ( header_pulldown == "ms_ticommaphr" ) %]<option selected="selected" value="ti,phr">Title phrase</option> >+ [% ELSE %]<option value="ti,phr">Title phrase</option>[% END %] >+ [% IF ( header_pulldown == ( "ms_au" || "ms_aucommaphr" ) ) %]<option selected="selected" value="au,phr">Author</option> >+ [% ELSE %]<option value="au,phr">Author</option>[% END %] >+ [% IF ( header_pulldown == "ms_su" ) %]<option selected="selected" value="su">Subject</option> >+ [% ELSE %]<option value="su">Subject</option>[% END %] >+ [% IF ( header_pulldown == "ms_sucommaphr" ) %]<option selected="selected" value="su,phr">Subject phrase</option> >+ [% ELSE %]<option value="su,phr">Subject phrase</option>[% END %] >+ [% IF ( header_pulldown == "ms_se" ) %]<option selected="selected" value="se">Series</option> >+ [% ELSE %]<option value="se">Series</option>[% END %] >+ [% IF ( header_pulldown == "ms_pb" ) %]<option selected="selected" value="pb">Publisher</option> >+ [% ELSE %]<option value="pb">Publisher</option>[% END %] >+ [% IF ( header_pulldown == "ms_nt" ) %]<option selected="selected" value="nt">Notes</option> >+ [% ELSE %]<option value="nt">Notes</option>[% END %] >+ [% IF ( header_pulldown == "ms_sn" ) %]<option selected="selected" value="sn">ISBN</option> >+ [% ELSE %]<option value="sn">ISBN</option>[% END %] >+ [% IF ( header_pulldown == "ms_ss" ) %]<option selected="selected" value="ss">ISSN</option> >+ [% ELSE %]<option value="ss">ISSN</option>[% END %] >+ </select> >+ <input type="hidden" name="scan" value="1" /> >+ <input class="submit" type="submit" value="Submit" /> > </form> > > <form action="/cgi-bin/koha/catalogue/search.pl" method="get"> >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 33505
:
149578
|
149579
|
149625
|
149713
|
150299