File tree Expand file tree Collapse file tree
src/app/bitstream-page/clarin-license-agreement-page Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ( ) {
You can’t perform that action at this time.
0 commit comments