show number of bookmarks in a tag.

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1650 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
allo 19 years ago
parent 672b384fc7
commit 910a709d3f

@ -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>

@ -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);

Loading…
Cancel
Save