mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:relevance="http://a9.com/-/opensearch/extensions/relevance/1.0/">
|
||||
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:relevance="http://a9.com/-/opensearch/extensions/relevance/1.0/" xmlns:alf="http://www.alfresco.org/opensearch/1.0/">
|
||||
<generator version="${server.version}">Alfresco (${server.edition})</generator>
|
||||
<title>Alfresco Keyword Search: ${search.searchTerms}</title>
|
||||
<updated>${xmldate(date)}</updated>
|
||||
@@ -29,6 +29,7 @@
|
||||
<link rel="alternate" href="${absurl(url.context)}${row.url}"/>
|
||||
<icon>${absurl(url.context)}${row.icon16}</icon> <#comment>TODO: What's the standard for entry icons?</#comment>
|
||||
<id>urn:uuid:${row.id}</id>
|
||||
<alf:noderef>${row.nodeRef}</alf:noderef>
|
||||
<updated>${xmldate(row.properties.modified)}</updated>
|
||||
<summary>${row.properties.description!""}</summary>
|
||||
<author>
|
||||
|
@@ -64,8 +64,7 @@
|
||||
|
||||
.osResultIcon
|
||||
{
|
||||
padding-right: 6px;
|
||||
padding-top: 6px;
|
||||
padding: 4px 4px 0px 4px;
|
||||
}
|
||||
|
||||
.osResultTitle
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user