diff --git a/ng2-components/ng2-alfresco-search/src/services/alfresco.service.ts b/ng2-components/ng2-alfresco-search/src/services/alfresco.service.ts index 52c2eeed40..4b2c13b1c3 100644 --- a/ng2-components/ng2-alfresco-search/src/services/alfresco.service.ts +++ b/ng2-components/ng2-alfresco-search/src/services/alfresco.service.ts @@ -20,7 +20,6 @@ import { Http, Response } from 'angular2/http'; import { Observable } from 'rxjs/Observable'; import { AlfrescoSettingsService } from 'ng2-alfresco-core/services'; -import { NodePaging, MinimalNodeEntity } from './../models/document-library.model'; declare let AlfrescoApi: any; @@ -87,31 +86,11 @@ export class AlfrescoService { */ getLiveSearchResults(term: string) { return Observable.fromPromise(this.getSearchNodesPromise(term)) - .map(res => res) + .map(res => res) .do(data => console.log('Search data', data)) // eyeball results in the console .catch(this.handleError); } - /** - * Get thumbnail URL for the given document node. - * @param document Node to get URL for. - * @returns {string} URL address. - */ - getDocumentThumbnailUrl(document: MinimalNodeEntity) { - return this.getContentUrl(document) + '/thumbnails/doclib?c=queue&ph=true&lastModified=1&alf_ticket=' + this.getAlfrescoTicket(); - } - - /** - * Get content URL for the given node. - * @param document Node to get URL for. - * @returns {string} URL address. - */ - getContentUrl(document: MinimalNodeEntity) { - return this._host + - '/alfresco/service/api/node/workspace/SpacesStore/' + - document.entry.id + '/content'; - } - private handleError(error: Response) { // in a real world app, we may send the error to some remote logging infrastructure // instead of just logging it to the console