Port taxonomy_xml to Drupal 5

David Lesieur - December 20, 2006 - 09:08
Project:Taxonomy import/export via XML
Version:HEAD
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:closed
Description

This patch should do it.

AttachmentSize
taxonomy_xml_drupal5.patch13.64 KB

#1

David Lesieur - December 20, 2006 - 09:11

Here is the info file to also add.

AttachmentSize
taxonomy_xml.info 146 bytes

#2

sami_k - January 13, 2007 - 20:59

The info file is not there, can you please provide it again. Thanks for writing the patch, it will be committed.

#3

David Lesieur - January 14, 2007 - 01:58

Oops, I should not have left the .info extension, it's prohibited.

AttachmentSize
taxonomy_xml.info.txt 146 bytes

#4

tom friedhof - January 26, 2007 - 11:33

The drupal 5 port works great except that it does not import terms in the order of depth from the XML file. Terms that have a parent that have not yet been previously imported get orphaned. I've created another patch with changes that have the terms imported in order of depth.

AttachmentSize
taxonomy_xml_drupal5--2.patch 14.33 KB

#5

sami_k - January 26, 2007 - 12:50

Tom thank you I will look it over for the 5.0 release when I get a bit of time.

#6

yobenny - February 15, 2007 - 09:44

hello,
i am quite a newbie and i would like how to apply this patch.
Thanks in advance for your help

#7

David Lesieur - February 16, 2007 - 00:22

@yobenny, see this page. That should help. :-)

#8

Operations - March 15, 2007 - 00:21

subscribing

#9

dewolfe001 - April 4, 2007 - 16:05

I tried to apply the patch, but it was rejected (the .rej file : http://dev2.comminit.com/taxonomy_xml.module.rej ). Has anyone else had this?

Thanks in advance,

Mike

#10

smitty - April 18, 2007 - 11:25

I applied the taxonomy_xml_drupal5--2.patch directly to the module-file of version 4.7.

Is this the right way? I also tried to apply patch2 after applying patch1, but then patch2 was rejected. And I think that patch2 contains also the changes of patch1.

The export of a taxonomy worked fine.

But when I tried to reimport the exported taxonomy (I used the exported file and only changed the vid and the name of the vocabulary) I detected 2 problems:

1. The list of the node types is not correctly imported. Instead of "doctypA, doctypB" I got "0, 1".

2. The structure of the taxonomy was lost.

Instead of

HTerm1
--ATerm2
--NTerm3
----ETerm4
------ETerm5
--NTerm6
ITerm7
MTerm8
--ETerm9

I got

ATerm2
ETerm4
ETerm5
HTerm1
ITerm7
MTerm8
--ETerm9
NTerm3
NTerm6

Any ideas?

#11

Summit - April 27, 2007 - 15:25
Title:Port taxonomy_xml to Drupal 5» Port taxonomy_xml to Drupal 4.7

Does somebody has a working 4.7 version with this patch please?
Can you email or post this patch/version please.

Thanks in advance,
Martijn

#12

Summit - April 27, 2007 - 15:50
Title:Port taxonomy_xml to Drupal 4.7» Port taxonomy_xml incl. depth patch to Drupal 4.7

I saw, I changed the titel excidentaly to a wrong sentence, sorry about that.
Please file a working taxnomy_xml 4.7.6. version with depth working!!

greetings,
Martijn

#13

David Lesieur - April 28, 2007 - 05:27
Title:Port taxonomy_xml incl. depth patch to Drupal 4.7» Port taxonomy_xml to Drupal 5

This issue is about porting the module to Drupal 5. The depth issue would be a separate one. Thanks.

#14

smitty - May 2, 2007 - 12:50

I found out, that the hierarchical structure of the taxonomy is correctly imported, if you remove all carriage returns in the file.

In my first trials I had entered carriage returns after each tag, to get a human readable view of the syntax. And because according to the XML specification whitespaces should not mind, I did not remove them prior to the re-import.

Because I remembered some other applications to have problems with whitespaces I removed them in later tests: and it works.

So I think the problem should be solved.

#15

ray007 - May 2, 2007 - 19:10

subscribing

#16

Summit - May 9, 2007 - 07:51

Hi,

I tried leaving out the carriage returns in my 4.7 taxonomy xml solution, but the depth still is not working.
Greetings,
Martijn

#17

rogeroge - May 14, 2007 - 09:55

Hello - has anyone got anything that works [at all]. The patch did not work on my system and my 'hand change' does not appear in the menu system

So - can anyone post a working Taxonomy_XML for Drupal 5 [or know why this will not work with PHP 5 etc]

This is stopping my migration to drupal 5

Thanks

Roger

#18

Summit - May 14, 2007 - 12:55

Do you have it working on 4.7 then, with the depth correct?

greetings,
Martijn

#19

smitty - May 14, 2007 - 13:01

Hi Roger!

Please find attached the the taxonomy_xml.module, which I got by patching the 4.7.x-1.x-Version (2006-Nov-13). For me it worked fine after removing all carriage returns in the xml-file.

AttachmentSize
taxonomy_xml.module_0.txt 11.7 KB

#20

sami_k - May 25, 2007 - 00:00

This project is open for a takeover, I don't have time or need for this project anymore.

#21

majnoona - June 14, 2007 - 19:27

subscribing: this would be super useful to me, and I'm happy to help if someone picks it up...

#22

NicolasH - June 28, 2007 - 10:09

We would like to take it over. Please let me know what we have to do.

#23

Wim Leers - June 28, 2007 - 10:31

NicolasH: contact the author. If he doesn't reply within 2 weeks, ask in the devel mailing list. I believe that's the pseudo-official procedure.

#24

sami_k - June 29, 2007 - 11:00

NicolasH: You may takeover this project. Please approve NicolasH for a CVS account and I will be happy to give him commit rights over the project or you can do it. Thanks.

#25

NicolasH - July 3, 2007 - 07:09

I have updated the HEAD version to be compatible with 5.x. I also added support for synonyms and to optionally keep duplicate terms.

Before I create a branch, it would be good if people can test it from CVS. If there is a better way of handling this, pls let me know. I'm still finding my way around this CVS thing...

HEAD version is here

#26

NancyDru - March 4, 2008 - 01:00
Status:needs review» fixed

It would appear that this has been done.

#27

Anonymous (not verified) - March 18, 2008 - 01:03
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.