adopted many calls to new api path

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5498 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 16 years ago
parent b423d0a036
commit 6663365720

@ -254,7 +254,7 @@ To see a list of all APIs, please visit the <a href="http://www.yacy-websuche.de
/
<a href="Bookmarks.html?delete=#[hash]#" class="bookmarkAction" onclick="return confirm('Confirm deletion')">Delete</a>
/
<a href="/xml/util/getpageinfo_p.xml?url=#[link]#" class="bookmarkAction">Info</a>
<a href="/api/util/getpageinfo_p.xml?url=#[link]#" class="bookmarkAction">Info</a>
</p>
</div>
#{/bookmarks}#

@ -22,7 +22,7 @@
#%env/templates/header.template%#
#%env/templates/submenuWebStructure.template%#
<div id="api"><a href="/xml/webstructure.xml"><img src="env/grafics/api.png"></a>
<div id="api"><a href="/api/webstructure.xml"><img src="env/grafics/api.png"></a>
<span>The data that is visualized here can also be retrieved in a XML file. The XM L contains a back-reference of domains. That means you can see the set of domains that all link to the same (other) domain, which could be called a 'reverse domain index'.
Click the API icon to see the XML file.
To see a list of all APIs, please visit the <a href="http://www.yacy-websuche.de/wiki/index.php/Dev:API">API wiki page</a>.</span>

@ -24,7 +24,7 @@ function loadTitle(){
url=document.getElementsByName("url")[0].value;
if(document.getElementsByName("title")[0].value==""){
sndReq('/xml/util/getpageinfo_p.xml?actions=title&url='+url);
sndReq('/api/util/getpageinfo_p.xml?actions=title&url='+url);
}
}

@ -64,5 +64,5 @@ function loadInfos(){
document.getElementsByName("ajax")[0].setAttribute("src",AJAX_ON);
url=document.getElementsByName("crawlingURL")[0].value;
sndReq('/xml/util/getpageinfo_p.xml?actions=title,robots&url='+url);
sndReq('/api/util/getpageinfo_p.xml?actions=title,robots&url='+url);
}

@ -51,13 +51,13 @@ function refresh(){
function requestStatus(){
statusRPC=createRequestObject();
statusRPC.open('get', '/xml/status_p.xml?html=');
statusRPC.open('get', '/api/status_p.xml?html=');
statusRPC.onreadystatechange = handleStatus;
statusRPC.send(null);
}
function requestQueues(){
queuesRPC=createRequestObject();
queuesRPC.open('get', '/xml/queues_p.xml?html=');
queuesRPC.open('get', '/api/queues_p.xml?html=');
queuesRPC.onreadystatechange = handleQueues;
queuesRPC.send(null);

@ -122,7 +122,7 @@ function idlepingExec() {
}
function load() {
getRSS("/xml/feed.rss?count=80&set=" + set + "&requestCount=" + requestCount + "&time=" + (new Date()).getTime());
getRSS("/api/feed.rss?count=80&set=" + set + "&requestCount=" + requestCount + "&time=" + (new Date()).getTime());
requestCount++;
}

@ -140,7 +140,7 @@
// var query = "&url="+url+"&title="+title+"&description="+desc+"&tags="+tags+"&path="+path+"&public="+pub+"&add=create";
$.ajax({
type: "POST",
url: "/xml/bookmarks/posts/add_p.xml",
url: "/api/bookmarks/posts/add_p.xml",
data: "login=&url="+url+"&title="+title+"&description="+desc+"&tags="+tags+"&path="+path+"&public="+pub+"&add=create",
dataType: "xml",
success: function(xml) {

@ -12,11 +12,11 @@
/* Menu .click(function() */
$("#login").click(function() {
$.ajax({
url: "/xml/bookmarks/xbel/xbel.xml?login=true",
url: "/api/bookmarks/xbel/xbel.xml?login=true",
method : "GET",
dataType: "xml",
success: function(xml) {
// ToDo: /xml/util/login.xml
// ToDo: /api/util/login.xml
// alert("Login");
}
});
@ -73,7 +73,7 @@
<option value="/yacysearch.rss?resource=global&verify=true" selected="selected">freeworld</option>
<option value="/yacysearch.rss?resource=local&verify=true" >local peer</option>
<option value="ymarks" >bookmarks</option>
<option value="/xml/util/ynetSearch.xml?login=&url=http://sciencenet.fzk.de:8080/yacysearch.rss?resource=global&verify=true" >sciencenet</option>
<option value="/api/util/ynetSearch.xml?login=&url=http://sciencenet.fzk.de:8080/yacysearch.rss?resource=global&verify=true" >sciencenet</option>
</select>
<br />
<label for="resource">Language:</label>

@ -24,7 +24,7 @@
});
function loadFolders() {
$("#yfolder *").remove();
$("#yfolder").getTransform('xsl/xbel2folder-ul.xsl','/xml/bookmarks/xbel/xbel.xml');
$("#yfolder").getTransform('xsl/xbel2folder-ul.xsl','/api/bookmarks/xbel/xbel.xml');
$("#yfolder").treeview({
collapsed: true,
unique: true
@ -35,7 +35,7 @@
$("#sidebar-2-1").toggleClass("loading");
$.ajax({
type: "POST",
url: "/xml/bookmarks/tags/get.xml?top=25&sort=alpha",
url: "/api/bookmarks/tags/getTag.xml?top=25&sort=alpha",
dataType: "xml",
cache: false,
success: function(xml) {

@ -7,7 +7,7 @@
var height=document.documentElement.clientHeight - 240;
$('#ymarks').flexigrid({
url: '/xml/bookmarks/get_bookmarks.json?display=1',
url: '/api/bookmarks/get_bookmarks.json?display=1',
dataType: 'json',
method: 'GET',
colModel: [
@ -51,18 +51,18 @@
});
function bm_action(com,grid) {
if (com=='XBEL') {
window.document.location.href = '/xml/bookmarks/xbel/xbel.xml';
window.document.location.href = '/api/bookmarks/xbel/xbel.xml';
}
else if (com=='RSS') {
window.document.location.href = '/Bookmarks.rss';
}
else if (com=='XML') {
window.document.location.href = '/xml/bookmarks/posts/all.xml';
window.document.location.href = '/api/bookmarks/posts/all.xml';
}
else if (com=='Delete') {
confirm('Delete ' + $('.trSelected',grid).length + ' bookmark(s)?')
$('.trSelected',grid).each(function(){
var url = "/xml/bookmarks/posts/delete_p.xml?login=&urlhash="+$(this).find('td :first').text();
var url = "/api/bookmarks/posts/delete_p.xml?login=&urlhash="+$(this).find('td :first').text();
$.ajax({
type: 'POST',
url: url,
@ -79,7 +79,7 @@
var url = $("input[@name='bm_url']").getValue();
$.ajax({
type: "GET",
url: "/xml/util/getpageinfo_p.xml?url="+url,
url: "/api/util/getpageinfo_p.xml?url="+url,
dataType: "xml",
success: function(xml) {
var title = $(xml).find('title').text();

@ -85,7 +85,7 @@
var query = "&url="+url+"&title="+title+"&description="+desc+"&tags="+tags+"&path="+path+"&public="+pub+"&add=create";
$.ajax({
type: "POST",
url: "/xml/bookmarks/posts/add_p.xml?login="+query,
url: "/api/bookmarks/posts/add_p.xml?login="+query,
dataType: "xml",
success: function(xml) {
alert("Debug: posted bookmark for: "+url);

@ -28,7 +28,7 @@ apfelmaennchen
<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>
<li>10-05-2008: bookmarks are now retrieved from /xml/bookmarks/xbel/xbel.xml and do no longer require a seperate servlet</li>
<li>10-05-2008: bookmarks are now retrieved from /api/bookmarks/xbel/xbel.xml and do no longer require a seperate servlet</li>
<li>19-04-2008: new double-accordion sidebar menu is up and running (I am open for suggestions on how to populate the menus).</li>
<li>19-04-2008: search results are now retrieved from yacysearch.rss (XML) and do no longer need a seperate servlet</li>
</ul>

Loading…
Cancel
Save