Source: site.view [edit]
Function name: cmdPersonProfile
Arguments: id
Description: Looks up a person's profile
Page type: webl
Render function:   personProfile
Module: collabExt

Page source:

var res = nil;

var reader = Wub_ReadLuceneIndex("resumes");
var docs = Wub_LuceneSearch(reader, "id", id, 1, "standard");
var ok = true;
ok = Wub_CloseLuceneIndex(reader);

var d = [. .];
if (ok and (docs.size() == 1)) then
   var doc = docs.get(0).getDoc();
   var i = 0;
   d["id"] := doc.getField("id").stringValue();
   d["name"] := (doc.getField("name").stringValue() ? "Unknown Name");
   d["location"] := (doc.getField("location").stringValue() ? "");
   d["industry"] := (doc.getField("industry").stringValue() ? "");
   d["site-standard-profile-request"] := (doc.getField("site-standard-profile-request").stringValue() ? "");
   d["picture-url"] := (doc.getField("picture-url").stringValue() ? "");
   d["summary"] := (doc.getField("summary").stringValue() ? "");
   d["headline"] := (doc.getField("headline").stringValue() ? "");
   d["positions"] := (doc.getField("positions").stringValue() ? "");
   d["educations"] := (doc.getField("educations").stringValue() ? "");
   d["eduScore"] := (doc.getField("eduScore").stringValue() ? 0);
   d["region"] := (doc.getField("region").stringValue() ? 0);
   d["degreeScore"] := (doc.getField("eduScore").stringValue() ? 0);
   d["schoolScore"] := (doc.getField("schoolScore").stringValue() ? 0);
end;  

d;