From 32761305d3064cea7da31447e045c4989fdf3c26 Mon Sep 17 00:00:00 2001 From: Liz Rea Date: Wed, 1 May 2019 00:31:15 +0000 Subject: [PATCH] Bug 22816: OPAC detail holdings table should now look a bit better This patch sets the "autowidth" option to "false" for the OPAC holdings DataTable on opac-detail.pl. This gives the table a fluid width rather than having the width be "hard-coded" by DataTables upon first page render. To test, apply the patch and view the detail page for a bibliographic record with some items. Under the "Holdings" tab, the table of holdings should fill the width of the tab container. Resize the browser window and confirm that the table width adjusts accordingly. Signed-off-by: Bin Wen Signed-off-by: arthur Signed-off-by: Chris Cormack Signed-off-by: Nick Clemens (cherry picked from commit 604c7b818b63b93c66bb751ceb9d99bc1c109be9) Signed-off-by: Martin Renvoize --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt index 997d3cd186..7f6af69bfa 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt @@ -1445,7 +1445,8 @@ { "targets": [ -1 ], "sortable": false, "searchable": false }, { "type": "title-string", "targets" : [ "title-string" ] } ], - "bKohaColumnsUseNames": true + "bKohaColumnsUseNames": true, + "autoWidth": false }, columns_settings); KohaTable("#otherholdingst", { @@ -1454,7 +1455,8 @@ { "targets": [ -1 ], "sortable": false, "searchable": false }, { "type": "title-string", "targets" : [ "title-string" ] } ], - "bKohaColumnsUseNames": true + "bKohaColumnsUseNames": true, + "autoWidth": false }, columns_settings); var serial_column_settings = [% ColumnsSettings.GetColumns( 'opac', 'biblio-detail', 'subscriptionst', 'json' ) | $raw %]; -- 2.39.2