Add additional columns to search results

Refs #69
This commit is contained in:
Will Abson
2016-05-20 16:38:54 +01:00
parent aaaf728168
commit f97f4ea088
3 changed files with 56 additions and 0 deletions

View File

@@ -55,6 +55,30 @@ export class AlfrescoSearchComponent {
this.displaySearchResults(this.currentSearchTerm);
}
/**
* Gets content URL for the given node.
* @param node Node to get URL for.
* @returns {string} URL address.
*/
getContentUrl(node: any): string {
if (this._alfrescoService) {
return this._alfrescoService.getContentUrl(node);
}
return null;
}
/**
* Gets thumbnail URL for the given document node.
* @param node Node to get URL for.
* @returns {string} URL address.
*/
getDocumentThumbnailUrl(node: any): string {
if (this._alfrescoService) {
return this._alfrescoService.getDocumentThumbnailUrl(node);
}
return null;
}
/**
* Loads and displays folder content
* @param searchTerm Search query entered by user