Bug 38536

Summary: Patrons requesting modifications: Expand correct panel
Product: Koha Reporter: Owen Leonard <oleonard>
Component: TemplatesAssignee: Owen Leonard <oleonard>
Status: Pushed to oldstable --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: david, fridolin.somers, jonathan.druart, wainuiwitikapark
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Small patch
Documentation contact: Documentation submission:
Text to go in the release notes:
This fixes the panels in the staff interface on the patrons requesting modifications page. The automatic panel expansion was not working as expected: - The first panel should expand by default (when there is no patron selected) - The panel should expand when a patron is selected (when opening from the patron's record) (This is related to the OPAC and staff interface Bootstrap 5 upgrade in Koha 24.11.)
Version(s) released in:
25.05.00,24.11.01
Circulation function:
Bug Depends on: 35402    
Bug Blocks:    
Attachments: Bug 38536: Patrons requesting modifications: Expand correct panel
Bug 38536: Patrons requesting modifications: Expand correct panel
Bug 38536: Patrons requesting modifications: Expand correct panel

Description Owen Leonard 2024-11-26 15:30:20 UTC
We have code for expanding the requested accordion panel on the patrons requesting modifications page which needs to be updated for Bootstrap 5. If no borrowernumber has been passed to the template the first panel should expand by default. If a borrowernumber has been passed, that patron's section should automatically expand.
Comment 1 Owen Leonard 2024-11-26 16:11:55 UTC
Created attachment 174989 [details] [review]
Bug 38536: Patrons requesting modifications: Expand correct panel

This patch updates the JavaScript on the patrons requesting modification
page in order to make it work following the upgrade to Bootstrap 5. The
automatic panel expansion is broken.

To test, apply the patch and enable, if necessary, the OPACPatronDetails
system preference.

- Log in to the OPAC and submit changes to your personal details.
- Do this again as a different user so that there is more than one
  pending request.
- From the staff interface home page, follow the link for "Patrons
  requesting modifications"
- Upon loading, the "Update patron records" page should automatically
  expand the first panel.
- Locate the patron record for the second of the patrons you requested
  updates for.
- From that patron's detail page, follow the "Review pending
  modifications" link.
- The panel containing that patron's information should expand by
  default.

Sponsored-by: Athens County Public Libraries
Comment 2 David Nind 2024-11-26 18:18:11 UTC
Created attachment 174991 [details] [review]
Bug 38536: Patrons requesting modifications: Expand correct panel

This patch updates the JavaScript on the patrons requesting modification
page in order to make it work following the upgrade to Bootstrap 5. The
automatic panel expansion is broken.

To test, apply the patch and enable, if necessary, the OPACPatronDetails
system preference.

- Log in to the OPAC and submit changes to your personal details.
- Do this again as a different user so that there is more than one
  pending request.
- From the staff interface home page, follow the link for "Patrons
  requesting modifications"
- Upon loading, the "Update patron records" page should automatically
  expand the first panel.
- Locate the patron record for the second of the patrons you requested
  updates for.
- From that patron's detail page, follow the "Review pending
  modifications" link.
- The panel containing that patron's information should expand by
  default.

Sponsored-by: Athens County Public Libraries
Signed-off-by: David Nind <david@davidnind.com>
Comment 3 Jonathan Druart 2024-11-27 08:49:59 UTC
Created attachment 175000 [details] [review]
Bug 38536: Patrons requesting modifications: Expand correct panel

This patch updates the JavaScript on the patrons requesting modification
page in order to make it work following the upgrade to Bootstrap 5. The
automatic panel expansion is broken.

To test, apply the patch and enable, if necessary, the OPACPatronDetails
system preference.

- Log in to the OPAC and submit changes to your personal details.
- Do this again as a different user so that there is more than one
  pending request.
- From the staff interface home page, follow the link for "Patrons
  requesting modifications"
- Upon loading, the "Update patron records" page should automatically
  expand the first panel.
- Locate the patron record for the second of the patrons you requested
  updates for.
- From that patron's detail page, follow the "Review pending
  modifications" link.
- The panel containing that patron's information should expand by
  default.

Sponsored-by: Athens County Public Libraries
Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Comment 4 Katrin Fischer 2024-12-03 16:36:30 UTC
Pushed for 25.05!

Well done everyone, thank you!
Comment 5 Paul Derscheid 2024-12-12 13:31:23 UTC
Nice work everyone!

Pushed to 24.11.x for 24.11.01
Comment 6 Wainui Witika-Park 2024-12-17 02:04:01 UTC
Backported to 24.05.x for 24.05.06
Comment 7 Fridolin Somers 2024-12-18 15:52:02 UTC
(In reply to Wainui Witika-Park from comment #6)
> Backported to 24.05.x for 24.05.06

Depends on Bug 35402 not in 24.05.x
You may have to revert.
Comment 8 Wainui Witika-Park 2024-12-19 02:47:10 UTC
(In reply to Fridolin Somers from comment #7)
> (In reply to Wainui Witika-Park from comment #6)
> > Backported to 24.05.x for 24.05.06
> 
> Depends on Bug 35402 not in 24.05.x
> You may have to revert.

Thanks, reverted from 24.05