01-21-2014 09:01 AM
nodeService.addChild(siteFolderContainer, myFolder.getNodeRef(), ContentModel.ASSOC_CONTAINS,
QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI,
QName.createValidLocalName(myFolder.properties[ContentModel.PROP_NAME])));
renderDescription: function SiteSearch_renderDescription(elCell, oRecord, oColumn, oData)
{
var type = oRecord.getData("type"),
name = oRecord.getData("name"),
displayName = oRecord.getData("displayName"),
site = oRecord.getData("site"),
path = oRecord.getData("path"),
nodeRef = oRecord.getData("nodeRef"),
container = oRecord.getData("container"),
modifiedOn = oRecord.getData("modifiedOn"),
siteShortName = site.shortName,
siteTitle = site.title,
modified = Alfresco.util.formatDate(Alfresco.util.fromISO8601(modifiedOn)),
resultType = this.buildTextForType(type),
href = this.getBrowseUrl(name, type, site, path, nodeRef, container, modified);
elCell.innerHTML = this.buildNameWithHref(href, displayName) + this.buildDescription(resultType, siteShortName, siteTitle) + this.buildPath(type, path, site);
},
(function()
{
Alfresco.dashlet.MagentaSiteSearch = function MagentaSiteSearch_constructor(htmlId)
{
Alfresco.dashlet.MagentaSiteSearch.superclass.constructor.call(this, "Alfresco.dashlet.MagentaSiteSearch", htmlId, ["container", "datasource", "datatable"]);
this.name = "Alfresco.dashlet.MagentaSiteSearch";
return this;
};
/**
* Extend from Alfresco.dashlet.SiteSearch
*/
YAHOO.extend(Alfresco.dashlet.MagentaSiteSearch, Alfresco.dashlet.SiteSearch,
{
/**
* Called by the DataTable to render the 'description' cell
*
* @method renderThumbnail
* @param elCell {object}
* @param oRecord {object}
* @param oColumn {object}
* @param oData {object|string}
*/
renderDescription: function MagentaSiteSearch_renderDescription(elCell, oRecord, oColumn, oData)
{
var type = oRecord.getData("type"),
name = oRecord.getData("name"),
displayName = oRecord.getData("displayName"),
site = oRecord.getData("site"),
path = oRecord.getData("path"),
nodeRef = oRecord.getData("nodeRef"),
container = oRecord.getData("container"),
modifiedOn = oRecord.getData("modifiedOn"),
siteShortName = site ? site.shortName : "undefined",
siteTitle = site ? site.title : "undefined",
modified = Alfresco.util.formatDate(Alfresco.util.fromISO8601(modifiedOn)),
resultType = this.buildTextForType(type),
href = this.getBrowseUrl(name, type, site, path, nodeRef, container, modified);
elCell.innerHTML = this.buildNameWithHref(href, displayName) + this.buildDescription(resultType, siteShortName, siteTitle) + this.buildPath(type, path, site);
}
});
})();
Alfresco.dashlet.NukidocSiteSearch = function SiteSearch_constructor(htmlId) {
var siteSearch = new Alfresco.dashlet.SiteSearch(htmlId);
siteSearch.renderDescription = function NukidocSiteSearch_renderDescription(elCell, oRecord, oColumn, oData) {
var type = oRecord.getData("type"),
name = oRecord.getData("name"),
displayName = oRecord.getData("displayName"),
site = oRecord.getData("site"),
path = oRecord.getData("path"),
nodeRef = oRecord.getData("nodeRef"),
container = oRecord.getData("container"),
modifiedOn = oRecord.getData("modifiedOn"),
siteShortName = site ? site.shortName : "undefined",
siteTitle = site ? site.title : "undefined",
modified = Alfresco.util.formatDate(Alfresco.util.fromISO8601(modifiedOn)),
resultType = this.buildTextForType(type),
href = this.getBrowseUrl(name, type, site, path, nodeRef, container, modified);
elCell.innerHTML = this.buildNameWithHref(href, displayName) + this.buildDescription(resultType, siteShortName, siteTitle) + this.buildPath(type, path, site);
};
return siteSearch;
};
01-21-2014 09:28 AM
01-21-2014 10:35 AM
01-21-2014 10:34 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.