Skip to content

Commit

Permalink
layout
Browse files Browse the repository at this point in the history
  • Loading branch information
ericjeangirard committed Feb 23, 2024
1 parent 1715566 commit 764ba76
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion client/src/pages/datasetsView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default function DatasetsView({
<Column field="year" header="Year" style={{ maxWidth: '70px' }} />
<Column field="publisher" header="Publisher" style={{ maxWidth: '70px' }} />
<Column field="affiliationsHtml" header="Affiliations" body={affiliationsTemplate} style={{ maxWidth: '220px' }} />
<Column field="levelCertainty" header="Certainty" style={{ maxWidth: '70px' }} />
<Column field="levelCertainty" header="Certainty" style={{ maxWidth: '90px' }} sortable />
<Column field="fr_publications_linked" header="Linked Article" body={linkedDOITemplate} style={{ maxWidth: '180px' }} />
<Column field="fr_authors_orcid" header="My institution author ORCID" body={linkedORCIDTemplate} style={{ maxWidth: '150px' }} />
<Column field="fr_authors_name" header="My institution author name" body={frAuthorsTemplate} style={{ maxWidth: '150px' }} />
Expand Down
6 changes: 3 additions & 3 deletions server/src/utils/works.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@ const formatResultFosm = (result, options) => {
ans.nbOrcid = ans.fr_authors_orcid.length;
ans.nbAuthorsName = ans.fr_authors_name.length;
ans.nbPublicationsLinked = ans.fr_publications_linked.length;
let levelCertainty = 'medium';
let levelCertainty = '2.medium';
if (ans.nbPublicationsLinked > 0 || ans.nbOrcid > 1 || ans.nbAuthorsName > 1) {
levelCertainty = 'high';
levelCertainty = '1.high';
} else if (ans.nbAuthorsName === 1) {
levelCertainty = 'low';
levelCertainty = '3.low';
}
ans.levelCertainty = levelCertainty;
return ans;
Expand Down

0 comments on commit 764ba76

Please sign in to comment.