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
Signed-off-by: Phil Ringnalda <phil@chetcolibrary.org>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
(cherry picked from commit ac3a39bd48)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
1a0bd2c263
commit
9be62c1c43
|
|
@ -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(){
|
||||
|
|
@ -550,7 +543,11 @@
|
|||
[% END # /IF CAN_user_editcatalogue_edit_items %]
|
||||
|
||||
[% UNLESS (circborrowernumber) %][%# Hide in fast cataloging %]
|
||||
<div class="btn-group"><a class="btn btn-default" href="#" id="z3950search"><i class="fa fa-search"></i> Z39.50/SRU search</a></div>
|
||||
[% IF biblionumber %]
|
||||
<div class="btn-group"><a class="btn btn-default" href="#" id="z3950search"><i class="fa fa-search"></i> Replace record via Z39.50/SRU search</a></div>
|
||||
[% ELSE %]
|
||||
<div class="btn-group"><a class="btn btn-default" href="#" id="z3950search"><i class="fa fa-search"></i> Z39.50/SRU search</a></div>
|
||||
[% END %]
|
||||
[% END %]
|
||||
|
||||
<div class="btn-group">
|
||||
|
|
|
|||
Loading…
Reference in New Issue