Sha256: 0d0f48eed84f748a93a76698e3d99682c70555d21c39cc4bf02a2775d870935a
Contents?: true
Size: 1.48 KB
Versions: 1
Compression:
Stored size: 1.48 KB
Contents
require 'hydra/head' require 'active_fedora_relsint' module Cul module Scv module Hydra end module Fedora require 'cul_scv_fedora/url_helper_behavior' require 'cul_scv_fedora/dummy_object' require 'cul_scv_fedora/rubydora_patch' def self.config_path File.join(Rails.root.to_s, 'config', 'fedora.yml') end def self.config ActiveFedora.fedora_config.credentials end def self.connection @connection ||= ActiveFedora::RubydoraConnection.new(ActiveFedora.fedora_config.credentials) end def self.repository @repository ||= begin repo = connection.connection repo.extend(RubydoraPatch) repo end end def self.ds_for_uri(fedora_uri, fake_obj=nil) return nil unless fedora_uri =~ /info\:fedora\/.*/ p = fedora_uri.split('/') return ds_for_opts({pid: p[1], dsid: p[2]}) end def self.ds_for_opts(opts={}, fake_obj=nil) return nil unless opts[:pid] and opts[:dsid] fake_obj = fake_obj.nil? ? DummyObject.new(opts[:pid]) : fake_obj.spawn(opts[:pid]) return (opts[:class] || ::Rubydora::Datastream).new(fake_obj, opts[:dsid]) end end end end require "cul_scv_hydra/access_controls_enforcement" require "cul_scv_hydra/controllers" require "cul_scv_hydra/om" require "cul_scv_hydra/indexer" require "cul_scv_hydra/solrizer" require "cul_scv_hydra/version" require "cul_scv_hydra/engine" if defined? Rails
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cul_scv_hydra-0.14.2 | lib/cul_scv_hydra.rb |