Skip to content

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

show less navigation by default

Michael Peter Christen32adad7dd5ee
diff --git a/htroot/yacysearchtrailer.java b/htroot/yacysearchtrailer.java
index 3c29635fb..4fe15ce61 100644
--- a/htroot/yacysearchtrailer.java
+++ b/htroot/yacysearchtrailer.java
@@ -103,7 +103,7 @@ public class yacysearchtrailer {
prop.put("nav-namespace_activate", on(pos, neg, MAXLIMIT_NAV_LOW) ? 1 : 0);
i--;
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
@@ -142,7 +142,7 @@ public class yacysearchtrailer {
prop.put("nav-domains_activate", on(pos, neg, MAXLIMIT_NAV_HIGH) ? 1 : 0);
i--;
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
@@ -178,10 +178,10 @@ public class yacysearchtrailer {
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--;
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
@@ -246,10 +246,10 @@ public class yacysearchtrailer {
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--;
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
@@ -285,10 +285,10 @@ public class yacysearchtrailer {
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--;
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