Understanding Collections Files

Samvera Community Wiki


Understanding Collections Files

Model

The base model is generated into the test app at /app/models/Collections.

The generated model...

Local custom properties are added to the generated Collections model.

Additional collection specific properties are added to app/models/concerns/hyrax/collection_behavior.rb

Controllers & Views

There are 3 controllers:

 

 

When do each of the _list_collections partials get called?

 

 

 

 

app/views/hyrax/collections/_list_collections.html.erb

I think this is intended to list all public collections, but there is not route right now.

app/views/hyrax/my/collections/_list_collections.html.erb

Dashboard → Collections → My Collections

app/views/hyrax/dashboard/collections/_list_collections.html.erb

Dashboard → Collections → All Collections