Skip to content

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

showing the public/privat flag. TODO: Some nice icons.

allo6b16c13b20f6
diff --git a/htroot/Bookmarks_p.html b/htroot/Bookmarks_p.html
index 8c8d91fc5..742f73afb 100644
--- a/htroot/Bookmarks_p.html
+++ b/htroot/Bookmarks_p.html
@@ -33,9 +33,10 @@ Public: <select name="public">
<tr height="100%">
<td width="100%">
#{bookmarks}#
+#(public)#[priv]::[pub]#(/public)#
<a href="#[link]#" target="_blank">#[title]#</a><br />
#[description]#<br />
-Tagged with <span class="bookmarkTags">#[tags]#</span>. <br />
+Tagged with <span class="bookmarkTags">#{tags}#<a href="Bookmarks_p.html?tag=#[tag]#">#[tag]#</a> #{/tags}#</span><br />
<a href="Bookmarks_p.html?edit=#[hash]#">Edit</a> /
<a href="Bookmarks_p.html?delete=#[hash]#">Delete</a>
<p />
diff --git a/htroot/Bookmarks_p.java b/htroot/Bookmarks_p.java
index 64f36b56e..efed2c9af 100644
--- a/htroot/Bookmarks_p.java
+++ b/htroot/Bookmarks_p.java
@@ -145,13 +145,27 @@ public class Bookmarks_p {
count++;
}
count=0;
+ Vector tags;
+ Iterator tagsIt;
+ int tagCount;
while(count<MAX_COUNT && it.hasNext()){
bookmark=switchboard.bookmarksDB.getBookmark((String)it.next());
if(bookmark!=null){
prop.put("bookmarks_"+count+"_link", bookmark.getUrl());
prop.put("bookmarks_"+count+"_title", bookmark.getTitle());
prop.put("bookmarks_"+count+"_description", bookmark.getDescription());
- prop.put("bookmarks_"+count+"_tags", bookmark.getTags());
+ prop.put("bookmarks_"+count+"_public", (bookmark.getPublic()? 1:0));
+
+ //List Tags.
+ tags=bookmark.getTagsVector();
+ tagsIt=tags.iterator();
+ tagCount=0;
+ while(tagsIt.hasNext()){
+ prop.put("bookmarks_"+count+"_tags_"+tagCount+"_tag", tagsIt.next());
+ tagCount++;
+ }
+ prop.put("bookmarks_"+count+"_tags", tagCount);
+
prop.put("bookmarks_"+count+"_hash", bookmark.getUrlHash());
count++;
}
diff --git a/source/de/anomic/data/bookmarksDB.java b/source/de/anomic/data/bookmarksDB.java
index 063fed229..62c930586 100644
--- a/source/de/anomic/data/bookmarksDB.java
+++ b/source/de/anomic/data/bookmarksDB.java
@@ -523,6 +523,9 @@ public class bookmarksDB {
}
return "";
}
+ public Vector getTagsVector(){
+ return listManager.string2vector(this.getTags());
+ }
public String getDescription(){
if(this.mem.containsKey(BOOKMARK_DESCRIPTION)){
return (String) this.mem.get(BOOKMARK_DESCRIPTION);