From 7d7e95bcd9ece264d0e9f1176150fa94e97dfa9c Mon Sep 17 00:00:00 2001 From: Julian Maurice 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