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 9, 2024
2 parents 5a60edf + 59432f9 commit 1b45920
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/src/utils/files.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const export2FosmCsv = ({ data, label, searchParams }) => {
let idsToExport = ['doi', 'hal_id', 'nnt_id', 'openalex'];
// For datasets
if (label === 'datasets') {
idsToExport = ['datacite', 'crossref'];
idsToExport = ['doi'];
}
const rows = data
.filter((publication) => publication.status === status.validated.id)
Expand Down
2 changes: 1 addition & 1 deletion server/src/utils/works.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ const formatFosmResult = (result, options) => {
answer.nbPublicationsLinked = answer.fr_publications_linked.length;
answer.matchingRoRs = getMatchingRoRs(answer?.affiliations || [], options);
answer.nbMatchingRoRs = answer.matchingRoRs.length;
answer.nbAffiliations = answer.affiliations.length;
answer.nbAffiliations = answer.affiliations?.length || 0;
let levelCertainty = '2.medium';
if (answer.nbMatchingRoRs > 0 || answer.nbPublicationsLinked > 0 || answer.nbOrcid >= 2 || answer.nbAuthorsName >= 3) {
levelCertainty = '1.high';
Expand Down

0 comments on commit 1b45920

Please sign in to comment.