Skip to content

Commit

Permalink
Merge branch 'main' of github.com:scientist-softserv/palni_palci_knap…
Browse files Browse the repository at this point in the history
…sack
  • Loading branch information
orangewolf committed Sep 20, 2024
2 parents 3ff49b0 + ade5dba commit 8b10c1d
Show file tree
Hide file tree
Showing 4 changed files with 11 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
2 changes: 2 additions & 0 deletions ops/staging-deploy.tmpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ extraEnvVars: &envVars
value: "true"
- name: HYKU_ROOT_HOST
value: palni-palci-staging.notch8.cloud
- name: HYKU_SHOW_BACKTRACE
value: "true"
- name: HYRAX_ACTIVE_JOB_QUEUE
value: sidekiq
- name: HYRAX_ANALYTICS
Expand Down

0 comments on commit 8b10c1d

Please sign in to comment.