-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
142 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
<div> | ||
<h4>{{t 'preprints.detail.disciplines'}}</h4> | ||
{{#each this.disciplineReduced as |subject|}} | ||
<span local-class='subject-preview'>{{subject.text}}</span> | ||
{{/each}} | ||
<span data-test-subjects> | ||
{{#each this.disciplineReduced as |subject|}} | ||
<span local-class='subject-preview'>{{subject.text}}</span> | ||
{{/each}} | ||
</span> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
lib/collections/addon/components/discover-page/active-filters/data-type/template.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{{#each @context.activeFilter as |item|}} | ||
<DiscoverPage::ActiveFilters::Filter | ||
@item={{item}} | ||
@text={{item}} | ||
@ariaLabel={{t 'collections.discover_page.active_filters.remove_data_type'}} | ||
@removeFilterItem={{action this.removeFilterItem item}} | ||
/> | ||
{{/each}} |
8 changes: 8 additions & 0 deletions
8
lib/collections/addon/components/discover-page/active-filters/disease/template.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{{#each @context.activeFilter as |item|}} | ||
<DiscoverPage::ActiveFilters::Filter | ||
@item={{item}} | ||
@text={{item}} | ||
@ariaLabel={{t 'collections.discover_page.active_filters.remove_disease'}} | ||
@removeFilterItem={{action this.removeFilterItem item}} | ||
/> | ||
{{/each}} |
13 changes: 13 additions & 0 deletions
13
lib/collections/addon/components/discover-page/facets/data-type/component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import Collection from 'ember-osf-web/models/collection'; | ||
import SearchFacetChecklist from '../checklist/component'; | ||
|
||
class DataType extends SearchFacetChecklist { | ||
get modelAttribute(): keyof Collection { | ||
return 'dataTypeChoices'; | ||
} | ||
get filterProperty() { | ||
return 'dataType'; | ||
} | ||
} | ||
|
||
export default DataType; |
13 changes: 13 additions & 0 deletions
13
lib/collections/addon/components/discover-page/facets/disease/component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import Collection from 'ember-osf-web/models/collection'; | ||
import SearchFacetChecklist from '../checklist/component'; | ||
|
||
class Disease extends SearchFacetChecklist { | ||
get modelAttribute(): keyof Collection { | ||
return 'diseaseChoices'; | ||
} | ||
get filterProperty() { | ||
return 'disease'; | ||
} | ||
} | ||
|
||
export default Disease; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters