Closed (fixed)
Project:
Taxonomy import/export via XML
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
16 Feb 2007 at 15:02 UTC
Updated:
3 Jul 2007 at 07:34 UTC
Jump to comment: Most recent file
Comments
Comment #1
tom friedhof commentedI created a patch to address this for Drupal 5 at http://drupal.org/node/104402
Comment #2
toologic commentedDepth not worked after patch.
I use revision module 1.3 + taxonomy_xml_drupal5--2.patch
Not stored depth (parent field in thern_hierarchy table sets 0 for all records)
I can`t attach my patched module below for testing. sorry.
Comment #3
summit commentedIs your patch ok for 4.7.6 ?
If so please post after you test the patch, thanks in advance,
greetings,
Martijn
Comment #4
toologic commentedSorry? but not working.
I have a next structure vocabulary in my travel project travelweekly.ru (drupal 4.7.6)
World
-continents
--countries
After export vocabulary "geo" in xml-file i see this structure that stored correctly.
Tag 'parent' for 'australia' has value 4 (as sample)
I have a another project on drupal 5.1 and i want import my vocab in it.
after import - all terms has parent- 0
Patched version attached (please delete .txt extension)
Comment #5
thepanz commentedHi, I'm porting your patches into drupal5 (using HEAD version)...
Can you send me an XML file to recreate your tests for Importing/Exporting?
Bye
-thePanz-
Comment #6
toologic commentedNaturlisch )
Tell me, pls, if your work will be sucess
PS. delete .txt extention
Comment #7
toologic commentedSorry!
Problem is solved.
I make update taxonomy_xml module on my drupal 4.7.6 site on current 4.7.x-1.x-dev version. And make export of my vocabulary again.
New export xml-file not contain LR-CR sequences on the ends tags. This is bad for human readind ;) but better for import.
Next step i import this file in my other Drupal 5.1 site by using combination (your module 4.7.x-1.x-dev + patch ....drupal--2)
All data (voca+ terms and depth, parent parameters loaded correctrly)
Thank for your great works.
And sorry again for my mistakes
Comment #8
summit commentedHi,
Can you please file your 4.7.6. version of Taxonomy_xml with correct working depth feature
It is not working for me. I get the terms, but not on the right depth.
Thanks in advance,
Martijn
Comment #9
summit commentedHi,
Can somebody file a working patch with working Depth for 4.7?
Can you please also file a working example with the right variabels to get the depth working?
Thanks in advance,
Martijn
Comment #10
summit commentedHi,
This is my taxonomy_xml file for drupal 4.7.6
Can someone please file a patch against drupal 4.7
Thanks in advance!
Greetings,
Martijn
Comment #11
summit commentedHi,
I tried patching the 5.0 version which should work.
The code I put in was:
// Import terms in order of depth
for ($i=0;$i<=max($term_depth);$i++) {
foreach ($terms as $term) {
if ($term['depth'] != $i) {
continue;
}
$term['vid'] = $vocabulary['vid'];
$term['old_tid'] = $term['tid'];
unset($term['tid']);
if (is_array($term['parent'])) {
foreach ($term['parent'] as $key => $value) {
if ($value) {
$term['parent'][$key] = $new_tid[$value];
}
}
}
/
but without success...
please help..
greetings,
Martijn
Comment #12
nicolash commentedPlease resume this discussion here if it's regarding D5...I won't resume support for D4.x.