[Library | Trunk]: Remove Content Provider type from search and landing. (before Title). Change organizations tp partners in search results

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@59142 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
k.triantafyllou 2020-07-17 09:29:57 +00:00
parent 0a1576d618
commit 0965dff176
4 changed files with 3 additions and 4 deletions

View File

@ -22,7 +22,6 @@
<landing-header [properties]="properties" [title]="dataProviderInfo.title.name"
[subTitle]="(dataProviderInfo.officialName
&& dataProviderInfo.title.name !== dataProviderInfo.officialName)?dataProviderInfo.officialName:null"
[entityType]="'content provider'"
[types]="dataProviderInfo.type ? [dataProviderInfo.type] : null">
</landing-header>

View File

@ -12,7 +12,7 @@ import {AlertModal} from "../../../utils/modal/alert";
{{entityType}}
</span>
<span *ngIf="types && removeUnknown(types, true).length > 0">
{{' . ' + removeUnknown(types, true).join(' . ')}}
{{(entityType)?' . ':'' + removeUnknown(types, true).join(' . ')}}
</span>
<span>
<span *ngIf="startDate || endDate">

View File

@ -168,7 +168,7 @@
<!-- Organizations -->
<div *ngIf="showOrganizations && result.organizations && result.organizations.length > 0"
class="uk-text-small uk-margin-small-bottom">
<span class="uk-text-muted">Organization: </span>
<span class="uk-text-muted">Partners: </span>
<span *ngFor="let organization of result.organizations.slice(0,10) let i=index">
<span>{{organization.name}}</span>
<span *ngIf="(i < result.organizations.length-1) && (i < 9)">, </span>

View File

@ -58,7 +58,7 @@ export class ResultPreviewComponent implements OnInit{
}
public initBeforeTitle() {
if(this.result.resultType) {
if(this.result.resultType && this.result.resultType !== 'dataprovider') {
this.beforeTitle.push(this.getTypeName(this.result.resultType));
}
if(this.result.types) {