From 616367eae5f302641b44c663bde1f9db4f4fe244 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Tue, 21 Apr 2020 17:30:00 +0000 Subject: [PATCH] Bug 25231: Rename button instead of alert/confirm when replacing record This test plan applies to the basic editor only To test: 1 - Edit an existing record 2 - Click 'Z3950 Search' 3 - Note the confirmation box 4 - Add a new record 5 - Click 'Z3950 Search' 6 - Note no popup 7 - Apply patch 8 - Edit existing record 9 - Note button now says 'Replace record via Z3950 search' 10 - Add a new blank record 11 - Note the button says 'Z3950 search' 12 - Confirm editing/saving/replacing works as in the past --- .../prog/en/modules/cataloguing/addbiblio.tt | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt index 4fda2747a9..bd7cc15165 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt @@ -83,15 +83,8 @@ } }); - [%# Only ask for a confirmation if it is an edit %] $("#z3950search").click(function(){ - [% IF biblionumber %] - if (confirm(_("Please note that this external search could replace the current record."))){ - PopupZ3950(); - } - [% ELSE %] - PopupZ3950(); - [% END %] + PopupZ3950(); }); $("#saverecord").click(function(){ @@ -587,7 +580,11 @@ [% END # /IF CAN_user_editcatalogue_edit_items %] [% UNLESS (circborrowernumber) %][%# Hide in fast cataloging %] -
Z39.50/SRU search
+ [% IF biblionumber %] +
Replace record via Z39.50/SRU search
+ [% ELSE %] +
Z39.50/SRU search
+ [% END %] [% END %]
-- 2.11.0