Skip to content

Commit

Permalink
Updated UNA to use namespaced schema yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Simpson committed Jan 31, 2024
1 parent 8e961ed commit 7b84abc
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/forms/hyrax/una_open_educational_resource_form.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ module Hyrax
class UnaOpenEducationalResourceForm < Hyrax::Forms::WorkForm
include Hyrax::DOI::DataCiteDOIFormBehavior

include ::HykuAddons::Schema::WorkForm
include Hyrax::FormFields(:una_open_educational_resource)
include Hyku::Schema::WorkForm
include Hyku::Schema::Hyrax::FormFields(:una_open_educational_resource)

self.model_class = ::UnaOpenEducationalResource
end
Expand Down
3 changes: 1 addition & 2 deletions app/indexers/una_open_educational_resource_indexer.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
@@ -0,0 +1,8 @@
# frozen_string_literal: true
# Generated via
# `rails generate hyrax:work UnaOpenEducationalResource`
class UnaOpenEducationalResourceIndexer < Hyrax::WorkIndexer
include Hyrax::Indexer(:una_open_educational_resource)
include Hyku::Schema::Hyrax::Indexer(:una_open_educational_resource)
include Hyrax::IndexesBasicMetadata
include Hyrax::IndexesLinkedMetadata
end
2 changes: 1 addition & 1 deletion app/models/una_open_educational_resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class UnaOpenEducationalResource < ActiveFedora::Base
include Hyrax::DOI::DataCiteDOIBehavior

include Hyku::Schema::WorkBase
include Hyrax::Schema(:una_open_educational_resource)
include Hyku::Schema::Hyrax::Schema(:una_open_educational_resource)

# Included after other field definitions
include Hyrax::BasicMetadata
Expand Down
4 changes: 4 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,16 @@ services:
service: web
# command left commented for situations where the Gemfile.lock needs to be updated before the app starts
# command: bash -l -c "sleep infinity"
ports:
- "3000:3000"
environment:
# This line is what makes the knapsack include use the local code instead of the remote gem
- BUNDLE_LOCAL__HYKU_KNAPSACK=/app/samvera
- BUNDLE_DISABLE_LOCAL_BRANCH_CHECK=true
- VIRTUAL_PORT=3000
- VIRTUAL_HOST=.hyku.test
- WORKOS_API_KEY=sk_test_a2V5XzAxR0c3RFJIOURYM0NSNUdCTjU2Q0VCTkVDLFcxUHliQWkzd3lNOFdtZXVRbWVxT3NjNnM
- WORKOS_CLIENT_ID=client_01GG7DRH9KVK3QNX2S6RGWA3CQ

worker:
<<: *app
Expand Down

0 comments on commit 7b84abc

Please sign in to comment.