Make the collection listview more robust agains missing volume_sorting.
Currently the volume_sorting field is used as array key. But in some circumstances this field is empty or the same value is used. Both will lead to an incomplete list of elements. This commit appends the record uid to make sure, the array key is unique.
This commit is contained in:
parent
2b6735e234
commit
9cac0e0639
|
@ -403,7 +403,8 @@ class Collection extends \Kitodo\Dlf\Common\AbstractPlugin
|
|||
'p' => []
|
||||
];
|
||||
} else {
|
||||
$subparts[$resArray['partof']][$resArray['volume_sorting']] = [
|
||||
// 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']] = [
|
||||
'u' => $resArray['uid'],
|
||||
'h' => '',
|
||||
's' => $sorting,
|
||||
|
|
Loading…
Reference in New Issue