Bug 22816: OPAC detail holdings table should now look a bit better
authorLiz Rea <wizzyrea@gmail.com>
Wed, 1 May 2019 00:31:15 +0000 (00:31 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Tue, 7 May 2019 11:41:09 +0000 (11:41 +0000)
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 <bin.wen@inlibro.com>
Signed-off-by: arthur <arthur.bousquet@inlibro.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt

index 7d25cde..fcd08c5 100644 (file)
                 { "targets": [ -1 ], "sortable": false, "searchable": false },
                 { "type": "title-string", "targets" : [ "title-string" ] }
                 ],
-            "bKohaColumnsUseNames": true
+            "bKohaColumnsUseNames": true,
+            "autoWidth": false
         }, columns_settings);
 
         KohaTable("#otherholdingst", {
                 { "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 %];