Bug 42094 - Tidy all script tags
Summary: Tidy all script tags
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Architecture, internals, and plumbing (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low enhancement
Assignee: Jonathan Druart
QA Contact: Testopia
URL:
Keywords:
Depends on: 41324
Blocks:
  Show dependency treegraph
 
Reported: 2026-03-13 13:56 UTC by Jonathan Druart
Modified: 2026-03-13 13:56 UTC (History)
0 users

See Also:
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:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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>
```