Skip to content

Commit

Permalink
Merge pull request #656 from UCLALibrary/default-public-visibility
Browse files Browse the repository at this point in the history
Change default visiblity to 'public'
  • Loading branch information
jendiamond authored Jun 24, 2019
2 parents 17b2428 + 21cbb11 commit 2a90b6b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/importers/californica_mapper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def remote_files

def visibility
value_from_csv = metadata['Visibility']&.squish&.downcase
visibility_mapping.fetch(value_from_csv, Hydra::AccessControls::AccessRight::VISIBILITY_TEXT_VALUE_PRIVATE)
visibility_mapping.fetch(value_from_csv, Hydra::AccessControls::AccessRight::VISIBILITY_TEXT_VALUE_PUBLIC)
end

# The visibility values have different values when
Expand Down
4 changes: 2 additions & 2 deletions spec/importers/californica_mapper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,8 @@
context 'when visibility field is blank' do
let(:metadata) { {} }

it 'defaults to private visibility' do
expect(mapper.visibility).to eq private_vis
it 'defaults to public visibility' do
expect(mapper.visibility).to eq public_vis
end
end

Expand Down

0 comments on commit 2a90b6b

Please sign in to comment.