Skip to content

Commit

Permalink
wip transcripts for Generic Objects
Browse files Browse the repository at this point in the history
  • Loading branch information
mkorcy committed Oct 4, 2023
1 parent 57c56c9 commit 46da182
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ gem 'okcomputer'
gem 'pdf-reader'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.2'
gem 'rmagick', '4.2.4'
gem 'rmagick', '4.2.6'

# Use sqlite3 as the database for Active Record
gem 'sqlite3'
Expand Down
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@ GEM
railties (>= 5.0)
retriable (3.1.2)
rexml (3.2.5)
rmagick (4.2.4)
rmagick (4.2.6)
rsolr (2.5.0)
builder (>= 2.1.2)
faraday (>= 0.9, < 3, != 2.0.0)
Expand Down Expand Up @@ -1026,7 +1026,7 @@ DEPENDENCIES
rails (~> 5.2)
rails-controller-testing
react-rails
rmagick (= 4.2.4)
rmagick (= 4.2.6)
rsolr (>= 1.0)
rspec-rails
rubyzip (>= 1.2.2)
Expand Down
2 changes: 2 additions & 0 deletions app/forms/hyrax/generic_object_form.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
# `rails generate hyrax:work GenericObject`
module Hyrax
class GenericObjectForm < Hyrax::Forms::WorkForm
include Tufts::HasTranscriptForm
self.model_class = ::GenericObject
self.terms += [:transcript_id]
self.terms += Tufts::Terms.shared_terms
Tufts::Terms.remove_terms.each { |term| terms.delete(term) }
self.required_fields = [:title, :displays_in]
Expand Down
2 changes: 1 addition & 1 deletion app/views/hyrax/base/_form_metadata.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<%= render 'form_media', f: f %>
<% if @curation_concern.class.to_s == 'Audio' || @curation_concern.class.to_s == 'Video' %>
<% if @curation_concern.class.to_s == 'Audio' || @curation_concern.class.to_s == 'Video' || @curation_concern.class.to_s == 'GenericObject' %>
<div class="well transcript-selection">
<%= render_edit_field_partial(:transcript_id, f: f) %>
</div>
Expand Down

0 comments on commit 46da182

Please sign in to comment.