Export RIS : Ajout des types de document #1943
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Export des types de document
Cette pull request permet d'exporter les types de document grâce à l'attribut sémantique
dc:type
.La ressource ayant un attribut
dc:type
doit contenir l'une des valeurs de la spécification RISEn cas d'absence d'attribut dc:type le document est considéré comme
GENERIC
Ajout des ISSN et ISBN
Cette PR supporte les ISSN et ISBN grâce aux attributs
bibo:issn
etbibo:isbn
.Modification du code
Le code s'appuie sur deux mapping :
scheme-to-ris-tag
qui permet d'établir la correspondance entre attributs sémantiques et le champ RIS correspondantnames-to-tag
qui permet de faire la correspondance entre les champs Lodex et les tags RIS.Les mappings utilisent des objets pour éviter des erreurs d'appariement. L'utilisation des objets a nécessité de modifier la section [exchange] du code.