+ <% if data.nil? %>
+ <% unless empty_mode == 'silent' %>
+
+
+ No BIP! Scholar profile found for this ORCID.
+ <%= link_to "Learn more ↗", "https://bip.imsi.athenarc.gr/scholar", target: "_blank", rel: "noopener" %>
+
+ <% end %>
+ <% else %>
+ <%
+ wt = parse_work_types(data)
+ pct = data.dig('openness', 'open_percentage') ? "#{data['openness']['open_percentage'].to_i}%" : "—"
+ age = data['academic_age'] ? "#{data['academic_age']} yrs" : "—"
+ profile_url = "https://bip.imsi.athenarc.gr/scholar/profile/#{CGI.escape(orcid)}"
+
+ stats = [
+ { icon: "file-text-o", value: format_scholar_number(wt[0]), label: "Publications" },
+ { icon: "database", value: format_scholar_number(wt[1]), label: "Datasets" },
+ { icon: "code", value: format_scholar_number(wt[2]), label: "Software" },
+ { icon: "archive", value: format_scholar_number(wt[3]), label: "Other" },
+ { icon: "quote-left", value: format_scholar_number(data['citations_num']), label: "Citations", sep: true },
+ { icon: "fire", value: format_scholar_number(data['popular_works_count']), label: "Popular" },
+ { icon: "university", value: format_scholar_number(data['influential_works_count']), label: "Influential" },
+ { icon: "line-chart", value: format_scholar_number(data['h_index']), label: "h-index" },
+ { icon: "hourglass", value: age, label: "Acad. Age", sep: true },
+ { icon: "unlock-alt", value: pct, label: "Open Access", sep: true }
+ ]
+ %>
+
+ <%= link_to profile_url, target: "_blank", rel: "noopener", class: "bip-scholar-badge#{' bip-scholar-badge--compact' if is_compact}" do %>
+
+ <%= image_tag "bip-minimal.svg", alt: "BIP! Scholar", style: "height: 30px; width: auto; display: block;" %>
+
+
+ <% stats.each do |stat| %>
+
+
+
+ <%= stat[:value] %>
+
+ <% unless is_compact %>
+ <%= stat[:label] %>
+ <% end %>
+
+ <% end %>
+ <% end %>
+ <% end %>
+
\ No newline at end of file
diff --git a/app/views/layouts/_head.html.erb b/app/views/layouts/_head.html.erb
index ef7690b5f..5b83760d8 100644
--- a/app/views/layouts/_head.html.erb
+++ b/app/views/layouts/_head.html.erb
@@ -34,8 +34,4 @@
<% end %>
<%= yield :extra_head if content_for? :extra_head %>
-
- <% if TeSS::Config.feature['trainers'] %>
-
- <% end %>
diff --git a/app/views/trainers/_trainer.html.erb b/app/views/trainers/_trainer.html.erb
index e8cffdf7c..dd2bdb53c 100644
--- a/app/views/trainers/_trainer.html.erb
+++ b/app/views/trainers/_trainer.html.erb
@@ -1,5 +1,5 @@