diff src/main/webapp/entry/witness.xhtml @ 161:8049becb05ca

New ALIAS is_alias_identifier_of CODEX/WITNESS for diverse catalog numbers.
author Robert Casties <casties@mpiwg-berlin.mpg.de>
date Thu, 19 Apr 2018 20:35:12 +0200
parents 1c09041f1182
children 0aa8975784d9
line wrap: on
line diff
--- a/src/main/webapp/entry/witness.xhtml	Fri Apr 13 12:58:36 2018 +0200
+++ b/src/main/webapp/entry/witness.xhtml	Thu Apr 19 20:35:12 2018 +0200
@@ -123,12 +123,39 @@
 		</h:panelGrid>
 
 
-		<h:panelGrid columns="2" styleClass="createPanel"
+		<h:panelGrid columns="3" styleClass="createPanel"
 			columnClasses="createPanelFirstColumn,createPanelColumn02">
 
-			<h:outputText value="Ahlwardt No." />
+            <h:outputText value="Alias Catalog Identifiers" />
+            <h:panelGrid columns="1">
+                <h:panelGrid columns="2">
+                    <h:dataTable value="#{CurrentWitness.aliasIdList.entities}" var="item"
+                        rendered="#{!empty CurrentWitness.aliasIdList.entities}">
+                        <h:column>
+                            <h:outputText value="#{item.ownValue}" />
+                        </h:column>
+                        <h:column>
+                            <h:selectBooleanCheckbox
+                                value="#{CurrentWitness.aliasIdList.selections[item.id]}" />
+                        </h:column>
+                    </h:dataTable>
+                    <h:commandButton value="Remove Selected"
+                        actionListener="#{CurrentWitness.aliasIdList.listenerRemoveSelection}"
+                        rendered="#{!empty CurrentWitness.aliasIdList.entities}" />
+                </h:panelGrid>
+
+                <h:panelGrid columns="2">
+                    <h:inputText value="#{CurrentWitness.aliasIdList.input}" size="80"/>
+                    <h:commandButton value="CREATE"
+                        actionListener="#{CurrentWitness.aliasIdList.listenerCreate}" />
+                </h:panelGrid>
+            </h:panelGrid>
+            <h:outputText value="Use schema 'catalogname: identifier', e.g. 'Ahlward: 7653'." />
+
+			<h:outputText value="Ahlwardt No. (deprecated)" />
 			<h:inputText value="#{CurrentWitness.attributes['ahlwardt_no']}"
 				style="width: 300px;" />
+            <h:outputText />
 		</h:panelGrid>