Skip to content

Commit

Permalink
Merge branch 'staging'
Browse files Browse the repository at this point in the history
  • Loading branch information
ericjeangirard committed Oct 11, 2024
2 parents 313c372 + d9a3ab5 commit db76378
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 9 deletions.
2 changes: 2 additions & 0 deletions client/src/pages/affiliationsView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ export default function AffiliationsView({
header="ROR computed by OpenAlex"
body={rorTemplate}
style={{ maxWidth: '150px' }}
sortable
sortField="rorsNumber"
/>
<Column
field="worksExamples"
Expand Down
33 changes: 24 additions & 9 deletions client/src/pages/datasetsView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export default function DatasetsView({
field="status"
header="Status"
body={statusTemplate}
style={{ minWidth: '180px', maxWidth: '180px' }}
style={{ minWidth: '140px', maxWidth: '140px' }}
showFilterMenu={false}
filter
filterElement={statusRowFilterTemplate}
Expand All @@ -120,43 +120,58 @@ export default function DatasetsView({
<Column
field="type"
header="Type"
sortable
style={{ maxWidth: '90px' }}
showFilterMenu={false}
/>
<Column field="year" header="Year" style={{ maxWidth: '70px' }} />
<Column
field="year"
header="Year"
style={{ maxWidth: '70px' }}
sortable
/>
<Column
field="publisher"
filter
filterElement={publishersFilterTemplate}
filterField="publisher"
filterMenuStyle={{ width: '14rem' }}
// filter
// filterElement={publishersFilterTemplate}
// filterField="publisher"
// filterMenuStyle={{ width: '14rem' }}
// showFilterMenu={false}
header="Publisher"
showFilterMenu={false}
style={{ maxWidth: '70px' }}
sortable
style={{ minWidth: '95px', maxWidth: '95px' }}
/>
<Column
field="affiliationsHtml"
header="Affiliations"
body={affiliationsTemplate}
style={{ maxWidth: '220px' }}
sortable
sortField="nbAffiliations"
/>
<Column
field="fr_publications_linked"
header="Linked Article"
body={linkedDOITemplate}
style={{ maxWidth: '180px' }}
style={{ minWidth: '160px', maxWidth: '160px' }}
sortable
sortField="nbPublicationsLinked"
/>
<Column
field="fr_authors_orcid"
header="My institution author ORCID"
body={linkedORCIDTemplate}
style={{ maxWidth: '150px' }}
sortable
sortField="nbOrcid"
/>
<Column
field="fr_authors_name"
header="My institution author name"
body={frAuthorsTemplate}
style={{ maxWidth: '150px' }}
sortable
sortField="nbAuthorsName"
/>
</DataTable>
);
Expand Down

0 comments on commit db76378

Please sign in to comment.