Merge branch 'plugins-functionality' of code-repo.d4science.org:MaDgIK/openaire-library into plugins-functionality
This commit is contained in:
commit
07a7b870c4
|
@ -25,13 +25,6 @@
|
||||||
<div input #input class="uk-width-expand" placeholder="Scholary works" [searchable]="true"
|
<div input #input class="uk-width-expand" placeholder="Scholary works" [searchable]="true"
|
||||||
[hint]="'Search in OpenAIRE'" [(value)]="keyword"></div>
|
[hint]="'Search in OpenAIRE'" [(value)]="keyword"></div>
|
||||||
</advanced-search-input>
|
</advanced-search-input>
|
||||||
<div *ngIf="selectedEntity === 'result' && input.focused"
|
|
||||||
(click)="$event.stopPropagation();advanced.focusNext(input, $event)"
|
|
||||||
class="uk-dropdown uk-display-block uk-margin-small-top uk-width-auto" uk-dropdown="mode: hover">
|
|
||||||
<div class="uk-padding-small">
|
|
||||||
<quick-selections [resultTypes]="resultTypes" [quickFilter]="resultsQuickFilter"></quick-selections>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
*ngIf="(pluginObject.fos && isRouteEnabled('/fields-of-science')) || (pluginObject.sdgs && isRouteEnabled('/sdgs'))"
|
*ngIf="(pluginObject.fos && isRouteEnabled('/fields-of-science')) || (pluginObject.sdgs && isRouteEnabled('/sdgs'))"
|
||||||
|
|
|
@ -258,11 +258,6 @@ export class PluginGatewayInformationComponent extends PluginBaseComponent<Plugi
|
||||||
let parameterNames = [];
|
let parameterNames = [];
|
||||||
let parameterValues = [];
|
let parameterValues = [];
|
||||||
|
|
||||||
if (this.selectedEntity == "result" && this.resultsQuickFilter && this.resultsQuickFilter.selected) {
|
|
||||||
parameterNames.push(this.resultsQuickFilter.filterId);
|
|
||||||
parameterValues.push('"'+ encodeURIComponent(this.resultsQuickFilter.value)+'"');
|
|
||||||
}
|
|
||||||
|
|
||||||
if (this.keyword.length > 0) {
|
if (this.keyword.length > 0) {
|
||||||
parameterNames.push("fv0");
|
parameterNames.push("fv0");
|
||||||
parameterValues.push(this.keyword);
|
parameterValues.push(this.keyword);
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
import {ChangeDetectorRef, Component} from '@angular/core';
|
import {ChangeDetectorRef, Component} from '@angular/core';
|
||||||
import {PluginBaseComponent, PluginBaseInfo, PluginInfoCards, PluginURL} from "../../utils/base-plugin.component";
|
import {PluginBaseComponent, PluginBaseInfo} from "../../utils/base-plugin.component";
|
||||||
import {OpenaireEntities} from "../../../../utils/properties/searchFields";
|
import {OpenaireEntities} from "../../../../utils/properties/searchFields";
|
||||||
import {properties} from "../../../../../../environments/environment";
|
|
||||||
import {CustomizationService} from "../../../../services/customization.service";
|
import {CustomizationService} from "../../../../services/customization.service";
|
||||||
import {CommunityService} from "../../../../connect/community/community.service";
|
import {CommunityService} from "../../../../connect/community/community.service";
|
||||||
import {Filter} from "../../../../searchPages/searchUtils/searchHelperClasses.class";
|
import {Filter} from "../../../../searchPages/searchUtils/searchHelperClasses.class";
|
||||||
import {Router} from "@angular/router";
|
import {Router} from "@angular/router";
|
||||||
import {RouterHelper} from "../../../../utils/routerHelper.class";
|
import {RouterHelper} from "../../../../utils/routerHelper.class";
|
||||||
|
|
||||||
export class PluginSearchBar extends PluginBaseInfo{
|
export class PluginSearchBar extends PluginBaseInfo{
|
||||||
alternativeTitle:string ="";
|
alternativeTitle:string ="";
|
||||||
showTitle:boolean = true;
|
showTitle:boolean = true;
|
||||||
|
@ -46,11 +46,6 @@ export class PluginSearchBar extends PluginBaseInfo{
|
||||||
[onChangeNavigate]="false"></entities-selection>
|
[onChangeNavigate]="false"></entities-selection>
|
||||||
<div input #input class="uk-width-expand" placeholder="Scholary works" [searchable]="true" [hint]="'Search in OpenAIRE'" [(value)]="keyword"></div>
|
<div input #input class="uk-width-expand" placeholder="Scholary works" [searchable]="true" [hint]="'Search in OpenAIRE'" [(value)]="keyword"></div>
|
||||||
</advanced-search-input>
|
</advanced-search-input>
|
||||||
<div *ngIf="selectedEntity === 'result' && input.focused" (click)="$event.stopPropagation();advanced.focusNext(input, $event)" class="uk-dropdown uk-display-block uk-margin-small-top uk-width-auto" uk-dropdown="mode: click">
|
|
||||||
<div class="uk-padding-small">
|
|
||||||
<quick-selections [resultTypes]="resultTypes"></quick-selections>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -32,19 +32,31 @@ import {SearchForm} from "../searchPages/searchUtils/newSearchPage.component";
|
||||||
<div search-input [(value)]="keyword" placeholder="Search by name, description, subject..." (searchEmitter)="keywordChanged()"
|
<div search-input [(value)]="keyword" placeholder="Search by name, description, subject..." (searchEmitter)="keywordChanged()"
|
||||||
[searchInputClass]="'inner background'"></div>
|
[searchInputClass]="'inner background'"></div>
|
||||||
<div class="uk-margin-top uk-text-center uk-margin-medium-bottom">
|
<div class="uk-margin-top uk-text-center uk-margin-medium-bottom">
|
||||||
<a page-enabled [pageRoute]="'/participate/deposit/suggested'" *ngIf="zenodoInformation.hasSuggestedRepositories" class="uk-display-inline-block uk-text-uppercase uk-button uk-button-text" routerLink="/participate/deposit/suggested">
|
<ng-container *ngIf="zenodoInformation.hasSuggestedRepositories">
|
||||||
|
<span page-enabled [pageRoute]="'/participate/deposit/suggested'">
|
||||||
|
<a class="uk-display-inline-block uk-text-uppercase uk-button uk-button-text" routerLink="/participate/deposit/suggested">
|
||||||
<span class="uk-flex uk-flex-middle">
|
<span class="uk-flex uk-flex-middle">
|
||||||
<span>Suggested repositories</span>
|
<span>Suggested repositories</span>
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
|
</span>
|
||||||
|
</ng-container>
|
||||||
<a *ngIf="zenodoInformation.url" [href]="zenodoInformation.url" target="_blank" class="uk-display-inline-block uk-text-uppercase uk-button uk-button-text">
|
<a *ngIf="zenodoInformation.url" [href]="zenodoInformation.url" target="_blank" class="uk-display-inline-block uk-text-uppercase uk-button uk-button-text">
|
||||||
<span class="uk-flex uk-flex-middle">
|
<span class="uk-flex uk-flex-middle">
|
||||||
<span>Zenodo Repository</span><span class="custom-external custom-icon space"></span>
|
<span>Zenodo Repository</span><span class="custom-external custom-icon space"></span>
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
<a page-enabled [pageRoute]="'/participate/deposit/zenodo'" *ngIf="!zenodoInformation.url" routerLink="/participate/deposit/zenodo" class="uk-display-inline-block uk-text-uppercase uk-button uk-button-text">
|
<ng-container *ngIf="!zenodoInformation.url">
|
||||||
<span>Related Zenodo Communities</span>
|
<span page-enabled pageRoute="/participate/deposit/zenodo">
|
||||||
|
<a routerLink="/participate/deposit/zenodo"
|
||||||
|
class=" uk-text-uppercase uk-button uk-button-text">
|
||||||
|
<span class="uk-flex uk-flex-middle">
|
||||||
|
<span>Related zenodo communities</span>
|
||||||
|
</span>
|
||||||
|
|
||||||
</a>
|
</a>
|
||||||
|
</span>
|
||||||
|
</ng-container>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -3,5 +3,4 @@ export class ZenodoInformationClass{
|
||||||
url: string = "";
|
url: string = "";
|
||||||
shareInZenodoUrl: string = "";
|
shareInZenodoUrl: string = "";
|
||||||
hasSuggestedRepositories:boolean = false;
|
hasSuggestedRepositories:boolean = false;
|
||||||
uggestedRepositoriesUrl:string = ""
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue