Koha/koha-tmpl/intranet-tmpl/prog/js
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
..
modals
pages Bug 34115: Use a global tab select function for activating Bootstrap tabs based on location hash 2023-08-30 10:16:42 -10:00
vue Bug 34219: Allow getAll to receive additional URL parameters 2023-08-29 20:51:27 -10:00
acq.js
acquisitions-menu.js
additem.js
addorderiso2709.js
admin-menu.js
ajax.js
audio_alerts.js
auth-finder-search.js
authorities-detail-modal.js Bug 34180: Template variable in JavaScript prevents authority MARC preview from displaying 2023-07-17 16:26:25 +01:00
authtype.js
automatic_item_modification_by_age.js
background-job-progressbar.js
basket.js
biblio_framework.js
browser.js Bug 28196: Insert searchid in URL correctly, so it doesn't follow the hash 2023-07-18 11:07:42 +01:00
calendar.js
cart.js
cashup_modal.js
catalog.js
cataloging.js
cataloging_additem.js
categories.js
charts.js
checkout_renewals_modal.js
checkouts.js Bug 25023: Claims returned dates not formatted according to dateformat preference 2023-08-29 20:52:28 -10:00
datatables.js Bug 33705: (bug 33066 follow-up) Fix 'configure' button for kohaTable 2023-05-16 11:47:02 +02:00
desk_selection.js
elasticsearch-mappings.js
file-upload.js
funds_sorts.js Bug 33939: Preserve order budget dropdowns and default budget dropdowns seperately 2023-07-18 12:41:46 +01:00
holds.js
ill-availability-partner.js
ill-availability.js
ill-list-table.js Bug 34133: Set default sort on first column (ID) desc 2023-08-07 20:05:46 -10:00
item_search_fields.js
job_progress.js Bug 34364: Fix progress bar progress update 2023-08-21 20:26:30 -10:00
letter.js Bug 33622: Notice content does not show on default tab if TranslateNotices enabled 2023-05-09 11:46:53 -03:00
localcovers.js
mana.js
marc_modification_templates.js
marc_subfields_structure.js Bug 34115: Use a global tab select function for activating Bootstrap tabs based on location hash 2023-08-30 10:16:42 -10:00
members-menu.js
members.js Bug 33684: Make mandatory date fields required when editing a patron 2023-05-10 15:26:27 -03:00
merge-record.js
messaging-preference-form.js
onboarding.js
patron-webcam.js
recalls.js
register_selection.js
resolve_claim_modal.js
restrictiontypes.js
rotating-collections.js
select2.js
serials-toolbar.js
showpredictionpattern.js
sms_providers.js
staff-global.js Bug 34115: Use a global tab select function for activating Bootstrap tabs based on location hash 2023-08-30 10:16:42 -10:00
subscription-add.js
table_filters.js
tools-menu.js
upload-images.js
viewlog.js
xmlControlfield.js Bug 34565: Label mismatch in MARC21 006 and 008 cataloging plugins 2023-08-29 20:45:31 -10:00
z3950_search.js Bug 33655: z39.50 search no longer shows search in progress 2023-05-12 11:22:37 -03:00