YaCy-UI: basic support for searching bookmark tags...

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4821 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
apfelmaennchen 17 years ago
parent c8c93c198b
commit f494d944fd

@ -59,33 +59,37 @@
$tabs.tabs() $tabs.tabs()
.bind('select.ui-tabs', function(e, ui) { .bind('select.ui-tabs', function(e, ui) {
/* set global variable tabid */ /* set global variable tabid */
tabid = '#' + ui.panel.id; tabid = '#' + ui.panel.id;
if (tabid == "#Bookmarks") {
/* set query string */ $("select[@name='resource']").setValue('ymarks');
var search = $(tabid).attr('search'); $("input[@name='search']").setValue(qtag);
var contentdom = $(tabid).attr('contentdom'); } else {
var count = $(tabid).attr('count'); /* set query string */
var offset = $(tabid).attr('offset'); var search = $(tabid).attr('search');
var resource = $(tabid).attr('resource'); var contentdom = $(tabid).attr('contentdom');
var constraint= $(tabid).attr('constraint'); var count = $(tabid).attr('count');
var prefermaskfilter = $(tabid).attr('prefermaskfilter'); var offset = $(tabid).attr('offset');
var urlmaskfilter = $(tabid).attr('urlmaskfilter'); var resource = $(tabid).attr('resource');
var constraint= $(tabid).attr('constraint');
var prefermaskfilter = $(tabid).attr('prefermaskfilter');
var urlmaskfilter = $(tabid).attr('urlmaskfilter');
query = $(tabid).attr('resource') query = $(tabid).attr('resource')
+"&search="+search +"&search="+search
+"&contentdom="+contentdom +"&contentdom="+contentdom
+"&count="+count +"&count="+count
+"&offset="+offset +"&offset="+offset
+"&constraint="+constraint +"&constraint="+constraint
+"&prefermaskfilter="+prefermaskfilter +"&prefermaskfilter="+prefermaskfilter
+"&urlmaskfilter="+urlmaskfilter; +"&urlmaskfilter="+urlmaskfilter;
$("input[@name='search']").setValue(search); $("input[@name='search']").setValue(search);
$("select[@name='itemsPerPage']").setValue(count); $("select[@name='itemsPerPage']").setValue(count);
$("select[@name='contentdom']").setValue(contentdom); $("select[@name='contentdom']").setValue(contentdom);
$("select[@name='constraint']").setValue(constraint); $("select[@name='constraint']").setValue(constraint);
$("input[@name='prefermaskfilter']").setValue(prefermaskfilter); $("input[@name='prefermaskfilter']").setValue(prefermaskfilter);
$("input[@name='urlmaskfilter']").setValue(urlmaskfilter); $("input[@name='urlmaskfilter']").setValue(urlmaskfilter);
$('#yoptions').trigger('update'); $('#yoptions').trigger('update');
}
}); });
/* Load Sidebar */ /* Load Sidebar */
@ -95,10 +99,19 @@
/* Load Search Result into new Tab */ /* Load Search Result into new Tab */
$('#searchbox').submit(function() { $('#searchbox').submit(function() {
var tabnr = $('#container > ul').tabs('length'); if ($("select[@name='resource']").getValue() == "ymarks") {
var tabname = $("input[@name='search']").getValue(); qtag = $("input[@name='search']").getValue();
$tabs.tabs('add', "ysearch.html", '*' + tabname); if (tabid == "#Bookmarks") {
$tabs.tabs('select',tabnr); $tabs.tabs("load", 2);
} else {
$tabs.tabs('select',2);
}
} else {
var tabnr = $('#container > ul').tabs('length');
var tabname = $("input[@name='search']").getValue();
$tabs.tabs('add', "ysearch.html", '*' + tabname);
$tabs.tabs('select',tabnr);
}
return false; return false;
}); });

@ -20,7 +20,13 @@
.appendTo('#tagcloud') .appendTo('#tagcloud')
.bind('click', function() { .bind('click', function() {
qtag = $(this).text(); qtag = $(this).text();
$('#container ul').tabs("load", 2); $("select[@name='resource']").setValue('ymarks');
$("input[@name='search']").setValue(qtag);
if (tabid == "#Bookmarks") {
$('#container ul').tabs("load", 2);
} else {
$('#container ul').tabs('select',2);
}
}); });
}); //close each( }); //close each(
} }

@ -10,6 +10,8 @@
apfelmaennchen apfelmaennchen
<h3>Change Log</h3> <h3>Change Log</h3>
<ul> <ul>
<li>18-05-2008: YaCy-UI has basic support for searching Bookmark tags !!</li>
<li>17-05-2008: YaCy-Widget: e.g. /yacy/ui/ywidget.html?search=yacy&count=50&offset=0</li>
<li>14-05-2008: YaCy-UI now support searching Sciencenet !!</li> <li>14-05-2008: YaCy-UI now support searching Sciencenet !!</li>
<li>12-05-2008: added tagcloud for bookmarks</li> <li>12-05-2008: added tagcloud for bookmarks</li>
<li>12-05-2008: bookmarks support date and public fields as they have been added to XBEL output.</li> <li>12-05-2008: bookmarks support date and public fields as they have been added to XBEL output.</li>

Loading…
Cancel
Save