Sha256: 48a2e77eae2fe18bed5ee16000a52fb26eee8361a5d4d85a9943c2b7102ef161

Contents?: true

Size: 1.41 KB

Versions: 11

Compression:

Stored size: 1.41 KB

Contents

# Copyright © 2012 The Pennsylvania State University
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

require "hydra"

if Hydra.respond_to?(:configure)
  Hydra.configure(:shared) do |config|

    # This specifies the solr field names of permissions-related fields.
    # You only need to change these values if you've indexed permissions by some means other than the Hydra's built-in tooling.
    # If you change these, you must also update the permissions request handler in your solrconfig.xml to return those values
    config[:permissions] = {
      :catchall => "access_t",
      :discover => {:group =>"discover_access_group_t", :individual=>"discover_access_person_t"},
      :read => {:group =>"read_access_group_t", :individual=>"read_access_person_t"},
      :edit => {:group =>"edit_access_group_t", :individual=>"edit_access_person_t"},
      :owner => "depositor_t",
      :embargo_release_date => "embargo_release_date_dt"
    }
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
sufia-0.1.0 lib/generators/sufia/templates/config/hydra_config.rb
sufia-0.0.8 lib/generators/sufia/templates/config/hydra_config.rb
sufia-0.0.7 lib/generators/sufia/templates/config/hydra_config.rb
sufia-0.0.6 lib/generators/sufia/templates/config/hydra_config.rb
sufia-0.0.5 lib/generators/sufia/templates/config/hydra_config.rb
sufia-0.0.4 lib/generators/sufia/templates/config/hydra_config.rb
sufia-0.0.3 lib/generators/sufia/templates/config/hydra_config.rb
sufia-0.0.2 lib/generators/sufia/templates/config/hydra_config.rb
sufia-0.0.1 lib/generators/sufia/templates/config/hydra_config.rb
sufia-0.0.1.pre2 lib/generators/sufia/templates/config/hydra_config.rb
sufia-0.0.1.pre1 lib/generators/sufia/templates/config/hydra_config.rb