Hi,
Version 5 and 6 of this useful module provides the "...and the old Term is added as a synonym of the new one." feature.
What about D7 version? Can we hope in a integration with the Synonyms module ( http://drupal.org/project/synonyms ) that provides additional "synonyms" fields to taxonomy terms ?
Thank you very much
MXT
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | 1160624-synonyms-integration-9.patch | 10.23 KB | bucefal91 |
Comments
Comment #1
nylin commentedHi!
Oh, that would actaully be very useful. I haven't tried the 5 or 6 version of this module to be honest, so I didn't know anything about this.
I guess it wouldn't make any sense adding a term that's being deleted as a synonym to another one. But in the case you only want to merge the occurrences of the terms being merged, this would be a great addition.
What do YOU think is the normal way of merging? Do you as a user normally want to delete the terms that's being merged? Or do you want to keep them in the vocabulary? As you can see at the merge page, I've added this little check box in the bottom of the form letting the user chose what to do with the merged terms, but I need some testers to say in what state this would be in normally, if you get what I'm saying? =)
Thanks,
m
Comment #2
mxtI think we need another option under the existing "Only merge occurrences" like e.g. "what do you want to do with the the term that's being merged?" with 2 choices:
1) delete the term
2) add the old term as a synonym of the new one (this option only available if the Synonyms module is enabled in the site, and the old term is added as a FIELD (synonym field) like synonyms module do.
What do you think about that?
Thank you!
Comment #3
mxtAny news on this?
Than you very much
Comment #4
brycesenz commented+1 on the request for this feature.
Comment #5
bucefal91 commentedHello, guys
It happened so that I became a maintainer of both Term Merge and Synonyms module... so, now we shouldn't have problems integrating them, huh? :)
by the way, the newer and, I believe so, stable version of Term Merge module can be found at 7.x-1.x-dev, which I hope to release soon.
I think, if Synonyms module is enabled, it should give you an option to whether the branch terms (the ones that will be merged) should be added as synonyms to the trunk term (the one into which the terms are merged). Basically this approach looks logical and almost the only possible in the situation? Or there are some other options? Please, share your thoughts.
Comment #6
s.daniel commentedMaybe even better would be to ask the user how to handle the merge process weather to delete the old therm or add it as a synonym?
Comment #7
bucefal91 commentedLook, I am doing some major improvements in the synonyms module currently. #1850748: Synonym Fields
I hope to post release candidate of Term merge once I have all 7.x bugs closed in the issue queue. In the mean time I hope to close that issue of Synonyms module and post a new release of synonyms module. And after these 2 done (release candidate of Term Merge and closing that "synonym fields" issue of synonyms module), I will do their integration. because right now synonyms module is in the process of deep changes in its structure and if I integrate them now, in a month or so I will have to integrate them again because of those changes in synonyms module.
I suggest you get familiar with the issue I cited to get a feeling of what's being changed. But in general, I am agreed on the proposed prospective of integration. User should be able to choose either to delete the term, or, if synonyms are enabled, to choose into which field (among selected as source of synonyms) of the term trunk the term branch should be put in as a synonym.
Comment #8
bucefal91 commentedI have just committed stable enough new version of Synonyms module, now we should be able to integrate them. I will provide some patch here as soon as I have time to add this integration... Hopefully it will be soon enough.
Comment #9
bucefal91 commentedHere is the first try. Apply it against the latest dev of 7.x-1.x
The synonyms module has to be the just released 7.x-1.1 - that's important. It won't work with Synonyms 7.x-1.0 because I have done deep changes in public interface of Synonyms module in between of these 2 releases.
So.. If you have enabled synonyms module it will offer you to tick on into what fields of trunk term you want to add your branch terms as synonyms. The allowed for "ticking" fields will be only those enabled as synonyms in Synonyms module.
Another disclaimer: it will be adding values into ticked fields until cardinality for that field is reached... So probably it makes sense to tick on only those fields that have unlimited values.
Give it a try guys, and I'll be waiting for you feedback.
Comment #10
bucefal91 commentedHey guys, any feedback yet? I guess soon I'll commit this patch if I don't hear back any feedback.
Comment #11
bucefal91 commentedI added tests to cover integration with Synonyms module and committed into -dev.
I think we are close to tagging a full stable release of Term Merge! Whooray! :)