From 8c571856b7f882c9d06d8ed065d8dca08b2329e7 Mon Sep 17 00:00:00 2001 From: Jeff Godin Date: Fri, 16 Nov 2012 21:31:55 -0500 Subject: [PATCH] Use display name for preferred lib also Use display name for preferred lib also, not underlying database name. Signed-off-by: Jeff Godin --- templates_tadlskin/opac/parts/record/copy_counts.tt2 | 4 ++++ 1 file changed, 4 insertions(+) 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); %] -- 2.11.0