Bugzilla – Attachment 46308 Details for
Bug 15360
Incorrect or mislabeled behavior on Authorities "New from Z39.50" Button
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[ALTERNATIVE-PATCH] Bug 15360: Add a "Replace with Z39.50" button when editing an authority
Bug-15360-Add-a-Replace-with-Z3950-button-when-edi.patch (text/plain), 2.81 KB, created by
Jonathan Druart
on 2016-01-06 09:13:45 UTC
(
hide
)
Description:
[ALTERNATIVE-PATCH] Bug 15360: Add a "Replace with Z39.50" button when editing an authority
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2016-01-06 09:13:45 UTC
Size:
2.81 KB
patch
obsolete
>From 1bd931b654068cd5de8ca31b369efb210c12c2a7 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 5 Jan 2016 14:46:06 +0000 >Subject: [PATCH] Bug 15360: Add a "Replace with Z39.50" button when editing an > authority > >If the record exist, a new button "Replace with Z39.50" is added > >Test plan: >Go on the authority home page (authorities/authorities-home.pl) >You should see a "New from Z39.50" button. >Edit an authority >You should now see "Replace with Z39.50" and "New from Z39.50" >Confirm that the 2 buttons work as expected. >--- > .../prog/en/includes/authorities-toolbar.inc | 23 +++++++++++++--------- > 1 file changed, 14 insertions(+), 9 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-toolbar.inc >index 8270327..08dd36a 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-toolbar.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-toolbar.inc >@@ -6,16 +6,15 @@ > return false; > }); > >- $("#z3950submit").click(function(){ >- [% IF ( authid ) %] >- if (confirm(_("Please note that this Z39.50 search could replace the current record."))){ >- window.open("/cgi-bin/koha/cataloguing/z3950_auth_search.pl?authid=[% authid %]","z3950search",'width=800,height=500,location=yes,toolbar=no,scrollbars=yes,resize=yes'); >- } >- [% ELSE %] >- window.open("/cgi-bin/koha/cataloguing/z3950_auth_search.pl","z3950search",'width=800,height=500,location=yes,toolbar=no,scrollbars=yes,resize=yes'); >- [% END %] >+ $("#z3950_new").click(function(){ >+ window.open("/cgi-bin/koha/cataloguing/z3950_auth_search.pl","z3950search",'width=800,height=500,location=yes,toolbar=no,scrollbars=yes,resize=yes'); > return false; > }); >+ $("#z3950_replace").click(function(){ >+ if (confirm(_("Please note that this Z39.50 search could replace the current record."))){ >+ window.open("/cgi-bin/koha/cataloguing/z3950_auth_search.pl?authid=[% authid %]","z3950search",'width=800,height=500,location=yes,toolbar=no,scrollbars=yes,resize=yes'); >+ } >+ }); > > }); > >@@ -59,8 +58,14 @@ > [% END %] > </ul> > </div> >+ [% IF authid %] >+ <div class="btn-group"> >+ <a class="btn btn-small" id="z3950_replace" href="#"><i class="fa fa-search"></i> Replace using Z39.50</a> >+ </div> >+ [% END %] > <div class="btn-group"> >- <a class="btn btn-small" id="z3950submit" href="#"><i class="fa fa-search"></i> New from Z39.50</a> >+ <a class="btn btn-small" id="z3950_new" href="#"><i class="fa fa-search"></i> New from Z39.50</a> >+ > </div> > [% END %] > </div> >-- >2.1.0
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 15360
:
46261
|
46273
|
46308
|
46565
|
75703
|
76584
|
76606