From 50194b3b500c64299d54d128b0445b80513894b3 Mon Sep 17 00:00:00 2001 From: Alex ORLUC <alex.orluc@maarch.org> Date: Thu, 15 Oct 2020 15:55:57 +0200 Subject: [PATCH] FEAT #13271 TIME 0:30 fix title --- .../app/search/result-list/search-result-list.component.html | 5 +++-- .../app/search/result-list/search-result-list.component.ts | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) 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 b2844304f83..cb9bda9aecd 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 70e4278db11..d374f059733 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) { -- GitLab