I'm not sure if I'm just missing an option, but I'm having some problems getting the behaviour I want when importing nodes containing taxonomy terms.
Essentially, I have an existing (non free-tagging) vocabulary on the site. The CSV file I'm importing will have some records that are tagged with one or more of these terms, but they may also be tagged with terms that do not exist in this vocabulary.
When I import the data, I want those nodes that have terms contained in the vocabulary to be tagged with those terms, and any terms that do not exist in the vocabulary to simply be ignored. Is this possible using the current D6-rc4 version? (I'm pretty sure it was possible in the D5 module)

Comments

tanoshimi’s picture

Have confirmed that this was possible in D5, under the menu option "How to handle non-existing terms?", where the options could be manually set to:
- Add
- Ignore
- Warn
- Do not import

It seems that in D6 module, the equivalent behaviour is controlled by node_import_check_taxonomy_term(), which automatically does one of the following:
- Add (if vocabulary is free-tagging)
- Do not import (otherwise)
There are no longer the options for warning or ignoring.

I think the additional logic needs to be inserted here, so that if no matching $value is found, rather than just returning FALSE, we check to see if it's ok to ignore no matches:

  else if ($value === '') {
    node_import_input_error(t('Input error: %value is not allowed for %name (not a term or synonym in %vocabulary).', array('%value' => $value, '%name' => $field['title'], '%vocabulary' => $vocab->name)));
    return FALSE;
  }

I'll have a go at rolling a patch if anybody's interested.

JFreed’s picture

Yes im interested in this. I have a column that has terms in for two separate vocabulary so the terms that are in one vocab need to be ignored by the vocab that doesnt contain these terms.

sittard’s picture

Plus 1 for this feature! Did any development ever take place on this?