Add Synonym Check to Taxonomy Mappings

mweixel - September 3, 2009 - 18:46
Project:Feed Element Mapper
Version:6.x-1.0
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:active
Description

We want to map incoming feeds to a taxonomy whose terms frequently use synonyms to show preferred terms. Naturally, if a term coming in from the feed already exists in the vocabulary as a synonym, we want to use the preferred, already-exisiting taxonomy term and not add a brand new term that effectively replicates something that semantically already exists in the vocabulary.

The attached patch seems to achieve this by modifying mappers/feedapi_mapper_taxonomy.inc to add to the current terms any taxonomy terms where an incoming keyword matches an existing synonym.

Comments/corrections appreciated.

AttachmentSize
feedapi_mapper_taxonomy_add_synonyms.patch660 bytes

#1

momper - October 9, 2009 - 11:46

subscribe

 
 

Drupal is a registered trademark of Dries Buytaert.