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

@ -60,7 +60,10 @@
.bind('select.ui-tabs', function(e, ui) {
/* set global variable tabid */
tabid = '#' + ui.panel.id;
if (tabid == "#Bookmarks") {
$("select[@name='resource']").setValue('ymarks');
$("input[@name='search']").setValue(qtag);
} else {
/* set query string */
var search = $(tabid).attr('search');
var contentdom = $(tabid).attr('contentdom');
@ -86,6 +89,7 @@
$("input[@name='prefermaskfilter']").setValue(prefermaskfilter);
$("input[@name='urlmaskfilter']").setValue(urlmaskfilter);
$('#yoptions').trigger('update');
}
});
/* Load Sidebar */
@ -95,10 +99,19 @@
/* Load Search Result into new Tab */
$('#searchbox').submit(function() {
if ($("select[@name='resource']").getValue() == "ymarks") {
qtag = $("input[@name='search']").getValue();
if (tabid == "#Bookmarks") {
$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;
});

@ -20,7 +20,13 @@
.appendTo('#tagcloud')
.bind('click', function() {
qtag = $(this).text();
$("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(
}

@ -10,6 +10,8 @@
apfelmaennchen
<h3>Change Log</h3>
<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>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>

Loading…
Cancel
Save