[Yanel-commits] rev 29782 -
public/yanel/contributions/realms/foaf/src/resources/findfriend/src/java/org/wyona/yanel/impl/resources/findfriend
michi at wyona.com
michi at wyona.com
Wed Dec 12 00:18:23 CET 2007
Author: michi
Date: 2007-12-12 00:18:22 +0100 (Wed, 12 Dec 2007)
New Revision: 29782
Modified:
public/yanel/contributions/realms/foaf/src/resources/findfriend/src/java/org/wyona/yanel/impl/resources/findfriend/FindFriendResource.java
Log:
use person also for excerpt
Modified: public/yanel/contributions/realms/foaf/src/resources/findfriend/src/java/org/wyona/yanel/impl/resources/findfriend/FindFriendResource.java
===================================================================
--- public/yanel/contributions/realms/foaf/src/resources/findfriend/src/java/org/wyona/yanel/impl/resources/findfriend/FindFriendResource.java 2007-12-11 23:17:19 UTC (rev 29781)
+++ public/yanel/contributions/realms/foaf/src/resources/findfriend/src/java/org/wyona/yanel/impl/resources/findfriend/FindFriendResource.java 2007-12-11 23:18:22 UTC (rev 29782)
@@ -89,7 +89,7 @@
sb.append("</result>");
} else {
// TODO: Check mime type (application/rdf+xml) or take a look inside ...!
- log.warn("DEBUG: Does not seem to be a RDF: " + url);
+ log.warn("Does not seem to be a RDF: " + url);
}
}
sb.append("</provider>");
@@ -106,10 +106,10 @@
Node[] pNodes = pRepo.search(qs);
if (pNodes != null) {
for (int i = 0; i < pNodes.length; i++) {
- org.wyona.foaf.api.basics.Person person = new org.wyona.foaf.impl.basics.PersonImpl();
+ org.wyona.foaf.api.basics.Person person = new org.wyona.foaf.impl.basics.PersonImpl(pNodes[i].getInputStream());
sb.append("<result number=\"" + "1" + "\" source-name=\"" + "Wyona-FOAF" + "\">");
sb.append("<title><![CDATA[" + person.getName() + "]]></title>");
- sb.append("<excerpt><![CDATA[" + "About Foo Bar ..." + "]]></excerpt>");
+ sb.append("<excerpt><![CDATA[" + "About " + person.getName() + " ..." + "]]></excerpt>");
sb.append("<url><![CDATA[" + "profiles/" + withoutSuffix(pNodes[i].getName()) + ".html" + "]]></url>");
sb.append("<last-modified><![CDATA[" + "null" + "]]></last-modified>");
sb.append("<mime-type suffix=\"html\">application/xhtml+xml</mime-type>");
More information about the Yanel-commits
mailing list