The count displayed is the number of revisions, not the number of articles (nodes). I don't think you want that.

How come?
When multiple node revisions are in the database, there are also multiple rows in the biblio_keyword table; one for each vid.
The join between biblio_keyword_data and biblio_keyword is the one that yields duplicate rows -one per vid- and makes the count go up.

Solution: use a subquery to get the correct node count per keyword (which only counts nodes in the {node} table, not all vids).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

roderik’s picture

FileSize
1.9 KB

Man.........

When I was typing that last sentence "only counts nodes in the {node} table, not all vids"... it struck me how lame I am.

How do you only count rows in the {node} table?
You don't need to use a subquery. You can use INNER joins to the {node} table. DUH!

Forget the original patch. Use this one. Unless you're a masochist.

azin’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev

I get this in Drupal 7.12, Biblio 7.x-1.x-dev as well

rjerome’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.