diff --git a/src/app/item-page/clarin-license-info/clarin-license-info.component.spec.ts b/src/app/item-page/clarin-license-info/clarin-license-info.component.spec.ts
index e72b3e9da0d..3ccb05ad6e3 100644
--- a/src/app/item-page/clarin-license-info/clarin-license-info.component.spec.ts
+++ b/src/app/item-page/clarin-license-info/clarin-license-info.component.spec.ts
@@ -10,6 +10,7 @@ import { RouterTestingModule } from '@angular/router/testing';
import { ClarinLicenseDataService } from '../../core/data/clarin/clarin-license-data.service';
import { ItemMock } from '../../shared/mocks/item.mock';
import { MetadataValue } from '../../core/shared/metadata.models';
+import { LocaleService } from '../../core/locale/locale.service';
const item = ItemMock;
const license = 'Test License Name';
@@ -22,6 +23,7 @@ describe('ClarinLicenseInfoComponent', () => {
let clarinLicenseDataService: ClarinLicenseDataService;
let sanitizerStub: DomSanitizer;
+ let localeService: LocaleService;
// initialize license metadata
item.metadata['dc.rights.label'] = [Object.assign(new MetadataValue(), {
@@ -46,6 +48,9 @@ describe('ClarinLicenseInfoComponent', () => {
sanitizerStub = jasmine.createSpyObj('sanitizer', {
bypassSecurityTrustUrl: null
});
+ localeService = jasmine.createSpyObj('LocaleService', {
+ getCurrentLanguageCode: jasmine.createSpy('getCurrentLanguageCode'),
+ });
await TestBed.configureTestingModule({
imports: [
@@ -59,6 +64,7 @@ describe('ClarinLicenseInfoComponent', () => {
providers: [
{ provide: ClarinLicenseDataService, useValue: clarinLicenseDataService },
{ provide: DomSanitizer, useValue: sanitizerStub },
+ { provide: LocaleService, useValue: localeService }
],
})
.compileComponents();
diff --git a/src/app/item-page/clarin-license-info/clarin-license-info.component.ts b/src/app/item-page/clarin-license-info/clarin-license-info.component.ts
index 5762533bbdf..a962bc221c4 100644
--- a/src/app/item-page/clarin-license-info/clarin-license-info.component.ts
+++ b/src/app/item-page/clarin-license-info/clarin-license-info.component.ts
@@ -9,6 +9,7 @@ import { ClarinLicense } from '../../core/shared/clarin/clarin-license.model';
import { DomSanitizer } from '@angular/platform-browser';
import { secureImageData } from '../../shared/clarin-shared-util';
import { BehaviorSubject } from 'rxjs';
+import { LocaleService } from '../../core/locale/locale.service';
/**
* This component show clarin license info in the item page and item full page.
@@ -21,7 +22,8 @@ import { BehaviorSubject } from 'rxjs';
export class ClarinLicenseInfoComponent implements OnInit {
constructor(private sanitizer: DomSanitizer,
- private clarinLicenseService: ClarinLicenseDataService) { }
+ private clarinLicenseService: ClarinLicenseDataService,
+ private localeService: LocaleService) { }
/**
* The item to display a version history for
@@ -95,6 +97,13 @@ export class ClarinLicenseInfoComponent implements OnInit {
secureImageData(imageByteArray) {
return secureImageData(this.sanitizer, imageByteArray);
}
+
+ /**
+ * Check if current english is Czech
+ */
+ isCsLocale() {
+ return this.localeService.getCurrentLanguageCode() === 'cs';
+ }
}
export enum LicenseType {
diff --git a/src/app/item-page/clarin-ref-box/clarin-ref-box.component.html b/src/app/item-page/clarin-ref-box/clarin-ref-box.component.html
index ed66dd735e5..ac4de580791 100644
--- a/src/app/item-page/clarin-ref-box/clarin-ref-box.component.html
+++ b/src/app/item-page/clarin-ref-box/clarin-ref-box.component.html
@@ -1,4 +1,4 @@
-
+
diff --git a/src/app/item-page/clarin-ref-citation-modal/clarin-ref-citation-modal.component.html b/src/app/item-page/clarin-ref-citation-modal/clarin-ref-citation-modal.component.html
index 201ad3de387..2a2eaf8c1fa 100644
--- a/src/app/item-page/clarin-ref-citation-modal/clarin-ref-citation-modal.component.html
+++ b/src/app/item-page/clarin-ref-citation-modal/clarin-ref-citation-modal.component.html
@@ -5,7 +5,7 @@
{{itemName}}
×
-
+
{{'item.refbox.modal.copy.instruction.0' | translate}}
{{'item.refbox.modal.copy.instruction.1' | translate}}
{{'item.refbox.modal.copy.instruction.2' | translate}}
@@ -13,6 +13,9 @@
{{itemName}}
+
+ {{citationType | uppercase}}
+