Skip to content
Snippets Groups Projects
Commit 1cc03fdf authored by Karl Hasselbring's avatar Karl Hasselbring
Browse files

Quicktips auf neuste Version umgestellt

parent 54a0ee60
No related branches found
No related tags found
1 merge request!1365Resolve "Filter Options for MetaGer"
...@@ -583,15 +583,16 @@ function getQuicktips (search, locale, blacklist, loadedHandler) { ...@@ -583,15 +583,16 @@ function getQuicktips (search, locale, blacklist, loadedHandler) {
}); });
$.get(getString, function (data, status) { $.get(getString, function (data, status) {
if (status === 'success') { if (status === 'success') {
var quicktips = $(data).find('entry').map(function () { var quicktips = $(data).children('feed').children('entry').map(function () {
console.log(this);
return quicktip = { return quicktip = {
type: $(this).children('type').text(), type: $(this).children('mg\\:type').text(),
title: $(this).children('title').text(), title: $(this).children('title').text(),
summary: $(this).children('summary').text(), summary: $(this).children('content').text(),
url: $(this).children('url').text(), url: $(this).children('link').text(),
gefVon: $(this).children('gefVon').text(), gefVon: $(this).children('gefVon').text(),
score: $(this).children('relevance\\:score').text(), score: $(this).children('relevance\\:score').text(),
details: $(this).children('details').map(function () { details: $(this).children('mg\\:details').children('entry').map(function () {
return { return {
title: $(this).children('title').text(), title: $(this).children('title').text(),
text: $(this).children('text').text(), text: $(this).children('text').text(),
...@@ -600,6 +601,7 @@ function getQuicktips (search, locale, blacklist, loadedHandler) { ...@@ -600,6 +601,7 @@ function getQuicktips (search, locale, blacklist, loadedHandler) {
}).toArray() }).toArray()
}; };
}).toArray(); }).toArray();
console.log(quicktips);
loadedHandler(quicktips); loadedHandler(quicktips);
} else { } else {
console.error('Loading quicktips failed with status ' + status); console.error('Loading quicktips failed with status ' + status);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment