From: Ben Shum Date: Wed, 12 Sep 2012 20:20:56 +0000 (-0400) Subject: TPAC - show total copy count in record summary X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=11076d86a1c5aa26ace142cc8ba7c94ac12f61f1;p=working%2FEvergreen.git 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 --- 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 %]