|
@@ -78,8 +78,8 @@ class MaterioBrevesNodeMigration extends MaterioBasicMigration {
|
|
|
|
|
|
$this->addFieldMapping('field_video_filter', 'video');
|
|
|
|
|
|
- $this->addFieldMapping('field_tags_libres', 'tags');
|
|
|
- $this->addFieldMapping('field_tags_libres:create_term')->defaultValue(TRUE);
|
|
|
+ // $this->addFieldMapping('field_tags_libres', 'tags');
|
|
|
+ // $this->addFieldMapping('field_tags_libres:create_term')->defaultValue(TRUE);
|
|
|
|
|
|
$this->addUnmigratedDestinations(array('revision', 'revision_uid', 'log', 'tnid', 'comment', 'uid', 'path', 'pathauto',
|
|
|
'title_field:format',
|
|
@@ -97,9 +97,9 @@ class MaterioBrevesNodeMigration extends MaterioBasicMigration {
|
|
|
|
|
|
public function prepareRow($cr){
|
|
|
// dsm($cr);
|
|
|
- print "\n- - - - - - - - \n";
|
|
|
+ // print "\n- - - - - - - - \n";
|
|
|
// print $cr->nid . "\n";
|
|
|
- print $cr->title . "\n";
|
|
|
+ // print $cr->title . "\n";
|
|
|
|
|
|
$body = $cr->body;
|
|
|
|
|
@@ -174,7 +174,7 @@ class MaterioBrevesNodeMigration extends MaterioBasicMigration {
|
|
|
// (matériO P0059)
|
|
|
preg_match('/\(matériO\s([^\)]*)\)/', $body, $matches);
|
|
|
if(count($matches)){
|
|
|
- print_r($matches);
|
|
|
+ // print_r($matches);
|
|
|
$cr->memo .= "ref materio : ".$matches[1]."\n";
|
|
|
}
|
|
|
|
|
@@ -182,7 +182,7 @@ class MaterioBrevesNodeMigration extends MaterioBasicMigration {
|
|
|
//[video:http://www.youtube.com/watch?v=3Fzu2Av6BmE align:center autoplay:1]
|
|
|
preg_match('/\[video:([^\s]*)[^\]]*]/', $body, $matches);
|
|
|
if(count($matches)){
|
|
|
- print_r($matches);
|
|
|
+ // print_r($matches);
|
|
|
$cr->video = $matches[1];
|
|
|
}
|
|
|
|