diff --git a/src/app/app.module.ts b/src/app/app.module.ts
index fbcc5522..4abd71b8 100644
--- a/src/app/app.module.ts
+++ b/src/app/app.module.ts
@@ -138,6 +138,7 @@ import { IiifService } from './services/iiif.service';
import { ZoomifyService } from './services/zoomify.service';
import { LoggerService } from './services/logger.service';
import { DialogAdvancedSearchComponent } from './dialog/dialog-advanced-search/dialog-advanced-search.component';
+import { DialogPolicyComponent } from './dialog/dialog-policy/dialog-policy.component';
export function hljsLanguages() {
@@ -229,7 +230,8 @@ export function hljsLanguages() {
DialogAdminMetadataComponent,
MapBrowseComponent,
PresentationComponent,
- DialogAdvancedSearchComponent
+ DialogAdvancedSearchComponent,
+ DialogPolicyComponent
],
entryComponents: [
DialogOcrComponent,
@@ -240,7 +242,8 @@ export function hljsLanguages() {
DialogAuthosComponent,
DialogPdfGeneratorComponent,
DialogAdminMetadataComponent,
- DialogAdvancedSearchComponent
+ DialogAdvancedSearchComponent,
+ DialogPolicyComponent
],
imports: [
BrowserModule,
diff --git a/src/app/dialog/dialog-policy/dialog-policy.component.html b/src/app/dialog/dialog-policy/dialog-policy.component.html
new file mode 100644
index 00000000..af0b47a6
--- /dev/null
+++ b/src/app/dialog/dialog-policy/dialog-policy.component.html
@@ -0,0 +1,16 @@
+
+
+
+
+ {{ 'alert.inaccessible_document_description' | translate }}
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/app/dialog/dialog-policy/dialog-policy.component.ts b/src/app/dialog/dialog-policy/dialog-policy.component.ts
new file mode 100644
index 00000000..ab978d92
--- /dev/null
+++ b/src/app/dialog/dialog-policy/dialog-policy.component.ts
@@ -0,0 +1,24 @@
+import { Component, OnInit, Input } from '@angular/core';
+import { MzBaseModal } from 'ngx-materialize';
+import { AppSettings } from '../../services/app-settings';
+import { KrameriusInfoService } from '../../services/kramerius-info.service';
+
+@Component({
+ selector: 'app-dialog-policy',
+ templateUrl: './dialog-policy.component.html'
+})
+export class DialogPolicyComponent extends MzBaseModal implements OnInit {
+ @Input() type: string;
+
+ constructor(
+ public krameriusInfo: KrameriusInfoService,
+ public appSettings: AppSettings) {
+ super();
+ }
+
+ ngOnInit(): void {
+ }
+
+
+
+}
diff --git a/src/app/metadata/metadata.component.html b/src/app/metadata/metadata.component.html
index 0b7838b1..665409d9 100644
--- a/src/app/metadata/metadata.component.html
+++ b/src/app/metadata/metadata.component.html
@@ -62,6 +62,11 @@
75 && showingTitle == false">
+
+
+
{{ 'metadata.policy_private' | translate }} ()
+
+
0">
diff --git a/src/app/metadata/metadata.component.ts b/src/app/metadata/metadata.component.ts
index 1d7a97ad..56d84050 100644
--- a/src/app/metadata/metadata.component.ts
+++ b/src/app/metadata/metadata.component.ts
@@ -8,6 +8,7 @@ import { MzModalService } from 'ngx-materialize';
import { AnalyticsService } from '../services/analytics.service';
import { DialogShareComponent } from '../dialog/dialog-share/dialog-share.component';
import { DialogAdminMetadataComponent } from '../dialog/dialog-admin-metadata/dialog-admin-metadata.component';
+import { DialogPolicyComponent } from '../dialog/dialog-policy/dialog-policy.component';
@Component({
selector: 'app-metadata',
@@ -43,6 +44,10 @@ export class MetadataComponent implements OnInit {
this.modalService.open(DialogAuthosComponent, { authors: this.metadata.authors} );
}
+ showPolicyPrivateDialog() {
+ this.modalService.open(DialogPolicyComponent, { type: 'private' } );
+ }
+
showCitation() {
this.analytics.sendEvent('metadata', 'citation');
this.modalService.open(DialogCitationComponent, { metadata: this.metadata });
diff --git a/src/assets/i18n/cs.json b/src/assets/i18n/cs.json
index 9f15edd4..8b98415c 100644
--- a/src/assets/i18n/cs.json
+++ b/src/assets/i18n/cs.json
@@ -227,7 +227,9 @@
"btn_show_metadata": "Zobrazit metadata",
"btn_hide_metadata": "Skrýt metadata",
"authors_info": "Více o autorech",
- "donator": "S podporou"
+ "donator": "S podporou",
+ "policy_private": "Dokument není veřejně přístupný",
+ "policy_dnnt": "Dílo nedostupné na trhu"
},
"donator": {
"norway": {
diff --git a/src/assets/i18n/en.json b/src/assets/i18n/en.json
index 7a453ce9..041d02e9 100644
--- a/src/assets/i18n/en.json
+++ b/src/assets/i18n/en.json
@@ -225,7 +225,9 @@
"btn_show_metadata": "Show metadata",
"btn_hide_metadata": "Hide metadata",
"authors_info": "More about authors",
- "donator": "Supported by"
+ "donator": "Supported by",
+ "policy_private": "Not publicly accessible document",
+ "policy_dnnt": "Dílo nedostupné na trhu"
},
"donator": {
"norway": {
diff --git a/src/styles.scss b/src/styles.scss
index a5bbcffc..bd3a4385 100644
--- a/src/styles.scss
+++ b/src/styles.scss
@@ -33,5 +33,6 @@
@import "styles/app-dialog-advanced-search";
@import "styles/app-dialog-authors";
@import "styles/app-dialog-sheetmusic-warning";
+@import "styles/app-dialog-policy";
@import "styles/app-page-not-found";
@import "styles/app-login";
diff --git a/src/styles/_app-dialog-policy.scss b/src/styles/_app-dialog-policy.scss
new file mode 100644
index 00000000..951d3b4f
--- /dev/null
+++ b/src/styles/_app-dialog-policy.scss
@@ -0,0 +1,51 @@
+mz-modal.app-dialog-policy {
+ .modal {
+ max-width: 800px;
+ .modal-content {
+ padding-bottom: 0;
+ }
+ }
+ .app-text {
+ padding: 10px 20px;
+ text-align: left;
+ color: #444;
+ margin: 10px auto 0;
+ max-width: 800px;
+ }
+ mz-modal-content {
+ .app-html {
+ padding: 10px 20px;
+ overflow: auto;
+ text-align: left;
+ color: #444;
+ margin: 10px auto 0;
+ max-width: 800px;
+ h1,h2,h3,h4,h5 {
+ line-height: 120%;
+ color: #444;
+ font-weight: 400;
+ text-align: left;
+ }
+ h1: {
+ text-align: center;
+ }
+ h1, h2, h3 {
+ font-size: 24px;
+ }
+ h4 {
+ font-size: 22px;
+ }
+ h5 {
+ font-size: 20px;
+ }
+ b, strong {
+ font-weight: 600;
+ }
+ ul {
+ padding-left: 0;
+ list-style-type: none;
+ margin-top: 5px;
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/styles/_app-metadata.scss b/src/styles/_app-metadata.scss
index 76b6f6b1..c338493b 100644
--- a/src/styles/_app-metadata.scss
+++ b/src/styles/_app-metadata.scss
@@ -145,6 +145,22 @@ app-metadata {
font-size: 15px;
color: $app-grey-d-2;
}
+ .app-policy {
+ .app-lock {
+ color: $app-grey-d-2;
+ margin-right: 4px;
+ &.app-dnnt {
+ color: $app-dnnt;
+ }
+ }
+ .app-message {
+ color: $app-grey-d-2;
+ }
+ .app-help {
+ color: $primary-color;
+ cursor: pointer;
+ }
+ }
}
}