From 4d733608fb34cb440c44df46f86d1d33ef48b247 Mon Sep 17 00:00:00 2001 From: orbiter Date: Wed, 9 Mar 2011 20:08:20 +0000 Subject: [PATCH] fix for broken JSON, see: http://forum.yacy-websuche.de/viewtopic.php?p=22162#p22162 git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7577 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/yacysearchitem.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htroot/yacysearchitem.java b/htroot/yacysearchitem.java index d4226d6fe..0c29a1c7d 100644 --- a/htroot/yacysearchitem.java +++ b/htroot/yacysearchitem.java @@ -155,7 +155,7 @@ public class yacysearchitem { prop.putHTML("content_host", resultURL.getHost() == null ? "" : resultURL.getHost()); prop.putHTML("content_file", resultURL.getFile()); prop.putHTML("content_path", resultURL.getPath()); - prop.put("content_nl", (item == 0) ? 0 : 1); + prop.put("content_nl", (item == theQuery.offset) ? 0 : 1); prop.putHTML("content_publisher", result.publisher()); prop.putHTML("content_creator", result.creator());// author prop.putHTML("content_subject", result.subject()); @@ -220,7 +220,7 @@ public class yacysearchitem { prop.put("content_item_source", ms.source.toNormalform(true, false)); prop.putXML("content_item_source-xml", ms.source.toNormalform(true, false)); prop.put("content_item_sourcedom", ms.source.getHost()); - prop.put("content_item_nl", (item == 0) ? 0 : 1); + prop.put("content_item_nl", (item == theQuery.offset) ? 0 : 1); prop.put("content_item", 1); } theQuery.transmitcount = item + 1;