~ralf-claussnitzer-deactivatedaccount/goobi-production/1.10.x

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
<%@ page session="false" contentType="text/html;charset=utf-8"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://jsftutorials.net/htmLib" prefix="htm"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="x"%>
<%-- 
 * This file is part of the Goobi Application - a Workflow tool for the support of mass digitization.
 * 
 * Visit the websites for more information. 
 *     		- http://www.goobi.org
 *     		- http://launchpad.net/goobi-production
 * 		    - http://gdz.sub.uni-goettingen.de
 * 			- http://www.intranda.com
 * 			- http://digiverso.com 
 * 
 * This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free
 * Software Foundation; either version 2 of the License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59
 * Temple Place, Suite 330, Boston, MA 02111-1307 USA
 * 
 * Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions
 * of the GNU General Public License cover the whole combination. As a special exception, the copyright holders of this library give you permission to
 * link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and
 * distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and
 * conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this
 * library, you may extend this exception to your version of the library, but you are not obliged to do so. If you do not wish to do so, delete this
 * exception statement from your version.
--%>
<htm:table cellpadding="3" cellspacing="0" style="width:100%">
	<htm:tr style="vertical-align:top">
		<htm:td>
			<%-- Box für die Darstellung der Details --%>
			<h:form id="processdetails">
				<htm:table cellpadding="3" cellspacing="0" width="100%" styleClass="main_statistikboxen"
					rendered="#{ProzessverwaltungForm.modusBearbeiten!='prozess'}">
					<htm:tr>
						<htm:td styleClass="main_statistikboxen_row1">
							<h:outputText value="#{msgs.prozess}" />
						</htm:td>
						<htm:td styleClass="main_statistikboxen_row1" align="right">
							<h:commandLink action="#{ProzessverwaltungForm.Reload}">
								<h:graphicImage value="/newpages/images/reload.gif" />
							</h:commandLink>
						</htm:td>
					</htm:tr>


					<htm:tr>
						<htm:td styleClass="main_statistikboxen_row2" colspan="2">
							<htm:table border="0" width="100%" cellpadding="2">
								<htm:tr>
									<htm:td width="150">
										<h:outputText value="#{msgs.prozessTitel}:" />
									</htm:td>
									<htm:td>
										<h:outputText value="#{ProzessverwaltungForm.myProzess.titel}" />
									</htm:td>
									<htm:td rowspan="2" align="right" rendered="#{(LoginForm.maximaleBerechtigung == 1) || (LoginForm.maximaleBerechtigung == 2)}">
										<h:commandLink title="#{msgs.prozessdetailsBearbeiten}" action="#{NavigationForm.Reload}" style=";margin-right:20px">
											<h:graphicImage value="/newpages/images/buttons/edit_20.gif" />
											<x:updateActionListener property="#{ProzessverwaltungForm.modusBearbeiten}" value="prozess" />
										</h:commandLink>
									</htm:td>
								</htm:tr>

								<htm:tr>
									<htm:td width="150">
										<h:outputText value="#{msgs.projekt}:" />
									</htm:td>
									<htm:td>
										<h:outputText value="#{ProzessverwaltungForm.myProzess.projekt.titel}" />
									</htm:td>
								</htm:tr>

								<%-- 			<htm:tr>
					<htm:td width="150">
						<h:outputText value="#{msgs.ausgabename}:" />
					</htm:td>
					<htm:td>
						<h:outputText
							value="#{ProzessverwaltungForm.myProzess.ausgabename}" />
					</htm:td>
				</htm:tr>
--%>
								<htm:tr>
									<htm:td width="150">
										<h:outputText value="#{msgs.erstellungsdatum}:" />
									</htm:td>
									<htm:td>
										<h:outputText value="#{ProzessverwaltungForm.myProzess.erstellungsdatum}" />
									</htm:td>
								</htm:tr>

								<htm:tr>
									<htm:td width="150">
										<h:outputText value="#{msgs.regelsatz}:" />
									</htm:td>
									<htm:td>
										<h:outputText value="#{ProzessverwaltungForm.myProzess.regelsatz.titel}" />
									</htm:td>
								</htm:tr>

								<htm:tr>
									<htm:td width="150">
										<h:outputText value="#{msgs.inAuswahllisteAnzeigen}:" />
									</htm:td>
									<htm:td>
										<h:graphicImage value="/newpages/images/check_false.gif" rendered="#{not ProzessverwaltungForm.myProzess.inAuswahllisteAnzeigen}" />
										<h:graphicImage value="/newpages/images/check_true.gif" rendered="#{ProzessverwaltungForm.myProzess.inAuswahllisteAnzeigen}" />
									</htm:td>
								</htm:tr>

								<htm:tr>
									<htm:td width="150">
										<h:outputText value="#{msgs.istTemplate}:" />
									</htm:td>
									<htm:td>
										<h:graphicImage value="/newpages/images/check_false.gif" rendered="#{not ProzessverwaltungForm.myProzess.istTemplate}" />
										<h:graphicImage value="/newpages/images/check_true.gif" rendered="#{ProzessverwaltungForm.myProzess.istTemplate}" />
									</htm:td>
								</htm:tr>

								<htm:tr>
									<htm:td width="150">
										<h:outputText styleClass="text_light" value="#{msgs.id}:" />
									</htm:td>
									<htm:td>
										<h:outputText styleClass="text_light" value="#{ProzessverwaltungForm.myProzess.id}" />
									</htm:td>
								</htm:tr>

								<htm:tr>
									<htm:td width="150">
										<h:outputText styleClass="text_light" value="#{msgs.batch}:" />
									</htm:td>
									<htm:td>
										<h:outputText styleClass="text_light" value="#{ProzessverwaltungForm.myProzess.batchID}" />
									</htm:td>
								</htm:tr>
							</htm:table>

						</htm:td>
					</htm:tr>
				</htm:table>
			</h:form>
		</htm:td>
		<htm:td rendered="#{ProzessverwaltungForm.modusBearbeiten!='prozess'}">

			<h:form id="htmleditorform">
				<h:inputText id="myTextArea" value="#{ProzessverwaltungForm.wikiField}" style="width: 50%" />
			</h:form>

			<h:form id="addToWikiForm">
				<h:inputText id="addToTextArea" value="#{ProzessverwaltungForm.addToWikiField}" style="width: 60%" />
				<h:commandButton value="#{msgs.nachrichtHinzufuegen}" action="#{ProzessverwaltungForm.addToWikiField}" />
			</h:form>

		</htm:td>
	</htm:tr>
</htm:table>


<h:form>
	<%-- Box für die Bearbeitung der Details --%>
	<htm:table cellpadding="3" cellspacing="0" width="100%" styleClass="eingabeBoxen" rendered="#{ProzessverwaltungForm.modusBearbeiten=='prozess'}">

		<htm:tr>
			<htm:td styleClass="eingabeBoxen_row1" colspan="2">
				<h:outputText value="#{msgs.prozess}" />
			</htm:td>
		</htm:tr>
		<%-- Formular für die Bearbeitung des Prozesses --%>
		<htm:tr>
			<htm:td styleClass="eingabeBoxen_row2" colspan="2">
				<h:panelGrid columns="2">

					<%-- Felder --%>
					<h:outputLabel for="titel" value="#{msgs.prozessTitel}" />
					<h:panelGroup>
						<h:inputText id="titel" style="width: 300px;margin-right:15px" value="#{ProzessverwaltungForm.myNewProcessTitle}" required="true" />
						<x:message for="titel" style="color: red" detailFormat="#{msgs.keinTitelAngegeben}" />
					</h:panelGroup>

					<h:outputLabel for="prozess" value="#{msgs.projekt}" />
					<h:panelGroup>
						<h:selectOneMenu id="prozess" style="width: 300px;margin-right:15px" value="#{ProzessverwaltungForm.projektAuswahl}" required="true">
							<f:selectItem itemValue="" itemLabel="#{msgs.bitteAuswaehlen}" />
							<f:selectItems value="#{ProzessverwaltungForm.projektAuswahlListe}" />
						</h:selectOneMenu>
						<x:message for="prozess" style="color: red" detailFormat="#{msgs.keinProjektAngegeben}" />
					</h:panelGroup>

					<%-- Ausgabename
				<h:outputLabel for="ausgabename" value="#{msgs.ausgabename}" />
				<h:panelGroup>
					<h:inputText id="ausgabename"
						style="width: 300px;margin-right:15px"
						value="#{ProzessverwaltungForm.myProzess.ausgabename}" />
					<x:message for="ausgabename" style="color: red" />
				</h:panelGroup>
 --%>
					<%-- Preferences --%>
					<h:outputLabel for="Regelsatz" value="#{msgs.regelsatz}" />
					<h:panelGroup>
						<h:selectOneMenu id="Regelsatz" value="#{ProzessverwaltungForm.myProzess.regelsatz}" converter="RegelsatzConverter"
							style="width: 300px;margin-right:15px" required="true">
							<f:selectItems value="#{HelperForm.regelsaetze}" />
						</h:selectOneMenu>
						<x:message for="Regelsatz" style="color: red" replaceIdWithLabel="true" />
					</h:panelGroup>

					<h:outputLabel for="Docket" value="#{msgs.docket}" />
					<h:panelGroup>
						<h:selectOneMenu id="docket" style="width: 300px;margin-right:15px" value="#{ProzessverwaltungForm.myProzess.docket}"
							converter="DocketConverter">
<%-- 							<f:selectItem itemValue="" itemLabel="#{msgs.defaultDocket}" /> --%>
							<f:selectItems value="#{HelperForm.dockets}" />
						</h:selectOneMenu>
					</h:panelGroup>

					<h:outputText value="#{msgs.inAuswahllisteAnzeigen}" />
					<h:selectBooleanCheckbox value="#{ProzessverwaltungForm.myProzess.inAuswahllisteAnzeigen}" />

					<h:outputText value="#{msgs.istTemplate}" />
					<h:selectBooleanCheckbox id="check" value="#{ProzessverwaltungForm.myProzess.istTemplate}" />
				</h:panelGrid>

			</htm:td>
		</htm:tr>

		<htm:tr>
			<htm:td styleClass="eingabeBoxen_row3" align="left">
				<h:commandButton value="#{msgs.abbrechen}" immediate="true" action="#{NavigationForm.Reload}">
					<x:updateActionListener property="#{ProzessverwaltungForm.modusBearbeiten}" value="" />
				</h:commandButton>
			</htm:td>
			<htm:td styleClass="eingabeBoxen_row3" align="right">
				<h:commandButton value="#{msgs.contentLoeschen}" action="#{ProzessverwaltungForm.ContentLoeschen}"
					onclick="return confirm('#{msgs.sollDerContentWirklichGeloeschtWerden}?')" rendered="#{ProzessverwaltungForm.myProzess.id != null}" />
				<h:commandButton value="#{msgs.loeschen}" action="#{ProzessverwaltungForm.Loeschen}"
					onclick="return confirm('#{msgs.sollDieserEintragWirklichGeloeschtWerden}?')" rendered="#{ProzessverwaltungForm.myProzess.id != null}" />
				<h:commandButton value="#{msgs.speichern}" action="#{ProzessverwaltungForm.Speichern}" id="absenden">
					<x:updateActionListener property="#{ProzessverwaltungForm.modusBearbeiten}" value="" />
				</h:commandButton>
			</htm:td>
		</htm:tr>

	</htm:table>
</h:form>
<%-- // Box für die Bearbeitung der Details --%>

<h:outputText value="<script src=\"" escape="false" />
<h:outputText value="#{HelperForm.servletPathWithHostAsUrl}/js/tiny_mce/tiny_mce.js" />
<h:outputText value="\" type=\"text/javascript\">" escape="false"/>
<h:outputText value="</script>" escape="false" />

<script type="text/javascript">
	tinyMCE
			.init({
				mode : "exact",
				elements : "htmleditorform:myTextArea",
				theme : "advanced",
				width : "100%",
				height : "200px",
				plugins : "safari,pagebreak,style,table,save,advhr,emotions,iespell,inlinepopups,insertdatetime,preview,print,contextmenu,paste,fullscreen,noneditable,visualchars,nonbreaking",
				readonly : 1,

				// Theme options
				theme_advanced_buttons1 : "save,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,fontsizeselect",
				theme_advanced_buttons2 : "",
				theme_advanced_buttons3 : "",
				theme_advanced_toolbar_location : "top",
				theme_advanced_toolbar_align : "left",
				theme_advanced_statusbar_location : "bottom",
				theme_advanced_resizing : true
			});
</script>