Bugzilla – Attachment 63644 Details for
Bug 18655
Unimarc field 210c fails on importing fields with a simple quote
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18655: correct the escaping of ' and move code toward jquery part
Bug-18655-correct-the-escaping-of--and-move-code-t.patch (text/plain), 1.81 KB, created by
Baptiste Wojtkowski (bwoj)
on 2017-05-23 08:54:35 UTC
(
hide
)
Description:
Bug 18655: correct the escaping of ' and move code toward jquery part
Filename:
MIME Type:
Creator:
Baptiste Wojtkowski (bwoj)
Created:
2017-05-23 08:54:35 UTC
Size:
1.81 KB
patch
obsolete
>From 6ebff89ab5008290a961a79217ef4e166ef505ba Mon Sep 17 00:00:00 2001 >From: Baptiste Wojtkowski <baptiste.wojtkowski@biblibre.com> >Date: Tue, 23 May 2017 08:54:00 +0000 >Subject: [PATCH] Bug 18655: correct the escaping of ' and move code toward > jquery part > >--- > .../modules/cataloguing/value_builder/unimarc_field_210c.tt | 12 +++++++++++- > 1 file changed, 11 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_210c.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_210c.tt >index 043e700..f2106fc 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_210c.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_210c.tt >@@ -64,7 +64,7 @@ > <td>[% resul.used %] times</td> > <td> > [% IF ( resul.to_report ) %] >- <a href="javascript:report('[% resul.to_report |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]')"><img alt="choose" src="[% interface %]/[% theme %]/images/arrow.gif" width="32" /></a> >+ <button id='import'><img alt="choose" src="[% interface %]/[% theme %]/images/arrow.gif" width="32" /></button> > [% END %] > </td> > </tr> >@@ -79,6 +79,16 @@ > [% END %] > <script type="text/javascript"> > //<![CDATA[ >+ >+$( document ).ready( function(){ >+ $('#import').on('click', function(){ >+ var temp = "[% resul.to_report| replace('"', '\"') %]"; >+ temp.replace( "'", "\\'"); >+ temp.replace( "\\r", "\\\\r"); >+ report( temp ); >+ }); >+}); >+ > function report(summary) > { > var doc = opener.document; >-- >2.7.4
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 18655
:
63644
|
63652
|
63653
|
76168
|
78710
|
78865
|
80315