Mercurial > hg > LGServices
comparison src/main/webapp/pages/home.jsp @ 58:b8ad346e39a0
new: modify based on doc 'Improving LGServices interface.docx': user workflow improvement, functions like adding task into a topic and search suggestions.
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Mon, 02 May 2016 12:03:30 +0200 |
parents | 5cbe567a9c52 |
children | 90d5e86c157d |
comparison
equal
deleted
inserted
replaced
57:5cbe567a9c52 | 58:b8ad346e39a0 |
---|---|
1 <%@page import="de.mpiwg.gazetteer.bo.LGBranch"%> | 1 <%@page import="de.mpiwg.gazetteer.bo.LGBranch"%> |
2 <%@page import="de.mpiwg.gazetteer.bo.LGTopicSectionRelation"%> | |
2 <%@page import="org.apache.commons.lang.StringUtils"%> | 3 <%@page import="org.apache.commons.lang.StringUtils"%> |
3 <%@page import="de.mpiwg.gazetteer.db.DBSection"%> | 4 <%@page import="de.mpiwg.gazetteer.db.DBSection"%> |
4 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> | 5 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> |
5 | 6 |
6 <jsp:useBean id="sessionBean" class="de.mpiwg.web.jsp.SessionBean" scope="session" /> | 7 <jsp:useBean id="sessionBean" class="de.mpiwg.web.jsp.SessionBean" scope="session" /> |
7 | 8 |
8 <html> | 9 <html> |
9 | 10 |
10 <head> | 11 <head> |
11 <jsp:include page="../componentes/headContent.jsp"/> | 12 <jsp:include page="../componentes/headContent.jsp"/> |
12 | 13 <script> |
14 | |
15 $(function() { | |
16 | |
17 | |
18 $( ".addSectionToTopic" ).click(function() { | |
19 var sectionId = $( this ).data('section-id'); | |
20 console.log("addSectionToTopic. sectionId = " + sectionId); | |
21 | |
22 var url0 = "<%=sessionBean.getApplicationBean().getRootServer()%>/methods/addSectionToTopic.jsp?sectionId=" + sectionId + "&sourceBean=home"; | |
23 | |
24 $.ajax( url0 ) | |
25 .done(function(data) { | |
26 $( "#dialogAddSectionToTopicTable" ).replaceWith(data); | |
27 dialogAddSectionToTopic.dialog( "open" ); | |
28 }) | |
29 .fail(function() { | |
30 console.error("Error calling: " + query); | |
31 }) | |
32 | |
33 }); | |
34 | |
35 | |
36 var dialogAddSectionToTopic = $("#dialogAddSectionToTopic").dialog({ | |
37 position: { my: "center", at: "top+400", of: window }, // TODO show dialog at cursor position? | |
38 autoOpen: false | |
39 }); | |
40 | |
41 | |
42 | |
43 $("#level1Filter").autocomplete({ | |
44 source : function(request, response) { | |
45 $.ajax({ | |
46 url : "<%=sessionBean.getApplicationBean().getRootServer()%>/methods/taskLevel1Autocomplete.jsp", | |
47 type : "POST", | |
48 dataType : "json", | |
49 data : { | |
50 term : request.term | |
51 }, | |
52 success : function(data) { | |
53 | |
54 response($.map(data, function(item) { | |
55 return { | |
56 label : item.name, | |
57 value : item.value, | |
58 } | |
59 })); | |
60 }, | |
61 error : function(error) { | |
62 alert('error: ' + error); | |
63 } | |
64 }); | |
65 }, | |
66 minLength : 0 | |
67 }); | |
68 | |
69 $("#level2Filter").autocomplete({ | |
70 source : function(request, response) { | |
71 $.ajax({ | |
72 url : "<%=sessionBean.getApplicationBean().getRootServer()%>/methods/taskLevel2Autocomplete.jsp", | |
73 type : "POST", | |
74 dataType : "json", | |
75 data : { | |
76 term : request.term | |
77 }, | |
78 success : function(data) { | |
79 | |
80 response($.map(data, function(item) { | |
81 return { | |
82 label : item.name, | |
83 value : item.value, | |
84 } | |
85 })); | |
86 }, | |
87 error : function(error) { | |
88 alert('error: ' + error); | |
89 } | |
90 }); | |
91 }, | |
92 minLength : 0 | |
93 }); | |
94 | |
95 | |
96 $("#bookNameFilter").autocomplete({ | |
97 source : function(request, response) { | |
98 $.ajax({ | |
99 url : "<%=sessionBean.getApplicationBean().getRootServer()%>/methods/taskBookNameAutocomplete.jsp", | |
100 type : "POST", | |
101 dataType : "json", | |
102 data : { | |
103 term : request.term | |
104 }, | |
105 success : function(data) { | |
106 | |
107 response($.map(data, function(item) { | |
108 return { | |
109 label : item.name, | |
110 value : item.value, | |
111 } | |
112 })); | |
113 }, | |
114 error : function(error) { | |
115 alert('error: ' + error); | |
116 } | |
117 }); | |
118 }, | |
119 minLength : 0 | |
120 }); | |
121 | |
122 | |
123 $("#dynastyFilter").autocomplete({ | |
124 source : function(request, response) { | |
125 $.ajax({ | |
126 url : "<%=sessionBean.getApplicationBean().getRootServer()%>/methods/taskDynastyAutocomplete.jsp", | |
127 type : "POST", | |
128 dataType : "json", | |
129 data : { | |
130 term : request.term | |
131 }, | |
132 success : function(data) { | |
133 | |
134 response($.map(data, function(item) { | |
135 return { | |
136 label : item.name, | |
137 value : item.value, | |
138 } | |
139 })); | |
140 }, | |
141 error : function(error) { | |
142 alert('error: ' + error); | |
143 } | |
144 }); | |
145 }, | |
146 minLength : 0 | |
147 }); | |
148 | |
149 $("#periodFilter").autocomplete({ | |
150 source : function(request, response) { | |
151 $.ajax({ | |
152 url : "<%=sessionBean.getApplicationBean().getRootServer()%>/methods/taskPeriodAutocomplete.jsp", | |
153 type : "POST", | |
154 dataType : "json", | |
155 data : { | |
156 term : request.term | |
157 }, | |
158 success : function(data) { | |
159 | |
160 response($.map(data, function(item) { | |
161 return { | |
162 label : item.name, | |
163 value : item.value, | |
164 } | |
165 })); | |
166 }, | |
167 error : function(error) { | |
168 alert('error: ' + error); | |
169 } | |
170 }); | |
171 }, | |
172 minLength : 0 | |
173 }); | |
174 | |
175 $("#adminTypeFilter").autocomplete({ | |
176 source : function(request, response) { | |
177 $.ajax({ | |
178 url : "<%=sessionBean.getApplicationBean().getRootServer()%>/methods/taskAdminTypeAutocomplete.jsp", | |
179 type : "POST", | |
180 dataType : "json", | |
181 data : { | |
182 term : request.term | |
183 }, | |
184 success : function(data) { | |
185 | |
186 response($.map(data, function(item) { | |
187 return { | |
188 label : item.name, | |
189 value : item.value, | |
190 } | |
191 })); | |
192 }, | |
193 error : function(error) { | |
194 alert('error: ' + error); | |
195 } | |
196 }); | |
197 }, | |
198 minLength : 0 | |
199 }); | |
200 | |
201 $("#sectionNameFilter").autocomplete({ | |
202 source : function(request, response) { | |
203 $.ajax({ | |
204 url : "<%=sessionBean.getApplicationBean().getRootServer()%>/methods/taskSectionNameAutocomplete.jsp", | |
205 type : "POST", | |
206 dataType : "json", | |
207 data : { | |
208 term : request.term | |
209 }, | |
210 success : function(data) { | |
211 | |
212 response($.map(data, function(item) { | |
213 return { | |
214 label : item.name, | |
215 value : item.value, | |
216 } | |
217 })); | |
218 }, | |
219 error : function(error) { | |
220 alert('error: ' + error); | |
221 } | |
222 }); | |
223 }, | |
224 minLength : 0 | |
225 }); | |
226 | |
227 $("#labelFilter").autocomplete({ | |
228 source : function(request, response) { | |
229 $.ajax({ | |
230 url : "<%=sessionBean.getApplicationBean().getRootServer()%>/methods/taskLabelAutocomplete.jsp", | |
231 type : "POST", | |
232 dataType : "json", | |
233 data : { | |
234 term : request.term | |
235 }, | |
236 success : function(data) { | |
237 | |
238 response($.map(data, function(item) { | |
239 return { | |
240 label : item.name, | |
241 value : item.value, | |
242 } | |
243 })); | |
244 }, | |
245 error : function(error) { | |
246 alert('error: ' + error); | |
247 } | |
248 }); | |
249 }, | |
250 minLength : 0 | |
251 }); | |
252 | |
253 }); | |
254 | |
255 </script> | |
13 </head> | 256 </head> |
14 | 257 |
15 <body> | 258 <body> |
16 | 259 |
17 <jsp:include page="../componentes/template.jsp"/> | 260 <jsp:include page="../componentes/template.jsp"/> |
18 | 261 |
262 <div id="dialogAddSectionToTopic" title="Add Section(s) into Topic:"> | |
263 <div id="dialogAddSectionToTopicTable"></div> | |
264 </div> | |
265 | |
19 <div id="page"> | 266 <div id="page"> |
20 | 267 |
21 <% if(sessionBean.getUser() == null) { %> | 268 <% if(sessionBean.getUser() == null) { %> |
22 <label class="subTitel">You must login!</label> | 269 <label class="subTitel">You must login!</label> |
23 <% } else { | 270 <% } else { |
24 | 271 |
25 if (sessionBean.getHomePage().getCompleteBranchList() == null){ | 272 if (sessionBean.getHomePage().getCompleteBranchList() == null){ |
26 sessionBean.getHomePage().loadParameters(request, response); | 273 sessionBean.getHomePage().loadParameters(request, response); |
27 sessionBean.getHomePage().reloadBranches(); | 274 //sessionBean.getHomePage().reloadBranches(); |
28 } | 275 } |
29 /* | |
30 sessionBean.getHomePage().loadParameters(request, response); | |
31 sessionBean.getHomePage().reloadBranches(); | 276 sessionBean.getHomePage().reloadBranches(); |
32 */ | 277 |
33 %> | 278 %> |
34 | 279 |
35 | 280 |
36 | 281 |
37 | 282 |
38 <% if(sessionBean.getHomePage().getCompleteBranchList().isEmpty()) { %> | 283 <% if(sessionBean.getHomePage().getCompleteBranchList().isEmpty()) { %> |
39 <label class="subTitel">You have no task!</label> | 284 <label class="subTitel">You have no task!</label> |
40 <% } else { %> | 285 <% } else { %> |
41 | 286 |
42 <form name="homeForm" method="post" | 287 <form name="homeForm" method="post" |
43 action="<%=sessionBean.getApplicationBean().getRootServer()%>/proxy.jsp" > | 288 action="<%=sessionBean.getApplicationBean().getRootServer()%>/proxy.jsp" > |
44 <input name="bean" type="hidden" value="homeBean" /> | 289 <input name="bean" type="hidden" value="homeBean" /> |
45 | 290 |
46 <div class="subTitel">Your Task | 291 <div class="subTitel">Your Tasks |
47 <input type="image" | 292 <input type="image" |
48 onclick="setAction('forceReloadBranches', 'homeForm');" | 293 onclick="setAction('forceReloadBranches', 'homeForm');" |
49 src="<%=sessionBean.getApplicationBean().getRefreshImage()%>" width="20" height="20"/> | 294 src="<%=sessionBean.getApplicationBean().getRefreshImage()%>" width="20" height="20"/> |
50 | 295 |
51 <p class="label">You have <%= sessionBean.getHomePage().getBranchNumber() %> tasks.</p> | 296 <p class="label">You have <%= sessionBean.getHomePage().getBranchNumber() %> tasks.</p> |
56 </jsp:include> | 301 </jsp:include> |
57 | 302 |
58 <div class="tableDiv double-scroll"> | 303 <div class="tableDiv double-scroll"> |
59 <table class="pageTable" > | 304 <table class="pageTable" > |
60 <tr> | 305 <tr> |
306 <!-- remove this to save space | |
61 <td> | 307 <td> |
62 <table class="sortTable"> | 308 <table class="sortTable"> |
63 <tr> | 309 <tr> |
64 <td><label class="tableTitle">Task ID</label></td> | 310 <td><label class="tableTitle">Task ID</label></td> |
65 <td> | 311 <td> |
77 </table> | 323 </table> |
78 </td> | 324 </td> |
79 </tr> | 325 </tr> |
80 </table> | 326 </table> |
81 </td> | 327 </td> |
328 --> | |
329 <td> | |
330 <table class="sortTable"> | |
331 <tr> | |
332 <td><label class="tableTitle">Book ID</label></td> | |
333 <td> | |
334 <table> | |
335 <tr><td> | |
336 <input type="image" | |
337 onclick="setAction('sortByBookIdUp', 'homeForm');" | |
338 src="<%=sessionBean.getApplicationBean().getUpImage()%>"/> | |
339 </td></tr> | |
340 <tr><td> | |
341 <input type="image" | |
342 onclick="setAction('sortByBookIdDown', 'homeForm');" | |
343 src="<%=sessionBean.getApplicationBean().getDownImage()%>"/> | |
344 </td></tr> | |
345 </table> | |
346 </td> | |
347 </tr> | |
348 <tr> | |
349 <td> | |
350 <input type="text" name="bookIdFilter" value="<%= sessionBean.getHomePage().getBookIdFilter()%>" size="8"/> | |
351 </td> | |
352 <td> | |
353 <input type="image" | |
354 onclick="setAction('filter', 'homeForm');" | |
355 src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/> | |
356 </td> | |
357 </tr> | |
358 </table> | |
359 </td> | |
360 <td> | |
361 <table class="sortTable"> | |
362 <tr> | |
363 <td><label class="tableTitle">Book Name</label></td> | |
364 <td> | |
365 <table> | |
366 <tr><td> | |
367 <input type="image" | |
368 onclick="setAction('sortByBookNameUp', 'homeForm');" | |
369 src="<%=sessionBean.getApplicationBean().getUpImage()%>"/> | |
370 </td></tr> | |
371 <tr><td> | |
372 <input type="image" | |
373 onclick="setAction('sortByBookNameDown', 'homeForm');" | |
374 src="<%=sessionBean.getApplicationBean().getDownImage()%>"/> | |
375 </td></tr> | |
376 </table> | |
377 </td> | |
378 </tr> | |
379 <tr> | |
380 <td> | |
381 <input type="text" name="bookNameFilter" id="bookNameFilter" value="<%= sessionBean.getHomePage().getBookNameFilter()%>" size="8"/> | |
382 </td> | |
383 <td> | |
384 <input type="image" | |
385 onclick="setAction('filter', 'homeForm');" | |
386 src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/> | |
387 </td> | |
388 </tr> | |
389 </table> | |
390 </td> | |
82 | 391 |
83 <td> | 392 <td> |
84 <table class="sortTable"> | 393 <table class="sortTable"> |
85 <tr> | 394 <tr> |
86 <td><label class="tableTitle">Book ID</label></td> | |
87 <td> | |
88 <table> | |
89 <tr><td> | |
90 <input type="image" | |
91 onclick="setAction('sortByBookIdUp', 'homeForm');" | |
92 src="<%=sessionBean.getApplicationBean().getUpImage()%>"/> | |
93 </td></tr> | |
94 <tr><td> | |
95 <input type="image" | |
96 onclick="setAction('sortByBookIdDown', 'homeForm');" | |
97 src="<%=sessionBean.getApplicationBean().getDownImage()%>"/> | |
98 </td></tr> | |
99 </table> | |
100 </td> | |
101 </tr> | |
102 <tr> | |
103 <td> | |
104 <input type="text" name="bookIdFilter" value="<%= sessionBean.getHomePage().getBookIdFilter()%>" size="8"/> | |
105 </td> | |
106 <td> | |
107 <input type="image" | |
108 onclick="setAction('filter', 'homeForm');" | |
109 src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/> | |
110 </td> | |
111 </tr> | |
112 </table> | |
113 </td> | |
114 <td> | |
115 <table class="sortTable"> | |
116 <tr> | |
117 <td><label class="tableTitle">Book Name</label></td> | |
118 <td> | |
119 <table> | |
120 <tr><td> | |
121 <input type="image" | |
122 onclick="setAction('sortByBookNameUp', 'homeForm');" | |
123 src="<%=sessionBean.getApplicationBean().getUpImage()%>"/> | |
124 </td></tr> | |
125 <tr><td> | |
126 <input type="image" | |
127 onclick="setAction('sortByBookNameDown', 'homeForm');" | |
128 src="<%=sessionBean.getApplicationBean().getDownImage()%>"/> | |
129 </td></tr> | |
130 </table> | |
131 </td> | |
132 </tr> | |
133 <tr> | |
134 <td> | |
135 <input type="text" name="bookNameFilter" value="<%= sessionBean.getHomePage().getBookNameFilter()%>" size="8"/> | |
136 </td> | |
137 <td> | |
138 <input type="image" | |
139 onclick="setAction('filter', 'homeForm');" | |
140 src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/> | |
141 </td> | |
142 </tr> | |
143 </table> | |
144 </td> | |
145 | |
146 <td> | |
147 <table class="sortTable"> | |
148 <tr> | |
149 <td><label class="tableTitle">Level 1</label></td> | 395 <td><label class="tableTitle">Level 1</label></td> |
150 <td> | 396 <td> |
151 <table> | 397 <table> |
152 <tr><td> | 398 <tr><td> |
153 <input type="image" | 399 <input type="image" |
162 </table> | 408 </table> |
163 </td> | 409 </td> |
164 </tr> | 410 </tr> |
165 <tr> | 411 <tr> |
166 <td> | 412 <td> |
167 <input type="text" name="level1Filter" value="<%= sessionBean.getHomePage().getLevel1Filter()%>" size="8"/> | 413 <input type="text" class="filterInput" name="level1Filter" id="level1Filter" value="<%= sessionBean.getHomePage().getLevel1Filter()%>" size="8"/> |
168 </td> | 414 </td> |
169 <td> | 415 <td> |
170 <input type="image" | 416 <input type="image" |
171 onclick="setAction('filter', 'homeForm');" | 417 onclick="setAction('filter', 'homeForm');" |
172 src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/> | 418 src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/> |
193 </table> | 439 </table> |
194 </td> | 440 </td> |
195 </tr> | 441 </tr> |
196 <tr> | 442 <tr> |
197 <td> | 443 <td> |
198 <input type="text" name="level2Filter" value="<%= sessionBean.getHomePage().getLevel2Filter()%>" size="8"/> | 444 <input type="text" name="level2Filter" id="level2Filter" value="<%= sessionBean.getHomePage().getLevel2Filter()%>" size="8"/> |
199 </td> | 445 </td> |
200 <td> | 446 <td> |
201 <input type="image" | 447 <input type="image" |
202 onclick="setAction('filter', 'homeForm');" | 448 onclick="setAction('filter', 'homeForm');" |
203 src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/> | 449 src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/> |
224 </table> | 470 </table> |
225 </td> | 471 </td> |
226 </tr> | 472 </tr> |
227 <tr> | 473 <tr> |
228 <td> | 474 <td> |
229 <input type="text" name="dynastyFilter" value="<%= sessionBean.getHomePage().getDynastyFilter()%>" size="8"/> | 475 <input type="text" name="dynastyFilter" id="dynastyFilter" value="<%= sessionBean.getHomePage().getDynastyFilter()%>" size="8"/> |
230 </td> | 476 </td> |
231 <td> | 477 <td> |
232 <input type="image" | 478 <input type="image" |
233 onclick="setAction('filter', 'homeForm');" | 479 onclick="setAction('filter', 'homeForm');" |
234 src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/> | 480 src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/> |
255 </table> | 501 </table> |
256 </td> | 502 </td> |
257 </tr> | 503 </tr> |
258 <tr> | 504 <tr> |
259 <td> | 505 <td> |
260 <input type="text" name="periodFilter" value="<%= sessionBean.getHomePage().getPeriodFilter()%>" size="8"/> | 506 <input type="text" name="periodFilter" id="periodFilter" value="<%= sessionBean.getHomePage().getPeriodFilter()%>" size="8"/> |
261 </td> | 507 </td> |
262 <td> | 508 <td> |
263 <input type="image" | 509 <input type="image" |
264 onclick="setAction('filter', 'homeForm');" | 510 onclick="setAction('filter', 'homeForm');" |
265 src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/> | 511 src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/> |
286 </table> | 532 </table> |
287 </td> | 533 </td> |
288 </tr> | 534 </tr> |
289 <tr> | 535 <tr> |
290 <td> | 536 <td> |
291 <input type="text" name="adminTypeFilter" value="<%= sessionBean.getHomePage().getAdminTypeFilter()%>" size="8"/> | 537 <input type="text" name="adminTypeFilter" id="adminTypeFilter" value="<%= sessionBean.getHomePage().getAdminTypeFilter()%>" size="8"/> |
292 </td> | 538 </td> |
293 <td> | 539 <td> |
294 <input type="image" | 540 <input type="image" |
295 onclick="setAction('filter', 'homeForm');" | 541 onclick="setAction('filter', 'homeForm');" |
296 src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/> | 542 src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/> |
317 </table> | 563 </table> |
318 </td> | 564 </td> |
319 </tr> | 565 </tr> |
320 <tr> | 566 <tr> |
321 <td> | 567 <td> |
322 <input type="text" name="sectionNameFilter" value="<%= sessionBean.getHomePage().getSectionNameFilter()%>" size="8"/> | 568 <input type="text" name="sectionNameFilter" id="sectionNameFilter" value="<%= sessionBean.getHomePage().getSectionNameFilter()%>" size="8"/> |
323 </td> | 569 </td> |
324 <td> | 570 <td> |
325 <input type="image" | 571 <input type="image" |
326 onclick="setAction('filter', 'homeForm');" | 572 onclick="setAction('filter', 'homeForm');" |
327 src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/> | 573 src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/> |
369 </table> | 615 </table> |
370 </td> | 616 </td> |
371 </tr> | 617 </tr> |
372 <tr> | 618 <tr> |
373 <td> | 619 <td> |
374 <input type="text" name="labelFilter" size="20" value="<%= sessionBean.getHomePage().getLabelFilter()%>" size="8"/> | 620 <input type="text" name="labelFilter" id="labelFilter" size="20" value="<%= sessionBean.getHomePage().getLabelFilter()%>" size="8"/> |
375 </td> | 621 </td> |
376 <td> | 622 <td> |
377 <input type="image" | 623 <input type="image" |
378 onclick="setAction('filter', 'homeForm');" | 624 onclick="setAction('filter', 'homeForm');" |
379 src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/> | 625 src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/> |
383 </td> | 629 </td> |
384 <td><label class="tableTitle">Contributors</label></td> | 630 <td><label class="tableTitle">Contributors</label></td> |
385 <td> | 631 <td> |
386 <table class="sortTable"> | 632 <table class="sortTable"> |
387 <tr> | 633 <tr> |
388 <td><label class="tableTitle">Last Modified</label></td> | 634 <td><label class="tableTitle">Last Saved</label></td> |
389 <td> | 635 <td> |
390 <table> | 636 <table> |
391 <tr><td> | 637 <tr><td> |
392 <input type="image" | 638 <input type="image" |
393 onclick="setAction('sortByLastModifiedUp', 'homeForm');" | 639 onclick="setAction('sortByLastModifiedUp', 'homeForm');" |
402 </td> | 648 </td> |
403 </tr> | 649 </tr> |
404 | 650 |
405 </table> | 651 </table> |
406 </td> | 652 </td> |
407 <td><label class="tableTitle">Extraction Interface</label></td> | 653 <td><label class="tableTitle">Load Text</label></td> |
408 <td> | 654 <td> |
409 <table class="sortTable"> | 655 <table class="sortTable"> |
410 <tr> | 656 <tr> |
411 <td><label class="tableTitle">Published in Dataverse</label></td> | 657 <td><label class="tableTitle">Published in Dataverse</label></td> |
412 <td> | 658 <td> |
428 </table> | 674 </table> |
429 | 675 |
430 </td> | 676 </td> |
431 | 677 |
432 <td><label class="tableTitle">Manage</label></td> | 678 <td><label class="tableTitle">Manage</label></td> |
679 <td><label class="tableTitle">Add to Topic</label></td> | |
433 <td><label class="tableTitle">Delete</label></td> | 680 <td><label class="tableTitle">Delete</label></td> |
434 </tr> | 681 </tr> |
435 | 682 |
436 <% for (LGBranch branch : sessionBean.getHomePage().getDisplayBranchList() ) { | 683 <% for (LGBranch branch : sessionBean.getHomePage().getDisplayBranchList() ) { |
437 %> | 684 %> |
438 <tr> | 685 <tr> |
439 <td><%=branch.getId() %></td> | |
440 <td><%=branch.getBook().getId() %></td> | 686 <td><%=branch.getBook().getId() %></td> |
441 <td><%=branch.getBook().getName() %></td> | 687 <td><%=branch.getBook().getName() %></td> |
442 <td><%=branch.getBook().getLevel1() %></td> | 688 <td><%=branch.getBook().getLevel1() %></td> |
443 <td><%=branch.getBook().getLevel2() %></td> | 689 <td><%=branch.getBook().getLevel2() %></td> |
444 <td><%=branch.getBook().getDynasty() %></td> | 690 <td><%=branch.getBook().getDynasty() %></td> |
459 <% } %> | 705 <% } %> |
460 </table> | 706 </table> |
461 </td> | 707 </td> |
462 <td><%=branch.getFomattedLastChange() %></td> | 708 <td><%=branch.getFomattedLastChange() %></td> |
463 <td> | 709 <td> |
464 <a onclick="branchInExtractionInterface('<%=branch.getId() %>', '<%=branch.getCurrentLastFileId() %>', '<%=branch.getSectionId() %>', '<%=branch.getSection().getName() %>', '<%=branch.getBook().getId() %>', '<%=branch.getBook().getName() %>', '<%=sessionBean.getUser().getId() %>', '<%=sessionBean.getApplicationBean().getExtractionInterfaceUrl() %>');"> | 710 <a onclick="branchInExtractionInterface('<%=branch.getId() %>', '<%=branch.getCurrentLastFileId() %>', '<%=branch.getSectionId() %>', '<%=branch.getSection().getName() %>', '<%=branch.getBook().getId() %>', '<%=branch.getBook().getName() %>', '<%=sessionBean.getUser().getId() %>', '<%=sessionBean.getApplicationBean().getExtractionInterfaceUrl()%>');"> |
465 <img title="Show Task in Extraction Interface" src="<%=sessionBean.getApplicationBean().getShowImage()%>"/> | 711 <img title="Show Task in Extraction Interface" src="<%=sessionBean.getApplicationBean().getShowImage()%>"/> |
466 </a> | 712 </a> |
467 </td> | 713 </td> |
468 <!-- Dataverse --> | 714 <!-- Dataverse --> |
469 <td> | 715 <td> |
470 <%= (branch.isPublished()) ? "V":"" %> | 716 <%= (branch.isPublished()) ? "V":"" %> |
471 </td> | 717 </td> |
718 | |
719 <!-- Manage --> | |
472 <td> | 720 <td> |
473 <a href="<%=sessionBean.getApplicationBean().getRootServer() %>/pages/branchPage.jsp?branchId=<%=branch.getId() %>" > | 721 <a href="<%=sessionBean.getApplicationBean().getRootServer() %>/pages/branchPage.jsp?branchId=<%=branch.getId() %>" > |
474 <img title="Manage the task" src="<%=sessionBean.getApplicationBean().getEditBranchImage()%>"/> | 722 <img title="Manage the task" src="<%=sessionBean.getApplicationBean().getEditBranchImage()%>"/> |
475 </a> | 723 </a> |
476 </td> | 724 </td> |
725 | |
726 <!-- Add to Topic --> | |
727 <td style="max-width:300px;"> | |
728 <!-- existing topic --> | |
729 <% if(branch.getSection().getTopicSectionRelation() != null && !branch.getSection().getTopicSectionRelation().isEmpty()) { %> | |
730 <lable>Already in topic: </lable> | |
731 <table style="width:100%"> | |
732 <% for(LGTopicSectionRelation relation : branch.getSection().getTopicSectionRelation()) { %> | |
733 <tr> | |
734 <td> | |
735 <table style="width:100%; min-width:100px"> | |
736 <tr><td><%=relation.getTopic().info() %></td></tr> | |
737 </table> | |
738 </td> | |
739 <td style="max-width:150px"> | |
740 | |
741 <a href="<%=sessionBean.getApplicationBean().getRootServer() %>/pages/topicPage.jsp?topicId=<%=relation.getTopicId() %>" > | |
742 <img title="Manage Topic" src="<%=sessionBean.getApplicationBean().getEditBranchImage()%>"/> | |
743 </a> | |
744 | |
745 </td> | |
746 </tr> | |
747 <% } %> | |
748 </table> | |
749 <% } %> | |
750 | |
751 <img width="10" height="10" title="Add the section to Topic" src="<%=sessionBean.getApplicationBean().getPlusImage()%>" data-section-id="<%=branch.getSection().getId()%>" class="addSectionToTopic"> | |
752 | |
753 </td> | |
754 | |
755 <!-- Delete --> | |
477 <td> | 756 <td> |
478 <input type="image" title="Delete it" | 757 <input type="image" title="Delete it" |
479 onclick="<%=sessionBean.getApplicationBean().getJSConfirmationDelete() %> deleteBranch('deleteBranch', 'homeForm', '<%=branch.getId() %>');" | 758 onclick="<%=sessionBean.getApplicationBean().getJSConfirmationDelete() %> deleteBranch('deleteBranch', 'homeForm', '<%=branch.getId() %>');" |
480 src="<%=sessionBean.getApplicationBean().getDeleteImage()%>"/> | 759 src="<%=sessionBean.getApplicationBean().getDeleteImage()%>"/> |
481 </td> | 760 </td> |