Bug 34124: Improve in-page navigation on table settings page
authorOwen Leonard <oleonard@myacpl.org>
Mon, 26 Jun 2023 20:30:56 +0000 (20:30 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 7 Jul 2023 12:18:14 +0000 (09:18 -0300)
commit24b2cd367f511e6f5f3dfb4bfb9b34d1e1ec8068
treef7c11995452ef6fa1aca3d51b572bd98716712bb
parent1b579868d5568e40225fce079161ae98746ea0ad
Bug 34124: Improve in-page navigation on table settings page

This patch adds links to the table settings page so that the user can
jump directly to a particular table within a page section.

The patch also changes the logic of when in-page links are displayed: I
think it makes sense not to show a "Jump to page" link when there is
only one page. The page will show a "Jump to table" link only if there
is only one table.

To test, apply the patch and go to Administration -> Table settings.

- Expand and check multiple sections.
- In the "Administration" section, there are multiple pages.
  - Check that the "Jump to page" links work correctly.
- In the "Catalog" section, there is only one page: "detail."
  - Check that the "Jump to table" links work correctly.

Signed-off-by: Sam Lau <samalau@gmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/columns_settings.tt