I was having trouble creating keywords as taxonomy terms. I think the problem lies in core.inc
$node->taxonomy['tags'][vocab id] is treated as an array when in fact it should be a string.
This worked for me. (Sorry it isn't a patch)
function taxonomy_import_html($profile, &$node, $datadoc = NULL) {
$node->taxonomy = (! empty($node->taxonomy) && is_array($node->taxonomy)) ? $node->taxonomy : array();
$active_vocabs = taxonomy_get_vocabularies($node->type);
if (!$active_vocabs) return;
$freetag_vocab = $profile['freetag_vocab'];
if ($freetag_vocab && !empty($node->keywords)) {
foreach ($node->keywords as $value) {
$node->taxonomy['tags'][$freetag_vocab] .= $value . ',' ;
import_html_debug(
"Found Keyword: $value",
$node->keywords,
WATCHDOG_NOTICE
);
}
}
Comments
Comment #1
alexmc commentedHmmm,
I've given up on doing a patch because the HEAD from CVS is quite different to what I downloaded as the latest packaged 6.x.1.x-dev
Glad to see it is still in development, but I wonder whether I should be using the HEAD, and whether that is still compatible with drupal 6.
Comment #2
dman commentedYou don't want HEAD, that's not used, only at core version branch times.
DRUPAL-6--1 (6.x-1.x-dev) is where it happens.
See here : http://drupalcode.org/viewvc/drupal/contributions/modules/import_html/im...
Yes, dev is active, occasionally. There have been huge file-naming and function-shifting things happen, that's all been in preparation for a D7 branch, but I wanted to do (a lot) of housekeeping before that.