This repository has been archived by the owner on May 2, 2018. It is now read-only.
forked from vejlebib/migrate_ding1_ding2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
taxonomy.inc
85 lines (62 loc) · 2.55 KB
/
taxonomy.inc
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
<?php
/**
* Common mappings for the Drupal 6 node migrations.
*/
abstract class DingTermMigration extends DrupalTerm6Migration {
public function __construct(array $arguments) {
$common_arguments = array(
'source_connection' => 'legacy',
'source_version' => 6,
'soft_dependencies' => array('DingUser'),
);
parent::__construct($arguments + $common_arguments);
}
}
class DingNewsCategoryTermMigration extends DingTermMigration {
public function __construct($arguments) {
$arguments = array(
'description' => t('Migration of Category/News Category Terms from Ding1/D6'),
'machine_name' => 'DingNewsCategoryTerm',
'group_name' => 'ding1_group',
'source_vocabulary' => '1', // D6 Vocabulary ID - this may be different on the exact site and needs to be checked.
'destination_vocabulary' => 'news_category', // There is a "category" on a ding2 site, but this is not used. Blog posts in Ding1 correspond to News in Ding2.
);
parent::__construct($arguments);
}
}
class DingEventCategoryTermMigration extends DingTermMigration {
public function __construct($arguments) {
$arguments = array(
'description' => t('Migration of Event Category Terms from Ding1/D6'),
'machine_name' => 'DingEventCategoryTerm',
'group_name' => 'ding1_group',
'source_vocabulary' => '4', // D6 Vocabulary ID - this may be different on the exact site and needs to be checked.
'destination_vocabulary' => 'event_category',
);
parent::__construct($arguments);
}
}
class DingEventTargetTermMigration extends DingTermMigration {
public function __construct($arguments) {
$arguments = array(
'description' => t('Migration of Event Target Terms from Ding1/D6'),
'machine_name' => 'DingEventTargetTerm',
'group_name' => 'ding1_group',
'source_vocabulary' => '5', // D6 Vocabulary ID - this may be different on the exact site and needs to be checked.
'destination_vocabulary' => 'event_target',
);
parent::__construct($arguments);
}
}
class DingTagsTermMigration extends DingTermMigration {
public function __construct($arguments) {
$arguments = array(
'description' => t('Migration of Tags Terms from Ding1/D6'),
'machine_name' => 'DingTagsTerm',
'group_name' => 'ding1_group',
'source_vocabulary' => '2', // D6 Vocabulary ID - this may be different on the exact site and needs to be checked.
'destination_vocabulary' => 'ding_content_tags',
);
parent::__construct($arguments);
}
}