Bug 42094

Summary: Tidy all script tags
Product: Koha Reporter: Jonathan Druart <jonathan.druart>
Component: Architecture, internals, and plumbingAssignee: Jonathan Druart <jonathan.druart>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low    
Version: unspecified   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Comma delimited list of Sponsors:
Crowdfunding goal: 0 Crowdfunding committed: 0
Crowdfunding contact: Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 41324    
Bug Blocks:    

Description Jonathan Druart 2026-03-13 13:56:50 UTC
On bug 41324 we tidy all the script tags that contained a kohaTable. Now we would like to tidy all the remaining script tags.

We will certainly need a comment in the code to flag the script tag that is used to interpolate TT variables into JS variable.

```
<script>
  // Accept TT tags here
  let js_variable = [% perl_variable %];
</script>

<script>
  // Here TT tags are prohibided, and ideally the code must be moved to a separate .js file
  // And we can reuse js_variable
</script>
```