--- dadaimc2drupal.orig/operations/articles.batch.inc	2010-11-15 01:09:19.000000000 +0100
+++ dadaimc2drupal/operations/articles.batch.inc	2010-12-26 16:24:29.000000000 +0100
@@ -19,7 +19,7 @@ class dadaImportArticles extends BaseBat
   }
   
   function process($current, $total) {
-    $query = "SELECT objectid, created_datetime, edit_datetime, heading, displayable, modified_timestamp, feature, authorid, summary, body, section FROM articles LIMIT $current, ".$this->step;
+    $query = "SELECT objectid, created_datetime, edit_datetime, heading, displayable, modified_timestamp, feature, authorid, summary, body, section, author FROM articles LIMIT $current, ".$this->step;
     $rsc = $this->dbQuery($query);
     while ($row = mysql_fetch_object($rsc)) {
 /* TODO: import media
@@ -34,8 +34,13 @@ class dadaImportArticles extends BaseBat
         );
       }
 */
+
+      // this is something, maybe only at.imc can use:
+      $node->field_name = check_plain($row->author);
+
       $node = $this->saveArticle($row, "Article");
-      //dadaimc2drupal_register_node_media($node, &$minfo);
+
+      $this->add_media_to_field(&$node, $row->objectid, $row->embedded_media);
       if ((is_object($node))&&($node->nid)) {
         $record = array('objectid' => $row->objectid, 'nid' => $node->nid);
         drupal_write_record('dada_articles', $record);
@@ -44,9 +49,7 @@ class dadaImportArticles extends BaseBat
     }
   }
 
-  /**
-   *
-   */
+
   function add_media(&$article, &$m) {
     if (strncmp('image/', $row->mime_type, 6) === 0) {
       // TODO check files actually exist and do not insert if not
