From 910a709d3f527733e6bcfdd72056eb502a7b90d7 Mon Sep 17 00:00:00 2001 From: allo Date: Wed, 15 Feb 2006 13:34:14 +0000 Subject: [PATCH] show number of bookmarks in a tag. git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1650 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/Bookmarks_p.html | 6 ++++-- htroot/Bookmarks_p.java | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) 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. -All
+
+All (#[num-bookmarks]#)
#{taglist}# -#[name]#
+#[name]# (#[num]#)
#{/taglist}# +
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);