Bug 38293 - Cannot add Specific OPAC JS or CSS
Summary: Cannot add Specific OPAC JS or CSS
Status: Pushed to main
Alias: None
Product: Koha
Classification: Unclassified
Component: System Administration (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: David Cook
QA Contact: Emily Lamancusa (emlam)
URL:
Keywords: regression
Depends on: 35402
Blocks:
  Show dependency treegraph
 
Reported: 2024-10-29 22:58 UTC by David Cook
Modified: 2024-11-14 14:39 UTC (History)
6 users (show)

See Also:
Change sponsored?: ---
Patch complexity: Trivial patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
This fixes adding Specific OPAC JS and Specific OPAC CSS for libraries - you can now add or edit these settings. (This is related to the OPAC and staff interface Bootstrap 5 upgrade in Koha 24.11.)
Version(s) released in:
24.11.00
Circulation function:


Attachments
Bug 38293: Fix setting branch-level JS and CSS (1.57 KB, patch)
2024-10-29 23:09 UTC, David Cook
Details | Diff | Splinter Review
Bug 38293: (alternate) Fix setting branch-level JS and CSS (2.91 KB, patch)
2024-10-29 23:11 UTC, David Cook
Details | Diff | Splinter Review
Bug 38293: (alternate) Fix setting branch-level JS and CSS (2.96 KB, patch)
2024-10-30 10:32 UTC, Owen Leonard
Details | Diff | Splinter Review
Bug 38293: (alternate) Fix setting branch-level JS and CSS (3.01 KB, patch)
2024-10-30 16:31 UTC, David Nind
Details | Diff | Splinter Review
Bug 38293: (alternate) Fix setting branch-level JS and CSS (3.08 KB, patch)
2024-10-30 18:49 UTC, Emily Lamancusa (emlam)
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description David Cook 2024-10-29 22:58:36 UTC
I just noticed in ktd that trying to add Specific OPAC JS or Specific OPAC CSS won't work and causes a Javascript error to appear in the console
Comment 1 David Cook 2024-10-29 23:09:46 UTC
Created attachment 173697 [details] [review]
Bug 38293: Fix setting branch-level JS and CSS

Test plan:
1. Apply the patch
2. Go to http://localhost:8081/cgi-bin/koha/admin/branches.pl?
op=add_form&branchcode=CPL
3. Scroll to bottom of the page and click "Edit" then "Collapse" next to
Specific OPAC JS and Specific OPAC CSS
Comment 2 David Cook 2024-10-29 23:11:37 UTC
Created attachment 173698 [details] [review]
Bug 38293: (alternate) Fix setting branch-level JS and CSS

Test plan:
1. Apply the patch
2. Go to http://localhost:8081/cgi-bin/koha/admin/branches.pl?
op=add_form&branchcode=CPL
3. Scroll to bottom of the page and click "Edit" then "Collapse" next to
Specific OPAC JS and Specific OPAC CSS
Comment 3 David Cook 2024-10-29 23:12:46 UTC
I've got 2 possible fixes here, and copying in Owen as I'm not 100% sure what the right one is.

I think the right one is probably the "alternate", or maybe a variation on the alternate.

Basically, I don't think Bootstrap is involved with these textareas, so I think it was probably just updated by accident. But maybe we should change the attribute from "target" to something else, so it doesn't get confused with a Bootstrap control.
Comment 4 Owen Leonard 2024-10-30 10:32:09 UTC
Created attachment 173707 [details] [review]
Bug 38293: (alternate) Fix setting branch-level JS and CSS

Test plan:
1. Apply the patch
2. Go to http://localhost:8081/cgi-bin/koha/admin/branches.pl?op=add_form&branchcode=CPL
3. Scroll to bottom of the page and click "Edit" then "Collapse" next
   to Specific OPAC JS and Specific OPAC CSS

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Comment 5 Owen Leonard 2024-10-30 10:33:08 UTC
(In reply to David Cook from comment #3)
> Basically, I don't think Bootstrap is involved with these textareas, so I
> think it was probably just updated by accident.

This is correct. Thanks for finding it!
Comment 6 David Nind 2024-10-30 16:31:23 UTC
Created attachment 173726 [details] [review]
Bug 38293: (alternate) Fix setting branch-level JS and CSS

Test plan:
1. Apply the patch
2. Go to http://localhost:8081/cgi-bin/koha/admin/branches.pl?op=add_form&branchcode=CPL
3. Scroll to bottom of the page and click "Edit" then "Collapse" next
   to Specific OPAC JS and Specific OPAC CSS

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: David Nind <david@davidnind.com>
Comment 7 Emily Lamancusa (emlam) 2024-10-30 18:49:45 UTC
Created attachment 173737 [details] [review]
Bug 38293: (alternate) Fix setting branch-level JS and CSS

Test plan:
1. Apply the patch
2. Go to http://localhost:8081/cgi-bin/koha/admin/branches.pl?op=add_form&branchcode=CPL
3. Scroll to bottom of the page and click "Edit" then "Collapse" next
   to Specific OPAC JS and Specific OPAC CSS

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov>
Comment 8 Katrin Fischer 2024-10-31 10:04:10 UTC
Pushed for 24.11!

Well done everyone, thank you!