Bugzilla – Attachment 80176 Details for
Bug 21513
Add a 'Cancel' button to the authority editor and remove duplicate 'Save' button
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21513: Add a 'Cancel' button to the authority editor and remove duplicate 'Save' button
Bug-21513-Add-a-Cancel-button-to-the-authority-edi.patch (text/plain), 2.64 KB, created by
Andreas Roussos
on 2018-10-07 18:05:28 UTC
(
hide
)
Description:
Bug 21513: Add a 'Cancel' button to the authority editor and remove duplicate 'Save' button
Filename:
MIME Type:
Creator:
Andreas Roussos
Created:
2018-10-07 18:05:28 UTC
Size:
2.64 KB
patch
obsolete
>From aba8117acbad90f695259e50e6d0b74b5537fa45 Mon Sep 17 00:00:00 2001 >From: Andreas Roussos <arouss1980@gmail.com> >Date: Sun, 7 Oct 2018 21:00:09 +0300 >Subject: [PATCH] Bug 21513: Add a 'Cancel' button to the authority editor and > remove duplicate 'Save' button > >The authority editor (authorities/authorities.pl) does not have >a 'Cancel' button. Also, it has two 'Save' buttons. > >This patch fixes that by: >a) adding a 'Cancel' button to the floating toolbar at the top >b) removing the 'Save' button from the bottom of the page > >Test plan: >1) Go to Home > Authorities and launch the authority editor by > clicking on 'New authority'. Notice how the editor doesn't > have a 'Cancel' button. Also notice the two 'Save' buttons. >2) Apply the patch. >3) Re-launch the authority editor, and hit cancel; you should > be taken back to Home > Authorities. >4) Edit an existing authority, and hit cancel; you should be > taken back to the details page for the authority you chose. >5) Edit an authority as new (duplicate), and hit cancel; you > should be taken back to Home > Authorities (this behaviour > is mimicking the bibliographic editor: when duplicating a > biblio the 'Cancel' button will take you back to Home > > Cataloging). >--- > .../intranet-tmpl/prog/en/modules/authorities/authorities.tt | 11 +++++++---- > 1 file changed, 7 insertions(+), 4 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt >index 032761fc14..fd6119641f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt >@@ -216,6 +216,13 @@ function confirmnotdup(redirect){ > <div class="btn-group"> > <a class="btn btn-default btn-sm" id="z3950submit" href="#"><i class="fa fa-search"></i> Z39.50 search</a> > </div> >+ <div class="btn-group"> >+ [% IF ( authid ) %] >+ <a class="btn btn-default btn-sm" id="cancel" href="/cgi-bin/koha/authorities/detail.pl?authid=[% authid | url %]">Cancel</a> >+ [% ELSE %] >+ <a class="btn btn-default btn-sm" id="cancel" href="/cgi-bin/koha/authorities/authorities-home.pl">Cancel</a> >+ [% END %] >+ </div> > </div> > > <div id="authoritytabs" class="toptabs numbered"> >@@ -426,10 +433,6 @@ function confirmnotdup(redirect){ > <input type="hidden" name="field_value" value="[% authtypecode | html %]" /> > [% END %] > >-<fieldset class="action"> >- <input type="button" id="addauth2" value="Save" onclick="Check(this.form)" accesskey="w" /> >-</fieldset> >- > </form> > > </div> >-- >2.11.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 21513
:
80175
|
80176
|
80177
|
80254