show less navigation by default

pull/1/head
Michael Peter Christen 13 years ago
parent ef78f22ee1
commit 32adad7dd5

@ -103,7 +103,7 @@ public class yacysearchtrailer {
prop.put("nav-namespace_activate", on(pos, neg, MAXLIMIT_NAV_LOW) ? 1 : 0); prop.put("nav-namespace_activate", on(pos, neg, MAXLIMIT_NAV_LOW) ? 1 : 0);
i--; i--;
prop.put("nav-namespace_element_" + i + "_nl", 0); prop.put("nav-namespace_element_" + i + "_nl", 0);
if (pos == 1 && neg == 0) prop.put("nav-namespace", 0); // this navigation is not usefull if (pos == 1 && neg == 0) prop.put("nav-namespace", 0); // this navigation is not useful
} }
// host navigators // host navigators
@ -142,7 +142,7 @@ public class yacysearchtrailer {
prop.put("nav-domains_activate", on(pos, neg, MAXLIMIT_NAV_HIGH) ? 1 : 0); prop.put("nav-domains_activate", on(pos, neg, MAXLIMIT_NAV_HIGH) ? 1 : 0);
i--; i--;
prop.put("nav-domains_element_" + i + "_nl", 0); prop.put("nav-domains_element_" + i + "_nl", 0);
if (pos == 1 && neg == 0) prop.put("nav-domains", 0); // this navigation is not usefull if (pos == 1 && neg == 0) prop.put("nav-domains", 0); // this navigation is not useful
} }
// author navigators // author navigators
@ -178,10 +178,10 @@ public class yacysearchtrailer {
i++; i++;
} }
prop.put("nav-authors_element", i); prop.put("nav-authors_element", i);
prop.put("nav-authors_activate", on(pos, neg, MAXLIMIT_NAV_LOW) ? 1 : 0); prop.put("nav-authors_activate", neg > 0 ? 1 : 0); // by default off
i--; i--;
prop.put("nav-authors_element_" + i + "_nl", 0); prop.put("nav-authors_element_" + i + "_nl", 0);
if (pos == 1 && neg == 0) prop.put("nav-authors", 0); // this navigation is not usefull if (pos == 1 && neg == 0) prop.put("nav-authors", 0); // this navigation is not useful
} }
// topics navigator // topics navigator
@ -246,10 +246,10 @@ public class yacysearchtrailer {
i++; i++;
} }
prop.put("nav-protocols_element", i); prop.put("nav-protocols_element", i);
prop.put("nav-protocols_activate", on(pos, neg, MAXLIMIT_NAV_LOW) ? 1 : 0); prop.put("nav-protocols_activate", neg > 0 ? 1 : 0); // by default off
i--; i--;
prop.put("nav-protocols_element_" + i + "_nl", 0); prop.put("nav-protocols_element_" + i + "_nl", 0);
if (pos == 1 && neg == 0) prop.put("nav-protocols", 0); // this navigation is not usefull if (pos == 1 && neg == 0) prop.put("nav-protocols", 0); // this navigation is not useful
} }
// filetype navigators // filetype navigators
@ -285,10 +285,10 @@ public class yacysearchtrailer {
i++; i++;
} }
prop.put("nav-filetypes_element", i); prop.put("nav-filetypes_element", i);
prop.put("nav-filetypes_activate", on(pos, neg, MAXLIMIT_NAV_LOW) ? 1 : 0); prop.put("nav-filetypes_activate", neg > 0 ? 1 : 0); // by default off
i--; i--;
prop.put("nav-filetypes_element_" + i + "_nl", 0); prop.put("nav-filetypes_element_" + i + "_nl", 0);
if (pos == 1 && neg == 0) prop.put("nav-filetypes", 0); // this navigation is not usefull if (pos == 1 && neg == 0) prop.put("nav-filetypes", 0); // this navigation is not useful
} }
// vocabulary navigators // vocabulary navigators

Loading…
Cancel
Save