Skip to content

Commit 43f12b6

Browse files
committed
Add comments
1 parent 6839bf9 commit 43f12b6

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

app/views/thirdiron/browzine.html.erb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
<%# Dedicated Browzine endpoint response for journal records.
2+
Rendered when: A Primo journal result with ISSN triggers a Browzine API lookup via /browzine?issn=X&full_record_url=Y
3+
Use case: Primary fulfillment source for journal articles (via trigger_browzine partial from _result_primo.html.erb)
4+
Returns: Browzine link + optional "Full-text options" button (links to Primo record)
5+
%>
16
<% if ThirdIron.enabled? && @browzine.present? && @browzine[:browzine_link].present? %>
27
<% if @full_record_url.present? %>
38
<%= link_to 'Full-text options', @full_record_url, class: 'button libkey-link', data: { matomo_seen: "Results, Full-text Options Link Seen, Tab: {{getActiveTabName}}", matomo_click: "Results, Full-text Options Link Engaged, Link: {{getElementText}}", content_piece: 'Full-text options' } %>

app/views/thirdiron/libkey.html.erb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@
1313
<%= 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] } ) %>
1414
<% end %>
1515

16+
<%# Browzine link returned as part of LibKey fulfillment response.
17+
Rendered when: LibKey API includes a browzine_link in its response
18+
Use case: Secondary fulfillment option alongside PDF, HTML, or other direct links from LibKey
19+
Note: Different from dedicated browzine.html.erb which is called directly for journals.
20+
LibKey Browzine link appears when looking up DOI/PMID fulfillment (articles, etc.)
21+
%>
1622
<%# Display browzine link if available. This should always display if we have it regardless of other links. %>
1723
<% if @libkey[:browzine_link].present? %>
1824
<div class="libkey-actions">

0 commit comments

Comments
 (0)