Sha256: 6fff4dd8a687413691fe9e0fca8bfdfe2091476bf7c2d5d8e79d869829d97ce6

Contents?: true

Size: 1.26 KB

Versions: 37

Compression:

Stored size: 1.26 KB

Contents

require 'active_support/core_ext/string'
module Hydra
  module Datastream
    # Implements Hydra RightsMetadata XML terminology for asserting access permissions
    class InheritableRightsMetadata < Hydra::Datastream::RightsMetadata    
  
      @terminology = Hydra::Datastream::RightsMetadata.terminology
  
      def to_solr(solr_doc=Hash.new)
        solr_doc[ActiveFedora::SolrService.solr_name('inheritable_discover_access_group', indexer)] = discover_access.machine.group
        solr_doc[ActiveFedora::SolrService.solr_name('inheritable_discover_access_person', indexer)] = discover_access.machine.person
        solr_doc[ActiveFedora::SolrService.solr_name('inheritable_read_access_group', indexer)] = read_access.machine.group
        solr_doc[ActiveFedora::SolrService.solr_name('inheritable_read_access_person', indexer)] = read_access.machine.person
        solr_doc[ActiveFedora::SolrService.solr_name('inheritable_edit_access_group', indexer)] = edit_access.machine.group
        solr_doc[ActiveFedora::SolrService.solr_name('inheritable_edit_access_person', indexer)] = edit_access.machine.person
        solr_doc[ActiveFedora::SolrService.solr_name('inheritable_embargo_release_date', date_indexer)] = embargo_release_date
        return solr_doc
      end
    end
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
hydra-access-controls-6.5.2 lib/hydra/datastream/inheritable_rights_metadata.rb
hydra-access-controls-6.5.1 lib/hydra/datastream/inheritable_rights_metadata.rb
hydra-access-controls-6.4.2 lib/hydra/datastream/inheritable_rights_metadata.rb
hydra-access-controls-6.5.0 lib/hydra/datastream/inheritable_rights_metadata.rb
hydra-access-controls-6.5.0.rc2 lib/hydra/datastream/inheritable_rights_metadata.rb
hydra-access-controls-6.4.1 lib/hydra/datastream/inheritable_rights_metadata.rb
hydra-access-controls-6.4.0 lib/hydra/datastream/inheritable_rights_metadata.rb
hydra-access-controls-6.4.0.rc5 lib/hydra/datastream/inheritable_rights_metadata.rb
hydra-access-controls-6.4.0.rc4 lib/hydra/datastream/inheritable_rights_metadata.rb
hydra-access-controls-6.4.0.rc3 lib/hydra/datastream/inheritable_rights_metadata.rb
hydra-access-controls-6.4.0.rc2 lib/hydra/datastream/inheritable_rights_metadata.rb
hydra-access-controls-6.4.0.rc1 lib/hydra/datastream/inheritable_rights_metadata.rb
hydra-access-controls-6.4.0.pre2 lib/hydra/datastream/inheritable_rights_metadata.rb
hydra-access-controls-6.4.0.pre1 lib/hydra/datastream/inheritable_rights_metadata.rb
hydra-access-controls-6.3.4 lib/hydra/datastream/inheritable_rights_metadata.rb
hydra-access-controls-6.3.3 lib/hydra/datastream/inheritable_rights_metadata.rb
hydra-access-controls-6.3.2 lib/hydra/datastream/inheritable_rights_metadata.rb
hydra-access-controls-6.3.1 lib/hydra/datastream/inheritable_rights_metadata.rb
hydra-access-controls-6.3.0 lib/hydra/datastream/inheritable_rights_metadata.rb
hydra-access-controls-6.3.0.rc1 lib/hydra/datastream/inheritable_rights_metadata.rb