Bug 36621

Summary: provide built-in way to load css/js only for selected URL paths
Product: Koha Reporter: davewood
Component: Plugin architectureAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: paul.derscheid
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description davewood 2024-04-17 11:37:37 UTC
it would be neat to have a built in way of selecting the paths the js/css hooks should be applied on.

as opposed to checking if the current path matches the paths the plugin is supposed to be running in via CGI (`$self->{cgi}->script_name =~ m/addbiblio.pl/`)

ps: especially since the CGI way requires you to initalize `$self->{cgi} = CGI->new` manually (possibly depending on the actual hook that is used)