147 lines
11 KiB
HTML
147 lines
11 KiB
HTML
|
|
<form class=" uk-padding uk-padding-large uk-padding-remove-left uk-margin-left" >
|
|
<div class="uk-grid">
|
|
<div class="uk-width-expand">
|
|
<select [(ngModel)]="searchSource" name="select_source" (ngModelChange)="searchSourceChanged(searchSource)" class="uk-select uk-width-1-4">
|
|
<option value="openaire">in OpenAIRE </option>
|
|
<option value="crossref">in Crossref </option>
|
|
<option value="datacite">in Datacite </option>
|
|
<option value="orcid">in ORCID </option>
|
|
<option value="all">Search all</option>
|
|
</select>
|
|
<input class=" uk-input uk-width-1-2 form-control" [(ngModel)]="keyword" name="keyword" placeholder="Title, doi, author, orcid..."/>
|
|
<span class="input-group-btn">
|
|
<button (click)="search(false)" type="submit" class=" uk-button uk-button-default">Search</button>
|
|
</span>
|
|
</div>
|
|
<helper div="link-result-form" styleName="uk-width-medium"></helper>
|
|
</div>
|
|
</form>
|
|
<div *ngIf="showSearchResults" class="uk-margin-top uk-animation">
|
|
<ul class="uk-tab" uk-tab="animation: uk-animation-fade">
|
|
<li *ngIf="searchSource == 'all' || searchSource == 'openaire'" (click)="clickTab('openairePub')" ><a>Publications <span class="uk-badge uk-badge-notification">{{ (openairePubsNum)?(openairePubsNum | number):0 }}</span></a></li>
|
|
<li *ngIf="searchSource == 'all' || searchSource == 'openaire'" (click)="clickTab('openaireData')" ><a>Research Data <span class="uk-badge uk-badge-notification">{{(openaireDataNum==null)?'0':(openaireDataNum | number)}}</span></a></li>
|
|
<li *ngIf="searchSource == 'all' || searchSource == 'openaire'" (click)="clickTab('openaireSoftware')" ><a>Software <span class="uk-badge uk-badge-notification">{{(openaireSoftwareNum==null)?'0':(openaireSoftwareNum | number)}}</span></a></li>
|
|
<li *ngIf="searchSource == 'all' || searchSource == 'crossref'" (click)="clickTab('crossref')" ><a>Crossref <span class="uk-badge uk-badge-notification">{{(crossrefResultsNum)?(crossrefResultsNum | number):0}}</span></a></li>
|
|
<li *ngIf="searchSource == 'all' || searchSource == 'datacite'" (click)="clickTab('datacite')"><a>Datacite <span class="uk-badge uk-badge-notification">{{(dataciteResultsNum==null)?'0':(dataciteResultsNum | number)}}</span></a></li>
|
|
<li *ngIf="searchSource == 'all' || searchSource == 'orcid'" (click)="clickTab('orcid')"><a>Orcid <span class="uk-badge uk-badge-notification">{{(orcidResultsNum)?(orcidResultsNum | number):0}}</span></a></li>
|
|
</ul>
|
|
|
|
<div *ngIf="activeTab == 'crossref'" id="crossref" >
|
|
<div class="uk-margin-top" >
|
|
<div *ngIf="crossrefStatus == errorCodes.LOADING" class="uk-animation-fade uk-margin-top uk-width-1-1" role="alert"><img class="loading-gif uk-align-center" ></div>
|
|
<div *ngIf="crossrefStatus != errorCodes.LOADING && crossrefResults.length == 0" class="uk-alert uk-alert-primary" role="alert">No Results found</div>
|
|
<div *ngIf="crossrefStatus == errorCodes.ERROR" class="uk-alert uk-alert-warning" role="alert">An Error Occured</div>
|
|
<div *ngIf="crossrefStatus == errorCodes.NOT_AVAILABLE" class="uk-alert uk-alert-danger" role="alert">Service not available</div>
|
|
<div *ngIf="crossrefResultsNum != null && crossrefResultsNum > 0" class="uk-clearfix">
|
|
<div class="uk-float-right">
|
|
<paging-no-load [currentPage]="crossrefPage" [totalResults]="crossrefResultsNum" [term]="keyword" [size]="size" (pageChange)="crossrefPageChange($event)"> </paging-no-load>
|
|
</div>
|
|
</div>
|
|
<div >
|
|
|
|
<claim-results [(results)]=crossrefResults [(selectedResults)]=selectedResults > </claim-results>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div *ngIf="activeTab == 'openairePub'" id="openairePubs" class="uk-animation-fade" >
|
|
<div class = "uk-margin-top">
|
|
<div *ngIf="openairePubsStatus == errorCodes.LOADING" class="uk-animation-fade uk-margin-top uk-width-1-1" role="alert"><img class="loading-gif uk-align-center" ></div>
|
|
<div *ngIf="openairePubsStatus == errorCodes.NONE" class="uk-alert uk-alert-primary" role="alert">No Results found</div>
|
|
<div *ngIf="openairePubsStatus == errorCodes.ERROR" class="uk-alert uk-alert-warning" role="alert">An Error Occured</div>
|
|
<div *ngIf="openairePubsStatus == errorCodes.NOT_AVAILABLE" class="uk-alert uk-alert-danger" role="alert">Service not available</div>
|
|
<div *ngIf="openairePubsNum != null && openairePubsNum > 0" class="uk-clearfix">
|
|
<div class="uk-float-right">
|
|
<paging-no-load [currentPage]="openairePubsPage" [totalResults]="openairePubsNum" [term]="keyword" [size]="size" (pageChange)="openairePubsPageChange($event)"> </paging-no-load>
|
|
</div>
|
|
</div>
|
|
<div >
|
|
<claim-results [(results)]=openairePubs [(selectedResults)]=selectedResults > </claim-results>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div *ngIf="activeTab == 'orcid'" id="orcid" class="uk-animation-fade">
|
|
<div class="uk-margin-top" >
|
|
<div *ngIf="orcidStatus == errorCodes.LOADING" class="uk-animation-fade uk-margin-top uk-width-1-1" role="alert"><img class="loading-gif uk-align-center" ></div>
|
|
<div *ngIf="orcidStatus == errorCodes.ERROR" class="uk-alert uk-alert-warning" role="alert">An Error Occured</div>
|
|
<div *ngIf="orcidStatus == errorCodes.NOT_AVAILABLE" class="uk-alert uk-alert-danger" role="alert">Service not available</div>
|
|
<div *ngIf="orcidStatus == errorCodes.NONE && (!authorIds ||authorIds.length == 0)" class = "uk-alert uk-alert-primary " > No results found </div>
|
|
|
|
<div *ngIf="orcidResultsNum != null" class="panel-body">
|
|
<span>Results for
|
|
<a target="_blank" href="http://orcid.org/{{authorId}}"> <span class="custom-external"></span> {{authorGivenName}} {{authorFamilyName}} - {{authorId}} </a> :
|
|
</span>
|
|
<div *ngIf="authors.length > 1" class = "uk-alert uk-alert-warning " > Not the author you are looking for?
|
|
|
|
<span class="dropdown">
|
|
|
|
<select [(ngModel)]="selectAuthorId" name="select_author" (ngModelChange)="getOrcidResultsById(selectAuthorId)" >
|
|
<option [value]="0">Choose another one: </option>
|
|
<option *ngFor=" let item of authors let i = index" [value]="authors[i].id">{{authors[i].authorGivenName}} {{authors[i].authorFamilyName}} : {{authors[i].id}} </option>
|
|
</select>
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div *ngIf=" ((orcidResultsNum >0) && (totalPages > 1) && ( 0 < page && page <= totalPages )) " class="uk-clearfix">
|
|
<div class="uk-float-right">
|
|
<paging-no-load [currentPage]="orcidPage" [totalResults]="orcidResultsNum" [term]="keyword" [size]="size" (pageChange)="orcidPageChange($event)"> </paging-no-load>
|
|
</div>
|
|
</div>
|
|
<div >
|
|
<claim-results *ngIf="orcidResultsNum >0 && orcidResultsToShow.length > 0 " [(results)]=orcidResultsToShow [(selectedResults)]=selectedResults > </claim-results>
|
|
<div *ngIf="orcidResultsNum == 0" class = "uk-alert uk-alert-primary " > No results found </div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div *ngIf="activeTab == 'datacite'" id="datacite" class="uk-animation-fade">
|
|
<div *ngIf="dataciteStatus == errorCodes.LOADING" class="uk-animation-fade uk-margin-top uk-width-1-1" role="alert"><img class="loading-gif uk-align-center" ></div>
|
|
<div *ngIf="dataciteStatus == errorCodes.NONE" class="uk-alert uk-alert-primary" role="alert">No Results found</div>
|
|
<div *ngIf="dataciteStatus == errorCodes.ERROR" class="uk-alert uk-alert-warning" role="alert">An Error Occured</div>
|
|
<div *ngIf="dataciteStatus == errorCodes.NOT_AVAILABLE" class="uk-alert uk-alert-danger" role="alert">Service not available</div>
|
|
<div class = "uk-margin-top">
|
|
<div *ngIf="dataciteResultsNum != null && dataciteResultsNum > 0" class="uk-clearfix">
|
|
<div class="uk-float-right">
|
|
<paging-no-load [currentPage]="datacitePage" [totalResults]="dataciteResultsNum" [term]="keyword" [size]="size" (pageChange)="datacitePageChange($event)"> </paging-no-load>
|
|
</div>
|
|
</div>
|
|
<div >
|
|
<claim-results *ngIf="dataciteResults.length > 0 " [(results)]=dataciteResults [(selectedResults)]=selectedResults > </claim-results>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div *ngIf="activeTab == 'openaireData'" id="openaireData" class="uk-animation-fade">
|
|
<div *ngIf="openaireDataStatus == errorCodes.LOADING" class="uk-animation-fade uk-margin-top uk-width-1-1" role="alert"><img class="loading-gif uk-align-center" ></div>
|
|
<div *ngIf="openaireDataStatus == errorCodes.NONE" class="uk-alert uk-alert-primary" role="alert">No Results found</div>
|
|
<div *ngIf="openaireDataStatus == errorCodes.ERROR" class="uk-alert uk-alert-warning" role="alert">An Error Occured</div>
|
|
<div *ngIf="openaireDataStatus == errorCodes.NOT_AVAILABLE" class="uk-alert uk-alert-danger" role="alert">Service not available</div>
|
|
<div class = "uk-margin-top">
|
|
<div *ngIf="openaireDataNum != null && openaireDataNum > 0" class="uk-clearfix">
|
|
<div class="uk-float-right">
|
|
<paging-no-load [currentPage]="openaireDataPage" [totalResults]="openaireDataNum" [term]="keyword" [size]="size" (pageChange)="openaireDataPageChange($event)"> </paging-no-load>
|
|
</div>
|
|
</div>
|
|
<div >
|
|
<claim-results [(results)]=openaireData [(selectedResults)]=selectedResults > </claim-results>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div *ngIf="activeTab == 'openaireSoftware'" id="openaireSoftware" class="uk-animation-fade">
|
|
<div *ngIf="openaireSoftwareStatus == errorCodes.LOADING" class="uk-animation-fade uk-margin-top uk-width-1-1" role="alert"><img class="loading-gif uk-align-center" ></div>
|
|
<div *ngIf="openaireSoftwareStatus == errorCodes.NONE" class="uk-alert uk-alert-primary" role="alert">No Results found</div>
|
|
<div *ngIf="openaireSoftwareStatus == errorCodes.ERROR" class="uk-alert uk-alert-warning" role="alert">An Error Occured</div>
|
|
<div *ngIf="openaireSoftwareStatus == errorCodes.NOT_AVAILABLE" class="uk-alert uk-alert-danger" role="alert">Service not available</div>
|
|
<div class = "uk-margin-top">
|
|
<div *ngIf="openaireSoftwareNum != null && openaireSoftwareNum > 0" class="uk-clearfix">
|
|
<div class="uk-float-right">
|
|
<paging-no-load [currentPage]="openaireSoftwarePage" [totalResults]="openaireSoftwareNum" [term]="keyword" [size]="size" (pageChange)="openaireSoftwarePageChange($event)"> </paging-no-load>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<claim-results [(results)]=openaireSoftware [(selectedResults)]=selectedResults > </claim-results>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|