Skip to content

Commit

Permalink
remove map spec; add webarchive seed as an option
Browse files Browse the repository at this point in the history
  • Loading branch information
peetucket committed Mar 16, 2021
1 parent d5bda39 commit a7f2b2e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 79 deletions.
3 changes: 2 additions & 1 deletion app/lib/pre_assembly/digital_object.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ def content_md_creation_style
Cocina::Models::Vocab.manuscript => :simple_book,
Cocina::Models::Vocab.document => :document,
Cocina::Models::Vocab.map => :map,
Cocina::Models::Vocab.three_dimensional => :'3d'
Cocina::Models::Vocab.three_dimensional => :'3d',
Cocina::Models::Vocab.webarchive_seed => :'webarchive-seed'
}.fetch(object_type, content_structure.to_sym)
end

Expand Down
3 changes: 2 additions & 1 deletion app/models/batch_context.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ class BatchContext < ApplicationRecord
'media' => 4,
'3d' => 5,
'document' => 6,
'maps' => 7
'maps' => 7,
'webarchive_seed' => 8
}

enum content_metadata_creation: {
Expand Down
3 changes: 2 additions & 1 deletion app/views/batch_contexts/_new_bc_form.erb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
['File', 'file'],
['Media', 'media'],
['3D', '3d'],
['Map', 'maps']
['Map', 'maps'],
['Webarchive seed', 'webarchive_seed']
]
%>
Expand Down
75 changes: 0 additions & 75 deletions spec/features/map_spec.rb

This file was deleted.

3 changes: 2 additions & 1 deletion spec/models/batch_context_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@
'media' => 4,
'3d' => 5,
'document' => 6,
'maps' => 7
'maps' => 7,
'webarchive_seed' => 8
)
end

Expand Down

0 comments on commit a7f2b2e

Please sign in to comment.