Skip to content

Commit

Permalink
Adapt title index key
Browse files Browse the repository at this point in the history
  • Loading branch information
davinciagf committed Apr 7, 2020
1 parent 0dc3946 commit dd2c3e5
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
<div fxLayout="row" fxLayout.xs="column" fxLayout="row wrap" fxLayoutGap="2.5%" fxLayoutAlign="center">
<mat-card class="card-picture" *ngFor="let hit of metadataResult.hits.hits">
<mat-card-title fxLayout.gt-xs="row" fxLayout.xs="column">
<span fxFlex="100%">{{hit._source.resourceTitle}}</span>
<span fxFlex="100%" *ngIf="hit._source.resourceTitleObject">{{hit._source.resourceTitleObject.default}}</span>
<span fxFlex="100%" *ngIf="!hit._source.resourceTitleObject">{{hit._source.resourceTitle}}</span>
</mat-card-title>
<img mat-card-image *ngIf="hit._source.overview" src="{{hit._source.overview.url}}" style="max-width: 100%;">
<img mat-card-image *ngIf="!hit._source.overview" src="/geonetwork/catalog/views/default/images/no-thumbnail.png"
style="max-width: 100%;">
<img mat-card-image *ngIf="hit._source.overview" src="{{hit._source.overview.url}}">
<img mat-card-image *ngIf="!hit._source.overview" src="/geonetwork/catalog/views/default/images/no-thumbnail.png">
</mat-card>
</div>
</div>
Expand Down

0 comments on commit dd2c3e5

Please sign in to comment.