From d0dc3ffd71462d6d6b0b2fc1ea5b9c9e97d5350f 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 --- .../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 1c9056645c..9af6cc41da 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 @@ -60,6 +60,7 @@ [% IF ( course_reserves ) %] +
@@ -117,6 +118,7 @@ [% END %]
Courses
+
[% ELSE %]
@@ -141,7 +143,7 @@ table_settings = [% TablesSettings.GetTableSettings( 'opac', 'course_items', 'course-items-table', 'json' ) | $raw %]; $("#course-items-table").kohaTable( { - dom: '<"top"<"table_controls"f>>t', + dom: '<"top"<"table_controls"f>>rt<"clear">', sorting: [[1, "asc"]], language: { search: "_INPUT_",