Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

show number of bookmarks in a tag.

allo910a709d3f52
diff --git a/htroot/Bookmarks_p.html b/htroot/Bookmarks_p.html
index ae86e58f0..68cce42da 100644
--- a/htroot/Bookmarks_p.html
+++ b/htroot/Bookmarks_p.html
@@ -116,10 +116,12 @@ Show
Bookmarks per page.
</td>
<td valign="top" style="padding-left: 5px; border-left-style: solid; border-left-width: 1px; border-left-color: black;">
-<a href="Bookmarks_p.html" class="bookmarkTags">All</a><br />
+<div style="text-align: right">
+<a href="Bookmarks_p.html" class="bookmarkTags">All</a> (#[num-bookmarks]#)<br />
#{taglist}#
-<a href="Bookmarks_p.html?tag=#[tag]#" class="bookmarkTags">#[name]#</a><br />
+<a href="Bookmarks_p.html?tag=#[tag]#" class="bookmarkTags">#[name]#</a> (#[num]#)<br />
#{/taglist}#
+</div>
</td>
</tr>
</table>
diff --git a/htroot/Bookmarks_p.java b/htroot/Bookmarks_p.java
index b3d191350..1945c7d10 100644
--- a/htroot/Bookmarks_p.java
+++ b/htroot/Bookmarks_p.java
@@ -175,10 +175,12 @@ public class Bookmarks_p {
Iterator it=switchboard.bookmarksDB.getTagIterator(true);
int count=0;
bookmarksDB.Tag tag;
+ prop.put("num-bookmarks", switchboard.bookmarksDB.bookmarksSize());
while(it.hasNext()){
tag=(Tag) it.next();
prop.put("taglist_"+count+"_name", tag.getFriendlyName());
prop.put("taglist_"+count+"_tag", tag.getTagName());
+ prop.put("taglist_"+count+"_num", tag.size());
count++;
}
prop.put("taglist", count);