Skip to content

osulibraries/hydra-admin-collections

 
 

Repository files navigation

Hydra::Admin::Collections

TODO: Write a gem description

Installation

Add this line to your application's Gemfile:

gem 'hydra-admin-collections'

And then execute:

$ bundle

Usage

Add to your ActiveFedora models:

    class GenericFile < ActiveFedora::Base
      belongs_to_admin_collection
    end

This gives you a #collection= and #collection methods which hold a Hydra::Admin::Collection

If you want to extend Hydra::Admin::Collection, just create that class and include the behavior module:

   class Hydra::Admin::Collection < ActiveFedora::Base
      include Hydra::Admin::CollectionBehavior
      
      # your code goes here
   end

Testing

Install hydra-jetty and start it up:

  rake jetty:unzip
  rake jetty:start

Generate the test app:

  rake engine_cart:generate

Then run the test suite:

  rake spec

Contributing

Pull requests welcome, but please read CONTRIBUTING.md first.

About

Administrative collections for Hydra

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published