-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: nouvelle structure des métadonnées d'un article #1100
base: master
Are you sure you want to change the base?
feat: nouvelle structure des métadonnées d'un article #1100
Conversation
✅ Deploy Preview for stylo-docs canceled.
|
✅ Deploy Preview for stylo-dev ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Exemple de métadonnées avec la structure actuelle : {
"abstract": [
{
"lang": "fr",
"text_f": "Une honte totale nous envahit, à proportion de la stupeur du 24 février dernier. Quatre millions de personnes, surtout des femmes et des enfants, ont fui le risque mortel et connaissent les affres de l’exil. Six millions d’Ukrainiens de plus durent abandonner leur maison pour un lieu moins menacé du territoire national. La Russie a gagné : l’Ukraine détruite a perdu sa souveraineté, le temps des zones d’influence et des pactes militaires est de retour. La nouvelle guerre froide sera arbitrée par les puissances asiatiques, tandis que les soutiens dévoyés à la Russie de Poutine devront ravaler leurs inepties criminelles."
},
{
"lang": "en",
"text_f": "We are ashamed of ourselves, in proportion to the shock of February 24. Four million people, mostly women and children, have fled the mortal danger and are experiencing the agony of exile. Six million more Ukrainians had to abandon their homes for a less threatened part of the country. Russia has won: the destroyed Ukraine has lost its sovereignty, the time of zones of influence and military pacts has returned. The new Cold War will be mediated by the Asian powers, while the misguided supporters of Putin's Russia will have to swallow their criminal ineptitudes."
}
],
"authors": [
{
"forname": "Gérard",
"orcid": "0000-0002-6651-1650",
"surname": "Wormser"
}
],
"controlledKeywords": [
{
"idRameau": "FRBNF119313017",
"label": "Europe",
"uriRameau": "http://catalogue.bnf.fr/ark:/12148/cb11931301w"
},
{
"idRameau": "FRBNF13318436",
"label": "Guerre et conflit",
"uriRameau": "http://catalogue.bnf.fr/ark:/12148/cb13318436b/"
},
{
"idRameau": "FRBNF11975806",
"label": "Politique et société",
"uriRameau": "http://catalogue.bnf.fr/ark:/12148/cb11975806s"
}
],
"date": "2022-04-14",
"diffnum": "Érudit",
"director": [
{
"forname": "Gérard",
"orcid": "0000-0002-6651-1650 ",
"surname": "Wormser"
}
],
"id": "SP1637",
"issnnum": "2104-3272",
"journal": "Sens public",
"keywords": [
{
"lang": "fr",
"list_f": [
"Honte",
"Ukraine",
"Gauche",
"Poutine",
"Exil",
"Photographie",
"Presse"
]
},
{
"lang": "en",
"list_f": [
"Shame",
"Ukraine",
"Left-wing",
"Exile",
"Photography",
"Media"
]
}
],
"lang": "fr",
"link-citations": true,
"logocredits": "Volodymyr Zelensky visite Boutcha dévastée, à la veille de son intervention aux Nations-Unies. Le président ukrainien est sur *tous* les fronts depuis le 24 février 2022, son énergie a transcendé une situation impossible pour résister à l'invasion russe, renforcer l'appui militaire américain et européen, et galvaniser tant les corps d'armée que les secouristes et une population en état de choc.",
"prod": "Sens public",
"prodnum": "Sens public",
"publisher": "Département des littératures de langue française",
"rights": "Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)",
"title_f": "Honteux, désarmés, décidés ! ",
"typeArticle": [
"Essai"
],
"url_article": "/articles/1637"
} Avec la nouvelle structure : {
"type": "article",
"@version": "1.0",
"id": "SP1637",
"url": "/articles/1637",
"publicationDate": "2022-04-14",
"license": "CC-BY-SA-4.0",
"lang": "fr",
"title": "Honteux, désarmés, décidés !",
"abstract":"Une honte totale nous envahit, à proportion de la stupeur du 24 février dernier. Quatre millions de personnes, surtout des femmes et des enfants, ont fui le risque mortel et connaissent les affres de l’exil. Six millions d’Ukrainiens de plus durent abandonner leur maison pour un lieu moins menacé du territoire national. La Russie a gagné : l’Ukraine détruite a perdu sa souveraineté, le temps des zones d’influence et des pactes militaires est de retour. La nouvelle guerre froide sera arbitrée par les puissances asiatiques, tandis que les soutiens dévoyés à la Russie de Poutine devront ravaler leurs inepties criminelles.",
"keywords": [
"Honte",
"Ukraine",
"Gauche",
"Poutine",
"Exil",
"Photographie",
"Presse"
],
"localizedContent": [
{
"lang": "en",
"abstract":"We are ashamed of ourselves, in proportion to the shock of February 24. Four million people, mostly women and children, have fled the mortal danger and are experiencing the agony of exile. Six million more Ukrainians had to abandon their homes for a less threatened part of the country. Russia has won: the destroyed Ukraine has lost its sovereignty, the time of zones of influence and military pacts has returned. The new Cold War will be mediated by the Asian powers, while the misguided supporters of Putin's Russia will have to swallow their criminal ineptitudes.",
"keywords": [
"Shame",
"Ukraine",
"Left-wing",
"Exile",
"Photography",
"Media"
]
}
],
"authors": [
{
"forname": "Gérard",
"orcid": "0000-0002-6651-1650",
"surname": "Wormser"
}
],
"controlledKeywords": [
{
"idRameau": "FRBNF119313017",
"label": "Europe",
"uriRameau": "http://catalogue.bnf.fr/ark:/12148/cb11931301w"
},
{
"idRameau": "FRBNF13318436",
"label": "Guerre et conflit",
"uriRameau": "http://catalogue.bnf.fr/ark:/12148/cb13318436b/"
},
{
"idRameau": "FRBNF11975806",
"label": "Politique et société",
"uriRameau": "http://catalogue.bnf.fr/ark:/12148/cb11975806s"
}
],
"production": {
"issn": "2104-3272",
"diffnum": "Érudit",
"producer": "Sens public",
"prodNum": "Sens public"
},
"journal": {
"name": "Sens public",
"publisher": "Département des littératures de langue française"
},
"journalDirectors": [
{
"forname": "Gérard",
"orcid": "0000-0002-6651-1650 ",
"surname": "Wormser"
}
],
"@extra": {
"logocredits": "Volodymyr Zelensky visite Boutcha dévastée, à la veille de son intervention aux Nations-Unies. Le président ukrainien est sur *tous* les fronts depuis le 24 février 2022, son énergie a transcendé une situation impossible pour résister à l'invasion russe, renforcer l'appui militaire américain et européen, et galvaniser tant les corps d'armée que les secouristes et une population en état de choc."
}
} |
2005b06
to
cc94600
Compare
"type": "string", | ||
"title": "Last name" | ||
}, | ||
"forname": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
corriger la typo forname
-> forename
graphql/helpers/metadata.js
Outdated
}, | ||
abstract: abstract, | ||
articleslies: [], // MISSING! | ||
authors: metadata.authors, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Créer une méthode permettant de mapper les personnes, notamment le fait de mapper forename
vers forname
(legacy)
graphql/helpers/metadata.js
Outdated
publicationDate: metadata.date, | ||
url: metadata.url_article, | ||
license: metadata.rights, | ||
authors: metadata.authors, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Créer une méthode permettant de mapper les personnes, notamment le fait de mapper forname
(legacy) vers forename
graphql/helpers/metadata.js
Outdated
"link-citations": "", // MISSING! | ||
nocite: "", // MISSING! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Informations déplacées dans l'export
"link-citations": "", // MISSING! | |
nocite: "", // MISSING! |
graphql/helpers/metadata.js
Outdated
funder_name: metadata.funder?.organization, | ||
}, | ||
abstract: abstract, | ||
articleslies: [], // MISSING! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Plus utilisé ? à confirmer par @RochDLY
articleslies: [], // MISSING! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
il apparaît dans un template (celui de sens public) : https://gitlab.huma-num.fr/ecrinum/stylo/stylo-export/-/blob/main/templates/sens-public/template-tei.tei#L183
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On ne permet pas/plus de le renseigner sur le formulaire actuel, est-ce que tu sais ce que doit contenir key
et value
? Est-ce que c'est du spécifique Sens Public ?
Est-ce qu'on déplace la valeur dans senspublic.linkedarticles
afin de conserver les données existantes mais on ne permet plus de renseigner les valeurs via le formulaire (uniquement possible en raw YAML) ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Non je ne sais pas du tout ce qu'elle contiennent. Je vais vérifier à dans les archives de Sens Public. En attendant, on peut faire ce que tu proposes pour éviter que d'anciens articles soient cassés
graphql/helpers/metadata.js
Outdated
translationOf: [ | ||
metadata.translationOf | ||
], | ||
translations: [], // MISSING! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Plus utilisé ? à confirmer par @RochDLY
translations: [], // MISSING! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
malheureusement je le vois apparaître dans un template : https://gitlab.huma-num.fr/ecrinum/stylo/stylo-export/-/blob/main/templates/sens-public/template-tei.tei#L176
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On ne permet pas/plus de le renseigner sur le formulaire actuel, est-ce que tu sais ce que doit contenir key
et value
? Est-ce que c'est du spécifique Sens Public ?
Est-ce qu'on déplace la valeur dans senspublic.translations
afin de conserver les données existantes mais on ne permet plus de renseigner les valeurs via le formulaire (uniquement possible en raw YAML) ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Non je ne sais pas du tout ce qu'elle contiennent. Je vais vérifier à dans les archives de Sens Public. En attendant, on peut faire ce que tu proposes pour éviter que d'anciens articles soient cassés
graphql/helpers/metadata.js
Outdated
], | ||
translations: [], // MISSING! | ||
translator: metadata.translators, | ||
typeArticle: [], // MISSING! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Faire un mapping à partir de metadata.senspublic.category
graphql/helpers/metadata.js
Outdated
prodNum: metadata.prodnum, | ||
diffNum: metadata.diffnum | ||
}, | ||
localizedContent: localizedContent |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ajouter senspublic.category
renseigné à partir de typeArticle
59bd46e
to
d010a95
Compare
d010a95
to
a80e9f9
Compare
No description provided.