Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
changed the protocol navigator: turned into switch buttons
Michael Peter Christen329037549392
diff --git a/htroot/yacysearchtrailer.html b/htroot/yacysearchtrailer.htmlindex 8d4ed2219..731735a07 100644--- a/htroot/yacysearchtrailer.html+++ b/htroot/yacysearchtrailer.html@@ -63,6 +63,14 @@</div></p>#(/searchdomswitches)#+#(nav-protocols)#::+<div class="btn-group btn-group-justified">+#{element}#+ <div class="btn-group btn-group-xs"><button type="button" class="btn btn-default#(on)#:: active#(/on)#"#(on)# onclick="window.location.href='#[url]#';"::#(/on)#>#[name]# (#[count]#)</button></div>+#{/element}#+</div>+#(/nav-protocols)#+#(cat-location)#::<a href="yacysearch_location.html?query=#[queryenc]#"><img src="env/grafics/earthsearch.png" width="215" height="159" alt="earthsearchlogo" /></a>@@ -77,20 +85,6 @@</script>#(/nav-topics)#-#(nav-protocols)#::-<ul class="nav nav-sidebar menugroup">-<li><h3>Protocol Facet</h3></li>-#{element}#-<li><a href="#[url]#" class="MenuItemLink"><input type="radio" name="protocols" onchange="window.location.href='#[url]#'"#(on)# checked="checked"::#(/on)#/> #[name]# (#[count]#)</a></li>-#{/element}#</ul>-#(activate)#-<script type="text/javascript">-//<![CDATA[-$(function() { $("#sidebarProtocols").accordion('activate', false); });-//]]>-</script>-::#(/activate)#-#(/nav-protocols)##(nav-domains)#::<ul class="nav nav-sidebar menugroup">diff --git a/htroot/yacysearchtrailer.java b/htroot/yacysearchtrailer.javaindex 3830cfc7d..dda4fd313 100644--- a/htroot/yacysearchtrailer.java+++ b/htroot/yacysearchtrailer.java@@ -336,17 +336,17 @@ public class yacysearchtrailer {nav = "%2F" + name;if (oldProtocolModifier == null || !oldProtocolModifier.equals(name)) {pos++;- prop.put("nav-protocols_element_" + i + "_on", 1);+ prop.put("nav-protocols_element_" + i + "_on", 0);prop.put(fileType, "nav-protocols_element_" + i + "_modifier", nav);} else {neg++;- prop.put("nav-protocols_element_" + i + "_on", 0);+ prop.put("nav-protocols_element_" + i + "_on", 1);prop.put(fileType, "nav-protocols_element_" + i + "_modifier", "-" + nav);nav="";}prop.put(fileType, "nav-protocols_element_" + i + "_name", name);String url = QueryParams.navurl(fileType, 0, theSearch.query, nav, false).toString();- prop.put(fileType, "nav-protocols_element_" + i + "_url", url);+ prop.put(fileType, "nav-protocols_element_" + i + "_on_url", url);prop.put("nav-protocols_element_" + i + "_count", count);prop.put("nav-protocols_element_" + i + "_nl", 1);i++;