diff --git a/projects/admin/src/app/class/typeahead/documents-typeahead.ts b/projects/admin/src/app/class/typeahead/documents-typeahead.ts index e678ab9c3..a1ebb3106 100644 --- a/projects/admin/src/app/class/typeahead/documents-typeahead.ts +++ b/projects/admin/src/app/class/typeahead/documents-typeahead.ts @@ -119,9 +119,8 @@ export class DocumentsTypeahead implements ITypeahead { truncate = true; text = this._mainTitlePipe.transform(metadata.title).substr(0, this.maxLengthSuggestion); } - text = text.replace(new RegExp(escapeRegExp(query), 'gi'), `${query}`); if (truncate) { - text = text + ' ...'; + text = text + '…'; } return { label: text, diff --git a/projects/admin/src/app/class/typeahead/patrons-typeahead.ts b/projects/admin/src/app/class/typeahead/patrons-typeahead.ts index e009fa8a5..bb8f7486d 100644 --- a/projects/admin/src/app/class/typeahead/patrons-typeahead.ts +++ b/projects/admin/src/app/class/typeahead/patrons-typeahead.ts @@ -106,12 +106,8 @@ export class PatronsTypeahead implements ITypeahead { * @return Metadata - the label, $ref. */ private _getPatronsRef(metadata: any, query: string): SuggestionMetadata { - let label = this._patronService.getFormattedName(metadata); - if (metadata.hasOwnProperty('birth_date')) { - label += `[${metadata.birth_date}]`; - } return { - label, + label: this._patronService.getFormattedName(metadata), value: this._apiService.getRefEndpoint('patrons', metadata.pid) }; }