From 25951cee144a761b36317f718b9676fa2a7a115e Mon Sep 17 00:00:00 2001 From: Michael Peter Christen Date: Sat, 26 Oct 2013 00:34:55 +0200 Subject: [PATCH] - fixed opensearchdescription, this delivered an url with missing 'global' option - added display=2 to compare_yacy to remove the superfluous border --- htroot/opensearchdescription.java | 7 +++---- htroot/opensearchdescription.xml | 12 ++++++------ 2 files changed, 9 insertions(+), 10 deletions(-) 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