blob: 1bd7001d130569eaf9ccbf62b43f34932bc2fa69 (
plain)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
|
id: programs_offered
label: 'Programs Offered Import'
migration_group: default
source:
plugin: csv
path: '/var/www/CSV/programs_offered.csv'
delimiter: ','
enclosure: '"'
header_row_count: 1
keys:
- id
constants:
file_source: /var/www/programsoffered
file_dest1: 'public://programs_offered_courseware/'
file_dest2: 'public://programs_offered_lessonplan/'
file_dest3: 'public://programs_offered_curriculum/'
file_dest4: 'public://programs_offered_objectives/'
process:
type:
plugin: default_value
default_value: p
source_path1:
-
plugin: skip_on_empty
method: process
source: courseware
-
plugin: concat
delimiter: /
source:
- constants/file_source
- courseware
source_path2:
-
plugin: skip_on_empty
method: process
source: lessonplan
-
plugin: concat
delimiter: /
source:
- constants/file_source
- lessonplan
source_path3:
-
plugin: skip_on_empty
method: process
source: curriculum
-
plugin: concat
delimiter: /
source:
- constants/file_source
- curriculum
source_path4:
-
plugin: skip_on_empty
method: process
source: objectives
-
plugin: concat
delimiter: /
source:
- constants/file_source
- objectives
title: title
body/value: body
body/format:
-
plugin: default_value
default_value: basic_html
field_course_description: descr
field_courseware:
-
plugin: explode
delimiter: '|'
source: courseware
-
plugin: file_import
source: '@source_path1'
destination: constants/file_dest1
field_lesson_plan:
-
plugin: explode
delimiter: '|'
source: lessonplan
-
plugin: file_import
source: '@source_path2'
destination: constants/file_dest2
field_curriculum:
plugin: file_import
source: '@source_path3'
destination: constants/file_dest3
field_objectives:
plugin: file_import
source: '@source_path4'
destination: constants/file_dest4
field_degree:
plugin: entity_lookup
entity: taxonomy_term
bundle: offered_programs
source: programtype
destination:
plugin: 'entity:node'
plugin: 'entity:taxonomy_term'
bundle: p
migration_dependencies:
required: { }
optional: { }
|