redesign of search page integration menu structure

pull/1/head
Michael Peter Christen 11 years ago
parent 656e2ce62a
commit 6b66bb7109

@ -1,4 +1,5 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.annotation.inheritNullAnnotations=disabled
org.eclipse.jdt.core.compiler.annotation.missingNonNullByDefaultAnnotation=ignore
org.eclipse.jdt.core.compiler.annotation.nonnull=org.eclipse.jdt.annotation.NonNull
org.eclipse.jdt.core.compiler.annotation.nonnullbydefault=org.eclipse.jdt.annotation.NonNullByDefault
@ -37,16 +38,17 @@ org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=warning
org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning
org.eclipse.jdt.core.compiler.problem.missingDefaultCase=ignore
org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore
org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=warning
org.eclipse.jdt.core.compiler.problem.missingEnumCaseDespiteDefault=disabled
org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=warning
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=warning
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled
org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning
org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=warning
org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore
org.eclipse.jdt.core.compiler.problem.nonnullParameterAnnotationDropped=warning
org.eclipse.jdt.core.compiler.problem.nullAnnotationInferenceConflict=error
org.eclipse.jdt.core.compiler.problem.nullReference=ignore
org.eclipse.jdt.core.compiler.problem.nullSpecViolation=error
@ -55,7 +57,7 @@ org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning
org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore
org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=warning
org.eclipse.jdt.core.compiler.problem.potentialNullReference=ignore
org.eclipse.jdt.core.compiler.problem.potentiallyUnclosedCloseable=ignore
org.eclipse.jdt.core.compiler.problem.potentiallyUnclosedCloseable=warning
org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning
org.eclipse.jdt.core.compiler.problem.redundantNullAnnotation=warning
org.eclipse.jdt.core.compiler.problem.redundantNullCheck=ignore
@ -67,6 +69,7 @@ org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled
org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning
org.eclipse.jdt.core.compiler.problem.suppressOptionalErrors=disabled
org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled
org.eclipse.jdt.core.compiler.problem.syntacticNullAnalysisForFields=disabled
org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore
org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning
org.eclipse.jdt.core.compiler.problem.unavoidableGenericTypeProblems=enabled
@ -90,6 +93,7 @@ org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=
org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled
org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
org.eclipse.jdt.core.compiler.problem.unusedTypeParameter=ignore
org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
org.eclipse.jdt.core.compiler.source=1.6

@ -7,7 +7,7 @@
</head>
<body id="ConfigSkins">
#%env/templates/header.template%#
#%env/templates/submenuSearchConfiguration.template%#
#%env/templates/submenuDesign.template%#
<script type="text/javascript" src="yacy/ui/js/jquery.colorpicker.js"></script>
<script type="text/javascript">

@ -6,7 +6,7 @@
</head>
<body id="ConfigNetwork">
#%env/templates/header.template%#
#%env/templates/submenuSearchConfiguration.template%#
#%env/templates/submenuRanking.template%#
<h2>Heuristics Configuration</h2>
<p>
A <a href="http://en.wikipedia.org/wiki/Heuristic" target="_blank">heuristic</a> is an 'experience-based technique that help in problem solving, learning and discovery' (wikipedia). The search heuristics that can be switched on here are techniques that help the discovery of possible search results based on link guessing, in-search crawling and requests to other search engines.

@ -6,7 +6,7 @@
</head>
<body id="ConfigLanguage">
#%env/templates/header.template%#
#%env/templates/submenuSearchConfiguration.template%#
#%env/templates/submenuDesign.template%#
<h2>Language selection</h2>
<p>
You can change the language of the YaCy-webinterface with translation files.

@ -1,134 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<!-- This page is only XHTML 1.0 Transitional and not Strict because the target attribute for a links are being used -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>YaCy '#[clientname]#': Integration of a Search Field for Live Search</title>
#%env/templates/metas.template%#
</head>
<body id="ConfigSkins">
#%env/templates/header.template%#
#%env/templates/submenuSearchIntegration.template%#
<h2>Integration of Live Search with YaCy Search Widget</h2>
<p>
A 'Live-Search' input field that reacts as search-as-you-type in a pop-up window can easily be integrated in any web page.
This is the same function as can be seen on all pages of the YaCy online-interface (look at the window in the upper right corner).
</p>
<p>
There are basically two methods for integrating the YaCy Search Widget with your web site.
<ol>
<li>Static hosting of widget on own HTTP server</li>
<li>Remote access through selected YaCy Peer</li>
</ol>
</p>
<h4>Static hosting of widget on own HTTP server</h4>
Advantages:
<ul>
<li>faster connection speed</li>
<li>possibility for local adaptions</li>
</ul>
Disadvantages:
<ul>
<li>No automatic update to future releases of YaCy Search Widget</li>
<li>Ajax/JSONP cross domain requests needed to query remote YaCy Peer</li>
</ul>
Installing:
<ul>
<li>download yacy-portalsearch.tar.gz from <a href="http://yacy.net/" target="_blank">http://yacy.net</a> </li>
<li>unpack within your HTTP servers path</li>
<li>use ./yacy/portalsearch/yacy-portalsearch.html as reference for integration with your own portal page</li>
</ul>
<h4>Remote access through selected YaCy Peer</h4>
Advantages:
<ul>
<li>Always latest version of YaCy Search Widget</li>
<li>No Ajax/JSONP cross domain requests, as Search Widget and YaCy Peer are hosted on the same domain.</li>
</ul>
Disadvantages:
<ul>
<li>Under certain cirumstances slower than static hosting</li>
</ul>
Installing:
<ul>
<li>Just use the code snippet below and paste it any place in your own portal page</li>
<li>Please check if '#[ip]#:#[port]#' is appropriate or replace it with address of the YaCy Peer holding your index</li>
</ul>
<pre>
&lt;script src="http://#[ip]#:#[port]#/jquery/js/jquery-1.7.min.js" type="text/javascript" type="text/javascript"&gt;&lt;/script&gt;
&lt;script&gt;
$(document).ready(function() {
yconf = {
url : 'http://#[ip]#:#[port]#',
title : 'YaCy Search Widget',
logo : '/yacy/ui/img/yacy-logo.png',
link : 'http://www.yacy.net',
global : false,
width : 500,
height : 600,
position : ['top',30],
theme : 'start'
};
$.getScript(yconf.url+'/portalsearch/yacy-portalsearch.js', function(){});
});
&lt;/script&gt;
&lt;div id="yacylivesearch"&gt;
&lt;form id="ysearch" method="get" accept-charset="UTF-8" action="http://#[ip]#:#[port]#/yacysearch.html"&gt;
Live Search &lt;input name="query" id="yquery" class="fancy" type="text" size="15" maxlength="80" value=""/&gt;
&lt;input type="hidden" name="verify" value="cacheonly" /&gt;
&lt;input type="hidden" name="maximumRecords" value="20" /&gt;
&lt;input type="hidden" name="resource" value="local" /&gt;
&lt;input type="hidden" name="urlmaskfilter" value=".*" /&gt;
&lt;input type="hidden" name="prefermaskfilter" value="" /&gt;
&lt;input type="hidden" name="display" value="2" /&gt;
&lt;input type="hidden" name="nav" value="all" /&gt;
&lt;input type="submit" name="Enter" value="Search" /&gt;
&lt;/form&gt;
&lt;/div&gt;
</pre>
<h4>Configuration options and defaults for 'yconf':</h4>
<h5>Defaults</h5>
<form action=""><dl>
<dt>url</dt><dd>http://localhost:8090</dd>
<dt>global</dt><dd>false</dd>
<dt>theme</dt><dd>'start'</dd>
<dt>title</dt><dd>'YaCy Search Widget'</dd>
<dt>logo</dt><dd>'/yacy/ui/img/yacy-logo.png'</dd>
<dt>link</dt><dd>'http://www.yacy.net'</dd>
<dt>width</dt><dd>640</dd>
<dt>height</dt><dd>640</dd>
<dt>position</dt><dd>[150,50]</dd>
<dt>modal</dt><dd>false</dd>
<dt>resizable</dt><dd>true</dd>
<dt>show</dt><dd>''</dd>
<dt>hide</dt><dd>''</dd>
<dt>load_js</dt><dd>true</dd>
<dt>load_css</dt><dd>true</dd>
</dl></form>
<h5>Size and position (width | height | position)</h5>
Specifies where the dialog should be displayed. Possible values for position: 'center', 'left', 'right', 'top', 'bottom', or an array containing a coordinate pair (in pixel offset from top left of viewport) or the possible string values (e.g. ['right','top'] for top right corner).
<h5>Animation effects (show | hide)</h5>
The effect to be used. Possible values: 'blind', 'clip', 'drop', 'explode', 'fold', 'puff', 'slide', 'scale', 'size', 'pulsate'.
<h5>Interaction (modal | resizable)</h5>
If modal is set to true, the dialog will have modal behavior; other items on the page will be disabled (i.e. cannot be interacted with). Modal dialogs create an overlay below the dialog but above other page elements.
<p>
If resizable is set to true, the dialog will be resizeable.
</p>
<h5>Load JavaScript load_js (true | false)</h5>
<p>
This parameter is used for static hosting only.
</p>
<h5>Load Stylesheets load_css (true | false)</h5>
<p>
This parameter is used for static hosting only.
</p>
<h5>Themes</h5>
<p>You can download standard jquery-ui themes or create your own custom themes on
<a href="http://jqueryui.com/" target="_blank">
http://jqueryui.com/</a>
<br/>Themes are installed in ./yacy/jquery/themes/ (static hosting) or in DATA/HTDOCS/jquery/themes/ on remote YaCy Peer.
YaCy ships with 'start' and 'smoothness' themes pre-installed.</p>
#%env/templates/footer.template%#
</body>
</html>

@ -1,44 +0,0 @@
// ConfigLiveSearch.java
// -----------------------
// part of YaCy
// (C) by Michael Peter Christen; mc@yacy.net
// first published on http://yacy.net
// Frankfurt, Germany, 29.5.2009
//
//$LastChangedDate$
//$LastChangedRevision$
//$LastChangedBy$
//
// LICENSE
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
import net.yacy.cora.protocol.RequestHeader;
import net.yacy.search.Switchboard;
import net.yacy.server.serverObjects;
import net.yacy.server.serverSwitch;
public class ConfigLiveSearch {
public static serverObjects respond(@SuppressWarnings("unused") final RequestHeader header, @SuppressWarnings("unused") final serverObjects post, final serverSwitch env) {
final serverObjects prop = new serverObjects();
final Switchboard sb = (Switchboard) env;
prop.putHTML("ip", sb.peers.mySeed().getIP());
prop.putHTML("port", sb.getConfig("port", "8090"));
return prop;
}
}

@ -7,7 +7,7 @@
</head>
<body id="ConfigSkins">
#%env/templates/header.template%#
#%env/templates/submenuSearchConfiguration.template%#
#%env/templates/submenuPortalConfiguration.template%#
<h2>Integration of a Search Portal</h2>
<p>
If you like to integrate YaCy as portal for your web pages, you may want to change icons and messages on the search page.

@ -6,7 +6,7 @@
</head>
<body id="ConfigProfile">
#%env/templates/header.template%#
#%env/templates/submenuSearchConfiguration.template%#
#%env/templates/submenuPortalConfiguration.template%#
<h2>Your Personal Profile</h2>
<p>
You can create a personal profile here, which can be seen by other YaCy-members

@ -6,7 +6,7 @@
</head>
<body id="ConfigSkins">
#%env/templates/header.template%#
#%env/templates/submenuSearchIntegration.template%#
#%env/templates/submenuPortalConfiguration.template%#
<h2>Integration of a Search Box</h2>
<p>
We give information how to integrate a search box on any web page that
@ -32,7 +32,7 @@
&lt;input type="hidden" name="prefermaskfilter" value="" /&gt;
&lt;input type="hidden" name="display" value="2" /&gt;
&lt;input type="hidden" name="nav" value="all" /&gt;
&lt;div style="font-size:16px; display:block; float:right; padding-top:1px;"&gt;
&lt;div style="font-size:18px; display:block; float:right; padding-top:1px;"&gt;
&lt;input type="submit" name="Enter" value="Search" /&gt;
&lt;/div&gt;
&lt;/div&gt;
@ -56,7 +56,7 @@
<input type="hidden" name="prefermaskfilter" value="" />
<input type="hidden" name="display" value="2" />
<input type="hidden" name="nav" value="all" />
<div style="font-size:16px; display:block; float:right; padding-top:1px;">
<div style="font-size:18px; display:block; float:right; padding-top:1px;">
<input type="submit" name="Enter" value="Search" />
</div>
</div>

@ -17,7 +17,7 @@
<body id="ConfigSearchPage" >
#%env/templates/header.template%#
#%env/templates/submenuSearchConfiguration.template%#
#%env/templates/submenuDesign.template%#
<script type="text/javascript">
//<![CDATA[
$(function() {
@ -31,7 +31,7 @@ $(function() {
$("#sidebarDomains").accordion({});
$("#sidebarProtocols").accordion({});
$("#sidebarFiletypes").accordion({});
$("#sidebarLanguages").accordion({});
$("#sidebarLanguages").accordion({});
$("#sidebarAuthors").accordion({});
$("#sidebarNameSpace").accordion({});
$("#sidebarTopics").tagcloud({type:"sphere",power:.25,seed:0,sizemin:10,sizemax:20,height:80,colormin:"682",colormax:"20C"}).find("li").tsort();

@ -26,7 +26,7 @@
</head>
<body id="RankingRWI_p">
#%env/templates/header.template%#
#%env/templates/submenuSearchConfiguration.template%#
#%env/templates/submenuRanking.template%#
<h2>RWI Ranking Configuration</h2>
<p>The document ranking influences the order of the search result entities.
A ranking is computed using a number of attributes from the documents that match with the search word.

@ -6,7 +6,7 @@
</head>
<body id="RankingSolr_p">
#%env/templates/header.template%#
#%env/templates/submenuSearchConfiguration.template%#
#%env/templates/submenuRanking.template%#
<h2>Solr Ranking Configuration</h2>
<p>These are ranking attributes for Solr. This ranking applies for internal and remote (P2P or shard) Solr access.</p>

@ -91,9 +91,10 @@
</ul>
<ul class="nav nav-sidebar menugroup">
<li><h3>Search&nbsp;Design</h3></li>
<li><a href="ConfigLiveSearch.html" class="MenuItemLink">Search Integration into External Sites</a></li>
<li><a href="ConfigPortal.html" class="MenuItemLink">Integrated Search Configuration</a></li>
<li><h3>Search Integration</h3></li>
<li><a href="ConfigSearchBox.html" class="MenuItemLink">Portal Configuration</a></li>
<li><a href="ConfigAppearance_p.html" class="MenuItemLink">Design</a></li>
<li><a href="RankingSolr_p.html" class="MenuItemLink">Ranking and Heuristics</a></li>
</ul>
</div>

@ -0,0 +1,8 @@
<div class="SubMenu">
<h3>Design</h3>
<ul class="SubMenu">
<li><a href="ConfigAppearance_p.html" class="MenuItemLink lock">Appearance</a></li>
<li><a href="ConfigLanguage_p.html" class="MenuItemLink lock">Language</a></li>
<li><a href="ConfigSearchPage_p.html" class="MenuItemLink lock">Search Page Layout</a></li>
</ul>
</div>

@ -0,0 +1,8 @@
<div class="SubMenu">
<h3>Portal Configuration</h3>
<ul class="SubMenu">
<li><a href="ConfigSearchBox.html" class="MenuItemLink">Search Box Anywhere</a></li>
<li><a href="ConfigPortal.html" class="MenuItemLink">Generic Search Portal</a></li>
<li><a href="ConfigProfile_p.html" class="MenuItemLink lock">User Profile</a></li>
</ul>
</div>

@ -0,0 +1,8 @@
<div class="SubMenu">
<h3>Ranking and Heuristics</h3>
<ul class="SubMenu">
<li><a href="RankingSolr_p.html" class="MenuItemLink lock">Solr Ranking Config</a></li>
<li><a href="RankingRWI_p.html" class="MenuItemLink lock">RWI Ranking Config</a></li>
<li><a href="ConfigHeuristics_p.html" class="MenuItemLink lock">Heuristics</a></li>
</ul>
</div>

@ -1,13 +0,0 @@
<div class="SubMenu">
<h3>Integrated Search Configuration</h3>
<ul class="SubMenu">
<li><a href="ConfigPortal.html" class="MenuItemLink">Generic Search Portal</a></li>
<li><a href="ConfigSearchPage_p.html" class="MenuItemLink lock">Search Page Layout</a></li>
<li><a href="ConfigAppearance_p.html" class="MenuItemLink lock">Appearance</a></li>
<li><a href="ConfigLanguage_p.html" class="MenuItemLink lock">Language</a></li>
<li><a href="ConfigProfile_p.html" class="MenuItemLink lock">User Profile</a></li>
<li><a href="ConfigHeuristics_p.html" class="MenuItemLink lock">Heuristics</a></li>
<li><a href="RankingSolr_p.html" class="MenuItemLink lock">Solr Ranking Config</a></li>
<li><a href="RankingRWI_p.html" class="MenuItemLink lock">RWI Ranking Config</a></li>
</ul>
</div>

@ -1,7 +0,0 @@
<div class="SubMenu">
<h3>Search Integration into External Sites</h3>
<ul class="SubMenu">
<li><a href="ConfigLiveSearch.html" class="MenuItemLink">Live Search Anywhere</a></li>
<li><a href="ConfigSearchBox.html" class="MenuItemLink">Search Box Anywhere</a></li>
</ul>
</div>

@ -3871,9 +3871,10 @@ Rich Client Search==Rich Client Suche
Compare Search==Vergleichs-Suche
URL Viewer==URL Betrachter
### SEARCH DESIGN ###
Search Design==Suchmaskendesign
Search Integration into External Sites==Integration Suche in Externe Seiten
Integrated Search Configuration==Konfiguration der Integrierten Suche
Search Integration==Suchmaskenintegration
Portal Configuration==Portal-Konfiguration
Design==Design
Ranking and Heuristics==Ranking und Heuristiken
### INDEX CONTROL ###
Index&nbsp;Production==Indexerzeugung
#Crawler / Harvester==Crawler / Harvester

@ -2073,8 +2073,8 @@ Compare Search==Comparer des recherches
URL Viewer==Afficher le contenu d'une URL
Bookmarks==Marques-pages
### DESIGN ###
Search Integration into External Sites==Rercherche int&eacute;gr&eacute;e &agrave; un site externe
Integrated Search Configuration==Configuration de la recherche int&eacute;gr&eacute;e
Portal Configuration==Rercherche int&eacute;gr&eacute;e &agrave; un site externe
Design==Configuration de la recherche int&eacute;gr&eacute;e
### INDEX ###
Index&nbsp;Production==G&eacute;n&eacute;ration de l'index
Index Administration==Aministration de l'index

@ -4151,8 +4151,8 @@ Location Search==Локальный поиск
Rich Client Search==Rich Client Suche
### SEARCH DESIGN ###
Search&nbsp;Design==Интеграция поиска
Search Integration into External Sites==Интеграция поискового интерфейса в другие сайты
Integrated Search Configuration==Настройка интегрируемого поиска
Portal Configuration==Интеграция поискового интерфейса в другие сайты
Design==Настройка интегрируемого поиска
### INDEX CONTROL ###
Index&nbsp;Production==Индексирование
Crawler / Harvester==Индексирование / Сканер сети

Loading…
Cancel
Save