-
Notifications
You must be signed in to change notification settings - Fork 2
/
islandora_hocr_media_uses.yml
46 lines (46 loc) · 1.07 KB
/
islandora_hocr_media_uses.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
id: islandora_hocr_media_uses
migration_tags:
- islandora
migration_group: islandora
label: 'Islandora hOCR Media Use(s)'
source:
plugin: embedded_data
data_rows:
- name: hOCR
description: hOCR Derivative Term
url: https://discoverygarden.ca/use#hocr
ids:
url:
type: string
process:
name: name
description: description
field_external_uri: url
_tid_from_name:
- plugin: entity_lookup
ignore_case: true
source: name
entity_type: taxonomy_term
value_key: name
bundle_key: vid
bundle: islandora_media_use
_tid_from_external_url:
- plugin: entity_lookup
ignore_case: true
source: url
entity_type: taxonomy_term
value_key: field_external_uri
bundle_key: vid
bundle: islandora_media_use
tid:
- plugin: null_coalesce
source:
- '@_tid_from_external_url'
- '@_tid_from_name'
- plugin: skip_on_empty
method: process
destination:
plugin: 'entity:taxonomy_term'
default_bundle: islandora_media_use
migration_dependencies:
required: { }