Bootstrap Opac: the display of tables on small screens
Bug #1984269 reported by
Garry Collum
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Fix Released
|
Medium
|
Unassigned | ||
3.9 |
Fix Released
|
Medium
|
Unassigned |
Bug Description
EG 3.9.0
Currently when viewing tables on small screens in the Bootstrap opac the display is rendered vertically with column definitions that are defined in CSS. This causes some oddities, especially for optional/non-used columns such as courses, or parts in the copies' table, for example. If the columns are not defined in CSS then the data does not display on small screens.
A better solution may be to add some generic CSS classes to display the tables vertically that can be used on any table and have the labels for the columns pulled from the table, not defined in CSS.
Changed in evergreen: | |
assignee: | nobody → Garry Collum (gcollum) |
tags: | added: needsrebase |
tags: | added: usability |
Changed in evergreen: | |
milestone: | none → 3.9.1 |
Changed in evergreen: | |
milestone: | 3.9.1 → 3.9.2 |
Changed in evergreen: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in evergreen: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
A proposed patch is at https:/ /git.evergreen- ils.org/ ?p=working/ Evergreen. git;a=shortlog; h=refs/ heads/user/ gcollum/ lp1984269- Bootstrap- opac-display- of-tables- on-small- screens
Most of the functionality to do this was already in the CSS files, I technically just had to add one line to pull content from an attribute.
The proposed patch uses the copy_table.tt2, and results/table.tt2 (displayed by using "Show More Details") as prototypes. Basically a "mobile-title" attribute, just has to be added to any <td> field of the table. <td mobile-title="[% l('Barcode')"%]>
Probably the best test is to search for a bib that has parts, and compare before and after.
Currently for these two tables there is a portion of CSS that displays Copy #1, Copy #2, etc. when viewing the table on a small screen. But the CSS only defines numbers up to 10. This is also refactored in this patch.
Even though it wasn't necessary, I went ahead and edited the duplicate code in both style.css and mediaQuery.css. We probably need another Lauchpad bug pertaining to cleaning up the CSS.