Bugzilla – Attachment 83147 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: Add missing $raw filters
Bug-21716-Add-missing-raw-filters.patch (text/plain), 3.91 KB, created by
Julian Maurice
on 2018-12-13 12:25:18 UTC
(
hide
)
Description:
Bug 21716: Add missing $raw filters
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2018-12-13 12:25:18 UTC
Size:
3.91 KB
patch
obsolete
>From 7d7e95bcd9ece264d0e9f1176150fa94e97dfa9c Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Thu, 13 Dec 2018 13:19:49 +0100 >Subject: [PATCH] Bug 21716: Add missing $raw filters > >--- > .../prog/en/modules/catalogue/itemsearch.tt | 14 +++++++------- > 1 file changed, 7 insertions(+), 7 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt >index ee275f1971..13e0f6eee3 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt >@@ -374,13 +374,13 @@ > const a = document.createElement('a'); > a.appendChild(document.createTextNode(oRow.title)); > a.href = '/cgi-bin/koha/catalogue/detail.pl?biblionumber=' + oRow.biblionumber; >- a.setAttribute('title', [% t('Go to record detail page').json %]); >+ a.setAttribute('title', [% t('Go to record detail page').json | $raw %]); > > let output = a.outerHTML; > if (oRow.author) { >- const marcflavour = [% Koha.Preference('marcflavour').json %]; >+ const marcflavour = [% Koha.Preference('marcflavour').json | $raw %]; > if (marcflavour === 'UNIMARC') { >- output += ' ' + [% t('by').json %]; >+ output += ' ' + [% t('by').json | $raw %]; > } > output += ' ' + oRow.author; > } >@@ -417,7 +417,7 @@ > if (oRow.barcode) { > const a = document.createElement('a'); > a.href = '/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=' + oRow.biblionumber + '#item' + oRow.itemnumber; >- a.setAttribute('title', [% t('Go to item details').json %]); >+ a.setAttribute('title', [% t('Go to item details').json | $raw %]); > a.appendChild(document.createTextNode(oRow.barcode)); > output = a.outerHTML; > } >@@ -479,7 +479,7 @@ > const pencil = document.createElement('i'); > pencil.classList.add('fa', 'fa-pencil'); > >- const edit = document.createTextNode(' ' + [% t('Edit').json %] + ' '); >+ const edit = document.createTextNode(' ' + [% t('Edit').json | $raw %] + ' '); > > const caret = document.createElement('span'); > caret.classList.add('caret') >@@ -496,11 +496,11 @@ > > const edit_item = document.createElement('a'); > edit_item.href = '/cgi-bin/koha/cataloguing/additem.pl?op=edititem&biblionumber=' + oRow.biblionumber + '&itemnumber=' + oRow.itemnumber; >- edit_item.appendChild(document.createTextNode([% t('Edit item').json %])); >+ edit_item.appendChild(document.createTextNode([% t('Edit item').json | $raw %])); > > const edit_record = document.createElement('a'); > edit_record.href = '/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=' + oRow.biblionumber; >- edit_record.appendChild(document.createTextNode([% t('Edit record').json %])); >+ edit_record.appendChild(document.createTextNode([% t('Edit record').json | $raw %])); > > const ul = document.createElement('ul'); > ul.classList.add('dropdown-menu'); >-- >2.17.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 21716
:
82776
|
82779
|
82980
|
83147
|
88790
|
91780
|
91807