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

Evergreen Git git at git.evergreen-ils.org
Tue Jul 24 23:31:19 EDT 2018


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  a43c37d6a404a841f3f811419929d7543ec1ef9e (commit)
       via  0b62a39e3f677347123fd12d6e44bb52d78d274f (commit)
      from  56a59155dc3c8c058345a09855d7626154e0bc53 (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 a43c37d6a404a841f3f811419929d7543ec1ef9e
Author: Dan Wells <dbw2 at calvin.edu>
Date:   Fri Jul 13 14:04:00 2018 -0400

    LP#1777954 Open Electronic Resource Links in New Tab, Part 2
    
    For the same reasons given in the previous commit, let's also open
    resource links in a new tab/window when clicking from the results
    list.
    
    Signed-off-by: Dan Wells <dbw2 at calvin.edu>
    Signed-off-by: Kathy Lussier <klussier at masslnc.org>

diff --git a/Open-ILS/src/templates/opac/parts/result/table.tt2 b/Open-ILS/src/templates/opac/parts/result/table.tt2
index d28e8ec..20da7de 100644
--- a/Open-ILS/src/templates/opac/parts/result/table.tt2
+++ b/Open-ILS/src/templates/opac/parts/result/table.tt2
@@ -322,7 +322,7 @@ END;
                                                                 <td valign='top'>
                                                                     <strong>[% l('Electronic resource') %]</strong>
                                                                 </td>
-                                                                <td><a href="[% uri.href %]" class="uri_link">[% uri.link | html %]</a>[% ' - ' _ uri.note | html IF uri.note %]</td>
+                                                                <td><a href="[% uri.href %]" class="uri_link" target="_blank">[% uri.link | html %]</a>[% ' - ' _ uri.note | html IF uri.note %]</td>
                                                             </tr>
                                                             [% END %]
                                                          [% END %]

commit 0b62a39e3f677347123fd12d6e44bb52d78d274f
Author: Terran McCanna <tmccanna at georgialibraries.org>
Date:   Mon Jun 25 12:15:21 2018 -0400

    LP#1777954 Open Electronic Resource Links in New Tab
    
    Open electronic resources links in new browser tab to accommodate
    for external non-https links that will not otherwise open from the
    web client.
    
    Signed-off-by: Terran McCanna <tmccanna at georgialibraries.org>
    Signed-off-by: Dan Wells <dbw2 at calvin.edu>
    Signed-off-by: Kathy Lussier <klussier at masslnc.org>

diff --git a/Open-ILS/src/templates/opac/parts/record/summary.tt2 b/Open-ILS/src/templates/opac/parts/record/summary.tt2
index 7797c5e..223b0f3 100644
--- a/Open-ILS/src/templates/opac/parts/record/summary.tt2
+++ b/Open-ILS/src/templates/opac/parts/record/summary.tt2
@@ -176,7 +176,7 @@
         FOREACH res IN openurls;
 %]
         <tr>
-            <td class='rdetail_openurl_entry'><a href="[% res.target_url %]">[% res.public_name | html %]</a></td>
+            <td class='rdetail_openurl_entry'><a href="[% res.target_url %]" target="_blank">[% res.public_name | html %]</a></td>
             <td>[% res.target_coverage | html %]
             [%- IF res.target_embargo != '';
                     ' - ';
@@ -203,7 +203,7 @@ IF num_uris > 0;
         [%- ELSE -%]
             <li class="rdetail_uri" property="offers" vocab="http://schema.org/" typeof="Offer">
         [%- END -%]
-        <a href="[% uri.href %]" class="uri_link" property="url">
+        <a href="[% uri.href %]" class="uri_link" property="url" target="_blank">
         [%- IF uri.href != uri.link;
                 '<span property="description">' _ uri.link _ '</span>';
             ELSE;

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

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


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list