From 7bfd98ae58d0724c598dd1597f4d0623d92f423a Mon Sep 17 00:00:00 2001 From: Jeff Godin Date: Fri, 16 Nov 2012 21:35:40 -0500 Subject: [PATCH] Remove doubled at/in in copy counts Remove doubled at/in in copy counts, since we are using them in the display ou name. Signed-off-by: Jeff Godin --- templates_tadlskin/opac/parts/record/copy_counts.tt2 | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/templates_tadlskin/opac/parts/record/copy_counts.tt2 b/templates_tadlskin/opac/parts/record/copy_counts.tt2 index 3000c5b2d7..6630d515a9 100644 --- a/templates_tadlskin/opac/parts/record/copy_counts.tt2 +++ b/templates_tadlskin/opac/parts/record/copy_counts.tt2 @@ -22,11 +22,11 @@ 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 %] + title="[% l('Show copies [_1]', ou_name); %]"> [%- l('(Show)'); %] [%- END; %]
@@ -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; @@ -44,12 +45,12 @@ %] [%- 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 %] [% + title="[% l('Show copies [_1]', ou_name); %]">[% l('(Show preferred library)'); %]
[%- END %] -- 2.11.0