diff --git a/resources/assets/js/scriptResultPage.js b/resources/assets/js/scriptResultPage.js index 91fa5bb0ed03bd3d4bb86463c333ee2e25658c39..b3e4db10dc0ffe5665f71372670b01374cad765f 100644 --- a/resources/assets/js/scriptResultPage.js +++ b/resources/assets/js/scriptResultPage.js @@ -583,15 +583,16 @@ function getQuicktips (search, locale, blacklist, loadedHandler) { }); $.get(getString, function (data, status) { if (status === 'success') { - var quicktips = $(data).find('entry').map(function () { + var quicktips = $(data).children('feed').children('entry').map(function () { + console.log(this); return quicktip = { - type: $(this).children('type').text(), + type: $(this).children('mg\\:type').text(), title: $(this).children('title').text(), - summary: $(this).children('summary').text(), - url: $(this).children('url').text(), + summary: $(this).children('content').text(), + url: $(this).children('link').text(), gefVon: $(this).children('gefVon').text(), score: $(this).children('relevance\\:score').text(), - details: $(this).children('details').map(function () { + details: $(this).children('mg\\:details').children('entry').map(function () { return { title: $(this).children('title').text(), text: $(this).children('text').text(), @@ -600,6 +601,7 @@ function getQuicktips (search, locale, blacklist, loadedHandler) { }).toArray() }; }).toArray(); + console.log(quicktips); loadedHandler(quicktips); } else { console.error('Loading quicktips failed with status ' + status);