Use display name for preferred lib also
authorJeff Godin <jgodin@tadl.org>
Sat, 17 Nov 2012 02:31:55 +0000 (21:31 -0500)
committerJeff Godin <jgodin@tadl.org>
Sat, 17 Nov 2012 02:31:55 +0000 (21:31 -0500)
Use display name for preferred lib also, not underlying database
name.

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

index ef27009..3000c5b 100644 (file)
 
         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);
     %]