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 <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>
(cherry picked from commit 604c7b818b)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 32761305d3)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Liz Rea 2019-05-01 00:31:15 +00:00 committed by Lucas Gass
parent a0066c9452
commit 2b25d27cc0
1 changed files with 4 additions and 2 deletions

View File

@ -1427,7 +1427,8 @@
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
{ "sType": "title-string", "aTargets" : [ "title-string" ] }
],
"bKohaColumnsUseNames": true
"bKohaColumnsUseNames": true,
"autoWidth": false
}, columns_settings);
KohaTable("#otherholdingst", {
@ -1436,7 +1437,8 @@
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
{ "sType": "title-string", "aTargets" : [ "title-string" ] }
],
"bKohaColumnsUseNames": true
"bKohaColumnsUseNames": true,
"autoWidth": false
}, columns_settings);
var serial_column_settings = [% ColumnsSettings.GetColumns( 'opac', 'biblio-detail', 'subscriptionst', 'json' ) %];