From: Garry Collum Date: Wed, 10 Nov 2021 19:01:44 +0000 (-0500) Subject: LP1950345-Format the Current Hold Groups table in bootstrap opac X-Git-Url: http://git.equinoxoli.org/?p=evergreen-equinox.git;a=commitdiff_plain;h=1b466467109a9013dd3799d69be6e80c968ce433 LP1950345-Format the Current Hold Groups table in bootstrap opac This patch styles the Current Hold Groups table in bootstrap to be consistent with other tables in the bootstrap catalog. It fixes overlappling text in cells. It also fixes the column headings for small screens. Previously the headings on small screens were pulling from the css rules for the holds history table. To test: 1. create a couple of hold groups and add a patron to each group. Make the groups opac visible. 2. login to the opac as the patron to view the holds groups to which the patron belongs. Notice the table style with not margins or padding. 3. make your browser as small as possible to see the incorrect headings. 4. apply the patch. 5. repeat 2 and 3 to view the fix. Signed-off-by: Garry Collum Signed-off-by: Gina Monti Signed-off-by: Jane Sandberg --- diff --git a/Open-ILS/src/templates-bootstrap/opac/css/mediaQuery.css.tt2 b/Open-ILS/src/templates-bootstrap/opac/css/mediaQuery.css.tt2 index 56bea56..e8db387 100644 --- a/Open-ILS/src/templates-bootstrap/opac/css/mediaQuery.css.tt2 +++ b/Open-ILS/src/templates-bootstrap/opac/css/mediaQuery.css.tt2 @@ -609,10 +609,10 @@ only screen and (max-width: 650px) { border-bottom: none; } /* Force table to not be like tables anymore */ - table#acct_checked_main_header thead tr th, table#acct_holds_main_header thead tr th, table#acct_checked_hist_header thead tr th, table#acct_holds_hist_header thead tr th, table#ebook_circs_main_table thead tr th, table#ebook_holds_main_table thead tr th { + table#acct_checked_main_header thead tr th, table#acct_holds_main_header thead tr th, table#acct_checked_hist_header thead tr th, table#acct_holds_groups_header thead tr th, table#acct_holds_hist_header thead tr th, table#ebook_circs_main_table thead tr th, table#ebook_holds_main_table thead tr th { display: none; } - table#acct_checked_main_header tbody tr td, table#acct_holds_main_header tbody tr td, table#acct_checked_hist_header tbody tr td, table#acct_holds_hist_header tbody tr td, table#ebook_circs_main_table tbody tr td, table#ebook_holds_main_table tbody tr td { + table#acct_checked_main_header tbody tr td, table#acct_holds_main_header tbody tr td, table#acct_checked_hist_header tbody tr td, table#acct_holds_groups_header tbody tr td, table#acct_holds_hist_header tbody tr td, table#ebook_circs_main_table tbody tr td, table#ebook_holds_main_table tbody tr td { display: block; } @@ -627,7 +627,7 @@ only screen and (max-width: 650px) { [% END -%] }*/ - table#acct_checked_main_header, table#acct_holds_main_header, table#acct_checked_hist_header, table#acct_holds_hist_header, table#ebook_circs_main_table, table#ebook_holds_main_table { + table#acct_checked_main_header, table#acct_holds_main_header, table#acct_checked_hist_header, table#acct_holds_groups_header, table#acct_holds_hist_header, table#ebook_circs_main_table, table#ebook_holds_main_table { width: 90%; } @@ -640,9 +640,10 @@ only screen and (max-width: 650px) { here. */ table#ebook_circs_main_table tr, table#ebook_holds_main_table tr { border-top: 25px solid #fff; } + table#acct_holds_groups_header tr{ border-top: 2px solid #bbb; } table#acct_holds_hist_header tr{ border-top: 2px solid #bbb; } - table#acct_checked_main_header td, table#acct_holds_main_header td, table#acct_checked_hist_header td, table#acct_holds_hist_header td, table#ebook_circs_main_table td, table#ebook_holds_main_table td { + table#acct_checked_main_header td, table#acct_holds_main_header td, table#acct_checked_hist_header td, table#acct_holds_groups_header td, table#acct_holds_hist_header td, table#ebook_circs_main_table td, table#ebook_holds_main_table td { /* Behave like a "row" */ border: none; border-bottom: 1px solid #eee; @@ -654,7 +655,7 @@ only screen and (max-width: 650px) { [% END -%] } - table#acct_checked_main_header td:before, table#acct_holds_main_header td:before, table#acct_checked_hist_header td:before, table#acct_holds_hist_header td:before, table#ebook_circs_main_table td:before, table#ebook_holds_main_table td:before { + table#acct_checked_main_header td:before, table#acct_holds_main_header td:before, table#acct_checked_hist_header td:before, table#acct_holds_groups_header td:before, table#acct_holds_hist_header td:before, table#ebook_circs_main_table td:before, table#ebook_holds_main_table td:before { /* Now like a table header */ position: absolute; /* Top/left values mimic padding */ @@ -698,6 +699,10 @@ only screen and (max-width: 650px) { table#acct_holds_main_header td:nth-of-type(7):before { content: "[% l('Status') %]"; } table#acct_holds_main_header td.hold_notes:before { content: "[% l('Notes') %]"; } + table#acct_holds_groups_header td:nth-of-type(1):before { content: "[% l('Group Name') %]";} + table#acct_holds_groups_header td:nth-of-type(2):before { content: "[% l('Description') %]"; } + table#acct_holds_groups_header td:nth-of-type(3):before { content: "[% l('Actions') %]"; } + table#acct_holds_hist_header td:nth-of-type(1):before { content: "[% l('Cover') %]";} table#acct_holds_hist_header td:nth-of-type(2):before { content: "[% l('Title') %]"; } table#acct_holds_hist_header td:nth-of-type(3):before { content: "[% l('Author') %]"; } diff --git a/Open-ILS/src/templates-bootstrap/opac/myopac/hold_subscriptions.tt2 b/Open-ILS/src/templates-bootstrap/opac/myopac/hold_subscriptions.tt2 index d5d6c07..2a4b383 100644 --- a/Open-ILS/src/templates-bootstrap/opac/myopac/hold_subscriptions.tt2 +++ b/Open-ILS/src/templates-bootstrap/opac/myopac/hold_subscriptions.tt2 @@ -8,8 +8,8 @@ %]
+

[% l("Current Hold Groups") %]

- [% l("Current Hold Groups") %] [% l('Export List') %] @@ -22,10 +22,10 @@ [% l('No subscriptions found.') %]
[% ELSE %] - +
- +
[% l('Name') %][% l('Group Name') %] [% l('Description') %] [% l('Actions') %]