From f2adb7ef5e957cef833b74e12c64e0ad10482545 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Wed, 26 Aug 2020 12:41:47 -0300 Subject: [PATCH] Bug 26262: Remove wrong dom setting in course reserves (OPAC) The current setting required pagination to be displayed. This was hidden probably as a side effect of styling settings. But the docs are clear on the fact that p and l are intended for displaying pagination controls and table rows lenght information [1] As the course reserves datatable is not paginated, this needs to be fixed properly by removing those controls in the configuration. This patch does so. To test: 1. Have some course reserves 2. See them in the OPAC => FAIL: Some funky, misaligned pagination artifacts are displayed 3. Apply this patch and reload => SUCCESS: Things are back to normal! 4. Sign off :-D [1] https://datatables.net/examples/basic_init/dom.html Signed-off-by: Tomas Cohen Arazi Signed-off-by: Owen Leonard --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-reserves.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-reserves.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-reserves.tt index 6149ce11e4..868fcbb195 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-reserves.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-reserves.tt @@ -72,7 +72,7 @@ columns_settings = [% TablesSettings.GetColumns( 'opac', 'biblio-detail', 'course_reserves_table', 'json' ) | $raw %] KohaTable("#course_reserves_table", { - "dom": '<"top"flp>rt<"clear">', + "dom": '<"top"f>rt<"clear">', "sorting": [[ 1, "asc" ]], "autoWidth": false, "asColumnDefs": [ -- 2.11.0