LP#1433328: Add class attribute to e-resource links in TPAC user/jeffdavis/lp1433328_uri_link_class
authorJeff Davis <jdavis@sitka.bclibraries.ca>
Tue, 17 Mar 2015 21:53:05 +0000 (14:53 -0700)
committerJeff Davis <jdavis@sitka.bclibraries.ca>
Tue, 17 Mar 2015 21:53:05 +0000 (14:53 -0700)
Signed-off-by: Jeff Davis <jdavis@sitka.bclibraries.ca>
Open-ILS/src/templates/opac/parts/record/summary.tt2
Open-ILS/src/templates/opac/parts/result/table.tt2

index 2accfff..ce30c49 100644 (file)
@@ -129,7 +129,7 @@ IF num_uris > 0;
         [%- ELSE -%]
             <li class="rdetail_uri" property="offers" vocab="http://schema.org/" typeof="Offer">
         [%- END -%]
-        <a href="[% uri.href %]" property="url">
+        <a href="[% uri.href %]" class="uri_link" property="url">
         [%- IF uri.href != uri.link;
                 '<span property="description">' _ uri.link _ '</span>';
             ELSE;
index 6cbe41e..659cfd4 100644 (file)
@@ -299,7 +299,7 @@ END;
                                                                 <td valign='top'>
                                                                     <strong>[% l('Electronic resource') %]</strong>
                                                                 </td>
-                                                                <td><a href="[% uri.href %]">[% uri.link | html %]</a>[% ' - ' _ uri.note | html IF uri.note %]</td>
+                                                                <td><a href="[% uri.href %]" class="uri_link">[% uri.link | html %]</a>[% ' - ' _ uri.note | html IF uri.note %]</td>
                                                             </tr>
                                                             [% END %]
                                                             [%- IF args.holdings.size > 0;