diff --git a/src/app/core/cache/models/normalized-bitstream.model.ts b/src/app/core/cache/models/normalized-bitstream.model.ts index 4ac2718056..ba5343e252 100644 --- a/src/app/core/cache/models/normalized-bitstream.model.ts +++ b/src/app/core/cache/models/normalized-bitstream.model.ts @@ -19,7 +19,7 @@ export class NormalizedBitstream extends NormalizedDSpaceObject { * The relative path to this Bitstream's file */ @autoserialize - retrieve: string; + content: string; /** * The mime type of this Bitstream diff --git a/src/app/core/shared/bitstream.model.ts b/src/app/core/shared/bitstream.model.ts index b6453206f0..5e4ee929d4 100644 --- a/src/app/core/shared/bitstream.model.ts +++ b/src/app/core/shared/bitstream.model.ts @@ -37,6 +37,6 @@ export class Bitstream extends DSpaceObject { /** * The URL to retrieve this Bitstream's file */ - retrieve: string; + content: string; } diff --git a/src/app/core/shared/item.model.spec.ts b/src/app/core/shared/item.model.spec.ts index 610c3c812c..323cc8ef3f 100644 --- a/src/app/core/shared/item.model.spec.ts +++ b/src/app/core/shared/item.model.spec.ts @@ -23,13 +23,13 @@ describe('Item', () => { beforeEach(() => { const thumbnail = { - retrieve: thumbnailPath + content: thumbnailPath }; bitstreams = [{ - retrieve: bitstream1Path + content: bitstream1Path }, { - retrieve: bitstream2Path + content: bitstream2Path }]; remoteDataThumbnail = createRemoteDataObject(thumbnail); @@ -73,7 +73,7 @@ describe('Item', () => { it('should return the thumbnail of this item', () => { const path: string = thumbnailPath; const bitstream: Observable = item.getThumbnail(); - bitstream.map((b) => expect(b.retrieve).toBe(path)); + bitstream.map((b) => expect(b.content).toBe(path)); }); }); @@ -91,7 +91,7 @@ describe('Item', () => { files.subscribe( (array) => array.forEach( (file) => { - expect(file.retrieve).toBe(paths[index]); + expect(file.content).toBe(paths[index]); index++; } ) diff --git a/src/app/item-page/full/field-components/file-section/full-file-section.component.html b/src/app/item-page/full/field-components/file-section/full-file-section.component.html index 9a83442dd9..358b658a76 100644 --- a/src/app/item-page/full/field-components/file-section/full-file-section.component.html +++ b/src/app/item-page/full/field-components/file-section/full-file-section.component.html @@ -21,7 +21,7 @@
- + {{"item.page.filesection.download" | translate}}
diff --git a/src/app/item-page/simple/field-components/file-section/file-section.component.html b/src/app/item-page/simple/field-components/file-section/file-section.component.html index aeceeab53a..1d32c8b309 100644 --- a/src/app/item-page/simple/field-components/file-section/file-section.component.html +++ b/src/app/item-page/simple/field-components/file-section/file-section.component.html @@ -1,6 +1,6 @@