Bugzilla – Attachment 124747 Details for
Bug 28941
No filtering on suggestion at the OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28941: Deal with OPACSuggestionUnwantedFields
Bug-28941-Deal-with-OPACSuggestionUnwantedFields.patch (text/plain), 1002 bytes, created by
Marcel de Rooy
on 2021-09-10 09:47:31 UTC
(
hide
)
Description:
Bug 28941: Deal with OPACSuggestionUnwantedFields
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2021-09-10 09:47:31 UTC
Size:
1002 bytes
patch
obsolete
>From c46d93076936412b1a8cae1a66d7d392e5c731c3 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 10 Sep 2021 11:33:18 +0200 >Subject: [PATCH] Bug 28941: Deal with OPACSuggestionUnwantedFields >Content-Type: text/plain; charset=utf-8 > >Remove fields from OPACSuggestionUnwantedFields before creating the >suggestion > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > opac/opac-suggestions.pl | 4 ++++ > 1 file changed, 4 insertions(+) > >diff --git a/opac/opac-suggestions.pl b/opac/opac-suggestions.pl >index e4ed209033..d42458f0ad 100755 >--- a/opac/opac-suggestions.pl >+++ b/opac/opac-suggestions.pl >@@ -177,6 +177,10 @@ if ( $op eq "add_confirm" ) { > } > } > else { >+ for my $f (sort split(/\s*\,\s*/, C4::Context->preference("OPACSuggestionUnwantedFields") ) ) { >+ delete $suggestion->{$f}; >+ } >+ > my $scrubber = C4::Scrubber->new(); > foreach my $suggest ( keys %$suggestion ) { > >-- >2.20.1
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 28941
:
124423
|
124429
|
124729
|
124745
|
124747
|
124775