breves migration update
Signed-off-by: bachy <git@g-u-i.net>
This commit is contained in:
parent
6c13226969
commit
2697ba8675
@ -78,8 +78,8 @@ class MaterioBrevesNodeMigration extends MaterioBasicMigration {
|
|||||||
|
|
||||||
$this->addFieldMapping('field_video_filter', 'video');
|
$this->addFieldMapping('field_video_filter', 'video');
|
||||||
|
|
||||||
$this->addFieldMapping('field_tags_libres', 'tags');
|
// $this->addFieldMapping('field_tags_libres', 'tags');
|
||||||
$this->addFieldMapping('field_tags_libres:create_term')->defaultValue(TRUE);
|
// $this->addFieldMapping('field_tags_libres:create_term')->defaultValue(TRUE);
|
||||||
|
|
||||||
$this->addUnmigratedDestinations(array('revision', 'revision_uid', 'log', 'tnid', 'comment', 'uid', 'path', 'pathauto',
|
$this->addUnmigratedDestinations(array('revision', 'revision_uid', 'log', 'tnid', 'comment', 'uid', 'path', 'pathauto',
|
||||||
'title_field:format',
|
'title_field:format',
|
||||||
@ -97,9 +97,9 @@ class MaterioBrevesNodeMigration extends MaterioBasicMigration {
|
|||||||
|
|
||||||
public function prepareRow($cr){
|
public function prepareRow($cr){
|
||||||
// dsm($cr);
|
// dsm($cr);
|
||||||
print "\n- - - - - - - - \n";
|
// print "\n- - - - - - - - \n";
|
||||||
// print $cr->nid . "\n";
|
// print $cr->nid . "\n";
|
||||||
print $cr->title . "\n";
|
// print $cr->title . "\n";
|
||||||
|
|
||||||
$body = $cr->body;
|
$body = $cr->body;
|
||||||
|
|
||||||
@ -174,7 +174,7 @@ class MaterioBrevesNodeMigration extends MaterioBasicMigration {
|
|||||||
// (matériO P0059)
|
// (matériO P0059)
|
||||||
preg_match('/\(matériO\s([^\)]*)\)/', $body, $matches);
|
preg_match('/\(matériO\s([^\)]*)\)/', $body, $matches);
|
||||||
if(count($matches)){
|
if(count($matches)){
|
||||||
print_r($matches);
|
// print_r($matches);
|
||||||
$cr->memo .= "ref materio : ".$matches[1]."\n";
|
$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]
|
//[video:http://www.youtube.com/watch?v=3Fzu2Av6BmE align:center autoplay:1]
|
||||||
preg_match('/\[video:([^\s]*)[^\]]*]/', $body, $matches);
|
preg_match('/\[video:([^\s]*)[^\]]*]/', $body, $matches);
|
||||||
if(count($matches)){
|
if(count($matches)){
|
||||||
print_r($matches);
|
// print_r($matches);
|
||||||
$cr->video = $matches[1];
|
$cr->video = $matches[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user