diff --git a/lib/osf-components/addon/components/search-page/filter-facet/template.hbs b/lib/osf-components/addon/components/search-page/filter-facet/template.hbs index cd143a134c9..45c6ffa6c49 100644 --- a/lib/osf-components/addon/components/search-page/filter-facet/template.hbs +++ b/lib/osf-components/addon/components/search-page/filter-facet/template.hbs @@ -5,7 +5,7 @@ local-class='facet-wrapper' ...attributes > - {{#let (unique-id @property.displayLabel) as |facetElementId|}} + {{#let (unique-id @property.propertyPathKey) as |facetElementId|}} + {{/if}} - {{#if (not-eq @result.resourceType 'user')}} - +

+ {{@result.displayTitle}} + {{#if @result.isWithdrawn}} + {{t 'osf-components.search-result-card.withdrawn'}} + {{/if}} + {{#if @result.orcids}} + {{#each @result.orcids as |item|}} + + + + {{/each}} + {{/if}} +

+ + {{#if @result.affiliatedEntities}} +
+ + {{#if list.item}} + {{list.item.name}} + {{else if list.remainingCount}} + {{t 'osf-components.search-result-card.remaining_count' count=list.remainingCount}} + {{/if}} + +
{{/if}} - -

- {{@result.displayTitle}} - {{#if @result.isWithdrawn}} - {{t 'osf-components.search-result-card.withdrawn'}} + {{#if @result.isPartOf}} +
+ {{t 'osf-components.search-result-card.from'}}: {{@result.isPartOfTitleAndUrl.title}} +
{{/if}} - {{#if @result.orcids}} - {{#each @result.orcids as |item|}} - - - - {{/each}} + {{#if @result.isContainedBy}} +
+ {{t 'osf-components.search-result-card.from'}}: {{@result.isContainedByTitleAndUrl.title}} +
{{/if}} -

- - {{#if @result.affiliatedEntities}} -
- - {{#if list.item}} - {{list.item.name}} - {{else if list.remainingCount}} - {{t 'osf-components.search-result-card.remaining_count' count=list.remainingCount}} +
+ {{#each @result.dateFields as |field|}} + {{#if field.date}} + {{field.label}}: {{field.date}} {{/if}} - -
- {{/if}} - {{#if @result.isPartOf}} -
- {{t 'osf-components.search-result-card.from'}}: {{@result.isPartOfTitleAndUrl.title}} -
- {{/if}} - {{#if @result.isContainedBy}} -
- {{t 'osf-components.search-result-card.from'}}: {{@result.isContainedByTitleAndUrl.title}} + {{/each}}
- {{/if}} -
- {{#each @result.dateFields as |field|}} - {{#if field.date}} - {{field.label}}: {{field.date}} - {{/if}} - {{/each}} + {{#if @result.context}} +
+ {{t 'osf-components.search-result-card.context'}}: {{@result.context}} +
+ {{/if}} + {{#if (or (eq @result.resourceType 'registration') (eq @result.resourceType 'registration_component'))}} +
+ +
+ {{/if}}
- {{#if @result.context}} -
- {{t 'osf-components.search-result-card.context'}}: {{@result.context}} -
- {{/if}} - {{#if (or (eq @result.resourceType 'registration') (eq @result.resourceType 'registration_component'))}} -
- -
- {{/if}} -
- - -
- {{component this.secondaryMetadataComponent result=@result}} -
-
+ + +
+ {{component this.secondaryMetadataComponent result=@result}} +
+
+ {{/let}} \ No newline at end of file diff --git a/translations/en-us.yml b/translations/en-us.yml index b9efbeffea6..43e0a9ede47 100644 --- a/translations/en-us.yml +++ b/translations/en-us.yml @@ -1859,6 +1859,8 @@ routes: email: Email osf-components: search-result-card: + show_additional_metadata: 'Show additional metadata' + hide_additional_metadata: 'Hide additional metadata' language: Language url: URL resource_type: Resource type