From e375e833ab0e2c3ba1e1f0c1ef8c8c63fdb95437 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9rick=20Capovilla?= Date: Fri, 30 Sep 2011 15:11:01 -0400 Subject: [PATCH] Bug 8583 : Add a warning if a Z39.50 search is started from biblio edition page. Warn the user that the current biblio record might be overwritten by this action. Signed-off-by: Marc Veron Woks as expected. I prefer this solution with an explicit warning, since several times I acidentally changed a record :-) Signed-off-by: Paul Poulain Signed-off-by: Chris Cormack --- koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc | 2 +- .../intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc index f368f92f86..f02b6c6ea0 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc @@ -237,7 +237,7 @@ function confirm_items_deletion() { [% IF ( CAN_user_reserveforothers ) %] [% UNLESS ( norequests ) %]
  • Place hold
  • [% END %] [% END %] - [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]
  • [% END %] + [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]
  • [% END %] 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 b61e543626..fcd4b8c0c2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt @@ -767,7 +767,7 @@ function unHideSubfield(index,labelindex) { // FIXME :: is it used ? type: "button", label: _("Z39.50 Search"), container: "z3950searchc", - onclick: {fn:function(){PopupZ3950()}} + onclick: {fn:function(){if (confirm(_("Please note that this Z39.50 search could replace the current record."))) PopupZ3950()}} }); } -- 2.39.5