Bugzilla – Attachment 24292 Details for
Bug 11489
OPAC search results in 404 error when the only search result is supressed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Hide facets if there are no results to show (because they are hidden)
file_11489.txt (text/plain), 1.57 KB, created by
Mark Tompsett
on 2014-01-14 17:34:40 UTC
(
hide
)
Description:
Hide facets if there are no results to show (because they are hidden)
Filename:
MIME Type:
Creator:
Mark Tompsett
Created:
2014-01-14 17:34:40 UTC
Size:
1.57 KB
patch
obsolete
>From 5dfaa21cf0c6da6d9b613b1c9b245346782fb690 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Thu, 9 Jan 2014 17:53:04 +0100 >Subject: [PATCH] Bug 11432: Show facets only if there is result to display > >If all results are hidden, the facets are displayed. > >With this patch, the facets are hidden too. > >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> >--- > koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-facets.inc | 2 +- > koha-tmpl/opac-tmpl/prog/en/includes/opac-facets.inc | 2 +- > 2 files changed, 2 insertions(+), 2 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 5669ce1..4d628e3 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-facets.inc >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-facets.inc >@@ -1,4 +1,4 @@ >-[% IF ( opacfacets && facets_loop ) %] >+[% IF ( opacfacets && facets_loop && hits ) %] > <div id="search-facets"> > <h4><a href="#" class="menu-collapse-toggle">Refine your search</a></h4> > <ul class="menu-collapse"> >diff --git a/koha-tmpl/opac-tmpl/prog/en/includes/opac-facets.inc b/koha-tmpl/opac-tmpl/prog/en/includes/opac-facets.inc >index aae5d71..18450c0 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/includes/opac-facets.inc >+++ b/koha-tmpl/opac-tmpl/prog/en/includes/opac-facets.inc >@@ -1,4 +1,4 @@ >-[% IF ( opacfacets ) %] >+[% IF ( opacfacets ) && hits %] > [% IF ( facets_loop ) %] > <div id="search-facets"> > <h4>Refine your search</h4> >-- >1.7.10.4
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 11489
:
23989
|
23990
|
24291
|
24292
|
24294
|
24496
|
24497
|
24733
|
26061
|
26062
|
26889
|
26890