Bugzilla – Attachment 137023 Details for
Bug 29418
Error searching for analytics in detail view
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29418: Fix error searching for analytics in detail view
Bug-29418-Fix-error-searching-for-analytics-in-det.patch (text/plain), 1.85 KB, created by
Tomás Cohen Arazi (tcohen)
on 2022-07-01 15:00:56 UTC
(
hide
)
Description:
Bug 29418: Fix error searching for analytics in detail view
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2022-07-01 15:00:56 UTC
Size:
1.85 KB
patch
obsolete
>From c461e6a47623cb4777b014c723a5bf92b02d2955 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Fri, 1 Jul 2022 11:54:34 -0300 >Subject: [PATCH] Bug 29418: Fix error searching for analytics in detail view > >This patch fixes the problem of searching for analytics when the title >contains reserved characters like ? > >To test: >1. Have a record with ? in the title >2. Open the detail view (staff) >=> FAIL: tells there's an error checking for analytics >3. Open the detail view (OPAC) >=> FAIL: tells there's an error checking for analytics >4. Apply this patch and restart all >5. Repeat 2 and 3 >=> SUCCESS: Link shows correctly! >6. Sign off :-D > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > catalogue/detail.pl | 2 +- > opac/opac-detail.pl | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/catalogue/detail.pl b/catalogue/detail.pl >index f81d1436f4..8db8bf5dd7 100755 >--- a/catalogue/detail.pl >+++ b/catalogue/detail.pl >@@ -138,7 +138,7 @@ if ( $xslfile ) { > my $query = > ( C4::Context->preference('UseControlNumber') and $record->field('001') ) > ? 'rcn:'. $record->field('001')->data . ' AND (bib-level:a OR bib-level:b)' >- : "Host-item:($cleaned_title)"; >+ : "Host-item:(\"$cleaned_title\")"; > my ( $err, $result, $count ); > eval { > ( $err, $result, $count ) = >diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl >index c2225a69a9..255b07aeef 100755 >--- a/opac/opac-detail.pl >+++ b/opac/opac-detail.pl >@@ -195,7 +195,7 @@ if ( $xslfile ) { > my $query = > ( C4::Context->preference('UseControlNumber') and $record->field('001') ) > ? 'rcn:'. $record->field('001')->data . ' AND (bib-level:a OR bib-level:b)' >- : "Host-item:($cleaned_title)"; >+ : "Host-item:(\"$cleaned_title\")"; > my ( $err, $result, $count ); > eval { > ( $err, $result, $count ) = >-- >2.34.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 29418
:
127325
|
127326
|
134865
|
134866
|
137023
|
137048
|
137135
|
137136
|
137137
|
137138
|
137139
|
137140
|
137142
|
137171
|
137172
|
137173
|
137174