Update Classes/Plugin/Collection.php

Co-authored-by: Sebastian Meyer <sebastian.meyer@slub-dresden.de>
This commit is contained in:
Alexander Bigga 2021-03-23 13:26:11 +01:00 committed by GitHub
parent 05e70cdae4
commit 5c50fd8d8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -404,7 +404,7 @@ class Collection extends \Kitodo\Dlf\Common\AbstractPlugin
];
} else {
// volume_sorting should be always set - but it's not a required field. We append the uid to the array key to make it always unique.
$subparts[$resArray['partof']][$resArray['volume_sorting'] . $resArray['uid']] = [
$subparts[$resArray['partof']][$resArray['volume_sorting'] . str_pad($resArray['uid'], 9, '0', STR_PAD_LEFT)] = [
'u' => $resArray['uid'],
'h' => '',
's' => $sorting,