Bugzilla – Attachment 149577 Details for
Bug 33506
Series has wrong index name on scan index page and search option selection is not retained
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33506: Fix false index for series and keep selected index on scan index page
Bug-33506-Fix-false-index-for-series-and-keep-sele.patch (text/plain), 6.43 KB, created by
Katrin Fischer
on 2023-04-12 21:01:03 UTC
(
hide
)
Description:
Bug 33506: Fix false index for series and keep selected index on scan index page
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2023-04-12 21:01:03 UTC
Size:
6.43 KB
patch
obsolete
>From dc91ce50413140b489e568ac0b2e259fb36369dd Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <katrin.fischer.83@web.de> >Date: Wed, 12 Apr 2023 20:19:38 +0000 >Subject: [PATCH] Bug 33506: Fix false index for series and keep selected index > on scan index page > >The pull down with search options had the wrong index >linked to the Series entry: su instead of se > >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 >* Verify search results link to authors using c >* Switch to series >* Verify search results use 'su' for subject >* Verify that search option pull down always jumps back to first > entry: Any word >* Apply patch >* Verify the search results for series now use correct index se >* Verify that coming from advanced search, the correct search option is selected >* Verify that changing the search option also keeps the selection after searching > >Note: with Elasticsearch and default configuration author, title and series will >give you results. >--- > .../prog/en/modules/catalogue/results.tt | 29 ++++++++++--------- > 1 file changed, 15 insertions(+), 14 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 862643e694..c6b092f980 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt >@@ -379,30 +379,31 @@ > </tr> > <tr> > <td> >- <label for="scan-index">Indexed in:</label> >+ <label for="scan-index">Indexed in: </label> > <select name="idx" id="scan-index"> >- <option value="">Any word</option> >- [% IF ( ms_anycommaphr) %]<option selected="selected" value="any,phr">Any phrase</option> >+ [% 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 ( ms_ti ) %]<option selected="selected" value="ti">Title</option> >+ [% IF ( header_pulldown == "ms_ti" ) %]<option selected="selected" value="ti">Title</option> > [% ELSE %]<option value="ti">Title</option>[% END %] >- [% IF ( ms_ticommaphr ) %]<option selected="selected" value="ti,phr">Title phrase</option> >+ [% IF ( header_pulldown == "ms_ticommaphr" ) %]<option selected="selected" value="ti,phr">Title phrase</option> > [% ELSE %]<option value="ti,phr">Title phrase</option>[% END %] >- [% IF ( ms_au || ms_aucommaphr ) %]<option selected="selected" value="au,phr">Author</option> >+ [% IF ( header_pulldown == ( "ms_au" || "ms_aucommaphr" ) ) %]<option selected="selected" value="au,phr">Author</option> > [% ELSE %]<option value="au,phr">Author</option>[% END %] >- [% IF ( ms_su ) %]<option selected="selected" value="su">Subject</option> >+ [% IF ( header_pulldown == "ms_su" ) %]<option selected="selected" value="su">Subject</option> > [% ELSE %]<option value="su">Subject</option>[% END %] >- [% IF ( ms_sucommaphr ) %]<option selected="selected" value="su,phr">Subject phrase</option> >+ [% IF ( header_pulldown == "ms_sucommaphr" ) %]<option selected="selected" value="su,phr">Subject phrase</option> > [% ELSE %]<option value="su,phr">Subject phrase</option>[% END %] >- [% IF ( ms_se ) %]<option selected="selected" value="se">Series</option> >- [% ELSE %]<option value="su">Series</option>[% END %] >- [% IF ( ms_pb ) %]<option selected="selected" value="pb">Publisher</option> >+ [% 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 ( ms_nt ) %]<option selected="selected" value="nt">Notes</option> >+ [% IF ( header_pulldown == "ms_nt" ) %]<option selected="selected" value="nt">Notes</option> > [% ELSE %]<option value="nt">Notes</option>[% END %] >- [% IF ( ms_sn ) %]<option selected="selected" value="sn">ISBN</option> >+ [% IF ( header_pulldown == "ms_sn" ) %]<option selected="selected" value="sn">ISBN</option> > [% ELSE %]<option value="sn">ISBN</option>[% END %] >- [% IF ( ms_ss ) %]<option selected="selected" value="ss">ISSN</option> >+ [% 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" /> >-- >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 33506
:
149576
|
149577
|
149620
|
150300