Skip to content

Commit

Permalink
change ordering f or preprints secondary card
Browse files Browse the repository at this point in the history
  • Loading branch information
adlius committed Aug 21, 2023
1 parent 0d381f6 commit b3a8d05
Showing 1 changed file with 39 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,40 +8,7 @@
{{!-- Preprint Provider --}}
{{#if @result.provider}}
<dt>{{t 'osf-components.search-result-card.preprint_provider'}}</dt>
<dd>{{@result.provider.name}}</dd>
{{/if}}

{{!-- License --}}
{{#if @result.license}}
<dt>{{t 'osf-components.search-result-card.license'}}</dt>
<dd><a href={{@result.license.identifier}} target='_blank' rel='noopener noreferrer'>{{@result.license.name}}</a></dd>
{{/if}}

{{!-- DOI --}}
{{#if @result.doi}}
<dt>{{t 'osf-components.search-result-card.doi'}}</dt>
<dd>
<InlineList
@items={{@result.doi}}
@total={{@result.doi.count}}
@truncate={{5}}
as |list|
>
<a href={{list.item}} target='_blank' rel='noopener noreferrer'>{{list.item}}</a>
</InlineList>
</dd>
{{/if}}

{{!-- Conflict of interest statement --}}
{{#if @result.resourceMetadata.statedConflictOfInterest}}
<dt>{{t 'osf-components.search-result-card.conflict_of_interest'}}</dt>
<dd>
{{#if @result.resourceMetadata.statedConflictOfInterest.[0].[@value]}}
{{@result.resourceMetadata.statedConflictOfInterest.[0].[@value]}}
{{else}}
{{t 'osf-components.search-result-card.no_conflict_of_interest'}}
{{/if}}
</dd>
<dd><a href={{@result.provider.identifier}} target='_blank' rel='noopener noreferrer'>{{@result.provider.name}}</a></dd>
{{/if}}

{{!-- Associated Data --}}
Expand Down Expand Up @@ -80,5 +47,43 @@
</InlineList>
</dd>
{{/if}}

{{!-- Conflict of interest statement --}}
{{#if @result.resourceMetadata.statedConflictOfInterest}}
<dt>{{t 'osf-components.search-result-card.conflict_of_interest'}}</dt>
<dd>
{{#if @result.resourceMetadata.statedConflictOfInterest.[0].[@value]}}
{{@result.resourceMetadata.statedConflictOfInterest.[0].[@value]}}
{{else}}
{{t 'osf-components.search-result-card.no_conflict_of_interest'}}
{{/if}}
</dd>
{{/if}}

{{!-- License --}}
{{#if @result.license}}
<dt>{{t 'osf-components.search-result-card.license'}}</dt>
<dd><a href={{@result.license.identifier}} target='_blank' rel='noopener noreferrer'>{{@result.license.name}}</a></dd>
{{/if}}

{{#if @result.absoluteUrl}}
<dt>{{t 'osf-components.search-result-card.url'}}</dt>
<dd><a href={{@result.absoluteUrl}} target='_blank' rel='noopener noreferrer'>{{@result.absoluteUrl}}</a></dd>
{{/if}}

{{!-- DOI --}}
{{#if @result.doi}}
<dt>{{t 'osf-components.search-result-card.doi'}}</dt>
<dd>
<InlineList
@items={{@result.doi}}
@total={{@result.doi.count}}
@truncate={{5}}
as |list|
>
<a href={{list.item}} target='_blank' rel='noopener noreferrer'>{{list.item}}</a>
</InlineList>
</dd>
{{/if}}
</dl>

0 comments on commit b3a8d05

Please sign in to comment.