From b8ad6a6532c236e473d548ad910d920ef1516ecf Mon Sep 17 00:00:00 2001 From: Baptiste Wojtkowski Date: Tue, 23 May 2017 08:54:00 +0000 Subject: [PATCH] Bug 18655: Correct the choose link in unimarc_field_210c value builder - Link 'choose' is now a button. - It doesn't call directly javascript anymore (use of listener). - field to load stored in html on the page (less escaping needed). Test plan : 1) Use UNIMARC catalog 2) Define unimarc_field_210c value builder on 210$c 3) Define an autority type EDITORS with heading on 200$b 4) Create an autority of this type with a single quote in heading, ie : l'avenir 5) Index this new autority 6) Edit a biblio record and launch 210$c value builder 7) Search for new autority 8) Click on 'Choose' => Heading should be pasted in 210$c Signed-off-by: David Nind Signed-off-by: Chris Cormack Signed-off-by: Nick Clemens (cherry picked from commit 9965aa43e15aaa63fd8999daa98618d20698e89b) Signed-off-by: Martin Renvoize --- .../value_builder/unimarc_field_210c.tt | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) 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 31797ada8e..ce793c9e69 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 @@ -65,9 +65,10 @@ [% PROCESS authresult summary=resul.summary %] [% resul.used %] times - [% IF ( resul.to_report ) %] - choose - [% END %] + [% IF ( resul.to_report ) %] + + + [% END %] [% END %] @@ -82,6 +83,12 @@ [% MACRO jsinclude BLOCK %] [% END %] -[% INCLUDE 'intranet-bottom.inc' popup_window=1 %] \ No newline at end of file +[% INCLUDE 'intranet-bottom.inc' popup_window=1 %] -- 2.39.5