Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix mapping of languages to taxonomy terms. #141

Closed
wants to merge 6 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 13 additions & 6 deletions modules/dgi_migrate_foxml_standard_mods/migrations/dgis_nodes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1491,7 +1491,7 @@ process:
- plugin: dgi_migrate.subproperty
property: nodeValue
field_record_cataloging_language:
- <<: *nested_mods_node
- << : *nested_mods_node
query: 'mods:languageOfCataloging[normalize-space()]'
- plugin: callback
callable: iterator_to_array
Expand All @@ -1501,11 +1501,18 @@ process:
- plugin: dgi_migrate.sub_process
process_values: true
values:
_vid:
- plugin: default_value
default_value: language
<<: *generic_term_after
- <<: *generic_term_extract
language_term:
- << : *nested_mods_node
query: 'string(normalize-space(.))'
method: evaluate
- plugin: dgi_migrate.required_entity_lookup
entity_type: taxonomy_term
bundle_key: vid
bundle: language
value_key: name
ignore_case: true
- plugin: dgi_migrate.process.single_extract
index: [ language_term ]
_field_record_change_date_single:
- << : *nested_mods_node
query: 'mods:recordChangeDate[not(@point)]'
Expand Down
Loading