diff --git a/htroot/opensearchdescription.java b/htroot/opensearchdescription.java index 4e7bef9d1..8c2cb7c55 100644 --- a/htroot/opensearchdescription.java +++ b/htroot/opensearchdescription.java @@ -43,15 +43,14 @@ public class opensearchdescription { String thisaddress = header.get("Host", Domains.LOCALHOST); if (thisaddress.indexOf(':',0) == -1) thisaddress += ":" + serverCore.getPortNr(env.getConfig("port", "8090")); - int compareyacy = 0; - if (post != null && post.getBoolean("compare_yacy")) compareyacy = 1; - final serverObjects prop = new serverObjects(); - prop.put("compareyacy", compareyacy); + prop.put("compareyacy", post != null && post.getBoolean("compare_yacy") ? 1 : 0); prop.putXML("compareyacy_thisaddress", thisaddress); prop.putXML("thisaddress", thisaddress); prop.putXML("SearchPageGreeting", promoteSearchPageGreeting); prop.putXML("clientname", sb.peers.mySeed().getName()); + prop.putXML("compareyacy_search_left", post == null ? compare_yacy.defaultsearchL : post.get("left", compare_yacy.defaultsearchL)); + prop.putXML("compareyacy_search_right", post == null ? compare_yacy.defaultsearchR : post.get("right", compare_yacy.defaultsearchR)); // return rewrite properties return prop; diff --git a/htroot/opensearchdescription.xml b/htroot/opensearchdescription.xml index 3d38509bd..3d513564b 100644 --- a/htroot/opensearchdescription.xml +++ b/htroot/opensearchdescription.xml @@ -13,18 +13,18 @@ true YaCy is an open-source GPL-licensed software that can be used for stand-alone search engine installations or as a client for a multi-user P2P-based web indexing cluster. This is the access to peer '#[clientname]#'. #(compareyacy)# - - + + :: - + #(/compareyacy)# See https://gitorious.org/+yacy-developers - - YaCy Open Source P2P Web Search + + YaCy Free Software Open Source P2P Peer-to-Peer Uncensored Distributed Web Search Engine See http://#[thisaddress]#/ViewProfile.html?hash=localhash - YaCy Software © 2004-2012 by Michael Christen et al., YaCy.net; Content: ask peer owner + http://yacy.net YaCy Software © 2004-2014 by Michael Christen et al., YaCy.net; Content: ask peer owner open