Hello, Author!

Do you have a plans to upgrade this module for Drupal 5.x?

Comments

joel_guesclin’s picture

I will upgrade this for 5.x eventually - however I'm in the middle of upgrading to 4.7 at the moment, so I'm afraid it's not at the top of my list of things to do!

toologic’s picture

Oh! Its bad news for me (us) ;(
I'll be wait.

mlncn’s picture

Agaric Design Collective is updating taxonomy_switch to 5.x... allegedly for the fun of it. A smooth upgrade except we're a little bit stuck on the forms. We could just grab the info directly form $_POST instead of $_POST['edit'] but we're trying to do this the officially approved Drupal 5 Forms API way... so the several forms used to choose the terms to switch will become one multipart form, we thinks.

Wish us success in seeing $form_values...

Of course, Joel can also just tell us not to muck about in his module ;-)

~ ben

Agaric Design Collective
Open Source Web Development
http://AgaricDesign.com/

mlncn’s picture

Status: Active » Needs work

Here's an apparently functional version of the module for Drupal 5, which can be downloaded here (it's not attached because zip or tar files can't be attached to issues).

NOTE: It does not do forms in the new FAPI way. I spent just over two hours on an unrelated issue, trying to figure out what was wrong with the listing of terms to move-- and it turned out to have nothing to do with the module. When I thought I'd created two terms in each vocabulary for testing, I'd actually put four in one vocab. And that blew the time budget for this update which really was for the hell of it anyway.

The attached is not a patch because a Drupal 5 version has to be created. It should be considered pre-alpha.

All the development stuff is left in this package-- the original version 4.7.x-1.2 module it is based on, and the taxonomy_switch.dev which is not cleaned up (lots of test output) but has the same functionality as taxonomy_switch.module.

We have used it to move EXACTLY ONE vocabulary term -- from a folksonomy by the way -- to another vocubulary (which had no hierarchy at the time and only two extra terms). It worked great, but the odds that it will work for everything are virtually nill.

It is Agaric Design Collective's fault, but we do not take responsibility, if this module destroys your life's work.

Download at Agaric's site.

We wish we could put more time into it but for now the one term was all we needed it for ;-)

Our hearts, minds, and if he wants it our wallet goes out to Joel for his work.

~ ben :: Agaric Design Collective :: http://AgaricDesign.com

mlncn’s picture

Assigned: Unassigned » mlncn
Status: Needs work » Needs review

I've used this a little more and am pretty confident the update to Drupal 5 was successful. I'm assigning it to myself and want to be clear that Agaric Design Collective would be happy to clean this up and get it into CVS for people to download. (Rough version still available from http://agaricdesign.com/taxonomy-switch-update-to-drupal-5 )

We can be reached via Drupal's contact form or our own.

mlncn’s picture

... that being our contact form on Drupal (if you're logged in)... no, the main Drupal contact form does not go to Agaric!

joel_guesclin’s picture

There is a new version of taxonomy_switch, compatible Drupal 5.1, uploaded in HEAD. Thanks to Benjamin Melançon for the upgrade - and any testing results would be welcome.
It's not perfect - the form handling is not really in conformance with Drupal since it is still using the POST values directly - but it does seem to work.
This version also includes improved support for free tagging vocabularies.
I plan to add a check in the function that switches terms from one vocabulary to another, to make sure that the target vocabulary content types are compatible with the source vocabulary, then I will do a proper 5.1 release.

zoo33’s picture

Status: Needs review » Reviewed & tested by the community

I tested the HEAD version on a Drupal 5.1 site and it works fine! I used free tagging and hierarchical as well as regular taxonomies and thay all worked. I didn't review the code, but based on how it's working I'd say it's time for a 5.x-dev version – at least!

(This module can be a real lifesaver in some cases. I was gonna write my own script to move a few terms when I found this module which already solved the issue for me. Fantastic!)

Anonymous’s picture

That's great news! And yes I've been using the version in HEAD since April. Everything seems to be working fine so far. :)

mlncn’s picture

Hi Joel,

If you want to throw me on as a developer I may be able to help make the Drupal 5 release official... well, probably not in the next couple of weeks, but soon.

I'm glad it's working for people!

benjamin, Agaric Design Collective

joel_guesclin’s picture

Benjamin - thanks for the offer, I've included you in the project. Only too happy to have someone else on board, given that I have much less time than previously for maintenance tasks.

csc4’s picture

Any news on the official 5 version release date? TIA

gurukripa’s picture

i hope this comes for Drupal 5.1 soon :)
thanks

mlncn’s picture

I ported this to Drupal 5 in March and the link to the download is on this very thread! Joel fixed my port up some and committed it to the project as "HEAD" -- as reported by others on this thread, if you download HEAD (click on more or all releases on the project page) it works fine with Drupal 5.

joel_guesclin’s picture

Status: Reviewed & tested by the community » Closed (fixed)

Now it's released for 5.x!