2022-07-18 17:56:59 +02:00
< div * ngIf = "showOptions && showOptions.linkToEntities.length > 0" class = "uk-width-large" >
2022-04-08 15:55:22 +02:00
< advanced-search-input ( searchEmitter ) = " search ( true ) " >
< div input type = "select" [ ( value ) ] = " showOptions . show " placeholder = "Type" hint = "Select..."
[options]="showOptions.selectOptions">< / div >
2022-06-09 15:21:43 +02:00
< div input type = "text" [ ( value ) ] = " keyword " [ searchable ] = " true " placeholder = "Entities to link" [ hint ] = " ' Search for ' + openaireEntities . RESULTS . toLowerCase ( ) + ' . . . ' " > < / div >
2022-04-08 15:55:22 +02:00
< / advanced-search-input >
< / div >
2022-07-18 17:56:59 +02:00
< div * ngIf = "!showOptions" class = "uk-width-large" >
< div search-input [ ( value ) ] = " keyword " [ placeholder ] = " ' Search for ' + openaireEntities . RESULTS . toLowerCase ( ) + ' . . . ' "
2022-05-12 16:59:13 +02:00
(searchEmitter)="search(true)">< / div >
2022-04-08 15:55:22 +02:00
< / div >
2019-07-23 14:23:12 +02:00
< div * ngIf = "!showSearchResults" >
2022-05-16 16:25:35 +02:00
< div class = "uk-text-center uk-text-large uk-text-meta uk-margin-large-top" >
2022-05-12 16:59:13 +02:00
No {{showOptions?openaireEntities.RESULTS.toLowerCase() :'sources'}} yet...< br > Use the searchbar to find and link
{{showOptions?openaireEntities.RESULTS.toLowerCase() :'sources'}}.
2019-07-23 14:23:12 +02:00
< / div >
< / div >
< div * ngIf = "showSearchResults" class = "uk-margin-top uk-animation" >
< ul class = "uk-tab" uk-tab = "animation: uk-animation-fade" >
< li ( click ) = " clickTab ( ' openaire ' ) " [ class ] = " ( activeTab = = ' openaire ' ) ? ' uk-active ' : ' ' " > < a > Openaire < span
2020-05-14 16:38:50 +02:00
*ngIf="!(openaireResultsNum==0 & & openaireResultsStatus === errorCodes.LOADING)">
({{openaireResultsNum| number}})< / span > < / a >
2019-07-23 14:23:12 +02:00
< / li >
< li ( click ) = " clickTab ( ' crossref ' ) " [ class ] = " ( activeTab = = ' crossref ' ) ? ' uk-active ' : ' ' " > < a > Crossref
< span
*ngIf="crossrefResultsNum != null & & crossrefResultsNum >= 0 ">({{crossrefResultsNum | number}})< / span >
< / a > < / li >
< li ( click ) = " clickTab ( ' datacite ' ) " [ class ] = " ( activeTab = = ' datacite ' ) ? ' uk-active ' : ' ' " > < a > Datacite < span
*ngIf="dataciteResultsNum!=null & & dataciteResultsNum >= 0">({{dataciteResultsNum | number}})< / span > < / a >
< / li >
< li ( click ) = " clickTab ( ' orcid ' ) " [ class ] = " ( activeTab = = ' orcid ' ) ? ' uk-active ' : ' ' " > < a > Orcid < span
*ngIf="orcidResultsNum !=null">({{(orcidResultsNum > 0) ? (orcidResultsNum | number) : 0}})< / span > < / a > < / li >
< / ul >
< div * ngIf = "activeTab == 'crossref'" id = "crossref" >
< div class = "uk-margin-top" >
< div * ngIf = "crossrefStatus == errorCodes.NONE" 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 >
2020-05-14 16:38:50 +02:00
< div * ngIf = "crossrefResultsNum != null && crossrefResultsNum > 0" class = "uk-clearfix " >
2019-07-23 14:23:12 +02:00
< div class = "uk-grid" >
2017-12-19 13:53:46 +01:00
2019-07-23 14:23:12 +02:00
< / div >
< / div >
< div * ngIf = "crossrefStatus === errorCodes.LOADING" class = "uk-animation-fade uk-margin-top uk-width-1-1"
role="alert">< span class = "loading-gif uk-align-center" > < / span > < / div >
< div >
< claim-results [ localStoragePrefix ] = localStoragePrefix [ results ] = crossrefResults
2019-07-24 14:46:29 +02:00
[selectedResults]=selectedResults [basketLimit]="basketLimit">< / claim-results >
2019-07-23 14:23:12 +02:00
< / div >
2022-04-08 15:55:22 +02:00
< div class = "uk-flex uk-flex-center" * ngIf = "crossrefStatus != errorCodes.LOADING && crossrefResultsNum>0 " >
< paging-no-load
2022-03-02 17:08:37 +01:00
[currentPage]="crossrefPage" [totalResults]="crossrefResultsNum"
[term]="keyword"
[size]="size" (pageChange)="crossrefPageChange($event)">< / paging-no-load >
2022-04-08 15:55:22 +02:00
< / div >
2018-02-15 11:36:12 +01:00
< / div >
< / div >
2019-07-23 14:23:12 +02:00
< div * ngIf = "activeTab == 'openaire'" id = "openaire" class = "uk-animation-fade" >
2018-05-03 11:58:30 +02:00
2019-07-23 14:23:12 +02:00
< div class = "uk-grid" >
2022-02-25 13:52:36 +01:00
< div class = "search-filters uk-width-1-1" >
2019-07-23 14:23:12 +02:00
2022-07-18 17:56:59 +02:00
< div * ngIf = "openaireResultsNum > 0" class = "uk-grid uk-grid-small" uk-grid >
< ng-container * ngFor = "let filter of rangeFilters" >
< div >
< dropdown-filter [ name ] = " filter . selectedFromAndToValues ? filter . selectedFromAndToValues:filter . title "
dropdownMinWidth="450">
< div class = "uk-padding-small" >
< range-filter [ isDisabled ] = " openaireResultsStatus = = errorCodes . LOADING "
[filter]="filter" (onFilterChange)="dateFilterChanged(filter)"
2022-03-16 17:54:22 +01:00
[showQuickButtons]="false"
>< / range-filter >
< / div >
2022-07-18 17:56:59 +02:00
< / dropdown-filter >
2019-07-23 14:23:12 +02:00
< / div >
2022-07-18 17:56:59 +02:00
< / ng-container >
< ng-container * ngFor = "let filter of openaireResultsfilters " >
< div >
< dropdown-filter [ count ] = " filter . countSelectedValues " [ name ] = " filter . title "
dropdownMinWidth="450">
< div class = "uk-padding-small" >
< search-filter [ isDisabled ] = " openaireResultsStatus = = errorCodes . LOADING "
[filter]="filter" [filterValuesNum]="0" [showResultCount]=true
(onFilterChange)="filterChanged($event)" [actionRoute]="false">< / search-filter >
< / div >
< / dropdown-filter >
2022-02-25 13:52:36 +01:00
< / div >
2022-07-18 17:56:59 +02:00
< / ng-container >
< / div >
2017-12-19 13:53:46 +01:00
< / div >
2019-07-23 14:23:12 +02:00
< div class = "uk-width-expand@m uk-width-1-1@s uk-first-column" >
2022-04-05 17:36:08 +02:00
< div class = "" >
2019-07-23 14:23:12 +02:00
< div * ngIf = "openaireResultsStatus == errorCodes.NONE" class = "uk-alert uk-alert-primary"
role="alert">No Results found
< / div >
< div * ngIf = "openaireResultsStatus == errorCodes.ERROR" class = "uk-alert uk-alert-warning"
role="alert">An Error Occured
< / div >
< div * ngIf = "openaireResultsStatus == errorCodes.NOT_AVAILABLE" class = "uk-alert uk-alert-danger"
role="alert">Service not available
< / div >
2022-03-02 11:18:24 +01:00
2019-07-23 14:23:12 +02:00
< div * ngIf = "openaireResultsStatus === errorCodes.LOADING"
class="uk-animation-fade uk-margin-top uk-width-1-1"
2022-03-02 11:18:24 +01:00
role="alert">< span class = "loading-gif uk-align-center" > Loading...< / span > < / div >
2019-07-23 14:23:12 +02:00
< claim-results [ localStoragePrefix ] = localStoragePrefix
2019-07-24 14:46:29 +02:00
[results]=openaireResults [selectedResults]=selectedResults [basketLimit]="basketLimit">< / claim-results >
2022-04-08 15:55:22 +02:00
< div class = "uk-flex uk-flex-center" * ngIf = " openaireResultsStatus != errorCodes.LOADING && openaireResultsNum != null && openaireResultsNum > 0" >
< paging-no-load [ currentPage ] = " openaireResultsPage "
2022-03-02 11:18:24 +01:00
[totalResults]="openaireResultsNum" [term]="keyword"
[size]="size" (pageChange)="openaireResultsPageChange($event)">< / paging-no-load >
< / div >
2019-07-23 14:23:12 +02:00
< / div >
2018-07-30 16:22:19 +02:00
< / div >
2019-07-23 14:23:12 +02:00
< / div >
< / div >
< div * ngIf = "activeTab == 'orcid'" id = "orcid" class = "uk-animation-fade" >
< div class = "uk-margin-top" >
< 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 && orcidResultsNum == -1"
class="uk-alert uk-alert-primary "> No results found
< / div >
2022-03-02 17:08:37 +01:00
2019-07-23 14:23:12 +02:00
< div * ngIf = "orcidResultsNum >= 0" class = "panel-body" >
< span > < span class = "uk-text-bold" > Showing results for< / span >
< a target = "_blank" href = "http://orcid.org/{{authorId}}" > < span
class="custom-external">< / span > {{authorGivenName}} {{authorFamilyName}} - {{authorId}} < / a > :
< / span >
< div * ngIf = "authors.length > 1" class = "" > In Orcid you can search only by Author. Not the
author you are looking for?
< div class = "dropdown" >
2020-03-12 11:48:04 +01:00
< mat-select [ ( ngModel ) ] = " selectAuthorId " name = "select_author"
2020-03-16 00:08:45 +01:00
(ngModelChange)="getOrcidResultsById(selectAuthorId)" class="matSelection"
2020-03-12 11:48:04 +01:00
[disableOptionCentering]="true"
panelClass="matSelectionPanel">
2020-03-16 00:08:45 +01:00
< mat-option value = "0" > Choose another one:< / mat-option >
2020-03-12 11:48:04 +01:00
< mat-option * ngFor = " let item of authors let i = index"
[value]="authors[i].id">{{authors[i].authorGivenName}} {{authors[i].authorFamilyName}} : {{authors[i].id}} < / mat-option >
< / mat-select >
2019-07-23 14:23:12 +02:00
< / div >
< / div >
< div >
< claim-results [ localStoragePrefix ] = localStoragePrefix
*ngIf="orcidResultsNum >0 & & orcidResultsToShow.length > 0 " [results]=orcidResultsToShow
2019-07-24 14:46:29 +02:00
[selectedResults]=selectedResults [basketLimit]="basketLimit">< / claim-results >
2019-07-23 14:23:12 +02:00
< div * ngIf = "orcidResultsNum == 0" class = "uk-alert uk-alert-primary uk-margin-top" > No results found< / div >
< / div >
2022-03-02 17:08:37 +01:00
< div * ngIf = " ((orcidResultsNum >0) && (totalPages > 1) && ( 0 < page && page <= totalPages )) "
2022-04-08 15:55:22 +02:00
class="uk uk-flex uk-flex-center">
2022-03-02 17:08:37 +01:00
2022-04-08 15:55:22 +02:00
< paging-no-load [ currentPage ] = " orcidPage " [ totalResults ] = " orcidResultsNum "
2022-03-02 17:08:37 +01:00
[term]="keyword" [size]="size"
(pageChange)="orcidPageChange($event)">< / paging-no-load >
< / div >
2019-07-23 14:23:12 +02:00
< / div >
< div * ngIf = "orcidStatus == errorCodes.LOADING" class = "uk-animation-fade uk-margin-top uk-width-1-1" role = "alert" >
< span class = "loading-gif uk-align-center" > < / span > < / div >
< / div >
< / div >
< div * ngIf = "activeTab == 'datacite'" id = "datacite" class = "uk-animation-fade" >
< 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
2017-12-19 13:53:46 +01:00
< / div >
2019-07-23 14:23:12 +02:00
< div * ngIf = "dataciteStatus == errorCodes.NOT_AVAILABLE" class = "uk-alert uk-alert-danger"
role="alert">Service not available
< / div >
< div class = "uk-margin-top" >
2022-03-02 17:08:37 +01:00
2019-07-23 14:23:12 +02:00
< div * ngIf = "dataciteStatus == errorCodes.LOADING" class = "uk-animation-fade uk-margin-top uk-width-1-1"
role="alert">< span class = "loading-gif uk-align-center" > < / span > < / div >
< div >
< claim-results [ localStoragePrefix ] = localStoragePrefix * ngIf = "dataciteResults.length > 0 "
2019-07-24 14:46:29 +02:00
[results]=dataciteResults [selectedResults]=selectedResults [basketLimit]="basketLimit">< / claim-results >
2019-07-23 14:23:12 +02:00
< / div >
2022-04-08 15:55:22 +02:00
< div * ngIf = "dataciteResultsNum != null && dataciteResultsNum > 0" class = "uk uk-flex uk-flex-center " >
< paging-no-load [ currentPage ] = " datacitePage " [ totalResults ] = " dataciteResultsNum "
2022-03-02 17:08:37 +01:00
[term]="keyword"
[size]="size" (pageChange)="datacitePageChange($event)">< / paging-no-load >
< / div >
2019-07-23 14:23:12 +02:00
< / div >
< / div >
< / div >