diff --git a/app/views/layouts/spotlight/base.html.erb b/app/views/layouts/spotlight/base.html.erb index 751273ab9..3a60d47b6 100644 --- a/app/views/layouts/spotlight/base.html.erb +++ b/app/views/layouts/spotlight/base.html.erb @@ -24,14 +24,11 @@ <%= javascript_include_tag 'leaflet-iiif', "data-turbo-track": "reload", defer: true %> <%= javascript_include_tag 'Leaflet.Editable', "data-turbo-track": "reload", defer: true %> <%= javascript_include_tag 'Path.Drag', "data-turbo-track": "reload", defer: true %> - <%= javascript_include_tag 'openseadragon/openseadragon', "data-turbo-track": "reload", defer: true %> - <%= javascript_include_tag 'openseadragon/jquery', "data-turbo-track": "reload", defer: true %> <% if defined? Importmap %> <%= javascript_importmap_tags %> <% else %> <%= javascript_include_tag "application", "data-turbo-track": "reload", defer: true %> <% end %> - <%= javascript_include_tag 'openseadragon/rails', "data-turbo-track": "reload", defer: true %> <%= csrf_meta_tags %> <%= content_for(:head) %> <% if @document %> diff --git a/lib/spotlight/engine.rb b/lib/spotlight/engine.rb index f4881a666..c4a2757be 100644 --- a/lib/spotlight/engine.rb +++ b/lib/spotlight/engine.rb @@ -62,7 +62,6 @@ class Engine < ::Rails::Engine initializer 'spotlight.assets.precompile' do |app| app.config.assets.paths << Engine.root.join('app/javascript') - app.config.assets.paths << Rails.root.join('node_modules') app.config.assets.precompile += PRECOMPILE_ASSETS end diff --git a/package.json b/package.json index f5aca252d..aed34234f 100644 --- a/package.json +++ b/package.json @@ -39,6 +39,7 @@ "jquery-serializejson": "^3.2.1", "leaflet": "^1.9.4", "leaflet-iiif": "^3.0.0", + "openseadragon-rails": "^1.0.1", "sir-trevor": "^0.8.2", "sortablejs": "^1.15.3" }