Bug 33624: Hide the "list" tab if authority is selected
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 11 May 2023 12:35:23 +0000 (14:35 +0200)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 17 May 2023 13:28:24 +0000 (10:28 -0300)
commitc87b1bba1b4cbf38aa47f77383c777e73e0a1ac0
tree5162d2d2f81597219462ed0b8d898607edb3ba2e
parent4ad0e757d8203bdeaaa8a6b084b8e2d7c9bf4efb
Bug 33624: Hide the "list" tab if authority is selected

The "Select a list of records" should only be available for biblio
records. But if the page is accessed using the back button of the
browser it will be displayed for authorities as well.

Test plan:
- Make sure you have at least one template for MARC Modification
- Also make sure you have at least one list of biblio records
- navigate to Cataloging -> Batch record modification
- Check the "Authorities" radio button
- Select your template and continue
- No records were modified -> use your browser's Back button to go back one page
- The "Authorities" radio button should still be selected
=> Without this patch you see the tab "Select a list of records"
=> With this patch applied it's hidden when the page is loaded

Signed-off-by: Phil Ringnalda <phil@chetcolibrary.org>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt