Bugzilla – Attachment 182986 Details for
Bug 40080
Course reserves details search appears offscreen
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40080 - Fix search position on course reserves page
Bug-40080---Fix-search-position-on-course-reserves.patch (text/plain), 2.41 KB, created by
Martin Renvoize (ashimema)
on 2025-06-05 10:13:39 UTC
(
hide
)
Description:
Bug 40080 - Fix search position on course reserves page
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2025-06-05 10:13:39 UTC
Size:
2.41 KB
patch
obsolete
>From 31dd06afacec1ba692635e22053268d86ffa38b8 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@openfifth.co.uk> >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 >--- > .../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 1c9056645c2..9af6cc41da1 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 @@ > </div> > > [% IF ( course_reserves ) %] >+ <div class="rows"> > <table id="course-items-table" class="table table-bordered table-striped table-condensed"> > <caption class="sr-only">Courses</caption> > <thead> >@@ -117,6 +118,7 @@ > [% END %] > </tbody> > </table> >+ </div> > [% ELSE %] > <br style="clear:both;" /> > <div class="alert alert-info"> >@@ -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_", >-- >2.49.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 40080
:
182982
|
182986
|
183015
|
183081