Bugzilla – Attachment 166083 Details for
Bug 36750
OPAC - some facet heading labels are not displayed in search results when using Elasticsearch
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36750: (35138 follow-up) Use same display code for OPAC
Bug-36750-35138-follow-up-Use-same-display-code-fo.patch (text/plain), 4.92 KB, created by
Nick Clemens (kidclamp)
on 2024-05-02 16:47:26 UTC
(
hide
)
Description:
Bug 36750: (35138 follow-up) Use same display code for OPAC
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2024-05-02 16:47:26 UTC
Size:
4.92 KB
patch
obsolete
>From 520327834b91764afebc3f50411b74c71badee72 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Thu, 2 May 2024 16:44:36 +0000 >Subject: [PATCH] Bug 36750: (35138 follow-up) Use same display code for OPAC > >To test: >1 - In OPAC with ES enabled do a search >2 - Note missing facet labels >3 - Apply patch >4 - They are back! >--- > .../intranet-tmpl/prog/en/includes/facets.inc | 2 +- > .../bootstrap/en/includes/opac-facets.inc | 39 ++++++++++++------- > 2 files changed, 27 insertions(+), 14 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/facets.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/facets.inc >index 6bb127fa729..66b0b42ea5a 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/facets.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/facets.inc >@@ -64,7 +64,7 @@ > <span id="facet-series">Series</span> > [% CASE 'ItemTypes' %] > <span id="facet-itemtypes">Item types</span> >- [% CASE 'HomeLibrary' %] >+ [% CASE 'homelibrary' %] > <span id="facet-home-libraries">Home libraries</span> > [% CASE 'HoldingLibrary' %] > <span id="facet-holding-libraries">Holding libraries</span> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-facets.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-facets.inc >index 5415f6fb276..c19bd038036 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-facets.inc >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-facets.inc >@@ -54,19 +54,32 @@ > [% FOREACH facets_loo IN facets_loop %] > [% IF facets_loo.facets.size > 0 %] > <li id="[% facets_loo.type_id | html %]"> >- [% IF facets_loo.type_label_Authors %]<h3 id="facet-authors">Authors</h3>[% END %] >- [% IF facets_loo.type_label_Titles %]<h3 id="facet-titles">Titles</h3>[% END %] >- [% IF facets_loo.type_label_Topics %]<h3 id="facet-topics">Topics</h3>[% END %] >- [% IF facets_loo.type_label_Places %]<h3 id="facet-places">Places</h3>[% END %] >- [% IF facets_loo.type_label_Series %]<h3 id="facet-series">Series</h3>[% END %] >- [% IF facets_loo.type_label_ItemTypes %]<h3 id="facet-itemtypes">Item types</h3>[% END %] >- [% IF facets_loo.type_label_CollectionCodes %]<h3 id="facet-collections">Collections</h3>[% END %] >- [% IF facets_loo.type_label_Language %]<h3 id="facet-languages">Languages</h3>[% END %] >- [% UNLESS singleBranchMode %] >- [% IF ( facets_loo.type_label_HomeLibrary ) %]<h3 id="facet-home-libraries">Home libraries</h3>[% END %] >- [% IF ( facets_loo.type_label_HoldingLibrary ) %]<h3 id="facet-holding-libraries">Holding libraries</h3>[% END %] >- [% END %] >- [% IF facets_loo.type_label_Location %]<h3 id="facet-locations">Locations</h3>[% END %] >+ [% SWITCH facets_loo.label %] >+ [% CASE 'Authors' %] >+ <h3 id="facet-authors">Authors</h3> >+ [% CASE 'Titles' %] >+ <h3 id="facet-titles">Titles</h3> >+ [% CASE 'Topics' %] >+ <h3 id="facet-topics">Topics</h3> >+ [% CASE 'Places' %] >+ <h3 id="facet-places">Places</h3> >+ [% CASE 'Series' %] >+ <h3 id="facet-series">Series</h3> >+ [% CASE 'ItemTypes' %] >+ <h3 id="facet-itemtypes">Item types</h3> >+ [% CASE 'homelibrary' %] >+ <h3 id="facet-home-libraries">Home libraries</h3> >+ [% CASE 'HoldingLibrary' %] >+ <h3 id="facet-holding-libraries">Holding libraries</h3> >+ [% CASE 'Location' %] >+ <h3 id="facet-locations">Locations</h3> >+ [% CASE 'CollectionCodes' %] >+ <h3 id="facet-collections">Collections</h3> >+ [% CASE 'Languages' %] >+ <h3 id="facet-languages">Languages</h3> >+ [% CASE %] >+ <h3 id="facet-[% facets_loo.type_link_value | html %]">[% facets_loo.label | html %]</h3> >+ [% END %] > <ul> > [% SET url = "/cgi-bin/koha/opac-search.pl?" _ query_cgi _ limit_cgi %] > [% IF ( sort_by ) %] >-- >2.39.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 36750
:
166031
|
166032
|
166083
|
166084
|
166187
|
166191
|
166192
|
166193
|
166194
|
166281
|
166282
|
166283
|
166284
|
166286
|
166288
|
166289
|
166290
|
166291
|
166292