[pluginsFunctionality | DONE | FIX] fix suggested and related links in search dataproviders to deposit
This commit is contained in:
parent
62f876c3ba
commit
390914c8ca
|
@ -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