|
@@ -78,15 +78,23 @@ class D6EdlpTaxonomyTermEntree extends DrupalSqlBase {
|
|
$description = $query->execute()
|
|
$description = $query->execute()
|
|
->fetchField();
|
|
->fetchField();
|
|
// drush_print_r($node);
|
|
// drush_print_r($node);
|
|
|
|
+ // empty enties to keep migrate
|
|
|
|
+ $empty_entries = array(267, 291, 309, 310);
|
|
|
|
+
|
|
|
|
+ if($description == "" && in_array($row->getSourceProperty('tid'), $empty_entries)){
|
|
|
|
+ $description = "a remplir";
|
|
|
|
+ }
|
|
|
|
+
|
|
$row->setSourceProperty('description', $description);
|
|
$row->setSourceProperty('description', $description);
|
|
|
|
|
|
- // TODO : get the node type page:notice from source and add it to notice field
|
|
|
|
|
|
+ // get the node type page:notice from source and add it to notice field
|
|
// find node attached to this term for description
|
|
// find node attached to this term for description
|
|
// get all notice
|
|
// get all notice
|
|
$query = $this->select('term_node', 'tn');
|
|
$query = $this->select('term_node', 'tn');
|
|
$query->condition('tn.tid', 8 ); // page type notice tid
|
|
$query->condition('tn.tid', 8 ); // page type notice tid
|
|
$query->addField('tn', 'nid');
|
|
$query->addField('tn', 'nid');
|
|
$notices_nids = $query->execute()->fetchCol();
|
|
$notices_nids = $query->execute()->fetchCol();
|
|
|
|
+
|
|
// get all nodes taged with the current entree
|
|
// get all nodes taged with the current entree
|
|
$query = $this->select('term_node', 'tn');
|
|
$query = $this->select('term_node', 'tn');
|
|
$query->condition('tn.tid', $row->getSourceProperty('tid'));
|
|
$query->condition('tn.tid', $row->getSourceProperty('tid'));
|