Bug 20154

Summary: Stay in the open tab when editing authority record
Product: Koha Reporter: Patrick Robitaille <patrick.robitaille>
Component: CatalogingAssignee: Owen Leonard <oleonard>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: lucas, m.de.rooy, marjorie.barry-vila
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Small patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
20.11.00
Attachments: Bug 20154: Stay in the open tab when editing authority record
Bug 20154: Stay in the open tab when editing authority record
Bug 20154: Stay in the open tab when editing authority record

Description Patrick Robitaille 2018-02-07 16:55:25 UTC
Hi, 

When we consult an authority in the authorities module, it would be nice too stay in the tab that are actually open when we switch to edit mode. Currently when you consult an authority notice and you open a tab (for exemple the tab 2) if you switch to the edit mode we will automaticaly arrive at the record in edit mode but with tab "0" open.

Patrick.
Comment 1 Owen Leonard 2020-07-13 20:16:21 UTC
Created attachment 106852 [details] [review]
Bug 20154: Stay in the open tab when editing authority record

This patch adds some JavaScript to the authority record detail page in
the staff interface so that clicking "Edit" will take you to the
authority edit page while keeping the same tab open.

To test, apply the patch and locate an authority record in your catalog.

 - Click any of the numbered tabs besides tab 0.
 - Choose "Edit record" from the "Edit" dropdown menu.
 - When the authorities edit page loads the same tab should be
   preselected.
Comment 2 ByWater Sandboxes 2020-07-16 19:06:59 UTC
Created attachment 106966 [details] [review]
Bug 20154: Stay in the open tab when editing authority record

This patch adds some JavaScript to the authority record detail page in
the staff interface so that clicking "Edit" will take you to the
authority edit page while keeping the same tab open.

To test, apply the patch and locate an authority record in your catalog.

 - Click any of the numbered tabs besides tab 0.
 - Choose "Edit record" from the "Edit" dropdown menu.
 - When the authorities edit page loads the same tab should be
   preselected.

Signed-off-by: Marjorie <marjorie.barry-vila@collecto.ca>
Comment 3 Katrin Fischer 2020-07-16 19:26:23 UTC
Hi Marjorie, the sandboxes don't update the bug status - please remember to switch to "signed off" :)
Comment 4 Marjorie Barry-Vila 2020-07-16 19:27:24 UTC
(In reply to Katrin Fischer from comment #3)
> Hi Marjorie, the sandboxes don't update the bug status - please remember to
> switch to "signed off" :)

oups! thanks!

Marjorie
Comment 5 Katrin Fischer 2020-08-10 21:29:11 UTC
Created attachment 108022 [details] [review]
Bug 20154: Stay in the open tab when editing authority record

This patch adds some JavaScript to the authority record detail page in
the staff interface so that clicking "Edit" will take you to the
authority edit page while keeping the same tab open.

To test, apply the patch and locate an authority record in your catalog.

 - Click any of the numbered tabs besides tab 0.
 - Choose "Edit record" from the "Edit" dropdown menu.
 - When the authorities edit page loads the same tab should be
   preselected.

Signed-off-by: Marjorie <marjorie.barry-vila@collecto.ca>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Comment 6 Jonathan Druart 2020-08-13 05:56:54 UTC
Pushed to master for 20.11, thanks to everybody involved!
Comment 7 Lucas Gass 2020-08-17 15:31:02 UTC
enhancement will not be backported to 20.05.x