From ad400aff46de421b5440f6225f967f5b3d97d54a Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Fri, 20 Dec 2013 11:42:06 -0500 Subject: [PATCH] tpac: context specific / detailed titles in results table Signed-off-by: Bill Erickson --- Open-ILS/src/templates/opac/parts/result/table.tt2 | 24 ++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/Open-ILS/src/templates/opac/parts/result/table.tt2 b/Open-ILS/src/templates/opac/parts/result/table.tt2 index 6d579b519c..a215837da3 100644 --- a/Open-ILS/src/templates/opac/parts/result/table.tt2 +++ b/Open-ILS/src/templates/opac/parts/result/table.tt2 @@ -25,7 +25,7 @@ [% INCLUDE 'opac/parts/result/facets.tt2' %]
- [% FOR rec IN ctx.records; @@ -91,7 +91,7 @@ END; -%] -
+
[%- IF attrs.format_label; %] [% attrs.format_label | html %] [% attrs.format_label; %] [%- END %] @@ -110,7 +110,9 @@ END; class='classic_link hide_me' name="googleBooks-link">[% l("Browse in Google Books Search") %] -
+
[% IF args.holdings.size > 0 %]
@@ -232,7 +234,8 @@ END; %]
- +
@@ -298,6 +301,7 @@ END;
l('Place Hold on [_1]', attrs.title)) %] name="place_hold_link" class="no-dec">[% l('Place Hold') %] @@ -309,11 +313,14 @@ END; %] [% ELSE; operation = ctx.mylist.grep(rec.id).size ? "delete" : "add"; - label = (operation == "add") ? l("Add to my list") : l("Remove from my list"); + label = (operation == "add") ? l("Add to my list") : l("Remove from my list"); + title_label = (operation == "add") ? + l("Add [_1] to my list", attrs.title) : + l("Remove [_1] from my list", attrs.title); href = mkurl(ctx.opac_root _ '/mylist/' _ operation, {record => rec.id, anchor => 'record_' _ rec.id}, 1); %] - + title_label) %]> [% label %] @@ -322,11 +329,12 @@ END; [% IF ENV.OILS_CONTENT_CAFE_USER %] [% ident = attrs.isbn_clean || attrs.upc %] -- 2.11.0
[% l('Library') %] [% l('Shelving location') %]