Traitement des volumes rendu plus conforme aux instructions de la REB et création du test associé manquant

This commit is contained in:
Bastien Dumont 2020-12-23 17:41:32 +01:00
parent a089d37693
commit a1573a6c39
2 changed files with 35 additions and 3 deletions

View File

@ -178,6 +178,7 @@ interview ; Interview
<group delimiter=", ">
<text macro="publicationAuthors"/>
<text macro="publicationTitle"/>
<text macro="publicationVolumes"/>
<text macro="publicationContainer"/>
</group>
<text macro="publicationCollection"/>
@ -335,9 +336,9 @@ interview ; Interview
</macro>
<macro name="bookWithVolume">
<group>
<group delimiter=", ">
<text variable="title" font-style="italic"/>
<text macro="bookVolume" prefix=". "/>
<text macro="bookVolume"/>
</group>
</macro>
@ -498,7 +499,7 @@ interview ; Interview
<choose>
<if type="article-journal book paper-conference thesis chapter entry-dictionary entry-encyclopedia" match="any">
<date variable="issued">
<date-part name="year"/>
<date-part name="year" range-delimiter="-"/>
</date>
</if>
<else-if type="article-newspaper article-magazine" match="any">
@ -617,10 +618,17 @@ interview ; Interview
</macro>
<macro name="bookVolume">
<choose>
<if variable="volume">
<group delimiter="-">
<number variable="volume" form="roman" text-case="uppercase"/>
<number variable="issue"/>
</group>
</if>
<else>
<number variable="number-of-volumes" prefix="I-" form="roman" text-case="uppercase"/>
</else>
</choose>
</macro>
<macro name="journalVolume">

View File

@ -1464,5 +1464,29 @@
]
]
}
},
{
"type": "book",
"event-place": "Lieu de publication",
"id": "VolumeAnonymeDansMultivolume",
"number-of-volumes": "4",
"publisher": "Maison d'édition",
"publisher-place": "Lieu de publication",
"title": "Volume non nommé d'un livre en plusieurs volumes",
"title-short": "Titre abrégé",
"volume": "2",
"author": [
{
"family": "Auteur",
"given": "Nom"
}
],
"issued": {
"date-parts": [
[
"2000"
]
]
}
}
]