-
+
+
+ {/*
*/}
{selector === 'raw' && (
<>
{error !== '' &&
{error}
}
diff --git a/front/src/components/Write/articleEditorMetadata.module.scss b/front/src/components/Write/articleEditorMetadata.module.scss
index f409eb75d..c7eee898b 100644
--- a/front/src/components/Write/articleEditorMetadata.module.scss
+++ b/front/src/components/Write/articleEditorMetadata.module.scss
@@ -11,7 +11,7 @@
min-width: 375px;
max-width: 375px;
max-height: calc(100vh - 76px);
- overflow-y: auto;
+ overflow-y: scroll;
padding: 1em 0.5em 2em 0.75em;
> button {
@@ -71,6 +71,27 @@
}
}
+.toggle {
+ display: flex;
+ gap: 0.5rem;
+ justify-content: flex-end;
+ font-size: 1.125rem;
+ cursor: pointer;
+
+ > label {
+ cursor: pointer;
+ font-weight: 500;
+ user-select: none;
+ }
+}
+
+.header {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ margin-bottom: 1.25rem;
+}
+
.yamlEditor {
display: flex;
flex-direction: column;
diff --git a/front/src/components/form.module.scss b/front/src/components/form.module.scss
index ffe8bacc4..a417539aa 100644
--- a/front/src/components/form.module.scss
+++ b/front/src/components/form.module.scss
@@ -74,7 +74,6 @@
> fieldset {
> button {
font-weight: bold;
- margin: 0.5rem 0;
}
}
}
@@ -108,12 +107,16 @@
> * {
width: 100%;
}
+
+ &.person {
+ margin-top: 1rem;
+ }
}
&.field-string,
&.field-boolean {
label {
- padding-bottom: 0.15rem;
+ padding-bottom: 0.15rem;
}
}
@@ -160,11 +163,11 @@
}
}
}
-
+
.array-item.keywords {
display: flex;
align-items: center;
-
+
> .field-string {
flex: 1;
}
@@ -217,11 +220,16 @@
gap: 0.5rem;
padding: 0 0 1.5rem;
margin: 0;
+ font-size: 1em;
legend {
@include legend;
padding: 0 0 0.5rem;
- font-size: 1.25rem;
+ font-size: 1.15em;
+ }
+
+ fieldset {
+ font-size: 0.8em;
}
}
@@ -234,11 +242,13 @@
.addButton,
.removeButton {
- font-size: .7em;
+ font-size: 1em;
+ margin-top: .25rem;
}
.inlineRemoveButton {
- font-size: 1em;
+ font-size: 1rem;
+ margin-top: 0;
}
.output {
diff --git a/front/src/locales/en/translation.json b/front/src/locales/en/translation.json
index 50f3e9c1b..5435fd252 100644
--- a/front/src/locales/en/translation.json
+++ b/front/src/locales/en/translation.json
@@ -187,7 +187,6 @@
"article.metadata.url": "Article URL",
"article.metadata.url.placeholder": "Article URL",
"article.metadata.subtitle": "Subtitle",
- "article.metadata.surtitle": "Surtitle",
"article.metadata.language": "Language",
"article.metadata.language.placeholder": "Select a language",
"article.metadata.publicationDate": "Publication date",
@@ -197,13 +196,6 @@
"article.metadata.journalIssue.placeholder": "Issue number",
"article.metadata.acknowledgements": "Acknowledgements",
"article.metadata.acknowledgements.title": "Acknowledgements",
- "article.metadata.bibliography.title": "Bibliography",
- "article.metadata.citationsLink": "Citation Link",
- "article.metadata.citationsLink.yes": "Yes",
- "article.metadata.citationsLink.no": "No",
- "article.metadata.bibliographyDisplay": "Display",
- "article.metadata.bibliographyDisplay.all": "All citations",
- "article.metadata.bibliographyDisplay.onlyUsed": "Only used",
"article.metadata.authors": "Authors",
"article.metadata.authors.addItem": "Add an author",
"article.metadata.people.surname": "Last name",
@@ -222,12 +214,12 @@
"article.metadata.translationOf.lang": "Language",
"article.metadata.publisher": "Publisher",
"article.metadata.journal": "Journal",
- "article.metadata.journalEmail": "Journal’s email",
+ "article.metadata.journal.name": "Name",
+ "article.metadata.journal.email": "Email",
+ "article.metadata.journal.publisher": "Publisher",
+ "article.metadata.journal.url": "URL",
"article.metadata.abstract": "Abstract",
- "article.metadata.abstract.addItem": "Add an abstract in another language",
- "article.metadata.abstract.text": "Abstract",
- "article.metadata.abstract.lang": "Language",
- "article.metadata.abstract.lang.placeholder": "Select a language",
+ "article.metadata.language.addItem": "Add a language",
"article.metadata.keywords": "Keywords",
"article.metadata.keywords.addItem": "Add a keyword",
"article.metadata.keywords.removeItem": "Remove this keyword",
@@ -236,10 +228,6 @@
"article.metadata.funder.title": "Funder",
"article.metadata.funder.name": "Organization",
"article.metadata.funder.id": "ID",
- "article.metadata.translatedTitle.title": "Translated titles",
- "article.metadata.translatedTitle.addItem": "Add a title in another language",
- "article.metadata.translatedTitle.lang": "Language",
- "article.metadata.translatedTitle.lang.placeholder": "Select a language",
"article.metadata.controlledKeywords": "Controlled keywords",
"article.metadata.controlledKeywords.addItem": "Add a controlled keyword",
"article.metadata.dossier": "Issue",
@@ -255,17 +243,32 @@
"article.metadata.type": "Categories",
"article.metadata.production.title": "Production",
"article.metadata.issnnum": "ISSN",
- "article.metadata.prod": "Productor",
- "article.metadata.prodnum": "Prodnum",
- "article.metadata.diffnum": "Diffnum",
- "article.metadata.type.essay": "Essay",
- "article.metadata.type.creation": "Creation",
- "article.metadata.type.lecture": "Lecture",
- "article.metadata.type.dossierSummary": "Issue summary",
- "article.metadata.type.interview": "Interview",
- "article.metadata.type.editorialColumn": "Editorial column",
+ "article.metadata.production": "Production",
+ "article.metadata.headerTitle": "Article",
+ "article.metadata.titleAndAbstract": "Title and abstract",
+ "article.metadata.localizedContent": "Localized content",
+ "article.metadata.funder": "Funder",
+ "article.metadata.journalDirectors": "Journal directors",
+ "article.metadata.production.entities": "Production entities",
+ "article.metadata.production.entities.addItem": "Add a production entity",
+ "article.metadata.production.entities.type": "Type",
+ "article.metadata.production.entities.media": "Media",
+ "article.metadata.production.entities.name": "Name",
+ "article.metadata.production.entities.type.publisher": "Publisher",
+ "article.metadata.production.entities.type.producer": "Producer",
+ "article.metadata.production.entities.type.editor": "Editor",
+ "article.metadata.production.entities.media.all": " ",
+ "article.metadata.production.entities.media.print": "Print",
+ "article.metadata.production.entities.media.digital": "Digital",
+ "article.metadata.production.entities.media.ebook": "e-book",
+ "article.metadata.issue": "Issue",
+ "article.metadata.issue.title": "Title",
+ "article.metadata.issue.number": "N°",
+ "article.metadata.issue.identifier": "Identifier",
"form.addItem.title": "Add",
+ "form.addPerson.title": "Add a person",
"form.removeItem.title": "Remove",
+ "form.removePerson.title": "Remove this person",
"corpus.metadata.form.name": "Name",
"corpus.metadata.form.issue": "Issue",
"corpus.metadata.form.issue.title": "Title",
diff --git a/front/src/locales/fr/translation.json b/front/src/locales/fr/translation.json
index 871075ff4..1e75df936 100644
--- a/front/src/locales/fr/translation.json
+++ b/front/src/locales/fr/translation.json
@@ -86,20 +86,22 @@
"corpus.createForm.buttonText": "Créer",
"corpus.by.text": "par",
"corpus.parts.label": "Chapitres",
- "corpus.addPart.note": "Pour ajouter un chapitre, allez sur la <1>page des articles1> afin de sélectionner ce corpus.",
"corpus.deleteModal.title": "Supprimer un corpus",
"corpus.exportModal.title": "Exporter un corpus",
"corpus.deleteModal.confirmMessage": "Êtes-vous sûr de vouloir supprimer ce corpus ?",
"corpus.articlesOrder.toastSuccess": "Lʼordre des articles a été modifié avec succès.",
"corpus.articlesOrder.toastFailure": "Impossible de mettre à jour lʼordre des articles : {{errorMessage}}",
- "corpus.load.toastFailure": "Impossible de charger les corpus : {{errorMessage}}",
"corpus.editModal.title": "Modifier un corpus",
"corpus.metadataModal.title": "Modifier les métadonnées du corpus",
"corpus.editForm.buttonText": "Mettre à jour",
"corpus.editForm.buttonTitle": "Mettre à jour ce corpus",
+ "corpus.update.toastSuccess": "Corpus mis à jour avec succès.",
+ "corpus.update.toastFailure": "Impossible de mettre à jour le corpus : {{errorMessage}}",
+ "corpus.load.toastFailure": "Impossible de charger les corpus : {{errorMessage}}",
"article.corpus.title": "Corpus",
"corpus.preview.buttonTitle": "Prévisualiser",
"corpus.export.button": "Exporter",
+ "corpus.addPart.note": "Pour ajouter un chapitre, allez sur la <1>page des articles1> afin de sélectionner ce corpus.",
"corpus.delete.toastSuccess": "Corpus supprimé avec succès.",
"article.shareModal.title": "Partager lʼarticle avec un contact",
"article.shareModal.description": "Permet de partager un article avec lʼun de vos contacts.",
@@ -185,7 +187,6 @@
"article.metadata.url": "URL de l'article",
"article.metadata.url.placeholder": "URL de l'article",
"article.metadata.subtitle": "Sous-titre",
- "article.metadata.surtitle": "Surtitre",
"article.metadata.language": "Langue",
"article.metadata.language.placeholder": "Sélectionner une langue",
"article.metadata.publicationDate": "Date de publication",
@@ -195,13 +196,6 @@
"article.metadata.journalIssue.placeholder": "N° de revue",
"article.metadata.acknowledgements": "Remerciements",
"article.metadata.acknowledgements.title": "Remerciements",
- "article.metadata.bibliography.title": "Bibliographie",
- "article.metadata.citationsLink": "Liens des citations",
- "article.metadata.citationsLink.yes": "Oui",
- "article.metadata.citationsLink.no": "Non",
- "article.metadata.bibliographyDisplay": "Affichage",
- "article.metadata.bibliographyDisplay.all": "Toutes les citations",
- "article.metadata.bibliographyDisplay.onlyUsed": "Seulement celles utilisées",
"article.metadata.authors": "Auteur·ices",
"article.metadata.authors.addItem": "Ajouter un·e auteur·ice",
"article.metadata.people.surname": "Nom",
@@ -220,12 +214,11 @@
"article.metadata.translationOf.lang": "Langue",
"article.metadata.publisher": "Éditeur·ice",
"article.metadata.journal": "Revue",
- "article.metadata.journalEmail": "Courriel de la revue",
+ "article.metadata.journal.name": "Nom de la revue",
+ "article.metadata.journal.email": "Courriel de la revue",
+ "article.metadata.journal.publisher": "Diffuseur",
+ "article.metadata.journal.url": "URL",
"article.metadata.abstract": "Résumé",
- "article.metadata.abstract.addItem": "Ajouter un résumé dans une autre langue",
- "article.metadata.abstract.text": "Résumé",
- "article.metadata.abstract.lang": "Langue",
- "article.metadata.abstract.lang.placeholder": "Sélectionner une langue",
"article.metadata.language.addItem": "Ajouter une langue",
"article.metadata.keywords": "Mots-clés",
"article.metadata.keywords.addItem": "Ajouter un mot clé",
@@ -235,10 +228,6 @@
"article.metadata.funder.title": "Financeur",
"article.metadata.funder.name": "Organisation",
"article.metadata.funder.id": "ID",
- "article.metadata.translatedTitle.title": "Titres traduits",
- "article.metadata.translatedTitle.addItem": "Ajouter un titre dans une autre langue",
- "article.metadata.translatedTitle.lang": "Langue",
- "article.metadata.translatedTitle.lang.placeholder": "Sélectionner une langue",
"article.metadata.controlledKeywords": "Mots-clés contrôlés",
"article.metadata.controlledKeywords.addItem": "Ajouter un mot-clé contrôlé",
"article.metadata.dossier": "Dossier",
@@ -254,17 +243,32 @@
"article.metadata.type": "Catégories",
"article.metadata.production.title": "Production",
"article.metadata.issnnum": "ISSN",
- "article.metadata.prod": "Producteur",
- "article.metadata.prodnum": "Prodnum",
- "article.metadata.diffnum": "Diffnum",
- "article.metadata.type.essay": "Essai",
- "article.metadata.type.creation": "Création",
- "article.metadata.type.lecture": "Lecture",
- "article.metadata.type.dossierSummary": "Sommaire dossier",
- "article.metadata.type.interview": "Entretien",
- "article.metadata.type.editorialColumn": "Chronique",
+ "article.metadata.production": "Production",
+ "article.metadata.headerTitle": "Article",
+ "article.metadata.titleAndAbstract": "Titre et résumé",
+ "article.metadata.localizedContent": "Contenu traduit",
+ "article.metadata.funder": "Financeur",
+ "article.metadata.journalDirectors": "Directeur·ices de la revue",
+ "article.metadata.production.entities": "Responsable de la production",
+ "article.metadata.production.entities.addItem": "Ajouter un·e responsable",
+ "article.metadata.production.entities.type": "Type",
+ "article.metadata.production.entities.media": "Média",
+ "article.metadata.production.entities.name": "Nom",
+ "article.metadata.production.entities.type.publisher": "Diffuseur·ice",
+ "article.metadata.production.entities.type.producer": "Producteur·ice",
+ "article.metadata.production.entities.type.editor": "Éditeur·ice",
+ "article.metadata.production.entities.media.all": " ",
+ "article.metadata.production.entities.media.print": "Papier",
+ "article.metadata.production.entities.media.digital": "Numérique",
+ "article.metadata.production.entities.media.ebook": "e-book",
+ "article.metadata.issue": "Numéro de revue",
+ "article.metadata.issue.title": "Titre",
+ "article.metadata.issue.number": "N°",
+ "article.metadata.issue.identifier": "Identifiant",
"form.addItem.title": "Ajouter",
+ "form.addPerson.title": "Ajouter une personne",
"form.removeItem.title": "Supprimer",
+ "form.removePerson.title": "Supprimer cette personne",
"corpus.metadata.form.name": "Nom",
"corpus.metadata.form.issue": "Numéro de revue",
"corpus.metadata.form.issue.title": "Titre",
diff --git a/front/src/schemas/README.md b/front/src/schemas/README.md
index d83ead27d..05c7bf11f 100644
--- a/front/src/schemas/README.md
+++ b/front/src/schemas/README.md
@@ -13,7 +13,7 @@ Si c'était une fonction, elle s'écrirait comme ceci :
const form = reactForm({ JSONSchema, UISchema })
form.on('submit', (formData) => {
- const rawYaml = toYaml(formData)
+ // ...
})
```
@@ -21,8 +21,8 @@ form.on('submit', (formData) => {
Un [simulateur en ligne] offre un résultat visuel en temps réel.
-- collez le contenu du fichier [`data-schema.json`](./data-schema.json) dans le champ `JSONSchema`
-- collez le contenu du fichier [`ui-schema-editor.json`](./ui-schema-editor.json) dans le champ `UISchema`
+- collez le contenu d'un fichier "metadata.schema.json" dans le champ `JSONSchema`
+- collez le contenu d'un fichier "ui-schema.json" dans le champ `UISchema`
[react-json-schema-form]: https://react-jsonschema-form.readthedocs.io/en/latest/
[simulateur en ligne]: https://rjsf-team.github.io/react-jsonschema-form/
diff --git a/front/src/schemas/article-ui-schema.json b/front/src/schemas/article-ui-schema.json
index e53141f6e..b44533d41 100644
--- a/front/src/schemas/article-ui-schema.json
+++ b/front/src/schemas/article-ui-schema.json
@@ -1,7 +1,7 @@
{
"ui:groups": [
{
- "title": "Article",
+ "title": "article.metadata.headerTitle",
"fields": [
"id",
"publicationDate",
@@ -11,7 +11,7 @@
]
},
{
- "title": "Titre et résumé",
+ "title": "article.metadata.titleAndAbstract",
"fields": [
"lang",
"title",
@@ -20,19 +20,19 @@
]
},
{
- "title": "Mots-clés",
+ "title": "article.metadata.keywords",
"fields": [
"keywords"
]
},
{
- "title": "Mots-clés contrôlés",
+ "title": "article.metadata.controlledKeywords",
"fields": [
"controlledKeywords"
]
},
{
- "title": "Titre, résumé et mots-clés traduits",
+ "title": "article.metadata.localizedContent",
"fields": [
"localizedContent"
]
@@ -108,49 +108,14 @@
"ui:title": "ID",
"ui:placeholder": "XXXX"
},
- "surtitle": {
- "ui:title": "article.metadata.surtitle"
- },
- "link-citations": {
- "ui:widget": "select",
- "ui:emptyValue": "",
- "ui:title": "article.metadata.citationsLink",
- "ui:enumNames": [
- "article.metadata.citationsLink.yes",
- "article.metadata.citationsLink.no"
- ]
- },
- "nocite": {
- "ui:title": "article.metadata.bibliographyDisplay",
- "ui:widget": "select",
- "ui:emptyValue": "",
- "ui:enumNames": [
- "article.metadata.bibliographyDisplay.all",
- "article.metadata.bibliographyDisplay.onlyUsed"
- ]
- },
- "date": {
- "ui:title": "Date",
- "ui:widget": "date"
- },
"lang": {
"ui:title": "article.metadata.language",
"ui:placeholder": "article.metadata.language.placeholder"
},
- "rights": {
- "ui:title": "article.metadata.license",
- "ui:placeholder": "article.metadata.license.placeholder"
- },
- "journal_issue": {
- "ui:title": "article.metadata.journalIssue",
- "ui:placeholder": "article.metadata.journalIssue.placeholder"
- },
- "biography": {
- "ui:widget": "textarea"
- },
"authors": {
- "ui:add-item-title": "article.metadata.authors.addItem",
+ "ui:add-item-title": "form.addPerson.title",
"items": {
+ "ui:classNames": "person",
"ui:autocomplete": "IsidoreAuthorSearch",
"surname": {
"ui:title": "article.metadata.people.surname"
@@ -162,7 +127,8 @@
"ui:title": "article.metadata.people.affiliations"
},
"biography": {
- "ui:title": "article.metadata.people.biography"
+ "ui:title": "article.metadata.people.biography",
+ "ui:widget": "textarea"
},
"email": {
"ui:title": "article.metadata.people.email"
@@ -186,27 +152,45 @@
},
"translationOf": {
"ui:title": "article.metadata.translationOf",
- "items": {
- "url": {
- "ui:widget": "uri",
- "ui:title": "article.metadata.translationOf.url"
- },
- "title_f": {
- "ui:title": "article.metadata.translationOf.title"
- },
- "lang": {
- "ui:title": "article.metadata.translationOf.lang"
- }
+ "url": {
+ "ui:widget": "uri",
+ "ui:title": "article.metadata.translationOf.url"
+ },
+ "title": {
+ "ui:title": "article.metadata.translationOf.title"
+ },
+ "lang": {
+ "ui:title": "article.metadata.translationOf.lang"
}
},
- "publisher": {
- "ui:title": "article.metadata.publisher"
+ "issue": {
+ "ui:title": {
+ "title": "article.metadata.issue"
+ },
+ "title": {
+ "ui:title": "article.metadata.issue.title"
+ },
+ "identifier": {
+ "ui:title": "article.metadata.issue.identifier"
+ },
+ "number": {
+ "ui:title": "article.metadata.issue.number"
+ }
},
"journal": {
- "ui:title": "article.metadata.journal"
- },
- "journal_email": {
- "ui:title": "article.metadata.journalEmail"
+ "ui:title": "article.metadata.journal",
+ "name": {
+ "ui:title": "article.metadata.journal.name"
+ },
+ "publisher": {
+ "ui:title": "article.metadata.journal.publisher"
+ },
+ "email": {
+ "ui:title": "article.metadata.journal.email"
+ },
+ "url": {
+ "ui:title": "article.metadata.journal.url"
+ }
},
"title": {
"ui:title": "article.metadata.title"
@@ -225,11 +209,12 @@
"ui:title": "article.metadata.url"
},
"publicationDate": {
- "ui:title": "article.metadata.publicationDate"
+ "ui:title": "article.metadata.publicationDate",
+ "ui:widget": "date"
},
"keywords": {
"ui:add-item-title": "article.metadata.keywords.addItem",
- "ui:remove-item-title": "article.metadata.keywords.removeItem",
+ "ui:className": "keywords",
"items": {
"ui:label": false,
"ui:className": "keywords"
@@ -244,35 +229,10 @@
"ui:className": "keywords"
}
},
- "typeArticle": {
- "ui:widget": "checkboxes",
- "ui:title": "article.metadata.type",
- "ui:enumNames": [
- "article.metadata.type.essay",
- "article.metadata.type.creation",
- "article.metadata.type.lecture",
- "article.metadata.type.dossierSummary",
- "article.metadata.type.interview",
- "article.metadata.type.editorialColumn"
- ]
- },
- "dossier": {
- "ui:title": "article.metadata.dossier",
- "ui:options": {
- "removable": false,
- "addable": false
- },
- "items": {
- "title_f": {
- "ui:title": "article.metadata.dossier.title"
- },
- "id": {
- "ui:title": "article.metadata.dossier.id"
- }
- }
- },
"issueDirectors": {
+ "ui:add-item-title": "form.addPerson.title",
"items": {
+ "ui:classNames": "person",
"surname": {
"ui:title": "article.metadata.people.surname"
},
@@ -283,7 +243,8 @@
"ui:title": "article.metadata.people.affiliations"
},
"biography": {
- "ui:title": "article.metadata.people.biography"
+ "ui:title": "article.metadata.people.biography",
+ "ui:widget": "textarea"
},
"email": {
"ui:title": "article.metadata.people.email"
@@ -305,9 +266,10 @@
}
}
},
- "director": {
- "ui:add-item-title": "article.metadata.directors.addItem",
+ "transcribers": {
+ "ui:add-item-title": "form.addPerson.title",
"items": {
+ "ui:classNames": "person",
"surname": {
"ui:title": "article.metadata.people.surname"
},
@@ -318,7 +280,8 @@
"ui:title": "article.metadata.people.affiliations"
},
"biography": {
- "ui:title": "article.metadata.people.biography"
+ "ui:title": "article.metadata.people.biography",
+ "ui:widget": "textarea"
},
"email": {
"ui:title": "article.metadata.people.email"
@@ -340,8 +303,10 @@
}
}
},
- "transcribers": {
+ "translators": {
+ "ui:add-item-title": "form.addPerson.title",
"items": {
+ "ui:classNames": "person",
"surname": {
"ui:title": "article.metadata.people.surname"
},
@@ -352,7 +317,8 @@
"ui:title": "article.metadata.people.affiliations"
},
"biography": {
- "ui:title": "article.metadata.people.biography"
+ "ui:title": "article.metadata.people.biography",
+ "ui:widget": "textarea"
},
"email": {
"ui:title": "article.metadata.people.email"
@@ -374,21 +340,14 @@
}
}
},
- "translatedTitle": {
- "ui:add-item-title": "article.metadata.translatedTitle.addItem",
- "items": {
- "text_f": {
- "ui:title": "article.metadata.translatedTitle.title"
- },
- "lang": {
- "ui:title": "article.metadata.translatedTitle.lang",
- "ui:placeholder": "article.metadata.translatedTitle.lang.placeholder"
- }
- }
+ "acknowledgements": {
+ "ui:title": "article.metadata.acknowledgements",
+ "ui:widget": "textarea"
},
- "translator": {
- "ui:title": "article.metadata.translators",
+ "reviewers": {
+ "ui:add-item-title": "form.addPerson.title",
"items": {
+ "ui:classNames": "person",
"surname": {
"ui:title": "article.metadata.people.surname"
},
@@ -399,7 +358,8 @@
"ui:title": "article.metadata.people.affiliations"
},
"biography": {
- "ui:title": "article.metadata.people.biography"
+ "ui:title": "article.metadata.people.biography",
+ "ui:widget": "textarea"
},
"email": {
"ui:title": "article.metadata.people.email"
@@ -421,18 +381,78 @@
}
}
},
- "acknowledgements": {
- "ui:title": "article.metadata.acknowledgements",
- "ui:widget": "textarea"
+ "funder": {
+ "ui:title": "",
+ "organization": {
+ "ui:title": "article.metadata.funder.name"
+ },
+ "id": {
+ "ui:title": "article.metadata.funder.id"
+ }
},
- "reviewers": {
- "ui:edit-item-title": "Éditer",
- "ui:item-fields": {
- "forename": true,
- "surname": true,
- "affiliations": true
+ "localizedContent": {
+ "ui:add-item-title": "article.metadata.language.addItem",
+ "items": {
+ "lang": {
+ "ui:title": "article.metadata.language"
+ },
+ "title": {
+ "ui:title": "article.metadata.title"
+ },
+ "subtitle": {
+ "ui:title": "article.metadata.subtitle"
+ },
+ "abstract": {
+ "ui:title": "article.metadata.abstract",
+ "ui:widget": "textarea"
+ },
+ "keywords": {
+ "ui:className": "keywords",
+ "ui:title": "article.metadata.keywords",
+ "ui:add-item-title": "article.metadata.keywords.addItem",
+ "ui:remove-item-title": "article.metadata.keywords.removeItem",
+ "items": {
+ "ui:label": false,
+ "ui:className": "keywords"
+ }
+ }
+ }
+ },
+ "production": {
+ "issn": {
+ "ui:title": "ISSN"
},
+ "entities": {
+ "ui:title": "article.metadata.production.entities",
+ "ui:add-item-title": "article.metadata.production.entities.addItem",
+ "items": {
+ "type": {
+ "ui:title": "article.metadata.production.entities.type",
+ "ui:enumNames": [
+ "article.metadata.production.entities.type.publisher",
+ "article.metadata.production.entities.type.producer",
+ "article.metadata.production.entities.type.editor"
+ ]
+ },
+ "media": {
+ "ui:title": "article.metadata.production.entities.media",
+ "ui:enumNames": [
+ "article.metadata.production.entities.media.all",
+ "article.metadata.production.entities.media.print",
+ "article.metadata.production.entities.media.digital",
+ "article.metadata.production.entities.media.ebook"
+ ]
+ },
+ "name": {
+ "ui:title": "article.metadata.production.entities.name"
+ }
+ }
+ }
+ },
+ "journalDirectors": {
+ "ui:add-item-title": "form.addPerson.title",
"items": {
+ "ui:classNames": "person",
"surname": {
"ui:title": "article.metadata.people.surname"
},
@@ -443,7 +463,8 @@
"ui:title": "article.metadata.people.affiliations"
},
"biography": {
- "ui:title": "article.metadata.people.biography"
+ "ui:title": "article.metadata.people.biography",
+ "ui:widget": "textarea"
},
"email": {
"ui:title": "article.metadata.people.email"
@@ -464,48 +485,5 @@
"ui:title": "article.metadata.people.wikidata"
}
}
- },
- "issnnum": {
- "ui:title": "article.metadata.issnnum"
- },
- "prod": {
- "ui:title": "article.metadata.prod"
- },
- "prodnum": {
- "ui:title": "article.metadata.prodnum"
- },
- "diffnum": {
- "ui:title": "article.metadata.diffnum"
- },
- "funder": {
- "ui:title": "",
- "funder_name": {
- "ui:title": "article.metadata.funder.name"
- },
- "funder_id": {
- "ui:title": "article.metadata.funder.id"
- }
- },
- "localizedContent": {
- "ui:add-item-title": "article.metadata.language.addItem",
- "items": {
- "lang": {
- "ui:title": "article.metadata.language"
- },
- "title": {
- "ui:title": "article.metadata.title"
- },
- "subtitle": {
- "ui:title": "article.metadata.subtitle"
- },
- "abstract": {
- "ui:title": "article.metadata.abstract",
- "ui:widget": "textarea"
- },
- "keywords": {
- "ui:title": "article.metadata.keywords",
- "ui:add-item-title": "article.metadata.keywords.addItem"
- }
- }
}
}
diff --git a/front/src/schemas/data-schema.json b/front/src/schemas/data-schema.json
deleted file mode 100644
index 11d076544..000000000
--- a/front/src/schemas/data-schema.json
+++ /dev/null
@@ -1,284 +0,0 @@
-{
- "type": "object",
- "required": ["title_f"],
- "definitions": {
- "lang": {
- "type": "string",
- "enum": ["fr", "en", "it", "es", "pt", "de", "uk", "ar"]
- },
- "person": {
- "type": "object",
- "properties": {
- "surname": {
- "type": "string",
- "title": "Last name"
- },
- "forname": {
- "type": "string",
- "title": "First name"
- },
- "affiliations": {
- "type": "string",
- "title": "Affiliations"
- },
- "biography": {
- "type": "string",
- "title": "Biography"
- },
- "email": {
- "type": "string",
- "title": "Email"
- },
- "orcid": {
- "type": "string",
- "title": "ORCID"
- },
- "viaf": {
- "type": "string",
- "title": "VIAF"
- },
- "foaf": {
- "type": "string",
- "title": "FOAF"
- },
- "isni": {
- "type": "string",
- "title": "ISNI"
- },
- "wikidata": {
- "type": "string",
- "title": "Wikidata"
- }
- }
- }
- },
- "properties": {
- "id": {
- "type": "string"
- },
- "url_article": {
- "type": "string"
- },
- "title_f": {
- "type": "string"
- },
- "surtitle": {
- "type": "string"
- },
- "subtitle_f": {
- "type": "string"
- },
- "date": {
- "type": "string",
- "format": "date"
- },
- "lang": {
- "$ref": "#/definitions/lang"
- },
- "rights": {
- "type": "string"
- },
- "journal_issue": {
- "type": "string"
- },
- "link-citations": {
- "type": "boolean",
- "title": "Citation Link",
- "enum": ["true", "false"]
- },
- "nocite": {
- "type": "string",
- "title": "Display",
- "default": "",
- "enum": ["@*", ""]
- },
- "authors": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/person"
- }
- },
- "abstract": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "lang": {
- "$ref": "#/definitions/lang"
- },
- "text_f": {
- "type": "string"
- }
- }
- }
- },
- "keywords": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "lang": {
- "$ref": "#/definitions/lang"
- },
- "list_f": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- },
- "controlledKeywords": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string"
- },
- "idRameau": {
- "type": "string"
- },
- "uriRameau": {
- "type": "string"
- }
- }
- },
- "uniqueItems": true
- },
- "typeArticle": {
- "type": "array",
- "items": {
- "type": "string",
- "enum": [
- "Essai",
- "Création",
- "Lecture",
- "Sommaire dossier",
- "Entretien",
- "Chronique"
- ]
- },
- "uniqueItems": true
- },
- "publisher": {
- "type": "string"
- },
- "journal": {
- "type": "string"
- },
- "journal_email": {
- "type": "string"
- },
- "dossier": {
- "type": "array",
- "minItems": 1,
- "maxItems": 1,
- "items": {
- "type": "object",
- "properties": {
- "title_f": {
- "type": "string"
- },
- "id": {
- "type": "string"
- }
- }
- }
- },
- "translatedTitle": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "lang": {
- "$ref": "#/definitions/lang"
- },
- "text_f": {
- "type": "string"
- }
- }
- }
- },
- "translationOf": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "title_f": {
- "type": "string",
- "title": "Title"
- },
- "url": {
- "type": "string",
- "title": "Article URL"
- },
- "lang": {
- "$ref": "#/definitions/lang",
- "title": "Language"
- }
- }
- }
- },
- "reviewers": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/person"
- }
- },
- "issueDirectors": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/person"
- }
- },
- "translator": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/person"
- }
- },
- "acknowledgements": {
- "type": "string"
- },
- "transcribers": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/person"
- }
- },
- "director": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/person"
- }
- },
- "issnnum": {
- "type": "string"
- },
- "prod": {
- "type": "string"
- },
- "funder": {
- "type": "object",
- "title": "",
- "properties": {
- "funder_name": {
- "type": "string",
- "title": "Funder organisation"
- },
- "funder_id": {
- "type": "string",
- "title": "Funder ID"
- }
- }
- },
- "prodnum": {
- "type": "string"
- },
- "diffnum": {
- "type": "string"
- }
- }
-}
diff --git a/front/src/schemas/ui-schema-basic-override.json b/front/src/schemas/ui-schema-basic-override.json
deleted file mode 100644
index 62d5fd207..000000000
--- a/front/src/schemas/ui-schema-basic-override.json
+++ /dev/null
@@ -1,56 +0,0 @@
-{
- "id": {
- "ui:widget": "hidden"
- },
- "url_article": {
- "ui:widget": "hidden"
- },
- "link-citations": {
- "ui:widget": "hidden"
- },
- "translationOf": {
- "ui:widget": "hidden"
- },
- "publisher": {
- "ui:widget": "hidden"
- },
- "journal": {
- "ui:widget": "hidden"
- },
- "controlledKeywords": {
- "ui:widget": "hidden"
- },
- "typeArticle": {
- "ui:widget": "hidden"
- },
- "dossier": {
- "ui:widget": "hidden"
- },
- "issueDirectors": {
- "ui:widget": "hidden"
- },
- "director": {
- "ui:widget": "hidden"
- },
- "transcribers": {
- "ui:widget": "hidden"
- },
- "translator": {
- "ui:widget": "hidden"
- },
- "reviewers": {
- "ui:widget": "hidden"
- },
- "issnnum": {
- "ui:widget": "hidden"
- },
- "prod": {
- "ui:widget": "hidden"
- },
- "prodnum": {
- "ui:widget": "hidden"
- },
- "diffnum": {
- "ui:widget": "hidden"
- }
-}
diff --git a/front/src/schemas/ui-schema-editor.json b/front/src/schemas/ui-schema-editor.json
deleted file mode 100644
index a54ffceca..000000000
--- a/front/src/schemas/ui-schema-editor.json
+++ /dev/null
@@ -1,477 +0,0 @@
-{
- "ui:groups": [
- {
- "fields": [
- "id",
- "url_article",
- "title_f",
- "subtitle_f",
- "date",
- "lang",
- "rights",
- "journal_issue"
- ]
- },
- {
- "title": "article.metadata.acknowledgements.title",
- "fields": [
- "acknowledgements"
- ]
- },
- {
- "title": "article.metadata.bibliography.title",
- "fields": [
- "link-citations",
- "nocite"
- ]
- },
- {
- "fields": [
- "authors",
- "abstract",
- "keywords",
- "controlledKeywords",
- "typeArticle"
- ]
- },
- {
- "title": "Diffusion",
- "fields": [
- "publisher",
- "journal",
- "journal_email"
- ]
- },
- {
- "fields": [
- "director"
- ]
- },
- {
- "title": "article.metadata.production.title",
- "fields": [
- "issnnum",
- "prod",
- "prodnum",
- "diffnum"
- ]
- },
- {
- "title": "article.metadata.funder.title",
- "fields": [
- "funder"
- ]
- },
- {
- "title": "article.metadata.translatedTitle.title",
- "fields": [
- "translatedTitle"
- ]
- },
- {
- "fields": [
- "dossier",
- "issueDirectors",
- "reviewers",
- "translator",
- "translationOf",
- "transcribers"
- ]
- }
- ],
- "id": {
- "ui:title": "ID",
- "ui:placeholder": "XXXX"
- },
- "url_article": {
- "ui:title": "article.metadata.url",
- "ui:placeholder": "article.metadata.url.placeholder",
- "ui:widget": "uri"
- },
- "title_f": {
- "ui:title": "article.metadata.title"
- },
- "surtitle": {
- "ui:title": "article.metadata.surtitle"
- },
- "subtitle_f": {
- "ui:title": "article.metadata.subtitle"
- },
- "link-citations": {
- "ui:widget": "select",
- "ui:emptyValue": "",
- "ui:title": "article.metadata.citationsLink",
- "ui:enumNames": [
- "article.metadata.citationsLink.yes",
- "article.metadata.citationsLink.no"
- ]
- },
- "nocite": {
- "ui:title": "article.metadata.bibliographyDisplay",
- "ui:widget": "select",
- "ui:emptyValue": "",
- "ui:enumNames": [
- "article.metadata.bibliographyDisplay.all",
- "article.metadata.bibliographyDisplay.onlyUsed"
- ]
- },
- "date": {
- "ui:title": "Date",
- "ui:widget": "date"
- },
- "lang": {
- "ui:title": "article.metadata.language",
- "ui:placeholder": "article.metadata.language.placeholder"
- },
- "rights": {
- "ui:title": "article.metadata.license",
- "ui:placeholder": "article.metadata.license.placeholder"
- },
- "journal_issue": {
- "ui:title": "article.metadata.journalIssue",
- "ui:placeholder": "article.metadata.journalIssue.placeholder"
- },
- "biography": {
- "ui:widget": "textarea"
- },
- "authors": {
- "ui:add-item-title": "article.metadata.authors.addItem",
- "ui:title": "article.metadata.authors",
- "items": {
- "ui:autocomplete": "IsidoreAuthorSearch",
- "surname": {
- "ui:title": "article.metadata.people.surname"
- },
- "forname": {
- "ui:title": "article.metadata.people.forname"
- },
- "affiliations": {
- "ui:title": "article.metadata.people.affiliations"
- },
- "biography": {
- "ui:title": "article.metadata.people.biography"
- },
- "email": {
- "ui:title": "article.metadata.people.email"
- },
- "orcid": {
- "ui:title": "article.metadata.people.orcid"
- },
- "viaf": {
- "ui:title": "article.metadata.people.viaf"
- },
- "foaf": {
- "ui:title": "article.metadata.people.foaf"
- },
- "isni": {
- "ui:title": "article.metadata.people.isni"
- },
- "wikidata": {
- "ui:title": "article.metadata.people.wikidata"
- }
- }
- },
- "translationOf": {
- "ui:title": "article.metadata.translationOf",
- "items": {
- "url": {
- "ui:widget": "uri",
- "ui:title": "article.metadata.translationOf.url"
- },
- "title_f": {
- "ui:title": "article.metadata.translationOf.title"
- },
- "lang": {
- "ui:title": "article.metadata.translationOf.lang"
- }
- }
- },
- "publisher": {
- "ui:title": "article.metadata.publisher"
- },
- "journal": {
- "ui:title": "article.metadata.journal"
- },
- "journal_email": {
- "ui:title": "article.metadata.journalEmail"
- },
- "abstract": {
- "ui:title": "article.metadata.abstract",
- "ui:add-item-title": "article.metadata.abstract.addItem",
- "items": {
- "text_f": {
- "ui:title": "article.metadata.abstract.text",
- "ui:widget": "textarea"
- },
- "lang": {
- "ui:title": "article.metadata.abstract.lang",
- "ui:placeholder": "article.metadata.abstract.lang.placeholder"
- }
- }
- },
- "keywords": {
- "ui:title": "article.metadata.keywords",
- "ui:add-item-title": "article.metadata.keywords.addItem",
- "ui:remove-item-title": "article.metadata.keywords.removeItem",
- "items": {
- "lang": {
- "ui:title": "article.metadata.keywords.lang"
- },
- "list_f": {
- "ui:classNames": "inline-field-string",
- "ui:add-item-title": "article.metadata.keywords.value.addItem",
- "items": {
- "ui:label": false
- }
- }
- }
- },
- "controlledKeywords": {
- "ui:classNames": "inline-field-string",
- "ui:title": "article.metadata.controlledKeywords",
- "ui:add-item-title": "article.metadata.controlledKeywords.addItem",
- "ui:remove-item-title": "",
- "items": {
- "ui:field": "IsidoreKeywordSearch"
- }
- },
- "typeArticle": {
- "ui:widget": "checkboxes",
- "ui:title": "article.metadata.type",
- "ui:enumNames": [
- "article.metadata.type.essay",
- "article.metadata.type.creation",
- "article.metadata.type.lecture",
- "article.metadata.type.dossierSummary",
- "article.metadata.type.interview",
- "article.metadata.type.editorialColumn"
- ]
- },
- "dossier": {
- "ui:title": "article.metadata.dossier",
- "ui:options": {
- "removable": false,
- "addable": false
- },
- "items": {
- "title_f": {
- "ui:title": "article.metadata.dossier.title"
- },
- "id": {
- "ui:title": "article.metadata.dossier.id"
- }
- }
- },
- "issueDirectors": {
- "ui:title": "article.metadata.issueDirectors",
- "items": {
- "surname": {
- "ui:title": "article.metadata.people.surname"
- },
- "forname": {
- "ui:title": "article.metadata.people.forname"
- },
- "affiliations": {
- "ui:title": "article.metadata.people.affiliations"
- },
- "biography": {
- "ui:title": "article.metadata.people.biography"
- },
- "email": {
- "ui:title": "article.metadata.people.email"
- },
- "orcid": {
- "ui:title": "article.metadata.people.orcid"
- },
- "viaf": {
- "ui:title": "article.metadata.people.viaf"
- },
- "foaf": {
- "ui:title": "article.metadata.people.foaf"
- },
- "isni": {
- "ui:title": "article.metadata.people.isni"
- },
- "wikidata": {
- "ui:title": "article.metadata.people.wikidata"
- }
- }
- },
- "director": {
- "ui:title": "article.metadata.directors",
- "ui:add-item-title": "article.metadata.directors.addItem",
- "items": {
- "surname": {
- "ui:title": "article.metadata.people.surname"
- },
- "forname": {
- "ui:title": "article.metadata.people.forname"
- },
- "affiliations": {
- "ui:title": "article.metadata.people.affiliations"
- },
- "biography": {
- "ui:title": "article.metadata.people.biography"
- },
- "email": {
- "ui:title": "article.metadata.people.email"
- },
- "orcid": {
- "ui:title": "article.metadata.people.orcid"
- },
- "viaf": {
- "ui:title": "article.metadata.people.viaf"
- },
- "foaf": {
- "ui:title": "article.metadata.people.foaf"
- },
- "isni": {
- "ui:title": "article.metadata.people.isni"
- },
- "wikidata": {
- "ui:title": "article.metadata.people.wikidata"
- }
- }
- },
- "transcribers": {
- "ui:title": "article.metadata.transcribers",
- "items": {
- "surname": {
- "ui:title": "article.metadata.people.surname"
- },
- "forname": {
- "ui:title": "article.metadata.people.forname"
- },
- "affiliations": {
- "ui:title": "article.metadata.people.affiliations"
- },
- "biography": {
- "ui:title": "article.metadata.people.biography"
- },
- "email": {
- "ui:title": "article.metadata.people.email"
- },
- "orcid": {
- "ui:title": "article.metadata.people.orcid"
- },
- "viaf": {
- "ui:title": "article.metadata.people.viaf"
- },
- "foaf": {
- "ui:title": "article.metadata.people.foaf"
- },
- "isni": {
- "ui:title": "article.metadata.people.isni"
- },
- "wikidata": {
- "ui:title": "article.metadata.people.wikidata"
- }
- }
- },
- "translatedTitle": {
- "ui:add-item-title": "article.metadata.translatedTitle.addItem",
- "items": {
- "text_f": {
- "ui:title": "article.metadata.translatedTitle.title"
- },
- "lang": {
- "ui:title": "article.metadata.translatedTitle.lang",
- "ui:placeholder": "article.metadata.translatedTitle.lang.placeholder"
- }
- }
- },
- "translator": {
- "ui:title": "article.metadata.translators",
- "items": {
- "surname": {
- "ui:title": "article.metadata.people.surname"
- },
- "forname": {
- "ui:title": "article.metadata.people.forname"
- },
- "affiliations": {
- "ui:title": "article.metadata.people.affiliations"
- },
- "biography": {
- "ui:title": "article.metadata.people.biography"
- },
- "email": {
- "ui:title": "article.metadata.people.email"
- },
- "orcid": {
- "ui:title": "article.metadata.people.orcid"
- },
- "viaf": {
- "ui:title": "article.metadata.people.viaf"
- },
- "foaf": {
- "ui:title": "article.metadata.people.foaf"
- },
- "isni": {
- "ui:title": "article.metadata.people.isni"
- },
- "wikidata": {
- "ui:title": "article.metadata.people.wikidata"
- }
- }
- },
- "acknowledgements": {
- "ui:title": "article.metadata.acknowledgements"
- },
- "reviewers": {
- "ui:title": "article.metadata.reviewers",
- "items": {
- "surname": {
- "ui:title": "article.metadata.people.surname"
- },
- "forname": {
- "ui:title": "article.metadata.people.forname"
- },
- "affiliations": {
- "ui:title": "article.metadata.people.affiliations"
- },
- "biography": {
- "ui:title": "article.metadata.people.biography"
- },
- "email": {
- "ui:title": "article.metadata.people.email"
- },
- "orcid": {
- "ui:title": "article.metadata.people.orcid"
- },
- "viaf": {
- "ui:title": "article.metadata.people.viaf"
- },
- "foaf": {
- "ui:title": "article.metadata.people.foaf"
- },
- "isni": {
- "ui:title": "article.metadata.people.isni"
- },
- "wikidata": {
- "ui:title": "article.metadata.people.wikidata"
- }
- }
- },
- "issnnum": {
- "ui:title": "article.metadata.issnnum"
- },
- "prod": {
- "ui:title": "article.metadata.prod"
- },
- "prodnum": {
- "ui:title": "article.metadata.prodnum"
- },
- "diffnum": {
- "ui:title": "article.metadata.diffnum"
- },
- "funder": {
- "ui:title": "",
- "funder_name": {
- "ui:title": "article.metadata.funder.name"
- },
- "funder_id": {
- "ui:title": "article.metadata.funder.id"
- }
- }
-}