Rephrase comments to be more consistent

This commit is contained in:
Sebastian Meyer 2021-03-22 23:39:17 +01:00 committed by GitHub
parent 440d9bcf69
commit 05e70cdae4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1169,7 +1169,7 @@ abstract class Document
$metadata['volume'] = $metadata['year'];
}
if (empty($metadata['volume_sorting'][0])) {
// If mets ORDER label is given it is prefered over year_sorting and year.
// If METS @ORDER is given it is preferred over year_sorting and year.
if (!empty($metadata['mets_order'][0])) {
$metadata['volume_sorting'][0] = $metadata['mets_order'][0];
} elseif (!empty($metadata['year_sorting'][0])) {
@ -1178,7 +1178,7 @@ abstract class Document
$metadata['volume_sorting'][0] = $metadata['year'][0];
}
}
// If volume_sorting is still empty, try to use title_sorting or mets_orderlabel finally (workaround for newspapers)
// If volume_sorting is still empty, try to use title_sorting or METS @ORDERLABEL finally (workaround for newspapers)
if (empty($metadata['volume_sorting'][0])) {
if (!empty($metadata['title_sorting'][0])) {
$metadata['volume_sorting'][0] = $metadata['title_sorting'][0];