From a62993daa441672b952b74e68c051344cad3fb1c Mon Sep 17 00:00:00 2001 From: Ben Shum Date: Wed, 12 Sep 2012 16:20:56 -0400 Subject: [PATCH] TPAC - show total copy count in record summary Similar to how the Results page shows the number of currently available out of number total (3 of 5 copies available at X), we should do the same in the record display for consistency. Signed-off-by: Ben Shum Signed-off-by: Thomas Berezansky --- Open-ILS/src/templates/opac/parts/record/copy_counts.tt2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/templates/opac/parts/record/copy_counts.tt2 b/Open-ILS/src/templates/opac/parts/record/copy_counts.tt2 index cd5944285f..25a8257e0a 100644 --- a/Open-ILS/src/templates/opac/parts/record/copy_counts.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/copy_counts.tt2 @@ -6,6 +6,7 @@ displayed_ous = {}; WHILE depth < depths; ou_avail = ctx.copy_summary.$depth.available; + ou_count = ctx.copy_summary.$depth.count; ou_id = ctx.copy_summary.$depth.org_unit; cp_org_unit = ctx.get_aou(ou_id); IF cp_org_unit.opac_visible == 'f' AND !ctx.is_staff; @@ -16,7 +17,7 @@ displayed_ous.$ou_name = 1; %]
  • - [% l('[quant,_1,copy,copies] at [_2].', ou_avail, ou_name) | html %] + [% l('[_1] of [quant,_2,copy,copies] at [_3].', ou_avail, ou_count, ou_name) | html %] [%- this_depth = ctx.get_aou(ou_id).ou_type.depth; IF ou_avail > 0 && this_depth != ctx.copy_depth %]