small addition to last commit

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5555 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
apfelmaennchen 16 years ago
parent 416d16e026
commit ab1a09ab95

@ -362,23 +362,23 @@ public class Bookmarks {
while(it.hasNext()){ while(it.hasNext()){
tag=it.next(); tag=it.next();
if ((!tag.getTagName().startsWith("/")) && (!tag.getTagName().equals(""))) { if ((!tag.getTagName().startsWith("/")) && (!tag.getTagName().equals(""))) {
prop.putHTML(id+"_"+count+"_name", tag.getFriendlyName()); prop.putHTML("display_"+id+"_"+count+"_name", tag.getFriendlyName());
prop.putHTML(id+"_"+count+"_tag", tag.getTagName()); prop.putHTML("display_"+id+"_"+count+"_tag", tag.getTagName());
prop.put(id+"_"+count+"_num", tag.size()); prop.put("display_"+id+"_"+count+"_num", tag.size());
if (opt){ if (opt){
if(tagName.equals(tag.getFriendlyName())){ if(tagName.equals(tag.getFriendlyName())){
prop.put(id+"_"+count+"_selected", " selected=\"selected\""); prop.put("display_"+id+"_"+count+"_selected", " selected=\"selected\"");
} else { } else {
prop.put(id+"_"+count+"_selected", ""); prop.put("display_"+id+"_"+count+"_selected", "");
} }
} else { } else {
// font-size is pseudo-rounded to 2 decimals // font-size is pseudo-rounded to 2 decimals
prop.put(id+"_"+count+"_size", Math.round((1.1+Math.log(tag.size())/4)*100)/100.); prop.put("display_"+id+"_"+count+"_size", Math.round((1.1+Math.log(tag.size())/4)*100)/100.);
} }
count++; count++;
} }
} }
prop.put(id, count); prop.put("display_"+id, count);
} }
private static int recurseFolders(final Iterator<String> it, String root, int count, final boolean next, final String prev){ private static int recurseFolders(final Iterator<String> it, String root, int count, final boolean next, final String prev){

Loading…
Cancel
Save