Skip to content

Commit

Permalink
Update mobius_work
Browse files Browse the repository at this point in the history
Controller needs to include Hyku behavior
Add more details to mobius work
  • Loading branch information
laritakr committed Mar 15, 2024
1 parent ab7cd6c commit 45edc0b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/hyrax/mobius_works_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ module Hyrax
class MobiusWorksController < ApplicationController
# Adds Hyrax behaviors to the controller.
include Hyrax::WorksControllerBehavior
include Hyku::WorksControllerBehavior
include Hyrax::BreadcrumbsForWorks
self.curation_concern_type = ::MobiusWork

Expand Down
6 changes: 6 additions & 0 deletions app/models/mobius_work.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,10 @@
class MobiusWork < Hyrax::Work
include Hyrax::Schema(:basic_metadata)
include Hyrax::Schema(:mobius_work)
include Hyrax::Schema(:with_pdf_viewer)
include Hyrax::Schema(:with_video_embed)
include Hyrax::ArResource
include Hyrax::NestedWorks

prepend OrderAlready.for(:creator)
end

0 comments on commit 45edc0b

Please sign in to comment.