]> git.koha-community.org Git - koha.git/commit
Bug 22045: (follow-up) Fix tab-switching when some tab numbers are missing
authorOwen Leonard <oleonard@myacpl.org>
Thu, 14 Feb 2019 19:37:21 +0000 (19:37 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Mon, 11 Mar 2019 12:32:12 +0000 (12:32 +0000)
commit4d3144310c00398b1f6629c27466bdce04436841
treea9fc03a66e0df56041eaae3252da31c0790b5408
parent41a8c11fbb7525b5a767d2a37c1e2b473a78a45b
Bug 22045: (follow-up) Fix tab-switching when some tab numbers are missing

This patch changes the way tab-switching is done so that it switching
tabs based on tab id rather than tab index. Using tab index doesn't work
when the tab number doesn't match the tab index.

To test, apply the patch and load a record or blank editor using a MARC
framework which doesn't include one or more tabs (for instance, by
deleting the entries in the framework for one tab:

DELETE FROM marc_subfield_structure WHERE frameworkcode = 'KT' AND tab = 4;

...backup first). In the MARC editor the numbered tabs should exclude
that number. Tab-switching should work correctly.

Signed-off-by: Maryse Simard <maryse.simard@inlibro.com>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/css/addbiblio.css
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt
koha-tmpl/intranet-tmpl/prog/js/staff-global.js