Bugzilla – Attachment 166250 Details for
Bug 36396
Link facet with authorised value category
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36396: UI - OPAC
Bug-36396-UI---OPAC.patch (text/plain), 5.52 KB, created by
Martin Renvoize (ashimema)
on 2024-05-07 10:21:37 UTC
(
hide
)
Description:
Bug 36396: UI - OPAC
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2024-05-07 10:21:37 UTC
Size:
5.52 KB
patch
obsolete
>From 2d48a0ce42d61caa0bda74492ed372c4247bcb37 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 22 Mar 2024 09:23:19 +0100 >Subject: [PATCH] Bug 36396: UI - OPAC > >Sponsored-by: The Research University in the Helmholtz Association (KIT) >Signed-off-by: Lukas Koszyk <lukasz.koszyk@kit.edu> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > .../bootstrap/en/includes/opac-facets.inc | 44 +++++++++++++------ > 1 file changed, 31 insertions(+), 13 deletions(-) > >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..635058eb820 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,37 @@ > [% 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 %] >+ [% 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 '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 %] >+ > [% 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 %] >+ [% IF ( facets_loo.label == HomeLibrary ) %] >+ <h3 id="facet-home-libraries">Home libraries</h3> >+ [% END %] >+ [% IF ( facets_loo.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 %] > <ul> > [% SET url = "/cgi-bin/koha/opac-search.pl?" _ query_cgi _ limit_cgi %] > [% IF ( sort_by ) %] >@@ -103,14 +121,14 @@ > <li class="moretoggle"> > [% FOR label IN more_less_labels.keys %] > [% IF facets_loo.item('type_label_' _ label) %] >- <a href="#" aria-label="[% more_less_labels.item(label).more | html | trim %]"><strong>Show more</strong></a> >+ <a href="#" aria-label="[% more_less_labels.item(label).more || t('Show more') | html | trim %]"><strong>Show more</strong></a> > [% END %] > [% END %] > </li> > <li class="moretoggle" style="display:none"> > [% FOR label IN more_less_labels.keys %] > [% IF facets_loo.item('type_label_' _ label) %] >- <a href="#" aria-label="[% more_less_labels.item(label).less | html | trim %]"><strong>Show less</strong></a> >+ <a href="#" aria-label="[% more_less_labels.item(label).less || t('Show less') | html | trim %]"><strong>Show less</strong></a> > [% END %] > [% END %] > </li> >-- >2.45.0
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 36396
:
163685
|
163686
|
163687
|
163688
|
163689
|
163690
|
163705
|
163776
|
163777
|
163778
|
163779
|
163780
|
163781
|
163782
|
166246
|
166247
|
166248
|
166249
| 166250 |
166251
|
166252
|
166254
|
166258