Skip to content

Commit 40c8fb8

Browse files
authored
Ufal/seznam license request (#844)
* Fix of unwanted Seznam Dataset License request while using other licenses
1 parent 21f40b4 commit 40c8fb8

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/app/bitstream-page/clarin-license-agreement-page/clarin-license-agreement-page.component.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,13 @@ export class ClarinLicenseAgreementPageComponent implements OnInit {
169169
* Load the content for the special license. This content is shown directly in this approval page.
170170
*/
171171
loadLicenseContentSeznam() {
172-
this.htmlContentService.getHmtlContentByPathAndLocale(this.LICENSE_PATH_SEZNAM_CZ).then(content => {
173-
this.licenseContentSeznam.next(content);
172+
this.item$.subscribe((item) => {
173+
if (item.firstMetadataValue('dc.rights') === this.LICENSE_NAME_SEZNAM) {
174+
this.htmlContentService.getHmtlContentByPathAndLocale(this.LICENSE_PATH_SEZNAM_CZ).then(content => {
175+
this.licenseContentSeznam.next(content);
176+
});
177+
}
174178
});
175-
return true;
176179
}
177180

178181
public accept() {

0 commit comments

Comments
 (0)