From 382189422eb3e8a8af5984bbe69880aa54d89127 Mon Sep 17 00:00:00 2001 From: "Michael J. Giarlo" Date: Thu, 25 Feb 2021 16:43:03 -0800 Subject: [PATCH] Map original work type as other subtype instead of placeholder And update the subtype for "audio - music" so that it does not use a removed more type Connects to #1199 --- bin/migrate-items | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/migrate-items b/bin/migrate-items index e92ce79fd..7542891bc 100755 --- a/bin/migrate-items +++ b/bin/migrate-items @@ -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