@@ -207,7 +206,26 @@
altoDivSelector: '#jsonAlto',
altoChangesInputSelector: "#altoChanges",
tileSourceSelector: '#tileSource',
- alignRtl: #{Metadaten.pagesRTL}
+ alignRtl: #{Metadaten.pagesRTL},
+ namedEntityEditor: {
+ enabled: #{Metadaten.showNamedEntityEditor},
+ msgs: {
+ title__named_entity_editor: "#{msgs.title__named_entity_editor}",
+ label__named_entity_type: "#{msgs.label__named_entity_type}",
+ label__named_entity: "#{msgs.label__named_entity}",
+ action__set_named_entity: "#{msgs.action__set_named_entity}",
+ action__edit_entity: "#{msgs.action__edit_entity}",
+ bitteAuswaehlen: "#{msgs.bitteAuswaehlen}",
+ action__delete_entity: "#{msgs.action__delete_entity}"
+ },
+ types: [
+ {value: "person", label: "#{msgs.person}"},
+ {value: "corporation", label: "#{msgs.corporation}"},
+ {value: "location", label: "#{msgs.location}"},
+ {value: "keyword", label: "#{msgs.keyword}"}
+ ],
+ entities: '#{Metadaten.getAuthorityMetadataJSON()}'
+ }
}
riot.mount('alto-editor', opts);
}
diff --git a/src/main/webapp/uii/template/riot/alto-editor.riot b/src/main/webapp/uii/template/riot/alto-editor.riot
index 8fa6a598d..2582933f6 100644
--- a/src/main/webapp/uii/template/riot/alto-editor.riot
+++ b/src/main/webapp/uii/template/riot/alto-editor.riot
@@ -3,23 +3,24 @@
-
+
@@ -31,12 +32,32 @@
.altoword {
padding: 3px;
}
+ .alto-edit-wrapper {
+ --alto-padding: 0.5em;
+ height: 82vh;
+ display: flex;
+ flex-direction: column;
+ }
.alto-edit {
- min-height: 82vh;
- max-height: 82vh;
overflow-y: scroll;
border: 1px solid #ddd;
- padding: 15px;
+ padding: var(--alto-padding);
+ flex-grow: 1;
+ }
+ .named-entity-edit {
+ border: 1px solid #ddd;
+ margin: 1.5em 0 0 0;
+ max-height: 50%;
+ display: none;
+ }
+ .named-entity-edit > :first-child {
+ border-bottom: 1px solid #bbb;
+ padding: var(--alto-padding);
+ }
+ .named-entity-edit.-active {
+ display: flex;
+ flex-direction: column;
+ justify-content: space-between;
}
#bigImage {
height: 82vh;
@@ -57,12 +78,15 @@
.alignRight{
text-align: right;
}
+ .selected-word {
+ background: HSLA(209, 73%, 55%, 33%);
+ }
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/webapp/uii/template/template_metseditor.html b/src/main/webapp/uii/template/template_metseditor.html
index b9acd9d1d..72b8434d0 100644
--- a/src/main/webapp/uii/template/template_metseditor.html
+++ b/src/main/webapp/uii/template/template_metseditor.html
@@ -204,6 +204,7 @@
+