Skip to content

Commit

Permalink
Merge pull request #106 from ejp-rd-vp/bugfix/98-filters-are-ignored
Browse files Browse the repository at this point in the history
#98 - Filters are ignored
  • Loading branch information
vabishaa authored Feb 4, 2024
2 parents 4c3b06d + 8a7576b commit 2a49ddb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion components/search/DiscoverySearchWithAutoComplete.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default {
data () {
return {
searchParams: {
resourceTypes: ['KnowledgeDataset', 'PatientRegistryDataset', 'BiobankDataset'],
resourceTypes: ['PatientRegistryDataset', 'BiobankDataset', 'Dataset', 'Catalog', 'Guideline'],
countries: ['DE', 'NL'],
sexes: ['MALE', 'FEMALE', 'UNDETERMINED', 'UNKNOWN'],
ageThisYear: [20,39],
Expand Down
12 changes: 6 additions & 6 deletions components/search/SearchFilters.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ export default {
symptomOnset: [0,100],
ageAtDiagnoses: [0,100],
},
items1: ['Patient Registries', 'Biobanks', 'Dataset','Catalog', 'Guidelines' ],
value1: ['Patient Registries', 'Biobanks', 'Dataset','Catalog', 'Guidelines'],
items1: ['Patient Registries', 'Biobanks', 'Dataset','Catalog', 'Guideline' ],
value1: ['Patient Registries', 'Biobanks', 'Dataset','Catalog', 'Guideline'],
items2: Countries.euCountriesNames(),
value2: Countries.euCountriesNames(),
symptomOnset: {
Expand Down Expand Up @@ -95,14 +95,14 @@ export default {
if (type.toLowerCase() === 'biobanks') {
newTypes.push('BIO_BANK')
}
if (type.toLowerCase() === 'Dataset') {
if (type.toLowerCase() === 'dataset') {
newTypes.push('DATASET')
}
if (type.toLowerCase() === 'Catalog') {
if (type.toLowerCase() === 'catalog') {
newTypes.push('CATALOG')
}
if (type.toLowerCase() === 'Guidelines') {
newTypes.push('GUIDELINES')
if (type.toLowerCase() === 'guideline') {
newTypes.push('GUIDELINE')
}
}
Expand Down
2 changes: 1 addition & 1 deletion pages/discovery/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default {
selectedCodesObjects: [],
resources: [],
searchParams: {
resourceTypes: ['KnowledgeDataset', 'PatientRegistryDataset', 'BiobankDataset'],
resourceTypes: ['PatientRegistryDataset', 'BiobankDataset', 'Dataset', 'Catalog', 'Guideline'],
countries: ['DE', 'NL'],
sexes: ['MALE', 'FEMALE', 'UNDETERMINED', 'UNKNOWN'],
ageThisYear: [20,39],
Expand Down

0 comments on commit 2a49ddb

Please sign in to comment.