Bug #444
Base.new and Repository.nextid should support custom namespaces
| Status: | New | Start: | 08/07/2009 | |
| Priority: | Normal | Due date: | ||
| Assigned to: | - | % Done: | 0% |
|
| Category: | - | Spent time: | - | |
| Target version: | 2.0 Release: MODS, Nokogiri & better Solr | |||
| Sponsor: |
Description
You should be able to do this
foo = ActiveFedora::Base.new(:namespace=>"mynamespace") => ... foo.pid => mynamespace:1and this
Fedora::Repository.instance.nextpid(:namespace=>"foo") => foo:1
History
Updated by Matt Zumwalt 356 days ago
In the meantime, the ruby_fedora gem does support custom namespaces in pids
myfoo = Fedora::FedoraObject.new(:namespace=>"foo") => ... myfoo.pid => nil Fedora::Repository.instance.save(myfoo) => true myfoo.pid => "foo:1"