breves migration update

Signed-off-by: bachy <git@g-u-i.net>
This commit is contained in:
bachy 2012-10-05 14:15:46 +02:00
parent 6c13226969
commit 2697ba8675

View File

@ -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&eacute;riO P0059)
preg_match('/\(mat&eacute;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];
}