OpenSearch results shown in the web-client now have an icon to pop-up the AJAX document preview panel for the item.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5878 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2007-06-07 11:44:20 +00:00
parent f50258fa99
commit bd0b9c5fcd
3 changed files with 15 additions and 6 deletions

View File

@@ -467,7 +467,7 @@ Alfresco.OpenSearchClient.prototype =
{
if (link != null)
{
sb[sb.length] = "<a target='_new' href='";
sb[sb.length] = "<a target='new' href='";
sb[sb.length] = link;
sb[sb.length] = "'>";
}
@@ -476,13 +476,22 @@ Alfresco.OpenSearchClient.prototype =
{
sb[sb.length] = "</a>";
}
var noderef = Alfresco.Dom.getElementTextByTagNameNS(elResult, "http://www.alfresco.org/opensearch/1.0/", "alf", "noderef");
if (noderef != null)
{
sb[sb.length] = "<span onclick=\"AlfNodeInfoMgr.toggle('" + noderef + "',this);\">";
sb[sb.length] = "<img src='" + getContextPath() + "/images/icons/popup.gif' class='popupImage' width='16' height='16' />";
sb[sb.length] = "</span>";
}
}
sb[sb.length] = "</div><div class='osResultSummary'>";
sb[sb.length] = "</div>";
if (summary != null)
{
sb[sb.length] = "<div class='osResultSummary'>";
sb[sb.length] = summary;
sb[sb.length] = "</div>";
}
sb[sb.length] = "</div></td></tr>";
sb[sb.length] = "</td></tr>";
}
// close the table