Bugzilla – Attachment 91807 Details for
Bug 21716
Item Search hangs when \ exists in MARC fields
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21716: Escape publisher in item search
Bug-21716-Escape-publisher-in-item-search.patch (text/plain), 2.07 KB, created by
Nick Clemens
on 2019-07-26 12:45:52 UTC
(
hide
)
Description:
Bug 21716: Escape publisher in item search
Filename:
MIME Type:
Creator:
Nick Clemens
Created:
2019-07-26 12:45:52 UTC
Size:
2.07 KB
patch
obsolete
>From 9076ca606f18793e59b3eafdbef9becc05a3ebd8 Mon Sep 17 00:00:00 2001 >From: Liz Rea <wizzyrea@gmail.com> >Date: Thu, 25 Apr 2019 15:34:36 +0000 >Subject: [PATCH] Bug 21716: Escape publisher in item search > >To prevent endless processing errors. > >To test: > >* create a biblio with a publisher with a backslash - i.e. 260$b with >graham\lineham >* do an item search that will include that title in the results >* wait forever, because it won't work. >* apply this patch >* repeat steps, notice that you > a. get results > b. your result is listed with it's correct publisher >* rejoice > >Signed-off-by: Hayley Mapley <hayleymapley@catalyst.net.nz> > >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >--- > .../intranet-tmpl/prog/en/includes/catalogue/itemsearch_item.json.inc | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/catalogue/itemsearch_item.json.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/catalogue/itemsearch_item.json.inc >index ed39685e3a..16db6ad5f4 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/catalogue/itemsearch_item.json.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/catalogue/itemsearch_item.json.inc >@@ -1,5 +1,6 @@ > [%- USE Branches -%] > [%- USE Koha -%] >+[%- USE To -%] > [%- USE ItemTypes -%] > [% USE AuthorisedValues %] > [%- biblio = item.biblio -%] >@@ -9,7 +10,7 @@ > <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblio.biblionumber | uri %]" title="Go to record detail page">[% biblio.title | html %]</a>[% IF ( Koha.Preference( 'marcflavour' ) == 'UNIMARC' && biblio.author ) %] by[% END %] [% biblio.author | html %] > [%~ END %]", > "[% (biblioitem.publicationyear || biblio.copyrightdate) | html %]", >- "[% biblioitem.publishercode | html %]", >+ "[% biblioitem.publishercode | html | $To %]", > "[% AuthorisedValues.GetByCode( 'CCODE', item.ccode ) | html %]", > "[% FILTER escape_quotes ~%] > <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% biblio.biblionumber | uri %]#item[% item.itemnumber | uri %]" title="Go to item details">[% item.barcode | html %]</a> >-- >2.11.0
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 21716
:
82776
|
82779
|
82980
|
83147
|
88790
|
91780
| 91807