Skip to content

Commit 314cbb1

Browse files
jr-rkclaude
andcommitted
refactor: align Bitstream checkSum with upstream ChecksumInfo
Match DSpace/dspace-angular@main (commit 4f72074): use the exported ChecksumInfo interface and `checkSum: ChecksumInfo` positioned after `description`, replacing the inline anonymous type, to minimize conflicts on a future DSpace 9 migration. Display and i18n key are unchanged (upstream renders no checksum row in the full item view). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent c534451 commit 314cbb1

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

src/app/core/shared/bitstream.model.ts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ import { ChildHALResource } from './child-hal-resource.model';
2121
import { DSpaceObject } from './dspace-object.model';
2222
import { HALLink } from './hal-link.model';
2323

24+
export interface ChecksumInfo {
25+
checkSumAlgorithm: string;
26+
value: string;
27+
}
28+
2429
@typedObject
2530
@inheritSerialization(DSpaceObject)
2631
export class Bitstream extends DSpaceObject implements ChildHALResource {
@@ -33,19 +38,16 @@ export class Bitstream extends DSpaceObject implements ChildHALResource {
3338
sizeBytes: number;
3439

3540
/**
36-
* The checksum of this Bitstream, including the algorithm used to calculate it
41+
* The description of this Bitstream
3742
*/
3843
@autoserialize
39-
checkSum: {
40-
checkSumAlgorithm: string;
41-
value: string;
42-
};
44+
description: string;
4345

4446
/**
45-
* The description of this Bitstream
47+
* The checksum information of this Bitstream
4648
*/
4749
@autoserialize
48-
description: string;
50+
checkSum: ChecksumInfo;
4951

5052
/**
5153
* The name of the Bundle this Bitstream is part of

0 commit comments

Comments
 (0)