[open-ils-commits] [GIT] Evergreen ILS branch master updated. 6856c8466fd1839ed2bf8ed67fdcc07dd8bd579f

Evergreen Git git at git.evergreen-ils.org
Tue Aug 18 21:59:34 EDT 2015


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, master has been updated
       via  6856c8466fd1839ed2bf8ed67fdcc07dd8bd579f (commit)
      from  3793dde7e439c43e83bc374b7dae4351c5f1e5fc (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 6856c8466fd1839ed2bf8ed67fdcc07dd8bd579f
Author: Kathy Lussier <klussier at masslnc.org>
Date:   Wed Aug 5 12:50:53 2015 -0400

    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 <klussier at masslnc.org>
    Signed-off-by: Ben Shum <bshum at biblio.org>

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 6e95ae7..eee85e8 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;
     %]
     <li>
-    [% 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 %]
     <a href="[% mkurl('', {copy_depth => this_depth}, ['copy_offset']); %]"
        title="[% l('Show copies at [_1]', ou_name); %]">
        [%- l('(Show)'); %]</a>
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 0000000..b470a38
--- /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." 
+

-----------------------------------------------------------------------

Summary of changes:
 .../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


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list