Koha/koha-tmpl/intranet-tmpl/prog/en/modules/circ
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
..
article-requests.tt Bug 33590: Fix DOM id name for tabs after WRAPPER code added to article-requests.tt 2023-05-05 09:13:16 -03:00
bookcount.tt Bug 33149: Use template wrapper for breadcrumbs: Circulation part 1 2023-04-06 09:29:26 -03:00
branchoverdues.tt Bug 33888: (bug 22375 follow-up) Add missing USE KohaDates 2023-06-26 14:44:17 +02:00
branchtransfers.tt Bug 33149: Use template wrapper for breadcrumbs: Circulation part 1 2023-04-06 09:29:26 -03:00
checkout-notes.tt Bug 33149: Use template wrapper for breadcrumbs: Circulation part 1 2023-04-06 09:29:26 -03:00
circulation-home.tt Bug 33961: Remove built-in offline circ tool 2023-07-17 08:18:59 +01:00
circulation.tt Bug 33528: Use template wrapper for tabs: Patron details page 2023-07-17 12:04:17 +01:00
circulation_batch_checkouts.tt Bug 33149: Use template wrapper for breadcrumbs: Circulation part 1 2023-04-06 09:29:26 -03:00
curbside_pickups.tt Bug 33372: Use template wrapper for breadcrumbs: Circulation part 2 2023-04-12 11:43:14 -03:00
on-site_checkouts.tt Bug 22375: Format due date consistantly 2023-05-09 11:46:55 -03:00
overdue.tt Bug 33372: Use template wrapper for breadcrumbs: Circulation part 2 2023-04-12 11:43:14 -03:00
pendingreserves.tt Bug 34434: Terminology: Biblio should be bibliographic 2023-08-29 11:36:00 -10:00
printslip.tt
renew.tt Bug 22375: (follow-up) Format even more due dates consistently 2023-05-09 11:46:56 -03:00
request-article.tt Bug 34233: Move select2 include out of patron-search.inc 2023-07-18 10:46:29 +01:00
reserveratios.tt Bug 33373: Use template wrapper for breadcrumbs: Circulation part 3 2023-04-12 11:43:15 -03:00
returns.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
set-library.tt Bug 33373: Use template wrapper for breadcrumbs: Circulation part 3 2023-04-12 11:43:15 -03:00
transfers_to_send.tt Bug 33373: Use template wrapper for breadcrumbs: Circulation part 3 2023-04-12 11:43:15 -03:00
transferstoreceive.tt Bug 33223: Replace 'first_valid' with 'notice' for email addresses 2023-05-16 15:17:35 -03:00
view_holdsqueue.tt Bug 33373: Use template wrapper for breadcrumbs: Circulation part 3 2023-04-12 11:43:15 -03:00
waitingreserves.tt Bug 33187: Use template wrapper for tabs article requests and holds awaiting pickup pages 2023-04-14 15:39:40 -03:00