Bugzilla – Attachment 12026 Details for
Bug 8583
Add a warning if a Z39.50 search is started from the "Edit biblio record" page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Add a warning if a Z39.50 search is started from biblio edition page.
SIGNED-OFF-Add-a-warning-if-a-Z3950-search-is-star.patch (text/plain), 2.53 KB, created by
Marc Véron
on 2012-09-06 19:28:50 UTC
(
hide
)
Description:
[SIGNED-OFF] Add a warning if a Z39.50 search is started from biblio edition page.
Filename:
MIME Type:
Creator:
Marc Véron
Created:
2012-09-06 19:28:50 UTC
Size:
2.53 KB
patch
obsolete
>From da902c844d517fdf2373698af3b59efc9475ea92 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Fr=C3=A9d=C3=A9rick=20Capovilla?= <frederick.capovilla@libeo.com> >Date: Fri, 30 Sep 2011 15:11:01 -0400 >Subject: [PATCH] [SIGNED-OFF] Add a warning if a Z39.50 search is started from biblio edition page. >Content-Type: text/plain; charset="utf-8" > >Warn the user that the current biblio record might be overwritten by >this action. > >http://bugs.koha-community.org/show_bug.cgi?id=8583 >Signed-off-by: Marc Veron <veron@veron.ch> > >Woks as expected. I prefer this solution with an explicit warning, >since several times I acidentally changed a record :-) >--- > .../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 5371398..24d3894 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc >@@ -238,7 +238,7 @@ function confirm_items_deletion() { > [% IF ( CAN_user_reserveforothers ) %] > [% UNLESS ( norequests ) %]<li><a id="placehold" href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblionumber %]">Place hold</a></li>[% END %] > [% END %] >- [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]<li id="z3950searchc"><input type="button" id="z3950search" value="Z39.50 search" onclick="PopupZ3950(); return false;" /></li>[% END %] >+ [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]<li id="z3950searchc"><input type="button" id="z3950search" value="Z39.50 Search" onclick="if (confirm(_('Please note that this Z39.50 search could replace the current record.'))){ PopupZ3950(); } return false;" /></li>[% END %] > </ul> > </form> > </div> >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 f934fbe..ee8e9fa 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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 8583
:
11392
| 12026