[develop]: Merge changes from develop
This commit is contained in:
commit
1a2a5f81d6
|
@ -11,8 +11,7 @@
|
||||||
[no title available]
|
[no title available]
|
||||||
</div>
|
</div>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
|
<div *ngIf="result" class="uk-card uk-card-hover" [ngClass]="modifier">
|
||||||
<div *ngIf="result" class="uk-card" [class.uk-card-default]="isMobile">
|
|
||||||
<div class="uk-padding-small">
|
<div class="uk-padding-small">
|
||||||
<div>
|
<div>
|
||||||
<div class="uk-grid uk-flex uk-flex-middle">
|
<div class="uk-grid uk-flex uk-flex-middle">
|
||||||
|
|
|
@ -7,7 +7,7 @@ import {properties} from "../../../../environments/environment";
|
||||||
import {Identifier, StringUtils} from "../string-utils.class";
|
import {Identifier, StringUtils} from "../string-utils.class";
|
||||||
import {OpenaireEntities} from "../properties/searchFields";
|
import {OpenaireEntities} from "../properties/searchFields";
|
||||||
import {HelperFunctions} from "../HelperFunctions.class";
|
import {HelperFunctions} from "../HelperFunctions.class";
|
||||||
import {NumberUtils} from '../../utils/number-utils.class';
|
import {NumberUtils} from '../number-utils.class';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'result-preview',
|
selector: 'result-preview',
|
||||||
|
@ -29,6 +29,7 @@ export class ResultPreviewComponent implements OnInit, OnChanges {
|
||||||
* */
|
* */
|
||||||
@Input() isCard: boolean = false;
|
@Input() isCard: boolean = false;
|
||||||
@Input() isMobile: boolean = false;
|
@Input() isMobile: boolean = false;
|
||||||
|
@Input() modifier: 'uk-card-default' | null = null;
|
||||||
public routerHelper: RouterHelper = new RouterHelper();
|
public routerHelper: RouterHelper = new RouterHelper();
|
||||||
public urlParam: string;
|
public urlParam: string;
|
||||||
public url: string;
|
public url: string;
|
||||||
|
@ -56,6 +57,9 @@ export class ResultPreviewComponent implements OnInit, OnChanges {
|
||||||
public embed: boolean = false;
|
public embed: boolean = false;
|
||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
|
if(this.isMobile) {
|
||||||
|
this.modifier = "uk-card-default";
|
||||||
|
}
|
||||||
if (this.hasLink) {
|
if (this.hasLink) {
|
||||||
if (this.result.resultType === "publication") {
|
if (this.result.resultType === "publication") {
|
||||||
this.urlParam = "articleId";
|
this.urlParam = "articleId";
|
||||||
|
|
Loading…
Reference in New Issue