Skip to content

Commit

Permalink
Merge pull request #141 from scientist-softserv/add-bulkrax-metadata-…
Browse files Browse the repository at this point in the history
…to-cdl-resource_redux

pull in changes to cdl without the submodule to gemfile.lock changes
  • Loading branch information
orangewolf authored Sep 20, 2024
2 parents 1eb8eab + 49a9b61 commit ade5dba
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions app/forms/cdl_resource_form.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@
# @see https://github.com/samvera/hyrax/wiki/Hyrax-Valkyrie-Usage-Guide#forms
# @see https://github.com/samvera/valkyrie/wiki/ChangeSets-and-Dirty-Tracking
class CdlResourceForm < Hyrax::Forms::ResourceForm(CdlResource)
# Commented out basic_metadata because these terms were added to cdl_resource so we can customize it.
# include Hyrax::FormFields(:basic_metadata)
include Hyrax::FormFields(:cdl_resource)
include Hyrax::FormFields(:with_pdf_viewer)
include Hyrax::FormFields(:with_video_embed)
include Hyrax::FormFields(:bulkrax_metadata)

# Define custom form fields using the Valkyrie::ChangeSet interface
#
Expand Down
6 changes: 5 additions & 1 deletion app/indexers/cdl_resource_indexer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@
# Generated via
# `rails generate hyrax:work_resource CdlResource`
class CdlResourceIndexer < Hyrax::ValkyrieWorkIndexer
include Hyrax::Indexer(:basic_metadata)
# Commented out basic_metadata because these terms were added to cdl_resource so we can customize it.
# include Hyrax::Indexer(:basic_metadata)
include Hyrax::Indexer(:cdl_resource)
include Hyrax::Indexer(:bulkrax_metadata)
include Hyrax::Indexer(:with_pdf_viewer)
include Hyrax::Indexer(:with_video_embed)

include HykuIndexing

Expand Down
4 changes: 2 additions & 2 deletions lib/tasks/bulkrax.rake
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ namespace :bulkrax do
switch!(account)

begin
Bulkrax::Exporter.all.each do |e|
Bulkrax::Exporter.find_each do |e|
e.update(parser_klass: 'Bulkrax::CsvParser') if e.parser_klass == 'Bulkrax::OerCsvParser' || e.parser_klass == 'Bulkrax::EtdCsvParser'
end
Bulkrax::Importer.all.each do |e|
Bulkrax::Importer.find_each do |e|
e.update(parser_klass: 'Bulkrax::CsvParser') if e.parser_klass == 'Bulkrax::OerCsvParser' || e.parser_klass == 'Bulkrax::EtdCsvParser'
end
puts "=============== finished updating #{account.name} ============"
Expand Down

0 comments on commit ade5dba

Please sign in to comment.