[Connect|Trunk]
Add property showAddthis Search Projects: show static filters only if there are results add showOnly results and breadcrumb options Search Projects: add showOnly results and breadcrumb options git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-connect-portal/trunk@58554 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
17e7eb2d7f
commit
04b3bc4c72
|
@ -4,6 +4,7 @@
|
|||
"enablePiwikTrack" : true,
|
||||
"useCache" : true,
|
||||
"showContent" : true,
|
||||
"showAddThis" : false,
|
||||
"metricsAPIURL" : "https://beta.services.openaire.eu/usagestats/",
|
||||
"framesAPIURL" : "https://beta.openaire.eu/stats3/",
|
||||
"statisticsAPIURL" : "https://beta.services.openaire.eu/stats-api/",
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
"enablePiwikTrack" : false,
|
||||
"useCache" : true,
|
||||
"showContent" : true,
|
||||
"showAddThis" : false,
|
||||
"metricsAPIURL" : "https://services.openaire.eu/usagestats/",
|
||||
"framesAPIURL" : "https://www.openaire.eu/stats3/",
|
||||
"statisticsAPIURL" : "https://services.openaire.eu/stats-api/",
|
||||
|
|
|
@ -25,7 +25,8 @@ import {PiwikHelper} from '../../utils/piwikHelper';
|
|||
[enableSearchView]="enableSearchView"
|
||||
searchFormClass="datasourcesTableSearchForm"
|
||||
formPlaceholderText="Search for Content Providers"
|
||||
[piwikSiteId]="piwikSiteId" [hasPrefix]="false" [customFilter]="customFilter" [enableEntitySelection]="true">
|
||||
[piwikSiteId]="piwikSiteId" [hasPrefix]="false" [customFilter]="customFilter" [enableEntitySelection]="true"
|
||||
[includeOnlyResultsAndFilter]="true" [showBreadcrumb]="true">
|
||||
</search-page-table>
|
||||
`
|
||||
|
||||
|
|
|
@ -27,7 +27,8 @@ import {ConnectHelper} from '../../openaireLibrary/connect/connectHelper';
|
|||
[enableSearchView]="enableSearchView"
|
||||
searchFormClass="projectsTableSearchForm"
|
||||
formPlaceholderText="Search for Projects"
|
||||
[piwikSiteId]="piwikSiteId" [hasPrefix]="false" [customFilter]="customFilter" [enableEntitySelection]="true">
|
||||
[piwikSiteId]="piwikSiteId" [hasPrefix]="false" [customFilter]="customFilter" [enableEntitySelection]="true"
|
||||
[includeOnlyResultsAndFilter]="true" [showBreadcrumb]="true">
|
||||
</search-page-table>
|
||||
`
|
||||
|
||||
|
@ -183,13 +184,24 @@ export class OpenaireSearchProjectsComponent {
|
|||
|
||||
var filters: Filter[] =[];
|
||||
for(i =0 ; i < filter_names.length;i++){
|
||||
var values:Value[] = [];
|
||||
for(var j =0 ; j < value_names[i].length;j++){
|
||||
var value:Value = {name: value_names[i][j], id: value_original_ids[i][j], number:j, selected:false}
|
||||
values.push(value);
|
||||
if(value_names[i].length > 0) {
|
||||
var values: Value[] = [];
|
||||
for (var j = 0; j < value_names[i].length; j++) {
|
||||
var value: Value = {name: value_names[i][j], id: value_original_ids[i][j], number: j, selected: false}
|
||||
values.push(value);
|
||||
}
|
||||
var filter: Filter = {
|
||||
title: filter_names[i],
|
||||
filterId: filter_ids[i],
|
||||
originalFilterId: filter_original_ids[i],
|
||||
values: values,
|
||||
countSelectedValues: 0,
|
||||
"filterOperator": 'or',
|
||||
valueIsExact: true,
|
||||
filterType: "checkbox"
|
||||
};
|
||||
filters.push(filter);
|
||||
}
|
||||
var filter:Filter = {title: filter_names[i], filterId: filter_ids[i], originalFilterId: filter_original_ids[i], values : values, countSelectedValues:0, "filterOperator": 'or', valueIsExact: true, filterType: "checkbox" };
|
||||
filters.push(filter);
|
||||
}
|
||||
return filters;
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@ import {PiwikHelper} from "../../utils/piwikHelper";
|
|||
template: `
|
||||
<search-research-results resultType="result" openaireLink="https://beta.explore.openaire.eu/search/find/publications"
|
||||
[customFilter]=customFilter [piwikSiteId]="piwikSiteId" [hasPrefix]="false"
|
||||
[includeOnlyResultsAndFilter]="true" [showBreadcrumb]="true"></search-research-results>
|
||||
[includeOnlyResultsAndFilter]="true" [showBreadcrumb]="true" [showAdvancedSearchLink]="false"></search-research-results>
|
||||
`
|
||||
|
||||
})
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
"enablePiwikTrack" : false,
|
||||
"useCache" : false,
|
||||
"showContent" : true,
|
||||
"showAddThis" : false,
|
||||
"metricsAPIURL" : "https://beta.services.openaire.eu/usagestats/",
|
||||
"framesAPIURL" : "https://beta.openaire.eu/stats3/",
|
||||
"statisticsAPIURL" : "https://beta.services.openaire.eu/stats-api/",
|
||||
|
|
Loading…
Reference in New Issue