[Dspace-tech] Community.itemsCount() : count is overvalued

2010-10-20 Thread Fabian Smagghe
Hi, In function Community.countItems(), we made dso.countItems () for each collection and each subcommunity within: if some items are linked to several collections and/or subcommunities, these items are counted several times and the number of items in the Community is overvalued. In our

Re: [Dspace-tech] Community.itemsCount() : count is overvalued

2010-10-20 Thread Claudia Jürgen
Salut Fabian, having redundant counts has been discussed a while ago and been left as it is. Both approaches have disadvantages. If you do a distinct count then the user might be presented with lists where the sum of the subcommunities/collections does not fit the total in the community,

Re: [Dspace-tech] Community.itemsCount() : count is overvalued

2010-10-20 Thread Fabian Smagghe
Hello Claudia, I understand the both approaches, but in my opinion the count should mean the number of items in a particular community and not the sum of items in subcommunities/collections of a particular community even if the sum does not match the distinct count... Thank you for your