Bugzilla – Attachment 35907 Details for
Bug 13700
Translated item search not working
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PASSED QA] Bug 13700: Fix item search templates for translation
PASSED-QA-Bug-13700-Fix-item-search-templates-for-.patch (text/plain), 2.89 KB, created by
Kyle M Hall (khall)
on 2015-02-13 15:46:24 UTC
(
hide
)
Description:
[PASSED QA] Bug 13700: Fix item search templates for translation
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2015-02-13 15:46:24 UTC
Size:
2.89 KB
patch
obsolete
>From 900fba1a0812135e599996ccca6c87583598b140 Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Fri, 13 Feb 2015 13:30:56 +0100 >Subject: [PATCH] [PASSED QA] Bug 13700: Fix item search templates for translation > >Since translator rebuild HTML tags with double quotes for attributes >values, use double quotes in english template too and escape them with >backslash. > >Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> > >It works well!! > >Test: >1) Intall translation (de-DE, es-ES) >2) to Go to item search, in english, do a search that gives results >3) Switch language, repeat search, result's table does not render >4) Apply patch >5) Install translation again >6) Repeat 3, now results are displayed > >No koha-qa errors > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > .../en/includes/catalogue/itemsearch_item.json.inc | 12 +++++++++--- > 1 files changed, 9 insertions(+), 3 deletions(-) > >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 3e5d9a7..605a1bf 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 >@@ -2,11 +2,15 @@ > [%- biblio = item.biblio -%] > [%- biblioitem = item.biblioitem -%] > [ >- "<a href='/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblio.biblionumber %]' title='Go to record detail page'>[% biblio.title |html %]</a> by [% biblio.author |html %]", >+ "[% FILTER escape_quotes = replace('"', '\"') ~%] >+ <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblio.biblionumber %]" title="Go to record detail page">[% biblio.title |html %]</a> by [% biblio.author |html %] >+ [%~ END %]", > "[% biblioitem.publicationyear |html %]", > "[% biblioitem.publishercode |html %]", > "[% biblioitem.collectiontitle |html %]", >- "<a href='/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% biblio.biblionumber %]#item[% item.itemnumber %]' title='Go to item details'>[% item.barcode |html %]</a>", >+ "[% FILTER escape_quotes ~%] >+ <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% biblio.biblionumber %]#item[% item.itemnumber %]" title="Go to item details">[% item.barcode |html %]</a> >+ [%~ END %]", > "[% item.itemcallnumber |html %]", > "[% Branches.GetName(item.homebranch) |html %]", > "[% Branches.GetName(item.holdingbranch) |html %]", >@@ -14,5 +18,7 @@ > "[% item.stocknumber |html %]", > "[% item.status |html %]", > "[% (item.issues || 0) |html %]", >- "<a href='/cgi-bin/koha/cataloguing/additem.pl?op=edititem&biblionumber=[% item.biblionumber %]&itemnumber=[% item.itemnumber %]'>Edit</a>" >+ "[% FILTER escape_quotes ~%] >+ <a href="/cgi-bin/koha/cataloguing/additem.pl?op=edititem&biblionumber=[% item.biblionumber %]&itemnumber=[% item.itemnumber %]">Edit</a> >+ [%~ END %]" > ] >-- >1.7.2.5
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 13700
:
35897
|
35899
| 35907