Bugzilla – Attachment 56567 Details for
Bug 17278
Limit to available items returns 0 results
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Bug 17278: Fix "show all items" link
SIGNED-OFF-Bug-17278-Fix-show-all-items-link.patch (text/plain), 1.17 KB, created by
Josef Moravec
on 2016-10-16 08:12:03 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 17278: Fix "show all items" link
Filename:
MIME Type:
Creator:
Josef Moravec
Created:
2016-10-16 08:12:03 UTC
Size:
1.17 KB
patch
obsolete
>From 06a9e6bc77ea32ae19202a92170bd06a9d5c90ed Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 3 Oct 2016 12:27:21 +0100 >Subject: [PATCH] [SIGNED-OFF] Bug 17278: Fix "show all items" link > >Then we need to remove the "available" part from the query. >They are really awkward patches... > >Signed-off-by: Josef Moravec <josef.moravec@gmail.com> >--- > C4/Search.pm | 4 ++++ > 1 file changed, 4 insertions(+) > >diff --git a/C4/Search.pm b/C4/Search.pm >index 8245f07..3beaa46 100644 >--- a/C4/Search.pm >+++ b/C4/Search.pm >@@ -1477,6 +1477,10 @@ sub buildQuery { > # this happens when selecting a subject on the opac-detail page > @limits = grep {!/^$/} @limits; > my $original_q = $q; # without available part >+ unless ( grep { /^available$/ } @limits ) { >+ $q =~ s| and \( \( allrecords,AlwaysMatches:'' not onloan,AlwaysMatches:''\) and \(lost,st-numeric=0\) \)||; >+ $original_q = $q; >+ } > if ( @limits ) { > if ( grep { /^available$/ } @limits ) { > $q .= q| and ( ( allrecords,AlwaysMatches:'' not onloan,AlwaysMatches:'') and (lost,st-numeric=0) )|; >-- >2.1.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 17278
:
55337
|
55968
|
55972
|
56566
|
56567
|
57626
|
57627
|
57689
|
57710
|
57711
|
57712