From 6856c8466fd1839ed2bf8ed67fdcc07dd8bd579f Mon Sep 17 00:00:00 2001 From: Kathy Lussier Date: Wed, 5 Aug 2015 12:50:53 -0400 Subject: [PATCH] lp1481844 Change Available Copies Display The Show link in the available copies area of the record summary will now display for any org unit that owns a copy of the title, even if those copies are unavailable. This commit also changes the language in the display to read "x of y copies available at z library." Signed-off-by: Kathy Lussier Signed-off-by: Ben Shum --- .../src/templates/opac/parts/record/copy_counts.tt2 | 5 +++-- .../OPAC/change-available-copies-display.adoc | 11 +++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 docs/RELEASE_NOTES_NEXT/OPAC/change-available-copies-display.adoc 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 6e95ae7980..eee85e8f09 100644 --- a/Open-ILS/src/templates/opac/parts/record/copy_counts.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/copy_counts.tt2 @@ -7,6 +7,7 @@ ou_hiding_disabled = ctx.org_hiding_disabled(); 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); skip_me = !ou_hiding_disabled AND !ctx.org_within_hiding_scope(ou_id); @@ -18,9 +19,9 @@ displayed_ous.$ou_name = 1; %]
  • - [% l('[quant,_1,copy,copies] at [_2].', ou_avail, ou_name) | html %] + [% l('[_1] of [quant,_2,copy,copies] available 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 %] + IF ou_count > 0 && this_depth != ctx.copy_depth %] [%- l('(Show)'); %] diff --git a/docs/RELEASE_NOTES_NEXT/OPAC/change-available-copies-display.adoc b/docs/RELEASE_NOTES_NEXT/OPAC/change-available-copies-display.adoc new file mode 100644 index 0000000000..b470a38635 --- /dev/null +++ b/docs/RELEASE_NOTES_NEXT/OPAC/change-available-copies-display.adoc @@ -0,0 +1,11 @@ +Change to Available Copies Display +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +The _Show_ link in the available copies area of the record summary will now +display for any org unit that owns a copy of a particular title, even if all +those copies are unavailable. The _Show_ link will not display if a) the copy +display is already scoped to that org unit or b) the org unit does not own +copies of the title. + +The language has also been changed to read "x of y copies available at z +library." + -- 2.43.2