Bugzilla – Attachment 45398 Details for
Bug 9857
Did you mean? from authorities uses incorrect punctuation
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9857: Did you mean? uses wrong punctuation in search links
Bug-9857-Did-you-mean-uses-wrong-punctuation-in-se.patch (text/plain), 2.21 KB, created by
Katrin Fischer
on 2015-12-04 00:28:05 UTC
(
hide
)
Description:
Bug 9857: Did you mean? uses wrong punctuation in search links
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2015-12-04 00:28:05 UTC
Size:
2.21 KB
patch
obsolete
>From a50a132cbb3a85914be56c4617acecb643016ada Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <Katrin.Fischer.83@web.de> >Date: Fri, 4 Dec 2015 01:17:50 +0100 >Subject: [PATCH] Bug 9857: Did you mean? uses wrong punctuation in search > links > >The link changes the search links generated by the plugins >from an=authid to an:authid, as suggested by Jared on the >bug report. > >- Turn on the AuthorityFile und ExplodedTerms plugins > for the OPAC from the "Did you mean" section of the > administration module >- Search a term in your OPAC where one or several > authorities exist. > A last name or a place name might work well. >- Verify that there are suggestions displayed on top of > your result list. >- Verify that the link created is something like: > /cgi-bin/koha/opac-search.pl?q=an=14084 >- Apply patch. >- Verify the link has changed a little and still works > correctly: > /cgi-bin/koha/opac-search.pl?q=an:14084 >--- > Koha/SuggestionEngine/Plugin/AuthorityFile.pm | 2 +- > Koha/SuggestionEngine/Plugin/ExplodedTerms.pm | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/Koha/SuggestionEngine/Plugin/AuthorityFile.pm b/Koha/SuggestionEngine/Plugin/AuthorityFile.pm >index 1030344..fad0a58 100644 >--- a/Koha/SuggestionEngine/Plugin/AuthorityFile.pm >+++ b/Koha/SuggestionEngine/Plugin/AuthorityFile.pm >@@ -94,7 +94,7 @@ sub get_suggestions { > foreach my $auth (@$searchresults) { > push @results, > { >- 'search' => "an=$auth->{'authid'}", >+ 'search' => "an:$auth->{'authid'}", > relevance => $count--, > label => $auth->{summary}->{authorized}->[0]->{heading} > }; >diff --git a/Koha/SuggestionEngine/Plugin/ExplodedTerms.pm b/Koha/SuggestionEngine/Plugin/ExplodedTerms.pm >index 009f2ec..c8a3339 100644 >--- a/Koha/SuggestionEngine/Plugin/ExplodedTerms.pm >+++ b/Koha/SuggestionEngine/Plugin/ExplodedTerms.pm >@@ -85,7 +85,7 @@ sub get_suggestions { > my @results; > foreach my $index (@indexes) { > my $thissearch = $search; >- $thissearch = "$index=$thissearch" >+ $thissearch = "$index:$thissearch" > unless ( $thissearch =~ s/OP!/$index=/g ); > $template->{VARS}->{index} = $index; > my $label = $template->output; >-- >1.9.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 9857
:
45398
|
45490
|
45505
|
66218
|
66325
|
66326
|
66717
|
66718
|
66780
|
66781