Skip to content

Commit

Permalink
Map original work type as other subtype instead of placeholder
Browse files Browse the repository at this point in the history
And update the subtype for "audio - music" so that it does not use a removed more type

Connects to #1199
  • Loading branch information
mjgiarlo authored and jcoyne committed Jun 9, 2021
1 parent 0da6c4d commit fd1823d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/migrate-items
Original file line number Diff line number Diff line change
Expand Up @@ -263,11 +263,11 @@ def build_work_version_attributes(json)
work_type = WORK_TYPE.fetch(json.fetch('item_type'))
subtype = if work_type == 'other'
warn "#{json['druid']} has a work_type of 'other', but Hydrus doesn't specify a subtype. Setting a placeholder."
['placeholder']
[work_type]
elsif json.fetch('item_type') == 'audio - spoken'
['Speech']
elsif json.fetch('item_type') == 'audio - music'
['Musical performance']
['Performance']
end
title = json['title']
unless title
Expand Down

0 comments on commit fd1823d

Please sign in to comment.