Koha/koha-tmpl/intranet-tmpl/prog/en/modules
Owen Leonard 72364bb34c Bug 34115: Use a global tab select function for activating Bootstrap tabs based on location hash
This patch fixes automatic tab selection by location.hash in the MARC
subfield editor. This allows links which target a specific subfield to
open the page with the subfield tab selected.

I've put this into a global function since it can be reused in multiple
places: The about page and the checkout page have variations of this
functionality which can be replaced with this function.

The patch also corrects two links in Koha pointing to the About
page which included the wrong location hash (changed in the switch to
Bootstrap tab wrappers).

To test, apply the patch and go to Adminstration -> Bibliographic
frameworks.

- View the MARC structure for any framework.
  - In the "Search for tag" input field, submit a tag and subfield which
    will be found in that framework, e.g. "245$a"
  - When you submit the form you should be sent to the MARC subfield
   structure page for that tag with the subfield tab automatically
   selected.
- View the MARC subfield structure for any framework.
  - In the table of subfields, click the subfield link in the first
    column. You should be taken to the edit form with the corresponding
    tab selected.
- Go to Circulation and check out to a patron. Append a tab anchor to
  the URL, e.g. "#holds_panel" and submit. You may have to shift-reload
  the page to see the change. (As far as I know no links in Koha take
  advantage of this)
- Perform the same test on the patron detail page
- Go to the About page and perform the same test with a tab anchor like
  "#team_panel" or "#sysinfo_panel"

Signed-off-by: Sam Lau <samalau@gmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit cb6dd4e82b)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2023-08-30 10:16:42 -10:00
..
acqui Bug 34095: Adjust logic so that shipment cost is empty if the receiving shipment cost is blank. 2023-08-30 10:15:46 -10:00
admin Bug 34386: Fix inconsistencies in Cities and tows page titles, breadcrumbs, and header 2023-08-29 21:02:56 -10:00
authorities Bug 34436: (QA follow-up) Move spans to surround full text 2023-08-29 11:35:04 -10:00
basket Bug 33808: Add aria-labels in basket.tt 2023-07-18 12:47:58 +01:00
batch
catalogue Bug 34434: Terminology: Biblio should be bibliographic 2023-08-29 11:36:00 -10:00
cataloguing Bug 34436: Some breadcrumbs lack <span> for translatability 2023-08-29 11:35:04 -10:00
circ Bug 34115: Use a global tab select function for activating Bootstrap tabs based on location hash 2023-08-30 10:16:42 -10:00
clubs
course_reserves
erm
errors
ill Bug 34115: Use a global tab select function for activating Bootstrap tabs based on location hash 2023-08-30 10:16:42 -10:00
installer Bug 31667: Merge 'tip' and 'hint' classes 2023-08-17 10:20:12 -10:00
labels Bug 34116: Add page-sectioning to item search in label creator 2023-07-18 10:31:20 +01:00
mana
members Bug 34356: Make sort order always default to correct column 2023-08-29 21:07:24 -10:00
offline_circ
onboarding
patron_lists
patroncards
plugins
pos
recalls
reports Bug 34533: jsdiff library missing from guided reports page 2023-08-29 20:46:54 -10:00
reserve
reviews
rotating_collections
serials Bug 34436: Some breadcrumbs lack <span> for translatability 2023-08-29 11:35:04 -10:00
services
suggestion Bug 34601: Fix wrong quote 2023-08-30 09:52:56 -10:00
tags
test
tools Bug 34434: Terminology: Biblio should be bibliographic 2023-08-29 11:36:00 -10:00
virtualshelves Bug 22990: Fix template toolkit syntax issues in shelves_results.tt 2023-07-28 09:12:39 -10:00
about.tt Bug 34115: Use a global tab select function for activating Bootstrap tabs based on location hash 2023-08-30 10:16:42 -10:00
auth.tt Bug 34028: Show the secret when registering from the auth screen 2023-08-17 10:53:10 -10:00
intranet-main.tt Bug 34288: Allow access to the cataloguing module with tools permission 2023-07-19 08:32:47 +01:00