Koha/koha-tmpl/intranet-tmpl/prog/en/modules
Owen Leonard 90b89948f1
Bug 35058: Automatically show authority tab 0 if DefaultAuthorityTab is empty
The change to the authority detail page made by Bug 34075 didn't take
into account the possibility that the DefaultAuthorityTab tab preference
might be empty. This leads to a JavaScript error and no tabs being
shown.

We can avoid this situation by initializing the tab_object variable as
an empty object.

To test, apply the patch and go to Authorities to repeat the test plan
for Bug 34075:

1. Locate and view the detail page for an authority record.
2. The page should default to the 0XX or first tab.
3. Go to Administration -> System preferences and set the
   DefaultAuthorityTab preference to a number that won't be found
   in your authority record (e.g. there are no 3XX tags defined).
4. Return to the detail page and verify that the first tab is displayed.
5. Set DefaultAuthorityTab to 1XX or greater, one that exists in your
   record.
6. Reload the detail page and confirm the correct tab is selected.
7. Test the case where DefaultAuthorityTab is undefined by directly
   updating the database. In koha-testing-docker you can run this
   command:

   echo "update systempreferences set value = 3 where variable = 'DefaultAuthorityTab';" | koha-mysql kohadev

   Return to the authority detail tab to confirm that the first tab is
   displayed.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-10-18 15:41:25 -03:00
..
acqui Bug 34752: Add AV handling to sort1/sort2 on baskets 2023-10-18 10:25:55 -03:00
admin Bug 35032: Remove the use of "onclick" from Koha to MARC mapping template 2023-10-18 10:25:54 -03:00
authorities Bug 35058: Automatically show authority tab 0 if DefaultAuthorityTab is empty 2023-10-18 15:41:25 -03:00
basket Bug 34873: Fix inconsistencies between "Sending your cart/list" headings 2023-10-09 11:41:23 -03:00
batch Bug 33927: Improve translation of title tags: Tools 2023-09-22 10:52:49 -03:00
catalogue Bug 35010: In record checkout history do not show anonymous patron link 2023-10-10 09:22:34 -03:00
cataloguing Bug 3007: Remove unimarc_field_700-4.pl value builder 2023-10-18 15:41:24 -03:00
circ Bug 34910: Do not allow checkout for anonymous patron 2023-10-18 10:25:59 -03:00
clubs Bug 33919: Improve translation of title tags: Patron clubs 2023-09-22 10:52:49 -03:00
course_reserves Bug 34038: Fix incorrect use of __() in .tt and .inc files 2023-09-08 11:54:49 -03:00
erm Bug 33908: Improve translation of title tags: Acquisitions 2023-09-01 11:07:41 -03:00
errors
ill Bug 30719: (QA follow-up) Updating remaining naming 2023-10-17 14:45:23 -03:00
installer Bug 33915: Improve translation of title tags: Installer and onboarding 2023-09-01 11:23:30 -03:00
labels Bug 34453: Update background of quick spine label pop-up 2023-09-22 11:35:48 -03:00
mana
members Bug 34910: (follow-up) alert in patron details 2023-10-18 10:25:59 -03:00
offline_circ Bug 33917: Improve translation of title tags: Offline circulation and patron lists 2023-09-01 11:23:29 -03:00
onboarding Bug 33915: Improve translation of title tags: Installer and onboarding 2023-09-01 11:23:30 -03:00
patron_lists Bug 33917: Improve translation of title tags: Offline circulation and patron lists 2023-09-01 11:23:29 -03:00
patroncards Bug 33918: Improve translation of title tags: Patron card creator 2023-09-22 10:52:48 -03:00
plugins Bug 33921: Improve translation of title tags: Plugins and Point of sale 2023-09-01 11:23:33 -03:00
pos Bug 33921: Improve translation of title tags: Plugins and Point of sale 2023-09-01 11:23:33 -03:00
recalls Bug 34794: Fix typo in recalls_to_pull.tt 2023-09-15 15:50:44 -03:00
reports Bug 29181: Create patron card creator batch from report result 2023-10-18 10:26:02 -03:00
reserve Bug 34457: Added cardnumber view to hold details page 2023-10-09 11:41:17 -03:00
reviews Bug 32910: (follow-up) Replace v4 icon names with v6 2023-06-12 11:52:10 -03:00
rotating_collections Bug 33924: Improve translation of title tags: Rotating collections 2023-09-18 15:31:52 -03:00
serials Bug 34199: Add full title information to subscription detail page 2023-09-22 11:35:46 -03:00
services
suggestion Bug 33426: Add DataTables saveState to suggestion.tt 2023-10-10 10:53:55 -03:00
tags Bug 34079: The phrase "Displaying [all|approved|pending|rejected] terms" was separated 2023-09-12 09:45:06 -03:00
test
tools Bug 26978: Add item type option to batch extend due date tool 2023-10-11 12:13:03 -03:00
virtualshelves Bug 34562: Update more pop-up windows with consistent footer markup 2023-10-09 11:41:25 -03:00
about.tt Bug 27634: (QA follow-up) Add punctuation to message on About page 2023-09-19 16:34:21 -03:00
auth.tt Bug 34028: Show the secret when registering from the auth screen 2023-07-24 14:55:31 -03:00
intranet-main.tt Bug 34288: Allow access to the cataloguing module with tools permission 2023-07-18 12:46:53 -03:00