[pluginsFunctionality | DONE | CHANGED] Deposit: add Suggested repos link

This commit is contained in:
argirok 2024-05-17 10:04:33 +03:00
parent e831cb03dc
commit 7decc58f61
3 changed files with 24 additions and 1 deletions

View File

@ -104,7 +104,7 @@ import {FullScreenModalComponent} from '../utils/modal/full-screen-modal/full-sc
<h2 class="uk-margin-large-bottom">
Find the appropriate repository.
</h2>
<div class="uk-grid uk-grid-large" uk-height-match="target: .uk-card-body, .uk-tile-primary;" uk-grid>
<div class="uk-grid uk-flex uk-flex-middle" uk-height-match="target: .uk-card-body, .uk-tile-primary;" uk-grid>
<div>
<div class="uk-card uk-card-default uk-text-center" style="width: 360px;">
<div class="uk-card-body uk-text-small">
@ -141,6 +141,22 @@ import {FullScreenModalComponent} from '../utils/modal/full-screen-modal/full-sc
</div>
</div>
</div>
<div *ngIf="zenodoInformation.hasSuggestedRepositories">
<div class="uk-card uk-card-default uk-text-center" style="width: 360px;">
<div class="uk-card-body uk-text-small">
<img src="assets/connect-assets/deposit/suggested-repositories.svg" alt="Suggested Repositories" class="uk-width-small uk-margin-bottom" style="height:55px">
<div class="uk-margin-auto">
Select a repository <span class="uk-text-bold">suggested</span> by the community curators.
</div>
</div>
<div class="uk-card-footer uk-padding-small uk-tile-primary uk-flex uk-flex-center uk-light">
<a class="uk-button uk-button-text" routerLink="/participate/deposit/suggested" (click)="closeFsModal()">
Suggested repositories
</a>
</div>
</div>
</div>
</div>
</div>
</fs-modal>

View File

@ -32,6 +32,11 @@ 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 *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>
<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>

View File

@ -2,4 +2,6 @@ export class ZenodoInformationClass{
name: string = "";
url: string = "";
shareInZenodoUrl: string = "";
hasSuggestedRepositories:boolean = false;
uggestedRepositoriesUrl:string = ""
}