|
1 | 1 | <% if ThirdIron.enabled? && @libkey.present? %> |
2 | 2 | <% if @libkey[:pdf_link].present? || @libkey[:html_link].present? %> |
3 | 3 | <% if @libkey[:pdf_link].present? %> |
4 | | - <%= link_to( @libkey[:pdf_link][:text], @libkey[:pdf_link][:link], class: 'button libkey-link', data: { matomo_seen: "Results, LibKey Link Seen", matomo_click: "Results, LibKey Link Engaged, Link: {{getElementText}}", content_piece: @libkey[:pdf_link][:text] } ) %> |
| 4 | + <%= link_to( @libkey[:pdf_link][:text], @libkey[:pdf_link][:link], class: 'button libkey-link', data: { matomo_seen: "Results, LibKey Link Seen, Tab: {{getActiveTabName}}", matomo_click: "Results, LibKey Link Engaged, Link: {{getElementText}}", content_piece: @libkey[:pdf_link][:text] } ) %> |
5 | 5 | <% end %> |
6 | 6 |
|
7 | 7 | <% if @libkey[:html_link].present? %> |
8 | | - <%= link_to( @libkey[:html_link][:text], @libkey[:html_link][:link], class: 'button libkey-link', data: { matomo_seen: "Results, LibKey Link Seen", matomo_click: "Results, LibKey Link Engaged, Link: {{getElementText}}", content_piece: @libkey[:html_link][:text] } ) %> |
| 8 | + <%= link_to( @libkey[:html_link][:text], @libkey[:html_link][:link], class: 'button libkey-link', data: { matomo_seen: "Results, LibKey Link Seen, Tab: {{getActiveTabName}}", matomo_click: "Results, LibKey Link Engaged, Link: {{getElementText}}", content_piece: @libkey[:html_link][:text] } ) %> |
9 | 9 | <% end %> |
10 | 10 |
|
11 | 11 | <%# If we don't have direct links, fall back to best_integrator_link. This allows for things like Article Galaxy links %> |
12 | 12 | <% elsif @libkey[:best_integrator_link].present? %> |
13 | | - <%= link_to( @libkey[:best_integrator_link][:text], @libkey[:best_integrator_link][:link], class: 'button libkey-link', data: { matomo_seen: "Results, LibKey Link Seen", matomo_click: "Results, LibKey Link Engaged, Link: {{getElementText}}", content_piece: @libkey[:best_integrator_link][:text] } ) %> |
| 13 | + <%= link_to( @libkey[:best_integrator_link][:text], @libkey[:best_integrator_link][:link], class: 'button libkey-link', data: { matomo_seen: "Results, LibKey Link Seen, Tab: {{getActiveTabName}}", matomo_click: "Results, LibKey Link Engaged, Link: {{getElementText}}", content_piece: @libkey[:best_integrator_link][:text] } ) %> |
14 | 14 | <% end %> |
15 | 15 |
|
16 | 16 | <%# Display browzine link if available. This should always display if we have it regardless of other links. %> |
17 | 17 | <% if @libkey[:browzine_link].present? %> |
18 | 18 | <div class="libkey-actions"> |
19 | | - <%= link_to @libkey[:browzine_link][:text], @libkey[:browzine_link][:link], class: 'button libkey-link', data: { matomo_seen: "Results, Browzine Link Seen", matomo_click: "Results, Browzine Link Engaged, Link: {{getElementText}}", content_piece: @libkey[:browzine_link][:text] } %> |
| 19 | + <%= link_to @libkey[:browzine_link][:text], @libkey[:browzine_link][:link], class: 'button libkey-link', data: { matomo_seen: "Results, Browzine Link Seen, Tab: {{getActiveTabName}}", matomo_click: "Results, Browzine Link Engaged, Link: {{getElementText}}", content_piece: @libkey[:browzine_link][:text] } %> |
20 | 20 | </div> |
21 | 21 | <% end %> |
22 | 22 |
|
|
0 commit comments