? 868748-1_term_names.patch
Index: data_taxonomy/data_taxonomy.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/data/data_taxonomy/Attic/data_taxonomy.module,v
retrieving revision 1.1.2.16
diff -u -p -r1.1.2.16 data_taxonomy.module
--- data_taxonomy/data_taxonomy.module	25 Jan 2010 18:10:45 -0000	1.1.2.16
+++ data_taxonomy/data_taxonomy.module	29 Jul 2010 17:29:23 -0000
@@ -66,8 +66,12 @@ function data_taxonomy_feeds_data_proces
     foreach ($info['vocabularies'] as $vid) {
       $vocabulary = taxonomy_vocabulary_load($vid);
       $fields['data_taxonomy:'. $vid] = array(
-        'name' => t('Taxonomy: @vocabulary', array("@vocabulary" => $vocabulary->name)),
-        'description' => t('Map to taxonomy terms of @vocabulary vocabulary.', array("@vocabulary" => $vocabulary->name)),
+        'name' => t('Term ids: @vocabulary', array("@vocabulary" => $vocabulary->name)),
+        'description' => t('Map to term ids to @vocabulary vocabulary.', array("@vocabulary" => $vocabulary->name)),
+      );
+      $fields['data_taxonomy_term:'. $vid] = array(
+        'name' => t('Term names: @vocabulary', array("@vocabulary" => $vocabulary->name)),
+        'description' => t('Map term names to @vocabulary vocabulary.', array("@vocabulary" => $vocabulary->name)),
       );
     }
   }
@@ -85,6 +89,12 @@ function data_taxonomy_data_insert($reco
           db_query("INSERT INTO {data_taxonomy}(id, data_table_name, tid) VALUES(%d, '%s', %d)", $id, $table_name, $tid);
         }
       }
+      if (is_array($record['data_taxonomy_term:'. $vid])) {
+        foreach ($record['data_taxonomy_term:'. $vid] as $tid) {
+          // Look up term, save relation. If term does not exist, create it, then save relation.
+          // Repeat for update hook.
+        }
+      }
     }
   }
 }
