diff --git a/backend/app/exporters/serializers/mods.rb b/backend/app/exporters/serializers/mods.rb index 98f3b9e68f..ba8b4492c9 100644 --- a/backend/app/exporters/serializers/mods.rb +++ b/backend/app/exporters/serializers/mods.rb @@ -81,7 +81,7 @@ def serialize_mods_inner(mods, xml) xml.temporal term when 'uniform_title' xml.titleInfo term - when 'genre_form', 'style_period' + when 'genre_form', 'style_period', 'technique' xml.genre term when 'occupation' xml.occupation term diff --git a/backend/spec/export_mods_spec.rb b/backend/spec/export_mods_spec.rb index da4e466516..8aa4f0ae20 100644 --- a/backend/spec/export_mods_spec.rb +++ b/backend/spec/export_mods_spec.rb @@ -35,7 +35,8 @@ @subject_person = create(:json_agent_person) - @subjects = (0..5).map { create(:json_subject) } + @subjects = (0..6).map { create(:json_subject) } + @subjects[6]['term_type'] = 'technique' # ensure at least one subject will be of type 'technique' linked_agents = [{ :role => 'creator', @@ -157,7 +158,7 @@ @mods.should have_tag "subject/temporal" => term['term'] when 'uniform_title' @mods.should have_tag "subject/titleInfo" => term['term'] - when 'genre_form', 'style_period' + when 'genre_form', 'style_period', 'technique' @mods.should have_tag "subject/genre" => term['term'] when 'occupation' @mods.should have_tag "subject/occupation" => term['term']