From: Dan Scott Date: Wed, 18 Sep 2013 13:09:20 +0000 (-0400) Subject: Just use a format label in results + pubdate X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=8068d338916e5fe33c02150667351bff4958ec96;p=evergreen%2Fmasslnc.git Just use a format label in results + pubdate Rather than having the format icon, which requires either hovering (not generally available in mobile) or guessing what the strange symbol means, just use the plain text format label. In addition, move the brief pubdate from beside the author name to beside the format label. This avoids confusion if the author name already has birth or death dates beside it, like "Scott, Dan 1972- 2006". He's not dead yet! As a bonus, this enables us to remove one table cell from the search results. Signed-off-by: Dan Scott Signed-off-by: Lebbeous Fogle-Weekley Signed-off-by: Dan Wells --- diff --git a/Open-ILS/src/templates/opac/parts/result/table.tt2 b/Open-ILS/src/templates/opac/parts/result/table.tt2 index ca6939fa52..021ffbe07f 100644 --- a/Open-ILS/src/templates/opac/parts/result/table.tt2 +++ b/Open-ILS/src/templates/opac/parts/result/table.tt2 @@ -45,6 +45,7 @@ [% END %] + l('Display record details for "[_1]"', attrs.title)) %] @@ -72,11 +73,6 @@ END; authorquery = attrs.author | replace('[#"^$\+\-,\.:;&|\[\]()]', ' '); mkurl(ctx.opac_root _ '/results', {qtype => 'author', query => authorquery}, ['page']) -%]">[% attrs.author | html %] - [%- UNLESS CGI.param('detail_record_view') - OR (show_more_details.default == 'true' - OR show_more_details.default == 'hide') - %] [% attrs.pubdate | html %] - [%- END -%] [%- FOR entry IN attrs.graphic_authors; FOR alt IN entry.graphic; @@ -94,6 +90,21 @@ END; -%] +
+ [%- IF attrs.format_label; %] + [% attrs.format_label; %] + [%- END %] + [%- UNLESS CGI.param('detail_record_view') + OR (show_more_details.default == 'true' + OR show_more_details.default == 'hide') + %] ([% attrs.pubdate | html %]) + [%- END -%] +
+ + [% l("Browse in Google Books Search") %] + [% IF args.holdings.size > 0 %] @@ -273,22 +284,6 @@ END; -
- - [% IF attrs.format_icon %] - [% attrs.format_label | html %] - [% END %] - - - - - - - [% l("Browse in Google Books Search") %] - -