plugins-functionality #43
|
@ -25,13 +25,6 @@
|
|||
<div input #input class="uk-width-expand" placeholder="Scholary works" [searchable]="true"
|
||||
[hint]="'Search in OpenAIRE'" [(value)]="keyword"></div>
|
||||
</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
|
||||
*ngIf="(pluginObject.fos && isRouteEnabled('/fields-of-science')) || (pluginObject.sdgs && isRouteEnabled('/sdgs'))"
|
||||
|
|
|
@ -258,11 +258,6 @@ export class PluginGatewayInformationComponent extends PluginBaseComponent<Plugi
|
|||
let parameterNames = [];
|
||||
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) {
|
||||
parameterNames.push("fv0");
|
||||
parameterValues.push(this.keyword);
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
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 {properties} from "../../../../../../environments/environment";
|
||||
import {CustomizationService} from "../../../../services/customization.service";
|
||||
import {CommunityService} from "../../../../connect/community/community.service";
|
||||
import {Filter} from "../../../../searchPages/searchUtils/searchHelperClasses.class";
|
||||
import {Router} from "@angular/router";
|
||||
import {RouterHelper} from "../../../../utils/routerHelper.class";
|
||||
|
||||
export class PluginSearchBar extends PluginBaseInfo{
|
||||
alternativeTitle:string ="";
|
||||
showTitle:boolean = true;
|
||||
|
@ -46,11 +46,6 @@ export class PluginSearchBar extends PluginBaseInfo{
|
|||
[onChangeNavigate]="false"></entities-selection>
|
||||
<div input #input class="uk-width-expand" placeholder="Scholary works" [searchable]="true" [hint]="'Search in OpenAIRE'" [(value)]="keyword"></div>
|
||||
</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>
|
||||
|
|
|
@ -32,19 +32,31 @@ import {SearchForm} from "../searchPages/searchUtils/newSearchPage.component";
|
|||
<div search-input [(value)]="keyword" placeholder="Search by name, description, subject..." (searchEmitter)="keywordChanged()"
|
||||
[searchInputClass]="'inner background'"></div>
|
||||
<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">
|
||||
<span class="uk-flex uk-flex-middle">
|
||||
<span>Suggested repositories</span>
|
||||
</span>
|
||||
</a>
|
||||
<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>Suggested repositories</span>
|
||||
</span>
|
||||
</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">
|
||||
<span class="uk-flex uk-flex-middle">
|
||||
<span>Zenodo Repository</span><span class="custom-external custom-icon space"></span>
|
||||
</span>
|
||||
</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">
|
||||
<span>Related Zenodo Communities</span>
|
||||
</a>
|
||||
<ng-container *ngIf="!zenodoInformation.url">
|
||||
<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>
|
||||
</span>
|
||||
</ng-container>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -3,5 +3,4 @@ export class ZenodoInformationClass{
|
|||
url: string = "";
|
||||
shareInZenodoUrl: string = "";
|
||||
hasSuggestedRepositories:boolean = false;
|
||||
uggestedRepositoriesUrl:string = ""
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue