diff --git a/src/frontend/app/search/result-list/search-result-list.component.html b/src/frontend/app/search/result-list/search-result-list.component.html index b2844304f833c15b30ca5add65f8f85e478338f3..cb9bda9aecda03e63f3de8dfe96950261d298d1f 100644 --- a/src/frontend/app/search/result-list/search-result-list.component.html +++ b/src/frontend/app/search/result-list/search-result-list.component.html @@ -188,16 +188,17 @@ *ngIf="row.chrono == this.translate.instant('lang.undefined') && row.barcode != this.translate.instant('lang.undefined')"> <span style="color: rgba(0,0,0,0.4);font-size: 90%;"> <i title="{{'lang.barcode' | translate}}" class="fas fa-barcode"></i> <span + title="{{row.barcode_title}}" [innerHTML]="row.barcode"></span> </span> </ng-container> <ng-container *ngIf="row.chrono != this.translate.instant('lang.undefined')"> - <span [innerHTML]="row.chrono"></span> + <span title="{{row.chrono_title}}" [innerHTML]="row.chrono"></span> </ng-container> </span> <span class="main-info-data" (click)="launch(row);" style="font-weight:bold;flex:1;cursor:pointer;" [class.undefined]="row.subject == this.translate.instant('lang.undefined')" - title="{{row.subject}}" [innerHTML]="row.subject | shorten: 150: '...'"></span> + title="{{row.subject_title}}" [innerHTML]="row.subject | shorten: 150: '...'"></span> <span *ngIf="sidenavRight !== undefined" class="main-info-action"> <button mat-icon-button [class.highlightResultIcon]="row.inNotes" title="{{'lang.notes' | translate}}" diff --git a/src/frontend/app/search/result-list/search-result-list.component.ts b/src/frontend/app/search/result-list/search-result-list.component.ts index 70e4278db11e9756415d36d5d1b109f94925d880..d374f059733c144ede0258f3e40e97b984d0e011 100644 --- a/src/frontend/app/search/result-list/search-result-list.component.ts +++ b/src/frontend/app/search/result-list/search-result-list.component.ts @@ -429,6 +429,7 @@ export class SearchResultListComponent implements OnInit, OnDestroy { } // Process main datas Object.keys(element).forEach((key) => { + element[key + '_title'] = element[key]; if (key === 'statusImage' && element[key] == null) { element[key] = 'fa-question undefined'; } else if ((element[key] == null || element[key] === '') && ['closingDate', 'countAttachments', 'countNotes', 'display', 'mailTracking', 'hasDocument'].indexOf(key) === -1) {