80 lines
4.8 KiB
HTML
80 lines
4.8 KiB
HTML
|
|
<div id="tm-main" class=" uk-section uk-margin-small-top tm-middle" >
|
|
<div uk-grid uk-grid>
|
|
<div class="tm-main uk-width-1-1@s uk-width-1-1@m uk-width-1-1@l uk-row-first ">
|
|
|
|
<div class="uk-container uk-margin-top">
|
|
<div class="uk-article-title custom-article-title">
|
|
Deposit {{requestFor}}
|
|
</div>
|
|
|
|
<div class="uk-width-1-1 uk-margin uk-padding uk-panel uk-background-muted">
|
|
<form class= "uk-margin uk-text-center uk-margin-top">
|
|
<input type="text" [(ngModel)]="newSubject" class=" uk-input uk-width-1-2" name="subject" placeholder="Search for classifications..." />
|
|
|
|
<button class=" uk-button uk-button-default" type="submit" (click)="searchDataproviders()" >
|
|
Search
|
|
</button>
|
|
</form>
|
|
<div *ngIf="subject.length > 0" class=" uk-text-center ">
|
|
<span>Keywords: {{subject}}<span><a class="uk-icon-button" (click) = "subject = ''"><span aria-hidden="true" class=" clickable "><span class="clickable uk-icon">
|
|
<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="close" ratio="1"><path fill="none" stroke="#000" stroke-width="1.06" d="M16,16 L4,4"></path><path fill="none" stroke="#000" stroke-width="1.06" d="M16,4 L4,16"></path></svg>
|
|
</span></span></a></span>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
<div class="uk-width-1-1">
|
|
<helper position="top"></helper>
|
|
</div>
|
|
<div class="uk-grid helper-grid">
|
|
<helper position="left" styleName=" uk-width-1-5 uk-padding-left"></helper>
|
|
<div class="uk-width-expand">
|
|
<div *ngIf="fetchDataproviders.searchUtils.status == errorCodes.LOADING"
|
|
class="uk-animation-fade uk-margin-top uk-width-1-1" role="alert"><img src="./assets/loading.gif" class="uk-align-center" alt="Loading">
|
|
</div>
|
|
|
|
|
|
|
|
<div *ngIf="fetchDataproviders.searchUtils.totalResults > 0">
|
|
<p>Please use the information/contacts shown below to deposit your {{requestFor}}.</p>
|
|
<!--showDataProviders [dataProviders]=dataProviders></showDataProviders-->
|
|
<div *ngIf="fetchDataproviders.searchUtils.totalResults" class="">
|
|
<paging-no-load [currentPage]="page" [totalResults]="fetchDataproviders.searchUtils.totalResults" size=10 (pageChange)="pageChange($event)"> </paging-no-load>
|
|
</div>
|
|
<div class="" *ngIf="fetchDataproviders.results && fetchDataproviders.searchUtils.totalResults > 0">
|
|
{{fetchDataproviders.searchUtils.totalResults}} content providers, page {{fetchDataproviders.searchUtils.page}} of {{(totalPages())}}
|
|
</div>
|
|
|
|
<search-result [(results)]="fetchDataproviders.results"
|
|
type="dataprovider" urlParam="datasourceId" [showSubjects]=true
|
|
[custom_class]="'other-results'" [(properties)] = properties>
|
|
</search-result>
|
|
</div>
|
|
|
|
<div *ngIf="fetchDataproviders.searchUtils.status == errorCodes.NONE && subject != ''" class = "uk-alert uk-alert-primary">
|
|
No content providers found with classification "{{subject}}".
|
|
</div>
|
|
<div *ngIf="fetchDataproviders.searchUtils.status == errorCodes.ERROR && subject != ''" class = "uk-alert uk-alert-danger">
|
|
An error occured.
|
|
</div>
|
|
|
|
<div *ngIf="(fetchDataproviders.searchUtils.totalResults == 0 && fetchDataproviders.searchUtils.status == errorCodes.DONE)
|
|
|| fetchDataproviders.searchUtils.status == errorCodes.NONE || fetchDataproviders.searchUtils.status == errorCodes.ERROR" class = "uk-alert ">
|
|
|
|
You can still deposit your {{requestFor}} in
|
|
<a href="{{zenodo}}" target="_blank">OpenAIRE's Zenodo catch-all repository (<i class="custom-external"></i>)</a>
|
|
hosted by CERN.
|
|
</div>
|
|
</div>
|
|
<helper position="right" styleName=" uk-width-1-5"></helper>
|
|
</div>
|
|
|
|
<button class=" uk-button uk-button-default uk-margin-small-top" type="submit" (click)="goToDeposit()">
|
|
<span class="uk-icon"><svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="chevron-left" ratio="1"><polyline fill="none" stroke="#000" stroke-width="1.03" points="13 16 7 10 13 4"></polyline></svg></span> Back
|
|
</button>
|
|
<helper position="bottom"></helper>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|