Jump to results of type: "); while (it.hasNext()) { Object key = it.next(); VClassGroup grp = (VClassGroup) results.get(key); out.println(" " + key + " "); } out.println("
"); //get each ClassGroup it = results.keySet().iterator(); while (it.hasNext()) { Object key = it.next(); VClassGroup grp = (VClassGroup) results.get(key); out.println("" + key + "
"); //get each VClassList Iterator it2 = grp.iterator(); while (it2.hasNext()) { VClassList vcl = (VClassList) it2.next(); int resultSetSize = vcl.getEntities().size(); int displayLimit = vcl.getDisplayLimit(); if (resultSetSize - displayLimit == 1) ++displayLimit; boolean hiddenDivStarted = false; out.println("" + vcl.getName() + " (" + resultSetSize + ")
"); out.println("- ");
List ents = vcl.getEntities();
if (ents == null || ents.size() == 0)
out.println("
- none "); else { //get each entity Iterator it3 = ents.iterator(); int count = 0; while (it3.hasNext()) { Individual ent = (Individual) it3.next(); ++count; String escapedURIStr = ""; try { escapedURIStr = URLEncoder.encode(ent.getURI(),"UTF-8"); } catch (Exception e) { /*unsupported encoding?*/ } out.println("
- ");
out.println("" + ent.getName().replaceAll("&","&") + "");
if (ent.getMoniker() != null && ent.getMoniker().length() > 0) {
out.println(" | " + ent.getMoniker().replaceAll("&","&"));
}
if (portal.getPortalId() == 6) { //show anchors in impact portal for submitter's name
if (ent.getAnchor() != null && ent.getAnchor().length() > 0) {
out.println(" | " + ent.getAnchor() + "");
}
}
/* if (portal.getAppName().equalsIgnoreCase("VIVO") || portal.getAppName().equalsIgnoreCase("Research")) {
//Medha's desired display
if (ent.getUrl() != null && ent.getUrl().length() > 0) {
out.println(" | "
+ ent.getAnchor().replaceAll("&","&") + "");
} else if (ent.getAnchor() != null && ent.getAnchor().length() > 0) {
out.println(" | " + ent.getAnchor().replaceAll("&","&") + "");
}
List linksList = ent.getLinksList();
if (linksList != null) {
Iterator lit = linksList.iterator();
while (lit.hasNext()) {
Link l = (Link) lit.next();
if (l.getUrl() != null && l.getUrl().length() > 0) {
out.println(" | "
+ l.getAnchor().replaceAll("&","&") + "");
} else {
out.println(" | " + l.getAnchor().replaceAll("&","&") + "");
}
}
}
} else { //show the Google-like excerpt */
if (ent.getDescription() != null && ent.getDescription().length() > 0) {
out.println("" + ent.getDescription() + ""); } /* } */ out.println(" ");
int remaining = resultSetSize - count;
if (count == displayLimit && remaining > 0) {
hiddenDivStarted = true; switchdivs++; %>