Skip to content

Commit 9294e9d

Browse files
Mattia VianelliAndrea Barbasso
authored andcommitted
Merged in task/dspace-cris-2025_02_x/DSC-2759 (pull request DSpace#4827)
Task/dspace cris 2025 02 x/DSC-2759 Approved-by: Andrea Barbasso
2 parents 1db0b31 + 52e5cdb commit 9294e9d

10 files changed

Lines changed: 12 additions & 28 deletions

File tree

src/app/entity-groups/research-entities/item-list-elements/search-result-list-elements/person/person-search-result-list-element.component.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import { ThemeService } from '../../../../../shared/theme-support/theme.service'
3535
import { TruncatableComponent } from '../../../../../shared/truncatable/truncatable.component';
3636
import { TruncatableService } from '../../../../../shared/truncatable/truncatable.service';
3737
import { TruncatablePartComponent } from '../../../../../shared/truncatable/truncatable-part/truncatable-part.component';
38+
import { EscapeHtmlPipe } from '../../../../../shared/utils/escape-html.pipe';
3839
import { TruncatePipe } from '../../../../../shared/utils/truncate.pipe';
3940
import { ThemedThumbnailComponent } from '../../../../../thumbnail/themed-thumbnail.component';
4041
import { PersonSearchResultListElementComponent } from './person-search-result-list-element.component';
@@ -180,7 +181,7 @@ describe('PersonSearchResultListElementComponent', () => {
180181
provide: TranslateLoader,
181182
useClass: TranslateLoaderMock,
182183
},
183-
}), TruncatePipe],
184+
}), TruncatePipe, EscapeHtmlPipe],
184185
providers: [
185186
{ provide: TruncatableService, useValue: mockTruncatableService },
186187
{ provide: DSONameService, useClass: DSONameServiceMock },
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
@if (name) {<h1>{{ name }}</h1>}
1+
@if (name) {<h1>{{ name }}</h1>}

src/app/shared/comcol/comcol-page-header/comcol-page-header.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
Input,
55
} from '@angular/core';
66

7+
78
@Component({
89
selector: 'ds-comcol-page-header',
910
styleUrls: ['./comcol-page-header.component.scss'],
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
:host {
2-
::ng-deep em {
3-
font-weight: bold;
4-
font-style: normal;
5-
}
2+
63
}
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
:host {
2-
::ng-deep em {
3-
font-weight: bold;
4-
font-style: normal;
5-
}
2+
63
}

src/app/shared/search/search-filters/search-filter/search-authority-filter/search-authority-filter.component.scss

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,4 @@
1414
cursor: pointer;
1515
}
1616
}
17-
::ng-deep em {
18-
font-weight: bold;
19-
font-style: normal;
20-
}
17+

src/app/shared/search/search-filters/search-filter/search-boolean-filter/search-boolean-filter.component.scss

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
cursor: pointer;
66
}
77
}
8-
::ng-deep em {
9-
font-weight: bold;
10-
font-style: normal;
11-
}
8+
129

1310

src/app/shared/search/search-filters/search-filter/search-hierarchy-filter/search-hierarchy-filter.component.scss

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,4 @@
55
cursor: pointer;
66
}
77
}
8-
::ng-deep em {
9-
font-weight: bold;
10-
font-style: normal;
11-
}
8+

src/app/shared/search/search-filters/search-filter/search-text-filter/search-text-filter.component.scss

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,4 @@
66
cursor: pointer;
77
}
88
}
9-
::ng-deep em {
10-
font-weight: bold;
11-
font-style: normal;
12-
}
9+

src/app/shared/utils/emphasize.pipe.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
name: 'dsEmphasize',
88
})
99
/**
10-
* Pipe for emphasizing a part of a string by surrounding it with <em> tags
10+
* Pipe for emphasizing a part of a string by surrounding it with <strong> tags
1111
*/
1212
export class EmphasizePipe implements PipeTransform {
1313
/**
@@ -47,7 +47,7 @@ export class EmphasizePipe implements PipeTransform {
4747
transform(haystack, needle): any {
4848
const escaped = this.escapeRegExp(needle);
4949
const reg = new RegExp(escaped, 'gi');
50-
return haystack.replace(reg, '<em>$&</em>');
50+
return haystack.replace(reg, '<strong>$&</strong>');
5151
}
5252

5353
/**

0 commit comments

Comments
 (0)