From 88a23dfc20ada36eeb12d2a9d8450e480f5847cc Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 5 Jun 2025 10:54:14 +0100 Subject: [PATCH] Bug 40080: Fix search position on course reserves page This patch corrects the position of the table search box on the course reserves details pages by warpping the presented table in a 'rows' class div. We also update the search box dom configuration in the datatable itself to match that of other opac tables. Test plan 1) Add some course reserves to a course 2) View that course on the OPAC 3) Note that the search box for the table is aligned to the top of the main section of the page and over to the far right almost off screen. 4) Apply this patch 5) Confirm that the display of the search box is now nested just above the table in the same location as the course reserves list page Signed-off-by: David Nind Signed-off-by: Lucas Gass (cherry picked from commit 32242f438ab57459ff19b3a92b322a12b75cd4cf) Signed-off-by: Paul Derscheid (cherry picked from commit d0dc3ffd71462d6d6b0b2fc1ea5b9c9e97d5350f) Signed-off-by: Fridolin Somers --- .../opac-tmpl/bootstrap/en/modules/opac-course-details.tt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-details.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-details.tt index de5c507244..c04664ab21 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-details.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-details.tt @@ -57,6 +57,7 @@ [% IF ( course_reserves ) %] +
@@ -109,6 +110,7 @@ [% END %]
Courses
+
[% ELSE %]
@@ -128,7 +130,7 @@ $(document).ready(function() { table_settings = [% TablesSettings.GetTableSettings( 'opac', 'course_items', 'course-items-table', 'json' ) | $raw %]; KohaTable("#course-items-table", { - "dom": '<"top"<"table_controls"f>>t', + "dom": '<"top"<"table_controls"f>>rt<"clear">', "sorting": [[ 1, "asc" ]], "language": { "search": "_INPUT_",