7
|
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
2 <html xmlns="http://www.w3.org/1999/xhtml"
|
|
3 xmlns:h="http://java.sun.com/jsf/html"
|
|
4 xmlns:f="http://java.sun.com/jsf/core"
|
|
5 xmlns:ui="http://java.sun.com/jsf/facelets"
|
|
6 xmlns:a4j="http://richfaces.org/a4j"
|
|
7 xmlns:rich="http://richfaces.org/rich">
|
|
8
|
|
9 <body>
|
|
10 <ui:composition template="/templates/publicTemplate.xhtml">
|
|
11
|
|
12 <ui:define name="publicContent">
|
|
13
|
|
14 <h:outputStylesheet name="/css/ismi-db/display.css" />
|
|
15
|
|
16 <div id="pageTitle">
|
|
17 <h:outputText value="Digitalization List" />
|
|
18 </div>
|
|
19
|
|
20 <h:panelGrid columns="1" styleClass="mainPanel" id="digiListPanel">
|
|
21
|
|
22 <h:panelGrid columns="3" style="width:300px;">
|
|
23 <h:selectOneMenu
|
|
24 value="#{Session.digiList.selectedFilter}">
|
|
25 <f:selectItems value="#{Session.digiList.codexFilter}" />
|
|
26 </h:selectOneMenu>
|
|
27 <a4j:commandButton
|
|
28 value="Refresh"
|
|
29 actionListener="#{Session.digiList.listenerRefresh}"
|
|
30 render="digiListPanel"/>
|
|
31 <h:outputText value="Items: #{Session.digiList.listSize}"/>
|
|
32 </h:panelGrid>
|
|
33
|
|
34
|
|
35
|
|
36 <rich:dataTable
|
|
37 value="#{Session.digiList.list}"
|
|
38 var="digi"
|
|
39 rows="50"
|
|
40 styleClass="createPanel"
|
|
41 columnClasses="createPanelColumn02,createPanelColumn02,createPanelColumn02,createPanelColumn02">
|
|
42
|
|
43 <rich:column style="border:none;">
|
|
44 <f:facet name="header">
|
|
45 <h:outputText value="Codex Id" />
|
|
46 </f:facet>
|
|
47 <h:outputText
|
|
48 value="[#{digi.codexId}] #{digi.codexOv}"
|
|
49 rendered="#{digi.hasCodex}"/>
|
|
50 </rich:column>
|
|
51
|
|
52 <rich:column style="border:none;">
|
|
53 <f:facet name="header">
|
33
|
54 <script>
|
|
55 function handlerKeyPress(event) {
|
|
56 // if enter key is pressed
|
|
57 if (event.keyCode == 13) {
|
|
58 event.target.blur();
|
|
59 event.stopPropagation();
|
|
60 return false;
|
|
61 } else {
|
|
62 return true;
|
|
63 }
|
|
64 }
|
|
65 </script>
|
7
|
66 <h:outputText value="Digitalization"
|
|
67 styleClass="rf-dt-shdr-c"/>
|
|
68 <br/>
|
|
69 <rich:autocomplete mode="client" autocompleteList="#{Session.digiList.suggesstionList}"
|
33
|
70 var="suggestion" fetchValue="#{suggestion}" layout="div" selectFirst="false"
|
|
71 value="#{Session.digiList.filterTerm}" onkeypress="return handlerKeyPress(event);" >
|
7
|
72 <b>#{suggestion}</b>
|
33
|
73 <a4j:ajax event="change" render="digiListPanel" listener="#{Session.digiList.eventFilter}" />
|
7
|
74 </rich:autocomplete>
|
|
75 </f:facet>
|
33
|
76
|
7
|
77 <h:outputText value="[#{digi.entity.id}] #{digi.entity.ownValue}" />
|
33
|
78
|
7
|
79 <h:outputLink value="#{ApplicationBean1.root}/imageServer/displayDigi.jsp?digiId=#{digi.entity.id}">
|
|
80 <h:graphicImage url="#{ApplicationBean1.displayImage}" width="18" height="18"/>
|
|
81 </h:outputLink>
|
|
82
|
|
83 <h:outputLink
|
|
84 value="#{ApplicationBean1.root}/browse/entityDetails.xhtml?eid=#{digi.entity.id}" title="Metadata of the entity"
|
|
85 styleClass="displayButton">
|
|
86 <h:graphicImage
|
|
87 value="#{ApplicationBean1.imgNetwork32}"
|
|
88 width="18" height="18"/>
|
|
89 </h:outputLink>
|
|
90
|
|
91 <h:commandButton alt="edit"
|
|
92 image="#{ApplicationBean1.editImage}"
|
|
93 action="#{Session.digiList.actionEditDigi}"
|
|
94 rendered="#{Session.canEdit}"/>
|
|
95 </rich:column>
|
|
96
|
|
97 <rich:column style="border:none;">
|
|
98 <f:facet name="header">
|
|
99 <h:outputText value="#Pages" />
|
|
100 </f:facet>
|
|
101 <h:outputText value="#{digi.pages}" />
|
|
102 </rich:column>
|
|
103
|
|
104 <rich:column style="border:none;">
|
|
105 <f:facet name="header">
|
|
106 <h:outputText value="Titles in this Codex" />
|
|
107 </f:facet>
|
|
108 <h:outputText value="Known Witnesses" rendered="#{!empty digi.titlesInCodex}"/>
|
|
109 <rich:dataTable value="#{digi.titlesInCodex}" var="witness" rendered="#{!empty digi.titlesInCodex}">
|
|
110 <h:column>
|
|
111 <h:outputText value="[#{witness.id}] #{witness.ownValue}" />
|
|
112 <h:outputLink value="#{ApplicationBean1.root}/search/displayTitle.xhtml?witnessId=#{witness.id}#witnesses">
|
|
113 <h:graphicImage url="#{ApplicationBean1.displayImage}" width="18" height="18"/>
|
|
114 </h:outputLink>
|
|
115
|
|
116 <h:outputLink
|
|
117 value="#{ApplicationBean1.root}/browse/entityDetails.xhtml?eid=#{witness.id}" title="Metadata of the entity"
|
|
118 styleClass="displayButton">
|
|
119 <h:graphicImage
|
|
120 value="#{ApplicationBean1.imgNetwork32}"
|
|
121 width="18" height="18"/>
|
|
122 </h:outputLink>
|
|
123
|
|
124 <h:commandButton alt="edit"
|
|
125 image="#{ApplicationBean1.editImage}"
|
|
126 action="#{Session.digiList.actionEditWitness}"
|
|
127 rendered="#{Session.canEdit}"/>
|
|
128 </h:column>
|
|
129 </rich:dataTable>
|
|
130 </rich:column>
|
|
131
|
|
132 <f:facet name="footer">
|
|
133 <rich:dataScroller id="scroller" />
|
|
134 </f:facet>
|
|
135
|
|
136 </rich:dataTable>
|
|
137
|
|
138
|
|
139 </h:panelGrid>
|
|
140
|
|
141
|
|
142 </ui:define>
|
|
143
|
|
144 </ui:composition>
|
|
145 </body>
|
|
146 </html>
|