From a38d365bab142d645be0f07559c26561018113c3 Mon Sep 17 00:00:00 2001 From: Raf Ponsaerts Date: Mon, 17 Aug 2020 15:18:25 +0200 Subject: [PATCH] Updated message for the collapse bitstreams for the bitstream pagination on simple item pages --- .../field-components/file-section/file-section.component.html | 4 ++-- .../file-section/file-section.component.spec.ts | 4 ++-- src/assets/i18n/en.json5 | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) 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 4a53f1d829..1fdee6dc4d 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 @@ -10,8 +10,8 @@
{{'item.page.bitstreams.view-more' | translate}}
-
- {{'item.page.bitstreams.view-less' | translate}} +
diff --git a/src/app/+item-page/simple/field-components/file-section/file-section.component.spec.ts b/src/app/+item-page/simple/field-components/file-section/file-section.component.spec.ts index aac0fa108e..1b7fa75ce5 100644 --- a/src/app/+item-page/simple/field-components/file-section/file-section.component.spec.ts +++ b/src/app/+item-page/simple/field-components/file-section/file-section.component.spec.ts @@ -139,7 +139,7 @@ describe('FileSectionComponent', () => { }) it('should contain a view less link', () => { - const viewLess = fixture.debugElement.query(By.css('.bitstream-view-less')); + const viewLess = fixture.debugElement.query(By.css('.bitstream-collapse')); expect(viewLess).toBeDefined(); }) @@ -158,7 +158,7 @@ describe('FileSectionComponent', () => { pageInfo: pageInfo }); bitstreamDataService.findAllByItemAndBundleName.and.returnValue(createSuccessfulRemoteDataObject$(PaginatedList)); - const viewLess = fixture.debugElement.query(By.css('.bitstream-view-less')); + const viewLess = fixture.debugElement.query(By.css('.bitstream-collapse')); viewLess.triggerEventHandler('click', null); expect(bitstreamDataService.findAllByItemAndBundleName).toHaveBeenCalled(); expect(comp.currentPage).toBe(1); diff --git a/src/assets/i18n/en.json5 b/src/assets/i18n/en.json5 index 409a0d183a..f8221bf657 100644 --- a/src/assets/i18n/en.json5 +++ b/src/assets/i18n/en.json5 @@ -1526,7 +1526,7 @@ "item.page.bitstreams.view-more": "Show more", - "item.page.bitstreams.view-less": "Show less", + "item.page.bitstreams.collapse": "Collapse", "item.page.filesection.original.bundle" : "Original bundle",