Browse Source

Rephrase comments to be more consistent

pull/603/head
Sebastian Meyer 2 years ago committed by GitHub
parent
commit
05e70cdae4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      Classes/Common/Document.php

4
Classes/Common/Document.php

@ -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];

Loading…
Cancel
Save