https://github.com/no-reply/hydra-ezid
A Rails engine providing EZID services for Hydra applications
https://github.com/no-reply/hydra-ezid
Last synced: about 1 year ago
JSON representation
A Rails engine providing EZID services for Hydra applications
- Host: GitHub
- URL: https://github.com/no-reply/hydra-ezid
- Owner: no-reply
- License: apache-2.0
- Created: 2013-08-06T21:58:22.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2013-08-09T20:12:38.000Z (almost 13 years ago)
- Last Synced: 2025-06-22T11:08:07.392Z (about 1 year ago)
- Language: Ruby
- Size: 107 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: History.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Hydra::Ezid [](http://badge.fury.io/rb/hydra-ezid) [](https://travis-ci.org/psu-stewardship/hydra-ezid) [](https://gemnasium.com/psu-stewardship/hydra-ezid)
A Rails engine providing EZID services for Hydra applications
## Installation
Add this line to your application's Gemfile:
gem 'hydra-ezid'
And then execute:
$ bundle
Or install it yourself as:
$ gem install hydra-ezid
## Usage
### Make your Models Ezid-able
Add `include Hydra::Ezid::ModelMethods` to the models you want EZIDs for.
Example:
```ruby
class GenericFile < ActiveFedora::Base
include Hydra::Ezid::ModelMethods
ezid_config do
store_doi at: :descMetadata, in: :my_doi
store_ark at: :properties, in: :some_ark
find_creator at: :descMetadata, in: :author
find_title at: :properties
find_publisher at: :properties
find_publication_year at: :descMetadata, in: :pubYear
end
```
## Developers
In order to make modifications to the gem code and run the tests, clone the repository then
```
$ bundle install
$ git submodule init
$ git submodule update
$ rake jetty:config
$ rake jetty:start
$ rake clean
$ rake spec
```
## License
The hydra-ezid source code is freely available under the Apache 2.0 license.
[Read the copyright statement and license](/LICENSE.txt).
## Acknowledgements
This software has been developed by and is brought to you by the Hydra community. Learn more at the [Project Hydra website](http://projecthydra.org)
