- some small, rather optical changes to bookmarks

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5071 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
apfelmaennchen 16 years ago
parent bd931a82f7
commit 58d7e6f1a6

@ -7,7 +7,10 @@
<script src="/js/Bookmarks.js" type="text/javascript"></script>
<link rel="alternate" type="application/rss+xml" title="RSS" href="Bookmarks.rss" />
</head>
<body id="Bookmarks" onload="treeMenu_init(document.getElementById('folder'), '')">
<body id="Bookmarks"
onload="treeMenu_init(document.getElementById('folder'), window.name)"
onunload="window.name = treeMenu_store(document.getElementById('folder'))"
>
#%env/templates/header.template%#
#(mode)#
<!-- SubMenu (mode=0) -->
@ -17,7 +20,9 @@
<li><a href="Bookmarks.html?login=true" class="MenuItemLink">Login</a></li>
<li><a href="Bookmarks.html?login=true&mode=add" class="MenuItemLink lock">Add Bookmark</a></li>
<li><a href="Bookmarks.html?login=true&mode=importxml" class="MenuItemLink lock">Import Bookmarks</a></li>
<li><a href="xml/bookmarks/xbel/xbel.xml" class="MenuItemLink lock">Export Bookmarks</a></li>
<li><a href="xml/bookmarks/xbel/xbel.xml" class="MenuItemLink lock">Bookmarks (XBEL)</a></li>
<li><a href="xml/bookmarks/posts/all.xml" class="MenuItemLink lock">Bookmarks (XML)</a></li>
<li><a href="Bookmarks.rss" class="MenuItemLink lock">Bookmarks (RSS)</a></li>
</ul>
<p/>
</div>
@ -27,7 +32,9 @@
<ul class="SubMenu">
<li><a href="Bookmarks.html?mode=add" class="MenuItemLink lock">Add Bookmark</a></li>
<li><a href="Bookmarks.html?mode=importxml" class="MenuItemLink lock">Import Bookmarks</a></li>
<li><a href="xml/bookmarks/xbel/xbel.xml" class="MenuItemLink lock">Export Bookmarks</a></li>
<li><a href="xml/bookmarks/xbel/xbel.xml" class="MenuItemLink lock">Bookmarks (XBEL)</a></li>
<li><a href="xml/bookmarks/posts/all.xml" class="MenuItemLink lock">Bookmarks (XML)</a></li>
<li><a href="Bookmarks.rss" class="MenuItemLink lock">Bookmarks (RSS)</a></li>
</ul>
<p/>
</div>

@ -131,11 +131,11 @@ public class Bookmarks {
final String title=post.get("title");
final String description=post.get("description");
String tagsString = post.get("tags");
final String pathString = post.get("path");
tagsString=tagsString+","+pathString;
if(tagsString.equals("")){
tagsString="/unsorted"; //default tag
String pathString = post.get("path");
if(pathString.equals("")){
pathString="/unsorted"; //default folder
}
tagsString=tagsString+","+pathString;
final Set<String> tags=listManager.string2set(bookmarksDB.cleanTagsString(tagsString));
final bookmarksDB.Bookmark bookmark = sb.bookmarksDB.createBookmark(url, username);
if(bookmark != null){

Loading…
Cancel
Save