From 961ef4f519a8537263fbe0e856636fd3b8d2e390 Mon Sep 17 00:00:00 2001 From: Nick Clemens 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! Signed-off-by: David Nind --- .../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 6bb127fa72..66b0b42ea5 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 @@ Series [% CASE 'ItemTypes' %] Item types - [% CASE 'HomeLibrary' %] + [% CASE 'homelibrary' %] Home libraries [% CASE 'HoldingLibrary' %] Holding libraries 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 5415f6fb27..c19bd03803 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 %]
  • - [% IF facets_loo.type_label_Authors %]

    Authors

    [% END %] - [% IF facets_loo.type_label_Titles %]

    Titles

    [% END %] - [% IF facets_loo.type_label_Topics %]

    Topics

    [% END %] - [% IF facets_loo.type_label_Places %]

    Places

    [% END %] - [% IF facets_loo.type_label_Series %]

    Series

    [% END %] - [% IF facets_loo.type_label_ItemTypes %]

    Item types

    [% END %] - [% IF facets_loo.type_label_CollectionCodes %]

    Collections

    [% END %] - [% IF facets_loo.type_label_Language %]

    Languages

    [% END %] - [% UNLESS singleBranchMode %] - [% IF ( facets_loo.type_label_HomeLibrary ) %]

    Home libraries

    [% END %] - [% IF ( facets_loo.type_label_HoldingLibrary ) %]

    Holding libraries

    [% END %] - [% END %] - [% IF facets_loo.type_label_Location %]

    Locations

    [% END %] + [% SWITCH facets_loo.label %] + [% CASE 'Authors' %] +

    Authors

    + [% CASE 'Titles' %] +

    Titles

    + [% CASE 'Topics' %] +

    Topics

    + [% CASE 'Places' %] +

    Places

    + [% CASE 'Series' %] +

    Series

    + [% CASE 'ItemTypes' %] +

    Item types

    + [% CASE 'homelibrary' %] +

    Home libraries

    + [% CASE 'HoldingLibrary' %] +

    Holding libraries

    + [% CASE 'Location' %] +

    Locations

    + [% CASE 'CollectionCodes' %] +

    Collections

    + [% CASE 'Languages' %] +

    Languages

    + [% CASE %] + + [% END %]
      [% SET url = "/cgi-bin/koha/opac-search.pl?" _ query_cgi _ limit_cgi %] [% IF ( sort_by ) %] -- 2.39.2