The attached patch will handle the auto creation of taxonomies of multiple categories and categories with HTML. For example, the MyDD feed http://feeds.feedburner.com/mydd returns categories that look like this:
<category><br />Tags: <a href="http://www.mydd.com/tag/primary%20elections">primary elections</a>, <a href="http://www.mydd.com/tag/President%202008">President 2008</a>, <a href="http://www.mydd.com/tag/Democrats">Democrats</a>, <a href="http://www.mydd.com/tag/polls">polls</a> (<a href="http://www.mydd.com/tag">all tags</a>)</category>
With this patch, autotaxonomy strips out the unnecessary HTML and creates terms for "primary elections", "President 2008", "Democrats", etc. Without this patch, autotaxonomy creates ugly looking categories that are pretty much unusable.
This patch also replaces multi-word taxonomies with two taxonomies. For example, if the category is:
<category>Democrats, Elections</category>
It creates two categories. However if the category is:
<category>2008 Elections</category>
It creates only one category. The key is the comma separator.
This patch has no effect on categories without HTML.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | aggregator2_autotaxonomy.patch | 4.33 KB | douggreen |
Comments
Comment #1
douggreen commentedSorry, it's taken me two weeks to notice that the patch isn't actually attached.
Comment #2
douggreen commentedComment #3
alex_b commentedleech implements this patch as a add on module for the 5.x version (leech_feed_taxonomy)
http://cvs.drupal.org/viewcvs/drupal/contributions/modules/leech/leech_f...
Comment #4
douggreen commentedAgg2 hasn't been supported in some time, and since Alex has already implemented this in leech, I'm closing this issue.