LP#1777954 Open Electronic Resource Links in New Tab, Part 2
authorDan Wells <dbw2@calvin.edu>
Fri, 13 Jul 2018 18:04:00 +0000 (14:04 -0400)
committerKathy Lussier <klussier@masslnc.org>
Wed, 25 Jul 2018 03:30:12 +0000 (23:30 -0400)
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@calvin.edu>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/src/templates/opac/parts/result/table.tt2

index d28e8ec..20da7de 100644 (file)
@@ -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 %]