2017-12-19 13:53:46 +01:00
< 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-background-norepeat uk-background-cover uk-section uk-flex uk-flex-middle ' + searchFormClass " >
< div class = "uk-width-1-1" >
< div class = "uk-width-1-1" >
< search-form [ isDisabled ] = " disableForms " [ ( keyword ) ] = " searchUtils . keyword " ( keywordChange ) = " keywordChanged ( $ event ) " [ placeholderText ] = " formPlaceholderText " > < / search-form >
< / div >
< div class = "uk-width-1-1 uk-light" >
< div * ngIf = "isFiltered()" class = "uk-container uk-text-center " >
< span * ngIf = "searchUtils.keyword.length > 0" > Keywords: < span > {{searchUtils.keyword}}< a ( click ) = " clearKeywords ( ) " [ class ] = " ( disableForms ) ? ' uk-icon-button uk-disabled ' : ' uk-icon-button ' " > < span class = " clickable " aria-hidden = "true" > < span class = "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 >
< span * ngFor = "let filter of filters " >
< span * ngIf = "filter.countSelectedValues > 0" > {{filter.title}}:
< span * ngFor = "let value of getSelectedValues(filter); let i = index; let end = last; " > {{value.name}}< a ( click ) = " removeFilter ( value , filter ) " [ class ] = " ( disableForms ) ? ' uk-icon-button uk-disabled ' : ' uk-icon-button ' " > < span class = " clickable" aria-hidden = "true" > < span class = "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 * ngIf = "!end" > , < / span >
< / span >
< / span >
< / span >
< a ( click ) = " clearFilters ( ) " [ class ] = " ( disableForms ) ? ' uk-disabled uk-link-muted ' : ' ' " >
Clear All
< / a >
< / div >
< / div >
< / div >
< / div >
< div class = "uk-container" >
< helper position = "top" > < / helper >
< div class = "uk-width-2-3@m uk-width-2-3@l uk-width-1-1@s" >
2018-03-02 13:57:52 +01:00
< div * ngIf = "filters.length > 0" class = "uk-offcanvas-content uk-hidden@m" >
2017-12-19 13:53:46 +01:00
< a href = "#offcanvas-usage" uk-toggle > < svg width = "20" height = "20" viewBox = "0 0 20 20" xmlns = "http://www.w3.org/2000/svg" ratio = "1" > < rect x = "6" y = "4" width = "12" height = "1" > < / rect > < rect x = "6" y = "9" width = "12" height = "1" > < / rect > < rect x = "6" y = "14" width = "12" height = "1" > < / rect > < rect x = "2" y = "4" width = "2" height = "1" > < / rect > < rect x = "2" y = "9" width = "2" height = "1" > < / rect > < rect x = "2" y = "14" width = "2" height = "1" > < / rect > < / svg > < / a >
< div id = "offcanvas-usage" uk-offcanvas >
< div class = "uk-offcanvas-bar" >
< button class = "uk-offcanvas-close" type = "button" uk-close > < / button >
< div class = "uk-text-large" > Filter By:< / div >
< search-filter * ngFor = "let filter of filters " [ addShowMore ] = false [ isDisabled ] = " disableForms " [ filter ] = " filter " [ showResultCount ] = showResultCount ( change ) = " filterChanged ( $ event ) " ( toggleModal ) = " toggleModal ( $ event ) " > < / search-filter >
< / div >
< / div >
< / div >
< / div >
< div class = "uk-grid uk-width-1-1" >
2018-03-02 13:57:52 +01:00
< div * ngIf = "filters.length > 0" class = "helper-left-right search-filters uk-width-1-6@m uk-visible@m" >
2017-12-19 13:53:46 +01:00
< helper position = "left" > < / helper >
< search-filter * ngFor = "let filter of filters " [ isDisabled ] = " disableForms " [ filter ] = " filter " [ showResultCount ] = showResultCount ( change ) = " filterChanged ( $ event ) " ( toggleModal ) = " toggleModal ( $ event ) " > < / search-filter >
< / div >
2018-01-11 11:55:54 +01:00
< div class = "uk-width-expand@m uk-width-1-1@s uk-first-column custom-dataTable-content" >
2017-12-19 13:53:46 +01:00
< div * ngIf = "searchUtils.totalResults > 0" class = "uk-align-center uk-margin-remove-bottom" >
< div class = "searchPaging uk-panel uk-margin-top uk-grid uk-margin-bottom" >
< span class = "uk-h6 uk-width-1-1@s uk-width-1-2@m" >
2018-03-01 13:03:40 +01:00
{{searchUtils.totalResults}} {{type}}, page {{searchUtils.page}} of {{(totalPages())}}
2017-12-19 13:53:46 +01:00
< / span >
< span class = "float-children-right-at-medium margin-small-top-at-small uk-width-1-1@s uk-width-1-2@m" >
< paging-no-load [ currentPage ] = " searchUtils . page " [ totalResults ] = " searchUtils . totalResults " [ size ] = " rowsOnPage " ( pageChange ) = " goTo ( $ event . value , false ) " > < / paging-no-load >
< / span >
< / div >
< / div >
< div * ngIf = "searchViewLink" class = "uk-width-1-1@s uk-hidden@m" >
< p >
< span class = "uk-margin-small-right uk-icon" > < svg width = "20" height = "20" viewBox = "0 0 20 20" xmlns = "http://www.w3.org/2000/svg" ratio = "1" > < rect x = "2" y = "2" width = "3" height = "3" > < / rect > < rect x = "8" y = "2" width = "3" height = "3" > < / rect > < rect x = "14" y = "2" width = "3" height = "3" > < / rect > < rect x = "2" y = "8" width = "3" height = "3" > < / rect > < rect x = "8" y = "8" width = "3" height = "3" > < / rect > < rect x = "14" y = "8" width = "3" height = "3" > < / rect > < rect x = "2" y = "14" width = "3" height = "3" > < / rect > < rect x = "8" y = "14" width = "3" height = "3" > < / rect > < rect x = "14" y = "14" width = "3" height = "3" > < / rect > < / svg > < / span >
< a routerLinkActive = "router-link-active" [ class ] = " ( disableForms ) ? ' uk-disabled uk-link-muted ' : ' ' " [ routerLink ] = searchViewLink >
< span class = "uk-icon" > < svg width = "20" height = "20" viewBox = "0 0 20 20" xmlns = "http://www.w3.org/2000/svg" icon = "table" ratio = "1" > < rect x = "1" y = "3" width = "18" height = "1" > < / rect > < rect x = "1" y = "7" width = "18" height = "1" > < / rect > < rect x = "1" y = "11" width = "18" height = "1" > < / rect > < rect x = "1" y = "15" width = "18" height = "1" > < / rect > < / svg > < / span >
< / a >
< / p >
< / div >
< div * ngIf = "searchUtils.totalResults <= 0" class = "errors-in-searchTableView" >
< errorMessages [ status ] = " [ searchUtils . status ] " [ type ] = " ' results ' " > < / errorMessages >
< / div >
2018-03-02 13:57:52 +01:00
< div * ngIf = "searchUtils.totalResults > 0" class = "uk-overflow-container" >
2018-01-03 14:12:31 +01:00
<!-- #mf="mfDataTable" [mfRowsOnPage]="rowsOnPage"
2018-01-11 11:55:54 +01:00
[mfData]="results | contentProvidersDatatable : [searchUtils, filters, triggerPipe, cd]"
-->
< table datatable class = "uk-table uk-table-striped divider-table" [ dtOptions ] = " dtOptions " id = "dpTable" [ dtTrigger ] = " dtTrigger " dtInstance = "dtInstanceCallback" >
2017-12-19 13:53:46 +01:00
2018-01-03 14:12:31 +01:00
< thead >
2017-12-19 13:53:46 +01:00
< tr >
2018-03-01 13:03:40 +01:00
<!-- <th class="uk - text - left">Name</th>
< th class = "uk-text-center" > Type< / th >
< th class = "uk-text-center" > Country< / th >
< th class = "uk-text-center" > Institution< / th > -->
<!-- <th class="uk - text - center"> Compatibility</th> -->
< th * ngFor = "let column of columnNames" class = "uk-text-center" > {{column}}< / th >
2017-12-19 13:53:46 +01:00
< / tr >
< / thead >
< tbody >
2018-03-01 13:03:40 +01:00
< tr class = "uk-width-1-5 uk-table-middle" * ngFor = "let result of results" >
< td * ngIf = "result.hasOwnProperty('title')" [ class ] = " ' uk-text-center uk-width-1- ' + columnNames . length " >
< a [ queryParams ] = " { datasourceId: result . id } " routerLinkActive = "router-link-active" routerLink = "/search/dataprovider" >
< span * ngIf = "result.title.name"
[innerHTML]="result.title.name">
2017-12-19 13:53:46 +01:00
< / span >
2018-03-01 13:03:40 +01:00
< span * ngIf = "!result.title.name" >
2017-12-19 13:53:46 +01:00
[no title available]
< / span >
< / a >
< / td >
2018-03-01 13:03:40 +01:00
< td * ngIf = "result.hasOwnProperty('type')" [ class ] = " ' uk-text-center uk-width-1- ' + columnNames . length " >
< span * ngIf = "result.type" > {{result.type}}< / span >
< span * ngIf = "!result.type" > -< / span >
2017-12-19 13:53:46 +01:00
< / td >
2018-03-01 13:03:40 +01:00
< td * ngIf = "result.hasOwnProperty('countries')" [ class ] = " ' uk-text-center uk-width-1- ' + columnNames . length " >
< span * ngFor = "let country of result['countries'].slice(0,5) let i = index" > {{country}}{{(i < ( result['countries'].slice(0,5).length-1))?", ":""}}{{(i == result['countries'].slice(0,5).length-1 & & result['countries'].length > 5)?"...":""}}< / span >
< span * ngIf = "result.countries.length == 0" > -< / span >
2017-12-19 13:53:46 +01:00
< / td >
2018-03-01 13:03:40 +01:00
< td * ngIf = "result.hasOwnProperty('organizations')" [ class ] = " ' uk-text-center uk-width-1- ' + columnNames . length " >
< span * ngFor = "let org of result['organizations'].slice(0,5) let i = index" >
< a * ngIf = "org.id" [ queryParams ] = " { organizationId: org . id } " routerLinkActive = "router-link-active" routerLink = "/search/organization" > {{org.name}}< / a > < span * ngIf = "!org.id" > {{org.name}}< / span > {{(i < ( result['organizations'].slice(0,5).length-1))?", ":""}}{{(i == result['organizations'].slice(0,5).length-1 & & result['organizations'].length > 5)?"...":""}}
2017-12-19 13:53:46 +01:00
< / span >
2018-03-01 13:03:40 +01:00
< span * ngIf = "result.organizations.length == 0" > -< / span >
2017-12-19 13:53:46 +01:00
< / td >
2018-03-01 13:03:40 +01:00
< td * ngIf = "result.hasOwnProperty('compatibility')" [ class ] = " ' uk-text-center uk-width-1- ' + columnNames . length " >
2018-03-01 14:14:35 +01:00
< span * ngIf = "result.compatibility" > {{result.compatibility}}< / span >
< span * ngIf = "!result.compatibility" > -< / span >
2017-12-19 13:53:46 +01:00
< / td >
2018-03-01 13:03:40 +01:00
2018-03-02 13:57:52 +01:00
<!-- Community Projects - name is also used for Community Content Providers -->
2018-03-01 13:03:40 +01:00
< td * ngIf = "result.hasOwnProperty('acronym')" [ class ] = " ' uk-text-center uk-width-1- ' + columnNames . length " >
< span * ngIf = "result.acronym" > {{result.acronym}}< / span >
< span * ngIf = "!result.acronym" > -< / span >
< / td >
< td * ngIf = "result.hasOwnProperty('name')" [ class ] = " ' uk-text-center uk-width-1- ' + columnNames . length " >
< span * ngIf = "result.name" > {{result.name}}< / span >
< span * ngIf = "!result.name" > -< / span >
< / td >
< td * ngIf = "result.hasOwnProperty('grantId')" [ class ] = " ' uk-text-center uk-width-1- ' + columnNames . length " >
< span * ngIf = "result.grantId" > {{result.grantId}}< / span >
< span * ngIf = "!result.grantId" > -< / span >
< / td >
< td * ngIf = "result.hasOwnProperty('funder')" [ class ] = " ' uk-text-center uk-width-1- ' + columnNames . length " >
< span * ngIf = "result.funder" > {{result.funder}}< / span >
< span * ngIf = "!result.funder" > -< / span >
< / td >
2018-03-02 13:57:52 +01:00
<!-- Community Content Providers -->
< td * ngIf = "result.hasOwnProperty('officialname')" [ class ] = " ' uk-text-center uk-width-1- ' + columnNames . length " >
< span * ngIf = "result.officialname" > {{result.officialname}}< / span >
< span * ngIf = "!result.officialname" > -< / span >
< / td >
2017-12-19 13:53:46 +01:00
< / tr >
< / tbody >
<!-- <thead *ngIf="searchUtils.totalResults > 0">
< tr > < td colspan = "5" class = "uk-padding-remove-horizontal" >
< span class = "uk-h6" >
{{searchUtils.totalResults}} content providers, page {{searchUtils.page}} of {{(totalPages())}}
< / span >
< paging-no-load class = "uk-float-right" [ currentPage ] = " searchUtils . page " [ totalResults ] = " searchUtils . totalResults " [ size ] = " rowsOnPage " ( pageChange ) = " goTo ( $ event . value , false ) " > < / paging-no-load >
< / td > < / tr >
< / thead > -->
< / table >
< / div >
< div * ngIf = "searchUtils.totalResults > 0" class = "uk-align-center uk-margin-remove-bottom" >
< div class = "searchPaging uk-panel uk-margin-top uk-grid uk-margin-bottom" >
< span class = "uk-h6 uk-width-1-1@s uk-width-1-2@m" >
2018-03-01 13:03:40 +01:00
{{searchUtils.totalResults}} {{type}}, page {{searchUtils.page}} of {{(totalPages())}}
2017-12-19 13:53:46 +01:00
< / span >
< span class = "float-children-right-at-medium margin-small-top-at-small uk-width-1-1@s uk-width-1-2@m" >
< paging-no-load [ currentPage ] = " searchUtils . page " [ totalResults ] = " searchUtils . totalResults " [ size ] = " rowsOnPage " ( pageChange ) = " goTo ( $ event . value , false ) " > < / paging-no-load >
< / span >
< / div >
< / div >
< helper class = "uk-hidden@m" position = "left" styleName = "uk-width-1-1@s" > < / helper >
< helper class = "uk-hidden@m" position = "right" styleName = "uk-width-1-1@s" > < / helper >
< / div >
< div * ngIf = "searchViewLink" class = "helper-left-right uk-width-1-6@m uk-visible@m" >
< p >
< span class = "uk-margin-small-right uk-icon" > < svg width = "20" height = "20" viewBox = "0 0 20 20" xmlns = "http://www.w3.org/2000/svg" ratio = "1" > < rect x = "2" y = "2" width = "3" height = "3" > < / rect > < rect x = "8" y = "2" width = "3" height = "3" > < / rect > < rect x = "14" y = "2" width = "3" height = "3" > < / rect > < rect x = "2" y = "8" width = "3" height = "3" > < / rect > < rect x = "8" y = "8" width = "3" height = "3" > < / rect > < rect x = "14" y = "8" width = "3" height = "3" > < / rect > < rect x = "2" y = "14" width = "3" height = "3" > < / rect > < rect x = "8" y = "14" width = "3" height = "3" > < / rect > < rect x = "14" y = "14" width = "3" height = "3" > < / rect > < / svg > < / span >
< a routerLinkActive = "router-link-active" [ class ] = " ( disableForms ) ? ' uk-disabled uk-link-muted ' : ' ' " [ routerLink ] = searchViewLink >
< span class = "uk-icon" > < svg width = "20" height = "20" viewBox = "0 0 20 20" xmlns = "http://www.w3.org/2000/svg" icon = "table" ratio = "1" > < rect x = "1" y = "3" width = "18" height = "1" > < / rect > < rect x = "1" y = "7" width = "18" height = "1" > < / rect > < rect x = "1" y = "11" width = "18" height = "1" > < / rect > < rect x = "1" y = "15" width = "18" height = "1" > < / rect > < / svg > < / span >
< / a >
< / p >
< helper position = "right" > < / helper >
< / div >
< / div >
< helper position = "bottom" > < / helper >
< / div >
< modal-search-filter [ filter ] = " currentFilter " [ showResultCount ] = showResultCount ( modalChange ) = " filterChanged ( $ event ) " > < / modal-search-filter >
< / div >
< / div >
< / div >