From 4f80c8805bea2fbe6dde7cd2283a99ce8efad4f4 Mon Sep 17 00:00:00 2001 From: Shana Moore Date: Wed, 6 Dec 2023 11:44:41 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=81=20add=20video=20embedding=20to=20E?= =?UTF-8?q?TD=20work=20type?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit addd video embedding to ETD work type Issue: - https://github.com/scientist-softserv/palni-palci/issues/911 --- app/forms/hyrax/etd_form.rb | 1 + app/models/etd.rb | 1 + 2 files changed, 2 insertions(+) diff --git a/app/forms/hyrax/etd_form.rb b/app/forms/hyrax/etd_form.rb index 1bfc55e89..0f6ab3193 100644 --- a/app/forms/hyrax/etd_form.rb +++ b/app/forms/hyrax/etd_form.rb @@ -7,6 +7,7 @@ class EtdForm < Hyrax::Forms::WorkForm self.model_class = ::Etd include HydraEditor::Form::Permissions include PdfFormBehavior + include VideoEmbedFormBehavior self.terms = [:admin_note] + self.terms # rubocop:disable Style/RedundantSelf self.terms += [ diff --git a/app/models/etd.rb b/app/models/etd.rb index 31cd5683f..de04f16d2 100644 --- a/app/models/etd.rb +++ b/app/models/etd.rb @@ -12,6 +12,7 @@ class Etd < ActiveFedora::Base pdf_splitter_service: IiifPrint::TenantConfig::PdfSplitter ) include PdfBehavior + include VideoEmbedBehavior self.indexer = EtdIndexer # Change this to restrict which works can be added as a child.