- 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 17 years ago
parent bd931a82f7
commit 58d7e6f1a6

@ -7,7 +7,10 @@
<script src="/js/Bookmarks.js" type="text/javascript"></script> <script src="/js/Bookmarks.js" type="text/javascript"></script>
<link rel="alternate" type="application/rss+xml" title="RSS" href="Bookmarks.rss" /> <link rel="alternate" type="application/rss+xml" title="RSS" href="Bookmarks.rss" />
</head> </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%# #%env/templates/header.template%#
#(mode)# #(mode)#
<!-- SubMenu (mode=0) --> <!-- 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" 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=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="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> </ul>
<p/> <p/>
</div> </div>
@ -27,7 +32,9 @@
<ul class="SubMenu"> <ul class="SubMenu">
<li><a href="Bookmarks.html?mode=add" class="MenuItemLink lock">Add Bookmark</a></li> <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="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> </ul>
<p/> <p/>
</div> </div>

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

Loading…
Cancel
Save