Remove doubled at/in in copy counts
authorJeff Godin <jgodin@tadl.org>
Sat, 17 Nov 2012 02:35:40 +0000 (21:35 -0500)
committerJeff Godin <jgodin@tadl.org>
Sat, 17 Nov 2012 02:35:40 +0000 (21:35 -0500)
Remove doubled at/in in copy counts, since we are using them in the
display ou name.

Signed-off-by: Jeff Godin <jgodin@tadl.org>
templates_tadlskin/opac/parts/record/copy_counts.tt2

index 3000c5b..6630d51 100644 (file)
             END;
             displayed_ous.$ou_name = 1;
     %]
-    [% l('[quant,_1,copy,copies] at [_2].', ou_avail, ou_name) | html %]
+    [% l('[quant,_1,copy,copies] [_2].', ou_avail, 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); %]">
+       title="[% l('Show copies [_1]', ou_name); %]">
        [%- l('(Show)'); %]</a>
     [%- END; %]
     <br />
@@ -35,6 +35,7 @@
 
         depth = attrs.plib_copy_counts.size - 1;
         ou_name = ctx.get_aou(attrs.plib_copy_counts.$depth.org_unit).name;
+        # TADL hack to override displayed OU name
         ou_shortname = ctx.get_aou(attrs.plib_copy_counts.$depth.org_unit).shortname;
         IF tadlskin.ou_display_names.exists(ou_shortname);
             ou_name = tadlskin.ou_display_names.$ou_shortname;
     %]
     [%- IF attrs.plib_copy_counts.$depth.count > 0; %]
     [%
-        l('[_1] of [quant,_2,copy,copies] available at [_3].',
+        l('[_1] of [quant,_2,copy,copies] available [_3].',
             attrs.plib_copy_counts.$depth.available,
             attrs.plib_copy_counts.$depth.count,
             ou_name) | html
     %] <a href="[% mkurl('', {locg => ou_id}, ['copy_offset']); %]"
-       title="[% l('Show copies at [_1]', ou_name); %]">[%
+       title="[% l('Show copies [_1]', ou_name); %]">[%
        l('(Show preferred library)');
     %]</a><br />
     [%- END %]