TPAC - Use entire copy count line as link
authorThomas Berezansky <tsbere@mvlc.org>
Wed, 12 Sep 2012 20:50:12 +0000 (16:50 -0400)
committerThomas Berezansky <tsbere@mvlc.org>
Wed, 12 Sep 2012 20:50:12 +0000 (16:50 -0400)
Instead of showing a little "Show" link, just make the entire line a link.

From context it should be obvious that the link will show those copies.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Open-ILS/src/templates/opac/parts/record/copy_counts.tt2

index 25a8257..288c31b 100644 (file)
             displayed_ous.$ou_name = 1;
     %]
     <li>
-    [% l('[_1] of [quant,_2,copy,copies] at [_3].', ou_avail, ou_count, ou_name) | html %]
     [%- this_depth = ctx.get_aou(ou_id).ou_type.depth;
         IF ou_avail > 0 && this_depth != ctx.copy_depth %]
     <a href="[% mkurl('', {copy_depth => this_depth}, ['copy_offset']); %]"
        title="[% l('Show copies at [_1]', ou_name); %]">
-       [%- l('(Show)'); %]</a>
+    [%- END; %]
+    [% l('[_1] of [quant,_2,copy,copies] at [_3].', ou_avail, ou_count, ou_name) | html %]
+    [%- IF ou_avail > 0 && this_depth != ctx.copy_depth -%]
+       </a>
     [%- END; %]
     </li>
     [%- depth = depth + 1;