2017-12-19 13:53:46 +01:00
2018-06-11 10:20:32 +02:00
< form class = " uk-padding uk-padding-medium uk-padding-remove-left uk-margin-left uk-margin-small-top" >
2018-02-15 11:36:12 +01:00
< div class = "uk-grid" >
< div class = "uk-width-expand" >
2018-07-30 16:22:19 +02:00
< div class = "uk-text-lead" > Search for research results < helper div = "link-result-form" styleName = "" tooltip = true > < / helper > < / div >
2017-12-19 13:53:46 +01:00
< 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 >
2018-07-25 15:56:02 +02:00
<!-- div class="uk - grid">
< div class = "uk-width-1-4" >
< div >
< label > < input class = "uk-radio" type = "radio" name = "searchsource" value = "openaire" [ checked ] = " searchSource = == ' openaire ' " ( change ) = " searchSource = 'openaire' ; searchSourceChanged ( searchSource ) " > in OpenAIRE< / label >
< / div >
< div >
< label > < input class = "uk-radio" type = "radio" name = "searchsource" value = "crossref" [ checked ] = " searchSource = == ' crossref ' " ( change ) = " searchSource = 'crossref' ; searchSourceChanged ( searchSource ) " > in Crossref< / label >
< / div >
< div >
< label > < input class = "uk-radio" type = "radio" name = "searchsource" value = "datacite" [ checked ] = " searchSource = == ' datacite ' " ( change ) = " searchSource = 'datacite' ; searchSourceChanged ( searchSource ) " > in Datacite< / label >
< / div >
< div >
< label > < input class = "uk-radio" type = "radio" name = "searchsource" value = "orcid" [ checked ] = " searchSource = == ' orcid ' " ( change ) = " searchSource = 'orcid' ; searchSourceChanged ( searchSource ) " > in ORCID< / label >
< / div >
< div >
< label > < input class = "uk-radio" type = "radio" name = "searchsource" value = "all" [ checked ] = " searchSource = == ' all ' " ( change ) = " searchSource = 'all' ; searchSourceChanged ( searchSource ) " > Search all< / label >
< / div >
< / div-- >
2017-12-19 13:53:46 +01:00
< input class = " uk-input uk-width-1-2 form-control" [ ( ngModel ) ] = " keyword " name = "keyword" placeholder = "Title, doi, author, orcid..." / >
< span class = "input-group-btn" >
2018-10-03 16:12:42 +02:00
< button ( click ) = " search ( false ) " type = "submit" class = " uk-button portal-button" > Search< / button >
2017-12-19 13:53:46 +01:00
< / span >
2018-07-25 15:56:02 +02:00
<!-- /div -->
2018-02-15 11:36:12 +01:00
< / div >
2018-07-25 15:56:02 +02:00
<!-- helper div="link - result - form" styleName="uk - width - medium"></helper -->
2018-02-15 11:36:12 +01:00
< / div >
< / form >
2017-12-19 13:53:46 +01:00
< div * ngIf = "showSearchResults" class = "uk-margin-top uk-animation" >
< ul class = "uk-tab" uk-tab = "animation: uk-animation-fade" >
2018-10-03 16:12:42 +02:00
< li * ngIf = "searchSource == 'all' || searchSource == 'openaire'" ( click ) = " clickTab ( ' openairePub ' ) " > < a > Publications ({{ (openairePubsNum)?(openairePubsNum | number):0 }})< / a > < / li >
< li * ngIf = "searchSource == 'all' || searchSource == 'openaire'" ( click ) = " clickTab ( ' openaireData ' ) " > < a > Research Data ({{(openaireDataNum==null)?'0':(openaireDataNum | number)}})< / a > < / li >
< li * ngIf = "searchSource == 'all' || searchSource == 'openaire'" ( click ) = " clickTab ( ' openaireSoftware ' ) " > < a > Software ({{(openaireSoftwareNum==null)?'0':(openaireSoftwareNum | number)}})< / a > < / li >
< li * ngIf = "searchSource == 'all' || searchSource == 'openaire'" ( click ) = " clickTab ( ' openaireORP ' ) " > < a > Other research products ({{(openaireORPNum==null)?'0':(openaireORPNum | number)}})< / a > < / li >
< li * ngIf = "searchSource == 'all' || searchSource == 'crossref'" ( click ) = " clickTab ( ' crossref ' ) " > < a > Crossref ({{(crossrefResultsNum)?(crossrefResultsNum | number):0}})< / a > < / li >
< li * ngIf = "searchSource == 'all' || searchSource == 'datacite'" ( click ) = " clickTab ( ' datacite ' ) " > < a > Datacite ({{(dataciteResultsNum==null)?'0':(dataciteResultsNum | number)}})< / a > < / li >
< li * ngIf = "searchSource == 'all' || searchSource == 'orcid'" ( click ) = " clickTab ( ' orcid ' ) " > < a > Orcid ({{(orcidResultsNum)?(orcidResultsNum | number):0}})< / a > < / li >
2017-12-19 13:53:46 +01:00
< / ul >
< div * ngIf = "activeTab == 'crossref'" id = "crossref" >
< div class = "uk-margin-top" >
2019-02-13 13:51:53 +01:00
< div * ngIf = "crossrefStatus == errorCodes.LOADING" class = "uk-animation-fade uk-margin-top uk-width-1-1" role = "alert" > < / div >
2017-12-19 13:53:46 +01:00
< 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 >
2018-05-03 11:58:30 +02:00
2018-07-25 15:56:02 +02:00
< claim-results [ localStoragePrefix ] = localStoragePrefix [ ( results ) ] = crossrefResults [ ( selectedResults ) ] = selectedResults > < / claim-results >
2017-12-19 13:53:46 +01:00
< / div >
< / div >
< / div >
< div * ngIf = "activeTab == 'openairePub'" id = "openairePubs" class = "uk-animation-fade" >
< div class = "uk-margin-top" >
2018-10-03 16:12:42 +02:00
< div * ngIf = "openairePubsStatus == errorCodes.LOADING" class = "uk-animation-fade uk-margin-top uk-width-1-1" role = "alert" > < span class = "loading-gif uk-align-center" > < / span > < / div >
2017-12-19 13:53:46 +01:00
< 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 >
2018-07-25 15:56:02 +02:00
< claim-results [ localStoragePrefix ] = localStoragePrefix [ localStoragePrefix ] = localStoragePrefix [ ( results ) ] = openairePubs [ ( selectedResults ) ] = selectedResults > < / claim-results >
2017-12-19 13:53:46 +01:00
< / div >
< / div >
< / div >
< div * ngIf = "activeTab == 'orcid'" id = "orcid" class = "uk-animation-fade" >
< div class = "uk-margin-top" >
2018-10-03 16:12:42 +02:00
< 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 >
2017-12-19 13:53:46 +01:00
< 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 >
2018-05-02 14:26:54 +02:00
< div * ngIf = "authors.length > 1" class = "uk-alert uk-alert-warning " > Not the author you are looking for?
2017-12-19 13:53:46 +01:00
< span class = "dropdown" >
< select [ ( ngModel ) ] = " selectAuthorId " name = "select_author" ( ngModelChange ) = " getOrcidResultsById ( selectAuthorId ) " >
< option [ value ] = " 0 " > Choose another one: < / option >
2018-05-02 14:26:54 +02:00
< option * ngFor = " let item of authors let i = index" [ value ] = " authors [ i ] . id " > {{authors[i].authorGivenName}} {{authors[i].authorFamilyName}} : {{authors[i].id}} < / option >
2017-12-19 13:53:46 +01:00
< / 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 >
2018-07-25 15:56:02 +02:00
< claim-results [ localStoragePrefix ] = localStoragePrefix [ localStoragePrefix ] = localStoragePrefix * ngIf = "orcidResultsNum >0 && orcidResultsToShow.length > 0 " [ ( results ) ] = orcidResultsToShow [ ( selectedResults ) ] = selectedResults > < / claim-results >
2017-12-19 13:53:46 +01:00
< div * ngIf = "orcidResultsNum == 0" class = "uk-alert uk-alert-primary " > No results found < / div >
< / div >
< / div >
< / div >
2018-05-04 12:45:40 +02:00
< / div >
2017-12-19 13:53:46 +01:00
< div * ngIf = "activeTab == 'datacite'" id = "datacite" class = "uk-animation-fade" >
2018-10-03 16:12:42 +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 >
2017-12-19 13:53:46 +01:00
< 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 >
2018-07-25 15:56:02 +02:00
< claim-results [ localStoragePrefix ] = localStoragePrefix * ngIf = "dataciteResults.length > 0 " [ ( results ) ] = dataciteResults [ ( selectedResults ) ] = selectedResults > < / claim-results >
2017-12-19 13:53:46 +01:00
< / div >
< / div >
< / div >
< div * ngIf = "activeTab == 'openaireData'" id = "openaireData" class = "uk-animation-fade" >
2018-10-03 16:12:42 +02:00
< div * ngIf = "openaireDataStatus == errorCodes.LOADING" class = "uk-animation-fade uk-margin-top uk-width-1-1" role = "alert" > < span class = "loading-gif uk-align-center" > < / span > < / div >
2017-12-19 13:53:46 +01:00
< 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 >
2018-07-25 15:56:02 +02:00
< claim-results [ localStoragePrefix ] = localStoragePrefix [ ( results ) ] = openaireData [ ( selectedResults ) ] = selectedResults > < / claim-results >
2017-12-19 13:53:46 +01:00
< / div >
< / div >
< / div >
< div * ngIf = "activeTab == 'openaireSoftware'" id = "openaireSoftware" class = "uk-animation-fade" >
2018-10-03 16:12:42 +02:00
< div * ngIf = "openaireSoftwareStatus == errorCodes.LOADING" class = "uk-animation-fade uk-margin-top uk-width-1-1" role = "alert" > < span class = "loading-gif uk-align-center" > < / span > < / div >
2017-12-19 13:53:46 +01:00
< 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 >
2018-05-04 12:45:40 +02:00
< div >
2018-07-25 15:56:02 +02:00
< claim-results [ localStoragePrefix ] = localStoragePrefix [ ( results ) ] = openaireSoftware [ ( selectedResults ) ] = selectedResults > < / claim-results >
2018-05-04 12:45:40 +02:00
< / div >
2018-07-30 16:22:19 +02:00
< / div >
< / div >
< div * ngIf = "activeTab == 'openaireORP'" id = "openaireORP" class = "uk-animation-fade" >
2018-10-03 16:12:42 +02:00
< div * ngIf = "openaireORPStatus == errorCodes.LOADING" class = "uk-animation-fade uk-margin-top uk-width-1-1" role = "alert" > < span class = "loading-gif uk-align-center" > < / span > < / div >
2018-07-30 16:22:19 +02:00
< div * ngIf = "openaireORPStatus == errorCodes.NONE" class = "uk-alert uk-alert-primary" role = "alert" > No Results found< / div >
< div * ngIf = "openaireORPStatus == errorCodes.ERROR" class = "uk-alert uk-alert-warning" role = "alert" > An Error Occured< / div >
< div * ngIf = "openaireORPStatus == errorCodes.NOT_AVAILABLE" class = "uk-alert uk-alert-danger" role = "alert" > Service not available< / div >
< div class = "uk-margin-top" >
< div * ngIf = "openaireORPNum != null && openaireORPNum > 0" class = "uk-clearfix" >
< div class = "uk-float-right" >
< paging-no-load [ currentPage ] = " openaireORPPage " [ totalResults ] = " openaireORPNum " [ term ] = " keyword " [ size ] = " size " ( pageChange ) = " openaireORPPageChange ( $ event ) " > < / paging-no-load >
< / div >
< / div >
< div >
< claim-results [ localStoragePrefix ] = localStoragePrefix [ ( results ) ] = openaireORP [ ( selectedResults ) ] = selectedResults > < / claim-results >
< / div >
< / div >
< / div >
2017-12-19 13:53:46 +01:00
< / div >