]> git.evergreen-ils.org Git - working/Evergreen.git/commit
TPAC: Regular justification of columns in search result
authorDan Scott <dan@coffeecode.net>
Mon, 9 Jan 2012 02:04:37 +0000 (21:04 -0500)
committerDan Wells <dbw2@calvin.edu>
Thu, 19 Jan 2012 19:09:03 +0000 (14:09 -0500)
commit6f81e39a6e4ba459fbfa8f66dcb486803d1b0e16
tree9c7f9807153e173628b12f1d4615040733423a4e
parent13d414e675a1aed945ba9a4ccc2d4421b308b19a
TPAC: Regular justification of columns in search result

The search results page was constituted via a table, enclosing one table
per row for each result, enclosing one further table per result for the
attributes such as call number / publisher / edition that have been
chosen to be displayed in the simple and detailed views.

The column widths for each search result row were being calculated per
result, with the effect that title columns were starting at different
offsets - a rather unpolished effect.

By eliminating the middle table, we can let the widths be determined by
all of the search result rows together, providing a normalized result as
the HTML deities intended.

We also move some inline CSS into style.css.

Note that IE 7, at least, ignores the :nth-child() usage to deliver the
borders; because we no longer wrap the set of rows (including optional
Content Cafe and ChiliFresh rows) in an intermediate table, we had to
switch to a border-top attribute. We could have gone with a straight "tr
> td" approach, but that would have added a line at the top of the first
result, which looked weird. Still an option if one really wants to.

Signed-off-by: Dan Scott <dan@coffeecode.net>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/src/templates/opac/parts/result/table.tt2
Open-ILS/web/css/skin/default/opac/style.css