Bugzilla – Attachment 112931 Details for
Bug 26860
Add search limit for records without items
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26860: facets.inc refactor availability facet
Bug-26860-facetsinc-refactor-availability-facet.patch (text/plain), 3.07 KB, created by
Tomás Cohen Arazi (tcohen)
on 2020-11-03 14:38:14 UTC
(
hide
)
Description:
Bug 26860: facets.inc refactor availability facet
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2020-11-03 14:38:14 UTC
Size:
3.07 KB
patch
obsolete
>From a078c1474344d144cbf73c7ab99f5b1d5c361b91 Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Tue, 27 Oct 2020 11:48:30 +0100 >Subject: [PATCH] Bug 26860: facets.inc refactor availability facet >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >To prepare new facet, this patch refactors the availability facet, >without any change in restult. >Appart from an id 'facet-availability', like other facets. > >Test plan: >1) Perform a search in staff interface >2) Check availability facet displays well >3) Click on it >4) Check availability facet displays well > >Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr> >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > .../intranet-tmpl/prog/en/includes/facets.inc | 19 ++++++++++++++----- > 1 file changed, 14 insertions(+), 5 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/facets.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/facets.inc >index d31ade3d230..af01c0e88b1 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/facets.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/facets.inc >@@ -6,13 +6,22 @@ > <div id="search-facets"> > <h4>Refine your search</h4> > <ul> >- <li id="availability_facet">Availability<ul><li>[% IF ( available ) %]<strong>Showing only available items</strong></li><li><a href="/cgi-bin/koha/catalogue/search.pl?[% query_cgi | $raw %][% limit_cgi_not_availablity | $raw %][% IF ( sort_by ) %]&sort_by=[% sort_by | uri %][% END %]">Show all items</a>[% ELSE %]<a href="/cgi-bin/koha/catalogue/search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %][% IF ( sort_by ) %]&sort_by=[% sort_by | uri %][% END %]&limit=available">Limit to currently available items</a>[% END %]</li></ul> >- [% IF ( related ) %] <li>(related searches: [% FOREACH relate IN related %][% relate.related_search | html %][% END %])</li>[% END %] >- </li> >+ <li id="availability_facet"> >+ <span id="facet-availability">Availability</span> >+ <ul> >+ [% IF ( available ) %] >+ <li><strong>Showing only available items</strong></li> >+ <li><a href="/cgi-bin/koha/catalogue/search.pl?[% query_cgi | $raw %][% limit_cgi_not_availablity | $raw %][% IF ( sort_by ) %]&sort_by=[% sort_by | uri %][% END %]">Show all items</a></li> >+ [% ELSE %] >+ <li><a href="/cgi-bin/koha/catalogue/search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %][% IF ( sort_by ) %]&sort_by=[% sort_by | uri %][% END %]&limit=available">Limit to currently available items</a></li> >+ [% END %] >+ </ul> >+ </li> >+ [% IF ( related ) %] <li>(related searches: [% FOREACH relate IN related %][% relate.related_search | html %][% END %])</li>[% END %] > >- [% FOREACH facets_loo IN facets_loop %] >+[% FOREACH facets_loo IN facets_loop %] > [% IF facets_loo.facets.size > 0 %] >- <li id="[% facets_loo.type_id | html %]"> >+<li id="[% facets_loo.type_id | html %]"> > [% facets_loo.type_label | html %] > [% IF facets_loo.type_label_Authors %]<span id="facet-authors">Authors</span>[% END %] > [% IF facets_loo.type_label_Titles %]<span id="facet-titles">Titles</span>[% END %] >-- >2.29.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 26860
:
112858
|
112859
|
112913
|
112914
|
112931
|
112932
|
113220
|
119112
|
119113
|
119114
|
120994
|
124125
|
124126
|
124127