From: Jeff Godin Date: Sat, 17 Nov 2012 02:31:55 +0000 (-0500) Subject: Use display name for preferred lib also X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=8c571856b7f882c9d06d8ed065d8dca08b2329e7;p=evergreen%2Ftadl.git Use display name for preferred lib also Use display name for preferred lib also, not underlying database name. Signed-off-by: Jeff Godin --- diff --git a/templates_tadlskin/opac/parts/record/copy_counts.tt2 b/templates_tadlskin/opac/parts/record/copy_counts.tt2 index ef27009da3..3000c5b2d7 100644 --- a/templates_tadlskin/opac/parts/record/copy_counts.tt2 +++ b/templates_tadlskin/opac/parts/record/copy_counts.tt2 @@ -35,6 +35,10 @@ depth = attrs.plib_copy_counts.size - 1; ou_name = ctx.get_aou(attrs.plib_copy_counts.$depth.org_unit).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; + END; ou_id = attrs.plib_copy_counts.$depth.org_unit; UNLESS depth < 0 || displayed_ous.exists(ou_name); %]