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>&lt;br /&gt;Tags: &lt;a href="http://www.mydd.com/tag/primary%20elections"&gt;primary elections&lt;/a&gt;, &lt;a href="http://www.mydd.com/tag/President%202008"&gt;President 2008&lt;/a&gt;, &lt;a href="http://www.mydd.com/tag/Democrats"&gt;Democrats&lt;/a&gt;, &lt;a href="http://www.mydd.com/tag/polls"&gt;polls&lt;/a&gt; (&lt;a href="http://www.mydd.com/tag"&gt;all tags&lt;/a&gt;)</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.

CommentFileSizeAuthor
#1 aggregator2_autotaxonomy.patch4.33 KBdouggreen

Comments

douggreen’s picture

StatusFileSize
new4.33 KB

Sorry, it's taken me two weeks to notice that the patch isn't actually attached.

douggreen’s picture

Status: Active » Needs review
alex_b’s picture

leech 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...

douggreen’s picture

Status: Needs review » Closed (won't fix)

Agg2 hasn't been supported in some time, and since Alex has already implemented this in leech, I'm closing this issue.