2023-02-20 15:59:07 +01:00
|
|
|
<ul class="uk-list uk-margin" [ngClass]="custom_class">
|
2017-12-19 13:53:46 +01:00
|
|
|
<errorMessages [status]="[status]" [type]="'results'"></errorMessages>
|
2023-02-20 15:59:07 +01:00
|
|
|
<li *ngFor="let result of previewResults">
|
2022-03-15 12:13:28 +01:00
|
|
|
<result-preview [properties]="properties" [showOrganizations]="showOrganizations"
|
|
|
|
[showSubjects]="showSubjects" [result]="result" [showEnermaps]="showEnermaps"
|
[develop | DONE | ADDED]: Added compact view functionality on search pages.
1. newSearchPage.component.html: Increase left margin of download button | Added button for compact view | In <search-result> added parameter "compactView".
2. newSearchPage.component.html: Added class fields "@Input() hasCompactView: boolean = false;", to show compact button or not and "public compactView: boolean = false;" to show compact or expanded view of each result.
3. searchDownload.component.ts: Changed download <button> to <a> with class "custom-view-button" | Set visuallyHidden to icon.
4. searchResult.component.ts: Added class field "@Input() compactView: boolean = false;".
5. searchResult.component.html: In <result-preview added parameter "compactView".
6. entity-actions.component.ts: Added class field "@Input() compactView: boolean = false;" | When compactView is true, hide action labels - show only icons.
7. result-preview.component.ts: Added class field "@Input() compactView: boolean = false;".
8. result-preview.component.html: When compactView is true, make margins smaller, show 1 line in title, hide funder budget, identifiers, website url, oai-pmh url, description, action oa routes and metrics labels, and added "compactView" parameter in <entity-actions>.
2024-07-09 16:11:55 +02:00
|
|
|
[isCard]="true" [isMobile]="isMobile" [prevPath]="prevPath" [compactView]="compactView">
|
2022-03-15 12:13:28 +01:00
|
|
|
</result-preview>
|
2020-02-07 14:05:07 +01:00
|
|
|
</li>
|
2017-12-19 13:53:46 +01:00
|
|
|
</ul>
|