From d194215dfeb9a2aae8fb17f25104f7b16dd73e82 Mon Sep 17 00:00:00 2001 From: Jan Kissig Date: Mon, 8 Jun 2026 20:53:23 +0000 Subject: [PATCH] Bug 42291: (follow-up) Move remaining JS to non TT script block This removes all TT interpolations from the build_dropdown function and moves it to the non TT script block. To test: a) create several private or public lists via /cgi-bin/koha/virtualshelves/shelves.pl b) either the number of private or public list should be > 10 to c) add some items to a list d) on this lists content site click 'Add to' to open drop down menu e) the menu should offer up to 10 private or 10 public list options and a [ more lists ] option Signed-off-by: Jonathan Druart Signed-off-by: Pedro Amorim --- .../prog/en/modules/virtualshelves/shelves.tt | 81 ++++++++++--------- 1 file changed, 43 insertions(+), 38 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt index 6e01eb6d27..f8e6d5a04b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt @@ -2,6 +2,7 @@ [% USE AdditionalContents %] [% USE Asset %] [% USE Koha %] +[% USE To %] [% USE KohaDates %] [% USE AuthorisedValues %] [% USE Branches %] @@ -681,44 +682,8 @@ [% END %] [% IF shelf AND op == 'view' %] - function build_dropdown(){ - var param1 = "|