landing & search: match top row info between the 2 as much as possible
This commit is contained in:
parent
2b7c5da3d7
commit
39876e4ce6
|
@ -151,7 +151,7 @@ import {RouterHelper} from "../../utils/routerHelper.class";
|
|||
<span>Thematic</span>
|
||||
</ng-container>
|
||||
<!-- Projects -->
|
||||
<span uk-tooltip="Projects" *ngIf="projects && projects.length > 0" [class.truncated]="projects.length > 3">
|
||||
<span uk-tooltip="Funded By" *ngIf="projects && projects.length > 0" [class.truncated]="projects.length > 3">
|
||||
{{projectNames.slice(0,3).join(', ')}}
|
||||
</span>
|
||||
<!-- Organizations -->
|
||||
|
@ -238,9 +238,9 @@ export class EntityMetadataComponent {
|
|||
value = value + ' | ' + (project.acronym ? project.acronym :
|
||||
(project.title.length > 25 ? (project.title.slice(0, 25) + '...'): project.title));
|
||||
}
|
||||
if(project.code) {
|
||||
value = value + ' (' + project.code + ')';
|
||||
}
|
||||
// if(project.code) {
|
||||
// value = value + ' (' + project.code + ')';
|
||||
// }
|
||||
return value;
|
||||
});
|
||||
}
|
||||
|
|
|
@ -21,6 +21,7 @@ import {AlertModal} from "../../../utils/modal/alert";
|
|||
[languages]="languages" [programmingLanguages]="programmingLanguages"
|
||||
[compatibility]="compatibility" [aggregationStatus]="aggregationStatus"
|
||||
[thematic]="thematic" [type]="type" [prevPath]="prevPath"
|
||||
[countries]="countries" [projects]="projects"
|
||||
></entity-metadata>
|
||||
</div>
|
||||
<div *ngIf="authors">
|
||||
|
@ -61,4 +62,6 @@ export class LandingHeaderComponent {
|
|||
@Input() thematic: boolean; // data provider landing
|
||||
@Input() type; // data provider landing
|
||||
@Input() prevPath: string = "";
|
||||
@Input() countries;
|
||||
@Input() projects;
|
||||
}
|
||||
|
|
|
@ -4,6 +4,12 @@ import {EnvProperties} from "../../utils/properties/env-properties";
|
|||
@Component({
|
||||
selector: 'showPublisher, [showPublisher]',
|
||||
template: `
|
||||
<ng-container *ngIf="publisher">
|
||||
<span [attr.uk-tooltip]="'cls: uk-active'" [title]="'Publisher'">{{publisher}}</span>
|
||||
<span *ngIf="journal && (journal['journal'] || journal['issn'] || journal['lissn']
|
||||
|| journal['volume'] || journal['eissn'] || journal['issue'])"
|
||||
class="uk-margin-xsmall-left uk-margin-xsmall-right bullet"></span>
|
||||
</ng-container>
|
||||
<ng-container *ngIf="journal && (journal['journal'] || journal['issn'] || journal['lissn']
|
||||
|| journal['volume'] || journal['eissn'] || journal['issue'])">
|
||||
<ng-container *ngIf="journal && (journal['journal'] || journal['issn'] || journal['lissn']
|
||||
|
@ -64,10 +70,6 @@ import {EnvProperties} from "../../utils/properties/env-properties";
|
|||
<span *ngIf=" journal['journal'] && (journal['issn'] || journal['eissn'] || journal['lissn'])">)</span>
|
||||
</span>
|
||||
</ng-container>
|
||||
<span *ngIf="publisher" class="uk-margin-xsmall-left uk-margin-xsmall-right bullet"></span>
|
||||
</ng-container>
|
||||
<ng-container *ngIf="publisher">
|
||||
<span [attr.uk-tooltip]="'cls: uk-active'" [title]="'Publisher'">{{publisher}}</span>
|
||||
</ng-container>
|
||||
`
|
||||
})
|
||||
|
|
|
@ -222,7 +222,8 @@
|
|||
[date]="resultLandingInfo.dateofacceptance" [embargoEndDate]="resultLandingInfo.embargoEndDate"
|
||||
[publisher]="resultLandingInfo.publisher" [journal]="resultLandingInfo.journal"
|
||||
[languages]="resultLandingInfo.languages" [programmingLanguages]="resultLandingInfo.programmingLanguages"
|
||||
[prevPath]="prevPath">
|
||||
[prevPath]="prevPath" [countries]="resultLandingInfo.countries"
|
||||
[projects]="resultLandingInfo.fundedByProjects">
|
||||
</landing-header>
|
||||
<!-- Labels -->
|
||||
<!-- Not used anymore - access labels will be in action bars, languages in the landing-header component -->
|
||||
|
|
Loading…
Reference in New Issue