[open-ils-commits] [GIT] Evergreen ILS branch rel_2_8 updated. 7f420e6ee27e9b1fcd7dc20a2c1f7242567c89e2

Evergreen Git git at git.evergreen-ils.org
Thu Apr 9 21:55:13 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, rel_2_8 has been updated
       via  7f420e6ee27e9b1fcd7dc20a2c1f7242567c89e2 (commit)
      from  390e3e073317c7fa9ecfe626e626f109479a5a92 (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 7f420e6ee27e9b1fcd7dc20a2c1f7242567c89e2
Author: Galen Charlton <gmc at esilibrary.com>
Date:   Tue Mar 31 21:03:14 2015 +0000

    LP#1442260: include unread message count in page title
    
    If a patron is logged in and has at least one unread message,
    the count of unread messages is prepended to the page title
    for all TPAC pages.
    
    Signed-off-by: Galen Charlton <gmc at esilibrary.com>
    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/base.tt2 b/Open-ILS/src/templates/opac/parts/base.tt2
index 540525d..8c24507 100644
--- a/Open-ILS/src/templates/opac/parts/base.tt2
+++ b/Open-ILS/src/templates/opac/parts/base.tt2
@@ -14,7 +14,11 @@
         [%- libname = ctx.get_aou(ctx.search_ou).name;
             libname = libname | html;
             libsname = ctx.get_aou(ctx.search_ou).shortname; %]
-        <title>[% l('[_1] - [_2]', ctx.page_title, libname) %]</title>
+        <title>[%- IF ctx.user_stats.messages.unread;
+                      l('([_1])', ctx.user_stats.messages.unread);
+                   END;
+               -%]
+               [% l('[_1] - [_2]', ctx.page_title, libname) %]</title>
         <link rel="unapi-server" type="application/xml" title="unAPI" href="/opac/extras/unapi" />
         <link type="application/opensearchdescription+xml" rel='search' title="[% l('[_1] OpenSearch', libname) %]" href="/opac/extras/opensearch/1.1/[% libsname | uri %]/-/osd.xml" />
         [%-# Hook for page-specific metadata such as <meta name="robots" content="noindex"> %]

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

Summary of changes:
 Open-ILS/src/templates/opac/parts/base.tt2 |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list