Skip to content

Commit 22f242c

Browse files
committed
Updating node alter.
1 parent c1672c9 commit 22f242c

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

pcdora.info.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ type: module
33
description: 'Providence College Customizations'
44
core_version_requirement: ^8 || ^9 || ^10
55
package: 'discoverygarden'
6+
dependencies:
7+
- drupal:migrate

src/Plugin/dgi_migrate_alter/spreadsheet/DssiNodeAlter.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use Drupal\dgi_migrate_alter\Plugin\MigrationAlterBase;
66
use Drupal\dgi_migrate_alter\Plugin\MigrationAlterInterface;
7+
use Drupal\Core\Annotation\Translation;
78

89
/**
910
* Alter for dssi_node migration.
@@ -37,18 +38,14 @@ public function alter(array &$migration): void {
3738
'edition',
3839
'issuance',
3940
'frequency',
40-
'date_text',
41+
'date_note',
4142
];
4243

4344
$process['field_origin_information'][2]['values']['field_date_note'] = [
4445
[
4546
'plugin' => 'skip_on_empty',
4647
'method' => 'process',
47-
'source' => 'parent_value/date_text',
48-
],
49-
[
50-
'plugin' => 'dgi_migrate.process.explode',
51-
'delimiter' => '^',
48+
'source' => 'parent_value/date_note',
5249
],
5350
];
5451
}

0 commit comments

Comments
 (0)