Browse Source

breves migration update

Signed-off-by: bachy <git@g-u-i.net>
bachy 11 years ago
parent
commit
2697ba8675
1 changed files with 6 additions and 6 deletions
  1. 6 6
      migrate_materio.breves.inc

+ 6 - 6
migrate_materio.breves.inc

@@ -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];
 		}