From cf25a165bb6ed1bfad5b1a3fa2eca9020dfe26c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9rick=20Capovilla?= Date: Fri, 30 Sep 2011 15:11:01 -0400 Subject: [PATCH] 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. --- .../intranet-tmpl/prog/en/includes/cat-toolbar.inc | 2 +- .../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 f368f92..f02b6c6 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 b61e543..fcd4b8c 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()}} }); } -- 1.7.2.5