Bug 21513: Add a 'Cancel' button to the authority editor and remove duplicate 'Save...
authorAndreas Roussos <arouss1980@gmail.com>
Sun, 7 Oct 2018 18:00:09 +0000 (21:00 +0300)
committerNick Clemens <nick@bywatersolutions.com>
Wed, 17 Oct 2018 13:57:35 +0000 (13:57 +0000)
commit2cffe3a574e14d5f35ce7b1d9ffe28a153dcb37e
tree47b16abb967ff4ccaf1996cdb308ddfbf6bb4cc8
parent81875ab282c1daa98dec2e0f5f20ba74f411ac32
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).

Signed-off-by: Michal Denar <black23@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt