Skip to content

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

small fix for yacyui-portalsearch

apfelmaennchen695c420bcd84
diff --git a/htroot/yacy/ui/js/yacyui-portalsearch.js b/htroot/yacy/ui/js/yacyui-portalsearch.js
index 5f1e367f8..d3f32b04e 100644
--- a/htroot/yacy/ui/js/yacyui-portalsearch.js
+++ b/htroot/yacy/ui/js/yacyui-portalsearch.js
@@ -1,8 +1,8 @@
$(document).ready(function() {
$.ajaxSetup({
- timeout: 10000,
- cache: false
+ timeout: 5000,
+ cache: true
})
// apply default properties
@@ -14,7 +14,9 @@ $(document).ready(function() {
height : 500,
position: ['top',50],
modal: false,
- resizable: true
+ resizable: true,
+ show: '',
+ hide: ''
}, yconf);
$('<div id="ypopup" class="classic"></div>').appendTo("#yacy");
@@ -55,6 +57,8 @@ $(document).ready(function() {
modal: yconf.modal,
resizable: yconf.resizable,
title: yconf.title,
+ show: yconf.show,
+ hide: yconf.hide,
buttons: {
Next: function() {
startRecord = startRecord + maximumRecords;
@@ -91,8 +95,9 @@ $(document).ready(function() {
$("#ysearch input").each(function(i){
var item = { name : $(this).attr('name'), value : $(this).attr('value') };
param[i] = item;
- });
-
+ });
+ param[param.length] = { name : 'startRecord', value : startRecord };
+
$.getJSON(url, param,
function(json, status){
if (json[0]) data = json[0];
diff --git a/htroot/yacy/ui/yacyui-portaltest.html b/htroot/yacy/ui/yacyui-portaltest.html
index 963c1f02d..1135d5677 100644
--- a/htroot/yacy/ui/yacyui-portaltest.html
+++ b/htroot/yacy/ui/yacyui-portaltest.html
@@ -8,11 +8,9 @@
<script>
$(document).ready(function() {
yconf = {
- url : 'http://localhost:8081/',
+ url : 'http://localhost:8081',
theme : 'start',
- title : 'YaCy P2P Web Search',
- width : 420,
- height : 500
+ title : 'YaCy Portal Search'
};
$.getScript(yconf.url+'/yacy/ui/js/yacyui-portalsearch.js', function(){});
});
@@ -20,8 +18,8 @@
<h3>YaCy Portal Search:</h3>
<div id="yacy">
<form id="ysearch" method="get" accept-charset="UTF-8" action="http://localhost:8081/yacysearch.html">
- <input name="query" id="yquery" type="text" size="15" maxlength="80" value=""/>
- <input type="hidden" name="verify" value="false" />
+ <input name="search" id="yquery" type="text" size="15" maxlength="80" value=""/>
+ <input type="hidden" name="verify" value="true" />
<input type="hidden" name="maximumRecords" value="10" />
<input type="hidden" name="resource" value="local" />
<input type="hidden" name="urlmaskfilter" value=".*" />
@@ -37,11 +35,9 @@
&lt;script&gt;
$(document).ready(function() {
yconf = {
- url : 'http://localhost:8081/',
+ url : 'http://localhost:8081',
theme : 'start',
- title : 'YaCy P2P Web Search',
- width : 420,
- height : 500
+ title : 'YaCy Portal Search'
};
$.getScript(yconf.url+'/yacy/ui/js/yacyui-portalsearch.js', function(){});
});
@@ -49,7 +45,7 @@
&lt;div id="yacy"&gt;
&lt;form id="ysearch" method="get" accept-charset="UTF-8" action="http://localhost:8081/yacysearch.html"&gt;
&lt;input name="query" id="yquery" type="text" size="15" maxlength="80" value=""/&gt;
- &lt;input type="hidden" name="verify" value="false" /&gt;
+ &lt;input type="hidden" name="verify" value="true" /&gt;
&lt;input type="hidden" name="maximumRecords" value="10" /&gt;
&lt;input type="hidden" name="resource" value="local" /&gt;
&lt;input type="hidden" name="urlmaskfilter" value=".*" /&gt;
@@ -59,7 +55,24 @@
&lt;input type="submit" name="Enter" value="Suchen" /&gt;
&lt;/form&gt;
&lt;/div&gt;
-</pre>
+</pre>
+<h4>Configuration options and defaults:</h4>
+<pre>
+url : 'is a mandatory property - no default',
+theme : 'start',
+title : 'YaCy P2P Web Search',
+width : 420,
+height : 500,
+position: ['top',50],
+modal: false,
+resizable: true,
+show: '',
+hide: ''
+</pre>
+<h4>Themes:</h4>
+<p>You can <a href="http://jquery-ui.googlecode.com/files/jquery-ui-themes-1.7.zip" target="_blank">
+download</a> ready made themes or <a href="http://jqueryui.com/themeroller/" target="_blank">create</a>
+your own custom theme. <br/>Themes are installed into: DATA/HTDOCS/yacy/ui/css/themes/</p>
</body>
</html>