Project

General

Profile

« Previous | Next » 

Revision 59092

[Library | Trunk]: Result Landing fix organization url

View differences:

modules/uoa-services-library/trunk/ng-openaire-library/src/app/landingPages/result/resultLanding.component.html
167 167
                      <div class="uk-text-muted">Related Organizations</div>
168 168
                      <ul class="uk-list organizations uk-margin-remove-top">
169 169
                        <li *ngFor="let organization of (showAll?resultLandingInfo.organizations:resultLandingInfo.organizations.slice(0,3))">
170
                          <a [routerLink]="organizationUrl" [queryParams]="{organizationId: organization.id}">
171
                            {{(organization.name ? organization.name : organization.shortname)}}
170
                          <a [routerLink]="properties.searchLinkToOrganization.split('?')[0]" [queryParams]="{organizationId: organization.id}">
171
                            {{(organization.name ? organization.name : (organization.shortname?organization.shortname:'No title available'))}}
172 172
                            <span *ngIf="organization.shortname">({{organization.shortname}})</span>
173 173
                          </a>
174
                          <div *ngIf="organization.country">{{organization.country}}</div>
174
                          <div *ngIf="organization.country && !organization.country.toLowerCase().includes('unknown')">{{organization.country}}</div>
175 175
                        </li>
176 176
                      </ul>
177 177
                      <div *ngIf="!showAll && resultLandingInfo.organizations.length > 3" class="uk-text-center">
modules/uoa-services-library/trunk/ng-openaire-library/src/app/landingPages/result/resultLanding.component.ts
37 37
  public deleteByInferenceOpened: boolean = false;
38 38
  
39 39
  public resultLandingInfo: ResultLandingInfo;
40
  public organizationUrl = properties.searchLinkToOrganization.split('?')[0];
41 40
  public relatedResults: RelationResult[];
42 41
  public supplementaryResults: RelationResult[];
43 42
  public relation: string = 'trust';

Also available in: Unified diff