-
Notifications
You must be signed in to change notification settings - Fork 0
Home
jbuckle edited this page Sep 12, 2013
·
28 revisions
Welcome to the drs-sufia-app wiki!
- Using Modernizr with Rails
- jQuery XML Editor
- Hydra Access Controls -
hydra-access-controls/lib/hydra/datastream
- Lesson: indexing hydra rights metadata into solr
- Custom Validations. We'll need these for all of our data streams, probably.
- Validation without ActiveRecord. Important for us.
- Creating a noid -
@batch_noid = Sufia::Noid.noidify(Sufia::IdService.mint)
- Use this to write a basic pre-push hook that will only allow you to push your changes if you've got a fully passing test suite: http://lostechies.com/jasonmeridth/2009/09/10/git-local-pre-commit-hook/ Note that you'll need Git 1.8.2 or later to use this.
- Relevant to Departments.
Loading development environment (Rails 3.2.13)
irb(main):001:0> a = NuCollection.new(pid: 'neu:1', identifier: 'neu:1', title: 'Root Collection')
=> #<NuCollection pid:"neu:1", nu_title:["Root Collection"], nu_description:[""], nu_identifier:["neu:1"], depositor:nil>
irb(main):002:0> a.rightsMetadata.permissions({group: 'public'}, 'read')
=> "read"
irb(main):003:0> a.rightsMetadata.permissions({person: "dev_email_account_here"}, 'edit')
=> "edit"
irb(main):004:0> a.save!
=> true