Skip to content
This repository has been archived by the owner on Jun 5, 2023. It is now read-only.

Loader json-conditor-2 #59

Open
wants to merge 50 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
26ba12e
chore(git): Ignore local files
parmentf Jun 3, 2022
23365ee
chore(vscode): Remove VSCode ts linting errors
parmentf Jun 3, 2022
8c46c5b
build(npm): Update ezs packages
parmentf Jun 3, 2022
1862156
test(json-conditor): Fix json-conditor test
parmentf Jun 3, 2022
a2efb6a
feat(json-conditor): Add a real sample
parmentf Jun 7, 2022
8cb1be9
feat(json-conditor-2): Select fields
parmentf Jun 7, 2022
c15ea69
fix(json-conditor-2): pageRange was broken for some notice
parmentf Jun 8, 2022
5c6a03a
test(json-conditor-2): Add several tests
parmentf Jun 8, 2022
3844855
feat(json-conditor-2): Add articleNumber to the loader
parmentf Jun 8, 2022
b385cae
feat(json-conditor-2): Add arxiv field
parmentf Jun 8, 2022
56a99b6
test(json-conditor-2): Test authors affiliations ref
parmentf Jun 8, 2022
a4ae237
feat(json-conditor-2): Add funders fields
parmentf Jun 8, 2022
0d41d5b
feat(json-conditor-2): Add hasDoi and hasFulltext fields
parmentf Jun 9, 2022
182804f
feat(json-conditor-2): Add keywords fields
parmentf Jun 9, 2022
266f067
feat(json-conditor-2): Add otherNumber field
parmentf Jun 9, 2022
10fed1a
feat(json-conditor-2): Add specialIssue field
parmentf Jun 9, 2022
867c316
feat(json-conditor-2): Add supplement field
parmentf Jun 9, 2022
f57cab0
feat(json-conditor-2): Add title meeting
parmentf Jun 9, 2022
67fe9e6
style(json-conditor-2): Remove dead code
parmentf Jun 10, 2022
69a7aaa
feat(json-conditor-2): Add publisher field
parmentf Jun 10, 2022
ac704de
feat(json-conditor-2): Add sourceUids identifiers
parmentf Jun 10, 2022
f8b32d7
feat(json-conditor-2): Add rnsr enrichments
parmentf Jun 13, 2022
559eb38
fix(json-conditor-2): Flatten rnsr initial
parmentf Jun 13, 2022
54c0b34
feat(json-conditor-2): Add rnsr concat field
parmentf Jun 14, 2022
e23d729
feat(json-conditor-2): Add rnsr notice unifiée field
parmentf Jun 14, 2022
8c4f5a4
feat(json-conditor-2): Add classification hal fields
parmentf Jun 14, 2022
e7adcd3
feat(json-conditor-2): Add oa unpaywall fields
parmentf Jun 14, 2022
5997139
style(json-conditor-2): Remove dead comments
parmentf Jun 14, 2022
6704cd8
feat(json-conditor-2): Add halId field
parmentf Jun 14, 2022
cbc5e2d
feat(json-conditor-2): Add idChain field
parmentf Jun 14, 2022
62d9a5b
feat(json-conditor-2): Add idProdinra field
parmentf Jun 14, 2022
d5e5f1c
feat(json-conditor-2): Add irstea field
parmentf Jun 14, 2022
2092989
feat(json-conditor-2): Add isDuplicate field
parmentf Jun 14, 2022
a42c1e1
feat(json-conditor-2): Add isbn field
parmentf Jun 14, 2022
ade7caa
feat(json-conditor-2): Add nnt field
parmentf Jun 14, 2022
6e86a00
feat(json-conditor-2): Add oatao field
parmentf Jun 15, 2022
0edc31a
feat(json-conditor-2): Add okina field
parmentf Jun 15, 2022
4d00994
feat(json-conditor-2): Add part field
parmentf Jun 15, 2022
8ed93e6
feat(json-conditor-2): Add ppn field
parmentf Jun 15, 2022
9caa583
feat(json-conditor-2): Add typeConditor field
parmentf Jun 15, 2022
9fabdee
feat(json-conditor-2): Add thesisAdvisor forename field
parmentf Jun 15, 2022
b870141
feat(json-conditor-2): Add thesisAdvisor idRef field
parmentf Jun 15, 2022
e45dd34
feat(json-conditor-2): Add thesisAdvisor surname field
parmentf Jun 15, 2022
4f5a74e
feat(json-conditor-2): Add thesisAdvisor fullname field
parmentf Jun 15, 2022
3bb9c37
fix(json-conditor-2): Find language at the root by default
parmentf Jun 15, 2022
485b75d
feat(json-conditor-2): Add several fields
parmentf Jul 4, 2022
580de2e
fix(json-conditor-2): affiliations id had nested levels
parmentf Jul 4, 2022
e8cbee6
feat(json-conditor-2): Improve keywords fr mesh / rameau
parmentf Jul 4, 2022
6a39617
feat(json-conditor-2): Flatten author enrichments idRef / orcId
parmentf Jul 4, 2022
cf091b5
feat(json-conditor-2): Add flattened rnsr fields
parmentf Jul 4, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,4 @@ stats.json
# Misc
examples/
.idea
export.*
23 changes: 12 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,22 @@
},
"homepage": "https://github.com/Inist-CNRS/lodex-extended#readme",
"dependencies": {
"@ezs/analytics": "1.9.3",
"@ezs/basics": "1.6.5",
"@ezs/analytics": "1.18.6",
"@ezs/basics": "1.17.1",
"@ezs/booster": "1.2.4",
"@ezs/core": "1.19.0",
"@ezs/istex": "1.1.6",
"@ezs/lodex": "1.11.0",
"@ezs/loterre": "1.0.23",
"@ezs/sparql": "1.0.17",
"@ezs/storage": "1.3.2",
"@ezs/transformers": "1.2.4",
"@ezs/core": "1.28.2",
"@ezs/istex": "1.5.1",
"@ezs/lodex": "1.15.0",
"@ezs/loterre": "1.3.2",
"@ezs/sparql": "1.2.0",
"@ezs/storage": "1.6.2",
"@ezs/transformers": "1.4.0",
"dotenv-cli": "4.0.0"
},
"devDependencies": {
"@types/jest": "28.1.0",
"from": "0.1.7",
"jest": "26.6.3"
"jest": "28.1.0"
},
"scripts": {
"test": "jest",
Expand All @@ -47,4 +48,4 @@
"version": "npm run insertversion:readme && npm run insertversion:makefile && npm run insertversion:docker && git add README.md Makefile docker-compose.debug.yml",
"postversion": "git push && git push --tags"
}
}
}
1 change: 1 addition & 0 deletions public/loaders/fixtures/json-conditor-2/expected-1.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions public/loaders/fixtures/json-conditor-2/expected-10.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"abstract en":"Normal pregnancy is associated with an increasing state of activation of the haemostatic system. This activation state is excessive in women with placenta-mediated pregnancy complications (PMPCs), including preeclampsia (PE). Platelet activation plays a crucial pathophysiological role in PE. The very early activation of coagulation in the intervillous space is mandatory for placental growth and morphogenesis but its excesses and/or inadequate control may participate to the emergence of the trophoblastic phenotype of PE. Extracellular vesicles, of endothelial but also of trophoblastic origin, can favour key cellular reactions of preeclampsia, acting as proactive cofactors. The understanding of this intricate relationship between haemostasis activation and PMPCs may provide interesting keys for new pathophysiological therapeutic developments. © 2019 Elsevier Ltd. All rights reserved.","abstract fr":"","articleNumber":"","arxiv":"","affiliations address":["Department of Haematology, Nîmes University Hospital, France; University of Montpellier, France; The First I.M. Sechenov Moscow State Medical University, Russian Federation. Electronic address: [email protected].","Department of Haematology, Nîmes University Hospital, France; University of Montpellier, France.","Department of Haematology, Nîmes University Hospital, France.","Department of Gynaecology and Obstetrics, Nîmes University Hospital, France.","University of Montpellier, France; Department of Vascular Imaging and Vascular Medicine, Nîmes University Hospital, France."],"affiliations idRef":[],"affiliations isni":[],"affiliations ref":[],"authors affiliations address":[["Department of Haematology, Nîmes University Hospital, France; University of Montpellier, France; The First I.M. Sechenov Moscow State Medical University, Russian Federation. Electronic address: [email protected]."],["Department of Haematology, Nîmes University Hospital, France; University of Montpellier, France."],["Department of Haematology, Nîmes University Hospital, France."],["Department of Haematology, Nîmes University Hospital, France; University of Montpellier, France."],["Department of Gynaecology and Obstetrics, Nîmes University Hospital, France."],["University of Montpellier, France; Department of Vascular Imaging and Vascular Medicine, Nîmes University Hospital, France."]],"authors affiliations idRef":[[],[],[],[],[],[]],"authors affiliations isni":[[],[],[],[],[],[]],"authors affiliations ref":[[],[],[],[],[],[]],"authors affiliations rnsr initial":[[],[],[],[],[],[]],"authors affiliations rnsr enrichments":[[],[],[],[],[],[]],"authors affiliations rnsr notice unifiée":[[],[],[],[],[],[]],"authors enrichments idHal":[],"authors enrichments idRef":[],"authors enrichments orcId":[],"authors forename & authors surname":["Jean-Christophe Gris","Sylvie Bouvier","Éva Cochery-Nouvellon","Éric Mercier","Ève Mousty","Antonia Pérez-Martin"],"authors halAuthorId":[],"authors idHal":[],"authors idRef":[],"authors isni":[],"authors orcId":[],"authors researcherId":[],"authors viaf":[],"bibCode":"","cern":"","classification enrichments hal code":"sdv","classification enrichments hal en":"Life Sciences [q-bio]","classification enrichments hal fr":"Sciences du Vivant [q-bio]","classification hal code":"","classification hal en":"","classification hal fr":"","classifications dewey":"","classifications tef":"","classifications thesisDomain":"","documentType":"Journal Article","doi":"10.1016/S0049-3848(19)30359-7","duplicates source":["pubmed"],"duplicates sourceUid":["pubmed$31477220"],"eisbn":"","eissn":"1879-2472","electronicPublicationDate":"","enrichments classifications hal":{"code":"sdv","en":"Life Sciences [q-bio]","fr":"Sciences du Vivant [q-bio]"},"enrichments oa unpaywall has_repository_copy":false,"enrichments oa unpaywall host_type":[],"enrichments oa unpaywall is_oa":false,"enrichments oa unpaywall oa_status":"closed","fulltextUrl":"","funders grantNumber":[],"funders name":[],"halId":"","hasDoi":true,"hasFulltext":false,"idChain":"!hal$hal-02859858!pubmed$31477220!","idProdinra":"","irstea":"","isbn":"","issn":"","issue":"","keywords en author":["Angiogenesis","Extracellular vesicles","Haemostasis","Platelets","Preeclampsia","Thrombin","Tissue factor"],"keywords en mesh":["Female","Hemostasis","physiology","Humans","Placenta","pathology","Pre-Eclampsia","blood","Pregnancy"],"keywords fr author":[],"keywords fr mesh":[],"keywords fr rameau":[],"keywords undetermined author":[],"language":["English"],"nnt":"","oatao":"","okina":"","otherNumber":"","pageRange":["S10-S14"],"part":"","pii":"S0049-3848(19)30359-7","pmId":"31477220","ppn":"","publicationDate":"2019-09","publisher":"","sourceUids identifiers":["hal$hal-02859858","pubmed$31477220"],"specialIssue":"","supplement":"Suppl 1","thesisAdvisor forename":[],"thesisAdvisor fullname":[],"thesisAdvisor idRef":[],"thesisAdvisor surname":[],"title default":"The role of haemostasis in placenta-mediated complications.","title en":"The role of haemostasis in placenta-mediated complications.","title fr":"","title source":"Thrombosis research","title meeting":"","typeConditor":"Article","volume":"181","authors affiliations rnsr concat":[[],[],[],[],[],[]],"rnsr enrichments":[],"rnsr initial":[],"rnsr notice unifiée":[],"rnsr concat":[],"isDuplicate":true,"uri":"uid:/AZaXAKKN3"}]
1 change: 1 addition & 0 deletions public/loaders/fixtures/json-conditor-2/expected-11.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"abstract en":"","abstract fr":"","articleNumber":"","arxiv":"","affiliations address":["École normale supérieure - Lyon ENS Lyon, Université Lumière - Lyon 2 UL2, École des hautes études en sciences sociales EHESS, Université Jean Moulin - Lyon 3 UJML, Avignon Université AU, UMR5648, Centre National de la Recherche Scientifique CNRS, Histoire, Archéologie et Littératures des mondes chrétiens et musulmans médiévaux CIHAM, 14, avenue Berthelot - 69363 Lyon cedex 07, FR"],"affiliations idRef":["028888596"],"affiliations isni":["0000000123699377"],"affiliations ref":["struct-146317"],"authors affiliations address":[["École normale supérieure - Lyon ENS Lyon, Université Lumière - Lyon 2 UL2, École des hautes études en sciences sociales EHESS, Université Jean Moulin - Lyon 3 UJML, Avignon Université AU, UMR5648, Centre National de la Recherche Scientifique CNRS, Histoire, Archéologie et Littératures des mondes chrétiens et musulmans médiévaux CIHAM, 14, avenue Berthelot - 69363 Lyon cedex 07, FR"]],"authors affiliations idRef":[["028888596"]],"authors affiliations isni":[["0000000123699377"]],"authors affiliations ref":[["struct-146317"]],"authors affiliations rnsr initial":[["199412070A"]],"authors affiliations rnsr enrichments":[["199412070A"]],"authors affiliations rnsr notice unifiée":[["199412070A"]],"authors enrichments idHal":[],"authors enrichments idRef":[],"authors enrichments orcId":[],"authors forename & authors surname":["Marjorie Burghart"],"authors halAuthorId":["387096"],"authors idHal":["750642"],"authors idRef":[],"authors isni":[],"authors orcId":[],"authors researcherId":[],"authors viaf":[],"bibCode":"","cern":"","classification enrichments hal code":"","classification enrichments hal en":"","classification enrichments hal fr":"","classification hal code":"","classification hal en":"","classification hal fr":"","classifications dewey":"","classifications tef":"","classifications thesisDomain":"","documentType":"OTHER","doi":"10.1080/13660691.2017.1368582","duplicates source":["hal"],"duplicates sourceUid":["hal$halshs-01984333"],"eisbn":"","eissn":"1749-6276","electronicPublicationDate":"","enrichments classifications hal":{},"enrichments oa unpaywall has_repository_copy":false,"enrichments oa unpaywall host_type":[],"enrichments oa unpaywall is_oa":false,"enrichments oa unpaywall oa_status":"closed","fulltextUrl":"","funders grantNumber":[],"funders name":[],"halId":"halshs-01984333","hasDoi":true,"hasFulltext":false,"idChain":"!crossref$10.1080/13660691.2017.1368582!hal$halshs-01984333!","idProdinra":"","irstea":"","isbn":"","issn":"1366-0691","issue":"1","keywords en author":[],"keywords en mesh":[],"keywords fr author":[],"keywords fr mesh":[],"keywords fr rameau":[],"keywords undetermined author":[],"language":["English"],"nnt":"","oatao":"","okina":"","otherNumber":"","pageRange":["83-84"],"part":"","pii":"","pmId":"","ppn":"","publicationDate":"2017-09-27","publisher":"Maney Publishing","sourceUids identifiers":["crossref$10.1080/13660691.2017.1368582","hal$halshs-01984333"],"specialIssue":"","supplement":"","thesisAdvisor forename":[],"thesisAdvisor fullname":[],"thesisAdvisor idRef":[],"thesisAdvisor surname":[],"title default":"The Arts of Editing Medieval Greek and Latin: A Casebook . Éd. par Elisabet Göransson, Gunilla Iversen, Barbara Crostini, Brian M. Jensen, Erika Kihlman, Eva Odelman, et Denis Searby. Studies and Texts, 203. Pp. xx–452. Toronto: Pontifical Institute of Medieval Studies, 2016. ISBN: 978-0-88844-203-1","title en":"The Arts of Editing Medieval Greek and Latin: A Casebook . Éd. par Elisabet Göransson, Gunilla Iversen, Barbara Crostini, Brian M. Jensen, Erika Kihlman, Eva Odelman, et Denis Searby. Studies and Texts, 203. Pp. xx–452. Toronto: Pontifical Institute of Medieval Studies, 2016. ISBN: 978-0-88844-203-1","title fr":"","title source":"Medieval Sermon Studies","title meeting":"","typeConditor":"Autre","volume":"61","authors affiliations rnsr concat":[["199412070A","199412070A"]],"rnsr enrichments":["199412070A"],"rnsr initial":["199412070A"],"rnsr notice unifiée":[],"rnsr concat":["199412070A"],"isDuplicate":true,"uri":"uid:/xP2wwWMAn"},{"abstract en":"","abstract fr":"","articleNumber":"","arxiv":"","affiliations address":["Université de Bretagne Sud UBS, EA4249, Université de Brest UBO, Institut Brestois des Sciences de l'Homme et de la Société IBSHS, Université de Brest UBO, Héritages et Constructions dans le Texte et l'Image HCTI, 20 rue Duquesne 29238 Brest Cedex 03, FR"],"affiliations idRef":[],"affiliations isni":[],"affiliations ref":["struct-119660"],"authors affiliations address":[["Université de Bretagne Sud UBS, EA4249, Université de Brest UBO, Institut Brestois des Sciences de l'Homme et de la Société IBSHS, Université de Brest UBO, Héritages et Constructions dans le Texte et l'Image HCTI, 20 rue Duquesne 29238 Brest Cedex 03, FR"]],"authors affiliations idRef":[[]],"authors affiliations isni":[[]],"authors affiliations ref":[["struct-119660"]],"authors affiliations rnsr initial":[["200815486C"]],"authors affiliations rnsr enrichments":[[]],"authors affiliations rnsr notice unifiée":[["200815486C"]],"authors enrichments idHal":[],"authors enrichments idRef":["https://www.idref.fr/066858542","066858542"],"authors enrichments orcId":[],"authors forename & authors surname":["Victorin Patricia"],"authors halAuthorId":["1210662"],"authors idHal":["5010"],"authors idRef":[],"authors isni":[],"authors orcId":[],"authors researcherId":[],"authors viaf":[],"bibCode":"","cern":"","classification enrichments hal code":"","classification enrichments hal en":"","classification enrichments hal fr":"","classification hal code":"","classification hal en":"","classification hal fr":"","classifications dewey":"","classifications tef":"","classifications thesisDomain":"","documentType":"COUV","doi":"","duplicates source":["hal"],"duplicates sourceUid":["hal$hal-03010737"],"eisbn":"","eissn":"","electronicPublicationDate":"","enrichments classifications hal":{},"enrichments oa unpaywall has_repository_copy":"n/a","enrichments oa unpaywall host_type":[],"enrichments oa unpaywall is_oa":"n/a","enrichments oa unpaywall oa_status":"n/a","fulltextUrl":"","funders grantNumber":[],"funders name":[],"halId":"hal-03010737","hasDoi":false,"hasFulltext":false,"idChain":"!hal$hal-02560072!hal$hal-03010737!","idProdinra":"","irstea":"","isbn":"","issn":"","issue":"","keywords en author":[],"keywords en mesh":[],"keywords fr author":[],"keywords fr mesh":[],"keywords fr rameau":[],"keywords undetermined author":[],"language":["French"],"nnt":"","oatao":"","okina":"","otherNumber":"","pageRange":["99-113"],"part":"","pii":"","pmId":"","ppn":"","publicationDate":"2019","publisher":"Classiques Garnier","sourceUids identifiers":["hal$hal-02560072","hal$hal-03010737"],"specialIssue":"","supplement":"","thesisAdvisor forename":[],"thesisAdvisor fullname":[],"thesisAdvisor idRef":[],"thesisAdvisor surname":[],"title default":"La Cendrillon d’Étienne et Nicolò (1810) : une féerie à la mode ?","title en":"","title fr":"La Cendrillon d’Étienne et Nicolò (1810) : une féerie à la mode ?","title source":"Fièvre et vie du théâtre sous la Révolution française et l’Empire","title meeting":"","typeConditor":"Chapitre","volume":"","authors affiliations rnsr concat":[["200815486C"]],"rnsr enrichments":[],"rnsr initial":["200815486C"],"rnsr notice unifiée":[],"rnsr concat":["200815486C"],"isDuplicate":true,"uri":"uid:/2pPyQkMjw"}]
Loading