From 91678b6772c773e56faf83f3cece8a4943a5dc76 Mon Sep 17 00:00:00 2001 From: Jeremy Prevost Date: Mon, 19 May 2025 16:55:00 -0400 Subject: [PATCH] DO NOT MERGE: very rough iiif example --- app/views/record/_record.html.erb | 61 ++++++++++++++++++- .../initializers/content_security_policy.rb | 2 +- 2 files changed, 61 insertions(+), 2 deletions(-) diff --git a/app/views/record/_record.html.erb b/app/views/record/_record.html.erb index ce24af22..96598ce8 100644 --- a/app/views/record/_record.html.erb +++ b/app/views/record/_record.html.erb @@ -1,5 +1,5 @@
-
+

Title: <% if @record['title'].present? %> @@ -66,10 +66,69 @@
  • <%= link_to(link['text'] || 'unknown', link['url']) %>
  • + <% if link['kind'] == 'IIIF Manifest' %> + Manefest detected! + + <% content_for :additional_js do %> + + + <% end %> + + <% content_for :additional_meta_tag do %> + + + + <% end %> + +
    + + + <% end %> <% end %> <% end %> + <% if @record['summary'].present? %>

    Summary

    <% @record['summary'].each do |paragraph| %> diff --git a/config/initializers/content_security_policy.rb b/config/initializers/content_security_policy.rb index 23258233..ebcc51c5 100644 --- a/config/initializers/content_security_policy.rb +++ b/config/initializers/content_security_policy.rb @@ -21,5 +21,5 @@ # config.content_security_policy_nonce_directives = %w(script-src style-src) # # Report violations without enforcing the policy. - # config.content_security_policy_report_only = true + config.content_security_policy_report_only = true end