[open-ils-commits] ***SPAM*** [GIT] Evergreen ILS branch rel_2_5 updated. 2a3a99e1d44f14da4944b8f4e9280aeaae4660ab

Evergreen Git git at git.evergreen-ils.org
Thu Oct 30 14:10:23 EDT 2014


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_5 has been updated
       via  2a3a99e1d44f14da4944b8f4e9280aeaae4660ab (commit)
      from  2768e05a785e72c2ea03e1c9672e8017e2bfe85f (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 2a3a99e1d44f14da4944b8f4e9280aeaae4660ab
Author: Dan Scott <dscott at laurentian.ca>
Date:   Tue Oct 21 11:02:12 2014 -0400

    lp1383763 - Display OpenURL embargo statement
    
    The ResolverResolver service fetches the embargo statement (such as
    "Last year not available") from OpenURL resolvers and stores it in a
    target_embargo field. In JSPAC we used to display this along with the
    coverage statement, because it is very important that people know that a
    resource may be available from 1999 but the last year isn't available
    online.
    
    Restore the display of this information to the TPAC.
    
    Signed-off-by: Dan Scott <dscott at laurentian.ca>
    Signed-off-by: Galen Charlton <gmc at esilibrary.com>

diff --git a/Open-ILS/src/templates/opac/parts/record/summary.tt2 b/Open-ILS/src/templates/opac/parts/record/summary.tt2
index 313f3e5..cbc6904 100644
--- a/Open-ILS/src/templates/opac/parts/record/summary.tt2
+++ b/Open-ILS/src/templates/opac/parts/record/summary.tt2
@@ -91,8 +91,14 @@
         FOREACH res IN openurls;
 %]
         <tr>
-            <td class='rdetail_openurl_entry'><a href="[% res.target_url %]">[% res.public_name %]</a></td>
-            <td>[% res.target_coverage %]</td>
+            <td class='rdetail_openurl_entry'><a href="[% res.target_url %]">[% res.public_name | html %]</a></td>
+            <td>[% res.target_coverage | html %]
+            [%- IF res.target_embargo != '';
+                    ' - ';
+                    res.target_embargo | html;
+                END;
+            -%]
+            </td>
         </tr>
     [%- END %]
     </tbody></table>
diff --git a/Open-ILS/src/templates/opac/parts/result/table.tt2 b/Open-ILS/src/templates/opac/parts/result/table.tt2
index b481b5f..bbca7f3 100644
--- a/Open-ILS/src/templates/opac/parts/result/table.tt2
+++ b/Open-ILS/src/templates/opac/parts/result/table.tt2
@@ -175,7 +175,13 @@ END;
                                                                 <strong><a href="[% res.target_url %]">
                                                                 [% res.public_name | html %]</a></strong>
                                                             </td>
-                                                            <td>[% res.target_coverage | html %]</td>
+                                                            <td>[% res.target_coverage | html %]
+                                                            [%- IF res.target_embargo != '';
+                                                                    ' - ';
+                                                                    res.target_embargo | html;
+                                                                END;
+                                                            -%]
+                                                            </td>
                                                         </tr>
                                                                 [% END %]
                                                             [% END %]

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

Summary of changes:
 .../src/templates/opac/parts/record/summary.tt2    |   10 ++++++++--
 Open-ILS/src/templates/opac/parts/result/table.tt2 |    8 +++++++-
 2 files changed, 15 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list