Bug 41564: Tidy kohaTable - admin/marc-overlay-rules.tt

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2026-01-08 11:04:17 +01:00 committed by Lucas Gass
parent 3d24965157
commit 9124479652
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 4 additions and 1 deletions

View File

@ -318,6 +318,10 @@
[% MACRO jsinclude BLOCK %]
[% Asset.js("js/admin-menu.js") | $raw %]
[% INCLUDE 'datatables.inc' %]
<script>
var categories = [% To.json( categories ) | $raw %];
</script>
<script>
$(document).ready(function(){
@ -491,7 +495,6 @@
}
});
var categories = [% To.json( categories ) | $raw %];
// Add * => * to this array of objects, and *reduce* it to one object
// Note: This allows displaying a sorted list of categories later, but we still depend on an object!
categories.unshift({ categorycode: '*', description: '*'});