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