Mercurial > hg > LGServices
comparison src/main/webapp/pages/fullTextSearch.jsp @ 62:824b808a7481
improvements and bug fixed
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Mon, 18 Jul 2016 17:35:32 +0200 |
parents | bc0219c2600b |
children | 0a9937b06cc3 |
comparison
equal
deleted
inserted
replaced
61:2486846e61d5 | 62:824b808a7481 |
---|---|
3 <%@page import="de.mpiwg.gazetteer.bo.LGFullTextSearchFile"%> | 3 <%@page import="de.mpiwg.gazetteer.bo.LGFullTextSearchFile"%> |
4 | 4 |
5 | 5 |
6 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> | 6 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> |
7 | 7 |
8 <jsp:useBean id="sessionBean" class="de.mpiwg.web.jsp.SessionBean" scope="session" /> | 8 <jsp:useBean id="sessionBean" class="de.mpiwg.web.jsp.SessionBean" |
9 | 9 scope="session" /> |
10 | |
10 | 11 |
11 <html> | 12 <html> |
12 | 13 |
13 <head> | 14 <head> |
14 | 15 |
15 <jsp:include page="../componentes/headContent.jsp"/> | 16 <jsp:include page="../componentes/headContent.jsp" /> |
16 | 17 |
17 <script> | 18 <script> |
18 | 19 |
19 | 20 |
20 $(function() { | 21 $(function() { |
21 $( "#dialogMoreInfo" ).dialog({ | 22 $( "#dialogMoreInfo" ).dialog({ |
22 autoOpen: false, | 23 autoOpen: false, |
44 } | 45 } |
45 | 46 |
46 dialogSave.dialog( "open" ); | 47 dialogSave.dialog( "open" ); |
47 }); | 48 }); |
48 | 49 |
50 | |
51 | |
52 $("#prompToSaveResult").click( function () { | |
53 $("#saveResult").click(); | |
54 }); | |
49 | 55 |
50 | 56 |
51 var dialogViewSavedResult = $("#dialogViewSavedResult").dialog( | 57 var dialogViewSavedResult = $("#dialogViewSavedResult").dialog( |
52 { | 58 { |
53 autoOpen: false, | 59 autoOpen: false, |
334 </script> | 340 </script> |
335 </head> | 341 </head> |
336 | 342 |
337 <body> | 343 <body> |
338 | 344 |
339 <jsp:include page="../componentes/template.jsp"/> | 345 <jsp:include page="../componentes/template.jsp" /> |
340 | 346 |
341 <div id="dialogMoreInfo" title="Full Text Search Details"> </div> | 347 <div id="dialogMoreInfo" title="Full Text Search Details"></div> |
342 | 348 |
343 <div id="page"> | 349 <div id="page"> |
344 | 350 |
345 <% if(sessionBean.getUser() == null) { %> | 351 <% |
346 <label class="subTitel">You must login!</label> | 352 if (sessionBean.getUser() == null) { |
347 <% } else { | 353 %> |
348 | 354 <label class="subTitel">You must login!</label> |
349 if (sessionBean.getFullTextSearchPage().getFileList() == null){ | 355 <% |
350 sessionBean.getFullTextSearchPage().loadParameters(request, response); | 356 } else { |
351 sessionBean.getFullTextSearchPage().forceLoadFileList(); | 357 |
352 } | 358 if (sessionBean.getFullTextSearchPage().getFileList() == null) { |
353 | 359 sessionBean.getFullTextSearchPage().loadParameters(request, |
354 %> | 360 response); |
355 | 361 sessionBean.getFullTextSearchPage().forceLoadFileList(); |
356 <div id="dialogSave" title="Save Table:"> | 362 } |
357 | 363 %> |
358 <form name="saveTableForm" id="saveTableForm" | 364 |
359 action="<%= sessionBean.getApplicationBean().getRootServer()%>/proxy.jsp" | 365 <div id="dialogSave" title="Save Table:"> |
360 method="post"> | 366 |
361 <input name="bean" type="hidden" value="fullTextSearchBean" /> | 367 <form name="saveTableForm" id="saveTableForm" |
362 <table> | 368 action="<%=sessionBean.getApplicationBean().getRootServer()%>/proxy.jsp" |
363 <tr> | 369 method="post"> |
364 <td> | 370 <input name="bean" type="hidden" value="fullTextSearchBean" /> |
365 <input id="fileName" name="fileName" type="text" placeholder="table name" value="<%= sessionBean.getFullTextSearchPage().getFileName() %>"/> | 371 <table> |
366 </td> | 372 <tr> |
367 <td> | 373 <td><input id="fileName" name="fileName" type="text" |
368 <button onclick="setAction('save', 'saveTableForm'); document.getElementById('saveTableForm').submit();">Save</button> | 374 placeholder="table name" |
369 | 375 value="<%=sessionBean.getFullTextSearchPage().getFileName()%>" /> |
370 </td> | 376 </td> |
371 </tr> | 377 <td> |
372 </table> | 378 <button |
373 </form> | 379 onclick="setAction('save', 'saveTableForm'); document.getElementById('saveTableForm').submit();">Save</button> |
374 | 380 |
375 </div> | 381 </td> |
376 | |
377 <div id="dialogViewSavedResult" title="Saved Table(s)"> | |
378 | |
379 <div class="label">This week:</div> | |
380 <table class="savedResultTable"> | |
381 <tr> | |
382 <% for (LGFullTextSearchFile aFile : sessionBean.getFullTextSearchPage().getWeekFileList() ){%> | |
383 <td> | |
384 <div><%= aFile.getFileName() %></div> | |
385 <button type="button" class="lgButton" onclick="setAction0('loadFile', 'fullTextSearchForm', 'fileId', <%=aFile.getId() %>); document.getElementById('fullTextSearchForm').submit();">load</button> | |
386 | |
387 <!-- getFullTextSearchFileText?fileId= &userId= --> | |
388 | |
389 <!-- click searching result to open it in the same table of full-text-search result --> | |
390 <a href="<%=sessionBean.getApplicationBean().getRootServer() %>/rest/text/getFullTextSearchHtmlFile?fileId=<%= aFile.getId() %>" | |
391 target="_blank"> | |
392 <img title="Show text in html" src="<%=sessionBean.getApplicationBean().getShowImage()%>"/> | |
393 </a> | |
394 | |
395 <!-- download csv file --> | |
396 <a href="<%=sessionBean.getApplicationBean().getRootServer() %>/rest/text/downloadFullTextSearchCsvFile?file=<%=aFile.getUserId().toString()%>_<%=aFile.getFileName()%>.csv" | |
397 target="_blank"> | |
398 <img title="Download CSV" src="<%=sessionBean.getApplicationBean().getDownloadImage()%>"/> | |
399 </a> | |
400 | |
401 <!-- view on LGMap --> | |
402 <a href="<%=sessionBean.getApplicationBean().getLGMapUrl() %>&file=<%=aFile.getUserId().toString()%>_<%=aFile.getFileName()%>.csv&name=<%=aFile.getSearchTerms() %>" | |
403 target="_blank"> | |
404 <img title="View on LGMap" src="<%=sessionBean.getApplicationBean().getViewOnMap()%>"/> | |
405 </a> | |
406 | |
407 <input type="image" title="Delete it" | |
408 onclick="<%=sessionBean.getApplicationBean().getJSConfirmationDelete() %> setAction0('deleteFile', 'fullTextSearchForm', 'fileId','<%=aFile.getId() %>'); document.getElementById('fullTextSearchForm').submit();" | |
409 src="<%=sessionBean.getApplicationBean().getDeleteImage()%>"/> | |
410 | |
411 </td> | |
412 | |
413 <% } %> | |
414 </tr> | 382 </tr> |
415 </table> | 383 </table> |
416 | 384 </form> |
417 <div class="label">This month:</div> | 385 |
418 <table class="savedResultTable"> | 386 </div> |
387 | |
388 <div id="dialogViewSavedResult" title="Saved Table(s)"> | |
389 | |
390 <div class="label">This week:</div> | |
391 <table class="savedResultTable"> | |
419 <tr> | 392 <tr> |
420 <% for (LGFullTextSearchFile aFile : sessionBean.getFullTextSearchPage().getMonthFileList() ){ %> | 393 <% |
394 for (LGFullTextSearchFile aFile : sessionBean | |
395 .getFullTextSearchPage().getWeekFileList()) { | |
396 %> | |
421 <td> | 397 <td> |
422 <div><%= aFile.getFileName() %></div> | 398 <div><%=aFile.getFileName()%></div> |
423 <button type="button" class="lgButton" onclick="setAction0('loadFile', 'fullTextSearchForm', 'fileId', <%=aFile.getId() %>); document.getElementById('fullTextSearchForm').submit();">load</button> | 399 <button type="button" class="lgButton" |
424 | 400 onclick="setAction0('loadFile', 'fullTextSearchForm', 'fileId', <%=aFile.getId()%>); document.getElementById('fullTextSearchForm').submit();">load</button> |
425 <!-- getFullTextSearchFileText?fileId= &userId= --> | 401 |
426 | 402 <!-- getFullTextSearchFileText?fileId= &userId= --> <!-- click searching result to open it in the same table of full-text-search result --> |
427 <!-- click searching result to open it in the same table of full-text-search result --> | 403 <a |
428 <a href="<%=sessionBean.getApplicationBean().getRootServer() %>/rest/text/getFullTextSearchHtmlFile?fileId=<%= aFile.getId() %>" | 404 href="<%=sessionBean.getApplicationBean().getRootServer()%>/rest/text/getFullTextSearchHtmlFile?fileId=<%=aFile.getId()%>" |
429 target="_blank"> | 405 target="_blank"> <img title="Show text in html" |
430 <img title="Show text in html" src="<%=sessionBean.getApplicationBean().getShowImage()%>"/> | 406 src="<%=sessionBean.getApplicationBean().getShowImage()%>" /> |
431 </a> | 407 </a> <!-- download csv file --> <a |
432 | 408 href="<%=sessionBean.getApplicationBean().getRootServer()%>/rest/text/downloadFullTextSearchCsvFile?file=<%=aFile.getUserId().toString()%>_<%=aFile.getFileName()%>.csv" |
433 <!-- download csv file --> | 409 target="_blank"> <img title="Download CSV" |
434 <a href="<%=sessionBean.getApplicationBean().getRootServer() %>/rest/text/downloadFullTextSearchCsvFile?file=<%=aFile.getUserId().toString()%>_<%=aFile.getFileName()%>.csv" | 410 src="<%=sessionBean.getApplicationBean() |
435 target="_blank"> | 411 .getDownloadImage()%>" /> |
436 <img title="Download CSV" src="<%=sessionBean.getApplicationBean().getDownloadImage()%>"/> | 412 </a> <!-- view on LGMap --> <a |
437 </a> | 413 href="<%=sessionBean.getApplicationBean().getLGMapUrl()%>&file=<%=aFile.getUserId().toString()%>_<%=aFile.getFileName()%>.csv&name=<%=aFile.getSearchTerms()%>" |
438 | 414 target="_blank"> <img title="View on LGMap" |
439 <!-- view on LGMap --> | 415 src="<%=sessionBean.getApplicationBean().getViewOnMap()%>" /> |
440 <a href="<%=sessionBean.getApplicationBean().getLGMapUrl() %>&file=<%=aFile.getUserId().toString()%>_<%=aFile.getFileName()%>.csv&name=<%=aFile.getSearchTerms() %>" | 416 </a> <input type="image" title="Delete it" |
441 target="_blank"> | 417 onclick="<%=sessionBean.getApplicationBean() |
442 <img title="View on LGMap" src="<%=sessionBean.getApplicationBean().getViewOnMap()%>"/> | 418 .getJSConfirmationDelete()%> setAction0('deleteFile', 'fullTextSearchForm', 'fileId','<%=aFile.getId()%>'); document.getElementById('fullTextSearchForm').submit();" |
443 </a> | 419 src="<%=sessionBean.getApplicationBean().getDeleteImage()%>" /> |
444 | 420 |
445 <input type="image" title="Delete it" | 421 </td> |
446 onclick="<%=sessionBean.getApplicationBean().getJSConfirmationDelete() %> setAction0('deleteFile', 'fullTextSearchForm', 'fileId','<%=aFile.getId() %>'); document.getElementById('fullTextSearchForm').submit();" | 422 |
447 src="<%=sessionBean.getApplicationBean().getDeleteImage()%>"/> | 423 <% |
424 } | |
425 %> | |
426 </tr> | |
427 </table> | |
428 | |
429 <div class="label">This month:</div> | |
430 <table class="savedResultTable"> | |
431 <tr> | |
432 <% | |
433 for (LGFullTextSearchFile aFile : sessionBean | |
434 .getFullTextSearchPage().getMonthFileList()) { | |
435 %> | |
436 <td> | |
437 <div><%=aFile.getFileName()%></div> | |
438 <button type="button" class="lgButton" | |
439 onclick="setAction0('loadFile', 'fullTextSearchForm', 'fileId', <%=aFile.getId()%>); document.getElementById('fullTextSearchForm').submit();">load</button> | |
440 | |
441 <!-- getFullTextSearchFileText?fileId= &userId= --> <!-- click searching result to open it in the same table of full-text-search result --> | |
442 <a | |
443 href="<%=sessionBean.getApplicationBean().getRootServer()%>/rest/text/getFullTextSearchHtmlFile?fileId=<%=aFile.getId()%>" | |
444 target="_blank"> <img title="Show text in html" | |
445 src="<%=sessionBean.getApplicationBean().getShowImage()%>" /> | |
446 </a> <!-- download csv file --> <a | |
447 href="<%=sessionBean.getApplicationBean().getRootServer()%>/rest/text/downloadFullTextSearchCsvFile?file=<%=aFile.getUserId().toString()%>_<%=aFile.getFileName()%>.csv" | |
448 target="_blank"> <img title="Download CSV" | |
449 src="<%=sessionBean.getApplicationBean() | |
450 .getDownloadImage()%>" /> | |
451 </a> <!-- view on LGMap --> <a | |
452 href="<%=sessionBean.getApplicationBean().getLGMapUrl()%>&file=<%=aFile.getUserId().toString()%>_<%=aFile.getFileName()%>.csv&name=<%=aFile.getSearchTerms()%>" | |
453 target="_blank"> <img title="View on LGMap" | |
454 src="<%=sessionBean.getApplicationBean().getViewOnMap()%>" /> | |
455 </a> <input type="image" title="Delete it" | |
456 onclick="<%=sessionBean.getApplicationBean() | |
457 .getJSConfirmationDelete()%> setAction0('deleteFile', 'fullTextSearchForm', 'fileId','<%=aFile.getId()%>'); document.getElementById('fullTextSearchForm').submit();" | |
458 src="<%=sessionBean.getApplicationBean().getDeleteImage()%>" /> | |
459 | |
460 </td> | |
461 | |
462 <% | |
463 } | |
464 %> | |
465 </tr> | |
466 </table> | |
467 | |
468 <div class="label">Older...</div> | |
469 <table class="savedResultTable"> | |
470 <tr> | |
471 <% | |
472 for (LGFullTextSearchFile aFile : sessionBean | |
473 .getFullTextSearchPage().getOlderFileList()) { | |
474 %> | |
475 <td> | |
476 <div><%=aFile.getFileName()%></div> | |
477 <button type="button" class="lgButton" | |
478 onclick="setAction0('loadFile', 'fullTextSearchForm', 'fileId', <%=aFile.getId()%>); document.getElementById('fullTextSearchForm').submit();">load</button> | |
479 | |
480 <!-- getFullTextSearchFileText?fileId= &userId= --> <!-- click searching result to open it in the same table of full-text-search result --> | |
481 <a | |
482 href="<%=sessionBean.getApplicationBean().getRootServer()%>/rest/text/getFullTextSearchHtmlFile?fileId=<%=aFile.getId()%>" | |
483 target="_blank"> <img title="Show text in html" | |
484 src="<%=sessionBean.getApplicationBean().getShowImage()%>" /> | |
485 </a> <!-- download csv file --> <a | |
486 href="<%=sessionBean.getApplicationBean().getRootServer()%>/rest/text/downloadFullTextSearchCsvFile?file=<%=aFile.getUserId().toString()%>_<%=aFile.getFileName()%>.csv" | |
487 target="_blank"> <img title="Download CSV" | |
488 src="<%=sessionBean.getApplicationBean() | |
489 .getDownloadImage()%>" /> | |
490 </a> <!-- view on LGMap --> <a | |
491 href="<%=sessionBean.getApplicationBean().getLGMapUrl()%>&file=<%=aFile.getUserId().toString()%>_<%=aFile.getFileName()%>.csv&name=<%=aFile.getSearchTerms()%>" | |
492 target="_blank"> <img title="View on LGMap" | |
493 src="<%=sessionBean.getApplicationBean().getViewOnMap()%>" /> | |
494 </a> <input type="image" title="Delete it" | |
495 onclick="<%=sessionBean.getApplicationBean() | |
496 .getJSConfirmationDelete()%> setAction0('deleteFile', 'fullTextSearchForm', 'fileId','<%=aFile.getId()%>'); document.getElementById('fullTextSearchForm').submit();" | |
497 src="<%=sessionBean.getApplicationBean().getDeleteImage()%>" /> | |
498 | |
499 </td> | |
500 | |
501 <% | |
502 } | |
503 %> | |
504 </tr> | |
505 </table> | |
506 | |
507 | |
508 </div> | |
509 <label class="subTitel">Full Text Search</label> | |
510 <form name="fullTextSearchForm" id="fullTextSearchForm" | |
511 action="<%=sessionBean.getApplicationBean().getRootServer()%>/proxy.jsp" | |
512 method="post" class="contentForm"> | |
513 <input name="bean" type="hidden" value="fullTextSearchBean" /> <input | |
514 id="focusedId" type="hidden" | |
515 value="<%=sessionBean.getFullTextSearchPage().getFocusedContentId()%>" /> | |
516 | |
517 <input id="mouseX" name="mouseX" type="hidden" | |
518 value="<%=sessionBean.getFullTextSearchPage().getMouseX()%>" /> <input | |
519 id="mouseY" name="mouseY" type="hidden" | |
520 value="<%=sessionBean.getFullTextSearchPage().getMouseY()%>" /> | |
521 | |
522 <table style="width: 300px; margin-left: auto; margin-right: auto;"> | |
523 <tr> | |
524 <td><input id="searchTerm" name="searchTerm" type="text" | |
525 placeholder='if multiple terms, use "," to separate them.' | |
526 class="searchInput" | |
527 value="<%=sessionBean.getFullTextSearchPage().getSearchTerm()%>" /> | |
528 </td> | |
529 <td><input id="search" type="image" | |
530 onclick="setAction('search', 'fullTextSearchForm');" | |
531 src="<%=sessionBean.getApplicationBean().getSearchImage()%>" /></td> | |
532 | |
533 | |
534 </tr> | |
535 | |
536 <!-- batching querying --> | |
537 <!-- for batching, query keyword sets separated by ";" and within each keyword set, keywords separated by "," --> | |
538 | |
539 <% | |
540 if (StringUtils.equals(sessionBean.getUserName(), "admin")) { // || StringUtils.equals(sessionBean.getUserName(), "silk")) { | |
541 %> | |
542 <tr> | |
543 <td><input id="batchSearchTerm" name="batchSearchTerm" | |
544 type="text" placeholder="(TODO plz Don't use this to search)" | |
545 class="searchInput" | |
546 value="<%=sessionBean.getFullTextSearchPage() | |
547 .getBatchSearchTerm()%>" /> | |
548 </td> | |
549 <td><input id="search" type="image" | |
550 onclick="setAction('searchBatch', 'fullTextSearchForm');" | |
551 src="<%=sessionBean.getApplicationBean().getSearchImage()%>" /></td> | |
552 | |
553 | |
554 </tr> | |
555 <% | |
556 } | |
557 %> | |
558 | |
559 <tr> | |
560 <td><label class="label"><%=(StringUtils.isNotEmpty(sessionBean | |
561 .getFullTextSearchPage().getSearchMessage())) ? sessionBean | |
562 .getFullTextSearchPage().getSearchMessage() : ""%></label></td> | |
563 </tr> | |
564 <tr> | |
565 <td><label class="label"><%=(StringUtils.isNotEmpty(sessionBean | |
566 .getFullTextSearchPage().getFilteringMessage())) ? sessionBean | |
567 .getFullTextSearchPage().getFilteringMessage() : ""%></label></td> | |
568 </tr> | |
569 <tr> | |
570 <td><label class="label"><%=(StringUtils.isNotEmpty(sessionBean | |
571 .getFullTextSearchPage().getSelectedContentMessage())) ? sessionBean | |
572 .getFullTextSearchPage().getSelectedContentMessage() | |
573 : ""%></label></td> | |
574 </tr> | |
575 | |
576 <tr> | |
577 <td> | |
578 <button id="saveResult" type="button" class="lgButton">Save | |
579 Table</button> | |
580 <button id="viewSavedResult" type="button" class="lgButton">View/Load | |
581 Saved Table(s)</button> | |
582 | |
583 | |
584 </td> | |
585 </tr> | |
586 <tr> | |
587 <td> | |
588 <!-- for view on LGMap, prompt to save if it's not saved. After saving, it could be shown on LGMap --> | |
589 <% | |
590 if (sessionBean.getFullTextSearchPage().getFile() != null) { | |
591 LGFullTextSearchFile theFile = sessionBean | |
592 .getFullTextSearchPage().getFile(); | |
593 %> | |
594 <a | |
595 href="<%=sessionBean.getApplicationBean().getLGMapUrl()%>&file=<%=theFile.getUserId().toString()%>_<%=theFile.getFileName()%>.csv&name=<%=theFile.getSearchTerms()%>" | |
596 target="_blank">View on LGMap </a> <!-- download csv file --> <a | |
597 href="<%=sessionBean.getApplicationBean().getRootServer()%>/rest/text/downloadFullTextSearchCsvFile?file=<%=theFile.getUserId().toString()%>_<%=theFile.getFileName()%>.csv" | |
598 target="_blank"> <img title="Download CSV" | |
599 src="<%=sessionBean.getApplicationBean() | |
600 .getDownloadImage()%>" /> | |
601 </a> | |
602 <% } else if (sessionBean.getFullTextSearchPage().getCompleteList() != null) { %> | |
603 <!-- prompt to save --> | |
604 <!-- A click icon for Save Table, showing the text as bellow --> | |
605 <button id="prompToSaveResult" type="button" class="lgButton">View on LGMap?</button> | |
606 <% } %> | |
448 | 607 |
449 </td> | 608 </td> |
450 | |
451 <% } %> | |
452 </tr> | |
453 </table> | |
454 | |
455 <div class="label">Older...</div> | |
456 <table class="savedResultTable"> | |
457 <tr> | |
458 <% for (LGFullTextSearchFile aFile : sessionBean.getFullTextSearchPage().getOlderFileList() ){%> | |
459 <td> | |
460 <div><%= aFile.getFileName() %></div> | |
461 <button type="button" class="lgButton" onclick="setAction0('loadFile', 'fullTextSearchForm', 'fileId', <%=aFile.getId() %>); document.getElementById('fullTextSearchForm').submit();">load</button> | |
462 | |
463 <!-- getFullTextSearchFileText?fileId= &userId= --> | |
464 | |
465 <!-- click searching result to open it in the same table of full-text-search result --> | |
466 <a href="<%=sessionBean.getApplicationBean().getRootServer() %>/rest/text/getFullTextSearchHtmlFile?fileId=<%= aFile.getId() %>" | |
467 target="_blank"> | |
468 <img title="Show text in html" src="<%=sessionBean.getApplicationBean().getShowImage()%>"/> | |
469 </a> | |
470 | |
471 <!-- download csv file --> | |
472 <a href="<%=sessionBean.getApplicationBean().getRootServer() %>/rest/text/downloadFullTextSearchCsvFile?file=<%=aFile.getUserId().toString()%>_<%=aFile.getFileName()%>.csv" | |
473 target="_blank"> | |
474 <img title="Download CSV" src="<%=sessionBean.getApplicationBean().getDownloadImage()%>"/> | |
475 </a> | |
476 | |
477 <!-- view on LGMap --> | |
478 | |
479 <a href="<%=sessionBean.getApplicationBean().getLGMapUrl() %>&file=<%=aFile.getUserId().toString()%>_<%=aFile.getFileName()%>.csv&name=<%=aFile.getSearchTerms() %>" | |
480 target="_blank"> | |
481 <img title="View on LGMap" src="<%=sessionBean.getApplicationBean().getViewOnMap()%>"/> | |
482 </a> | |
483 | |
484 <input type="image" title="Delete it" | |
485 onclick="<%=sessionBean.getApplicationBean().getJSConfirmationDelete() %> setAction0('deleteFile', 'fullTextSearchForm', 'fileId','<%=aFile.getId() %>'); document.getElementById('fullTextSearchForm').submit();" | |
486 src="<%=sessionBean.getApplicationBean().getDeleteImage()%>"/> | |
487 | |
488 </td> | |
489 | |
490 <% } %> | |
491 </tr> | |
492 </table> | |
493 | |
494 <!-- | |
495 <table class="pageTable"> | |
496 <tr> | |
497 <td class="tableTitle">Table name</td> | |
498 <td class="tableTitle"></td> | |
499 <td class="tableTitle">View html</td> | |
500 <td class="tableTitle">View on LGMap</td> | |
501 <td class="tableTitle">Delete</td> | |
502 </tr> | |
503 | |
504 <% for (LGFullTextSearchFile aFile : sessionBean.getFullTextSearchPage().getFileList() ){%> | |
505 <tr> | |
506 <td><%= aFile.getFileName() %></td> | |
507 <td> | |
508 <button type="button" class="lgButton" onclick="setAction0('loadFile', 'fullTextSearchForm', 'fileId', <%=aFile.getId() %>); document.getElementById('fullTextSearchForm').submit();">load</button> | |
509 </td> | |
510 | |
511 <td> | |
512 | |
513 <a href="<%=sessionBean.getApplicationBean().getRootServer() %>/rest/text/getFullTextSearchHtmlFile?fileId=<%= aFile.getId() %>" | |
514 target="_blank"> | |
515 <img title="Show text in html" src="<%=sessionBean.getApplicationBean().getShowImage()%>"/> | |
516 </a> | |
517 </td> | |
518 | |
519 <td> | |
520 | |
521 <a href="<%=sessionBean.getApplicationBean().getLGMapUrl() %>&file=<%=aFile.getUserId().toString()%>_<%=aFile.getFileName()%>.csv&name=<%=aFile.getSearchTerms() %>" | |
522 target="_blank"> | |
523 <img title="View on LGMap" src="<%=sessionBean.getApplicationBean().getViewOnMap()%>"/> | |
524 </a> | |
525 </td> | |
526 | |
527 <td> | |
528 <input type="image" | |
529 onclick="<%=sessionBean.getApplicationBean().getJSConfirmationDelete() %> setAction0('deleteFile', 'fullTextSearchForm', 'fileId','<%=aFile.getId() %>'); document.getElementById('fullTextSearchForm').submit();" | |
530 src="<%=sessionBean.getApplicationBean().getDeleteImage()%>"/> | |
531 </td> | |
532 | |
533 </tr> | |
534 <% } %> | |
535 | |
536 </table> | |
537 --> | |
538 | |
539 </div> | |
540 <label class="subTitel">Full Text Search</label> | |
541 <form name="fullTextSearchForm" id="fullTextSearchForm" | |
542 action="<%=sessionBean.getApplicationBean().getRootServer()%>/proxy.jsp" | |
543 method="post" | |
544 class="contentForm"> | |
545 <input name="bean" type="hidden" value="fullTextSearchBean" /> | |
546 <input id="focusedId" type="hidden" value="<%=sessionBean.getFullTextSearchPage().getFocusedContentId() %>"/> | |
547 | |
548 <input id="mouseX" name="mouseX" type="hidden" value="<%=sessionBean.getFullTextSearchPage().getMouseX() %>"/> | |
549 <input id="mouseY" name="mouseY" type="hidden" value="<%=sessionBean.getFullTextSearchPage().getMouseY() %>"/> | |
550 | |
551 <table style="width: 300px; margin-left: auto;margin-right: auto;"> | |
552 <tr> | |
553 <td> | |
554 <input | |
555 id="searchTerm" | |
556 name="searchTerm" | |
557 type="text" | |
558 placeholder='if multiple terms, use "," to separate them.' | |
559 class="searchInput" | |
560 value="<%=sessionBean.getFullTextSearchPage().getSearchTerm()%>" /> | |
561 </td> | |
562 <td> | |
563 <input id="search" | |
564 type="image" | |
565 onclick="setAction('search', 'fullTextSearchForm');" | |
566 src="<%=sessionBean.getApplicationBean().getSearchImage()%>"/> | |
567 </td> | |
568 | |
569 | |
570 </tr> | 609 </tr> |
571 | 610 |
572 <!-- batching querying --> | 611 </table> |
573 <!-- for batching, query keyword sets separated by ";" and within each keyword set, keywords separated by "," --> | 612 |
574 <% if (StringUtils.equals(sessionBean.getUserName(), "zhong")) { // || StringUtils.equals(sessionBean.getUserName(), "silk")) { %> | 613 |
575 <tr> | |
576 <td> | |
577 <input | |
578 id="batchSearchTerm" | |
579 name="batchSearchTerm" | |
580 type="text" | |
581 placeholder="(TODO plz Don't use this to search)" | |
582 class="searchInput" | |
583 value="<%=sessionBean.getFullTextSearchPage().getBatchSearchTerm() %>" /> | |
584 </td> | |
585 <td> | |
586 <input id="search" | |
587 type="image" | |
588 onclick="setAction('searchBatch', 'fullTextSearchForm');" | |
589 src="<%=sessionBean.getApplicationBean().getSearchImage()%>"/> | |
590 </td> | |
591 | |
592 | |
593 </tr> | |
594 <% } %> | |
595 | |
596 <tr><td><label class="label"><%= (StringUtils.isNotEmpty(sessionBean.getFullTextSearchPage().getSearchMessage())) ? sessionBean.getFullTextSearchPage().getSearchMessage() : ""%></label></td></tr> | |
597 <tr><td><label class="label"><%= (StringUtils.isNotEmpty(sessionBean.getFullTextSearchPage().getFilteringMessage())) ? sessionBean.getFullTextSearchPage().getFilteringMessage() : ""%></label></td></tr> | |
598 <tr><td><label class="label"><%= (StringUtils.isNotEmpty(sessionBean.getFullTextSearchPage().getSelectedContentMessage())) ? sessionBean.getFullTextSearchPage().getSelectedContentMessage() : ""%></label></td></tr> | |
599 | |
600 <tr><td> | |
601 <button id="saveResult" type="button" class="lgButton">Save Table</button> | |
602 <button id="viewSavedResult" type="button" class="lgButton">View/Load Saved Table(s)</button> | |
603 | |
604 | |
605 </td></tr> | |
606 <tr><td> | |
607 <!-- for view on LGMap, prompt to save if it's not saved. After saving, it could be shown on LGMap --> | |
608 <% if (sessionBean.getFullTextSearchPage().getFile() != null) { | |
609 LGFullTextSearchFile theFile = sessionBean.getFullTextSearchPage().getFile(); %> | |
610 <a href="<%=sessionBean.getApplicationBean().getLGMapUrl() %>&file=<%=theFile.getUserId().toString()%>_<%=theFile.getFileName()%>.csv&name=<%=theFile.getSearchTerms() %>" | |
611 target="_blank">View on LGMap | |
612 </a> | |
613 | |
614 <!-- download csv file --> | |
615 <a href="<%=sessionBean.getApplicationBean().getRootServer() %>/rest/text/downloadFullTextSearchCsvFile?file=<%=theFile.getUserId().toString()%>_<%=theFile.getFileName()%>.csv" | |
616 target="_blank"> | |
617 <img title="Download CSV" src="<%=sessionBean.getApplicationBean().getDownloadImage()%>"/> | |
618 </a> | |
619 | |
620 <% } else { %> | |
621 <!-- prompt to save --> | |
622 <label class="label">(save table first to view on LGMap)</label> | |
623 <% } %> | |
624 </td></tr> | |
625 | |
626 </table> | |
627 | |
628 | |
629 <% | 614 <% |
630 if (sessionBean.getFullTextSearchPage().getCompleteList() != null) { | 615 if (sessionBean.getFullTextSearchPage().getCompleteList() != null) { |
631 %> | 616 %> |
632 | 617 |
633 | 618 |
634 <jsp:include page="../componentes/paginator.jsp"> | 619 <jsp:include page="../componentes/paginator.jsp"> |
635 <jsp:param name="formName" value="fullTextSearchForm"/> | 620 <jsp:param name="formName" value="fullTextSearchForm" /> |
636 </jsp:include> | 621 </jsp:include> |
637 | 622 |
638 | 623 |
639 <div class="tableDiv double-scroll"> | 624 <div class="tableDiv double-scroll"> |
640 <table class="pageTable"> | 625 <table class="pageTable"> |
641 <tbody> | 626 <tbody> |
642 <tr> | 627 <tr> |
643 <th> | 628 <th> |
644 <table class="sortTable"> | 629 <table class="sortTable"> |
645 <tr> | 630 <tr> |
646 <td><label class="tableTitle">#</label></td> | 631 <td><label class="tableTitle">#</label></td> |
647 <td> | 632 <td> |
648 <table> | 633 <table> |
649 <tr><td> | 634 <tr> |
650 <input type="image" | 635 <td><input type="image" |
651 onclick="setAction('sortByInxUp', 'fullTextSearchForm');" | 636 onclick="setAction('sortByInxUp', 'fullTextSearchForm');" |
652 src="<%=sessionBean.getApplicationBean().getUpImage()%>"/> | 637 src="<%=sessionBean.getApplicationBean().getUpImage()%>" /> |
653 </td></tr> | 638 </td> |
654 <tr><td> | 639 </tr> |
655 <input type="image" | 640 <tr> |
641 <td><input type="image" | |
656 onclick="setAction('sortByInxDown', 'fullTextSearchForm');" | 642 onclick="setAction('sortByInxDown', 'fullTextSearchForm');" |
657 src="<%=sessionBean.getApplicationBean().getDownImage()%>"/> | 643 src="<%=sessionBean.getApplicationBean().getDownImage()%>" /> |
658 </td></tr> | 644 </td> |
645 </tr> | |
659 </table> | 646 </table> |
660 </td> | 647 </td> |
661 </tr> | 648 </tr> |
662 </table> | 649 </table> |
663 </th> | 650 </th> |
665 <table class="sortTable"> | 652 <table class="sortTable"> |
666 <tr> | 653 <tr> |
667 <td><label class="tableTitle">Book Id</label></td> | 654 <td><label class="tableTitle">Book Id</label></td> |
668 <td> | 655 <td> |
669 <table> | 656 <table> |
670 <tr><td> | 657 <tr> |
671 <input type="image" | 658 <td><input type="image" |
672 onclick="setAction('sortByBookIdUp', 'fullTextSearchForm');" | 659 onclick="setAction('sortByBookIdUp', 'fullTextSearchForm');" |
673 src="<%=sessionBean.getApplicationBean().getUpImage()%>"/> | 660 src="<%=sessionBean.getApplicationBean().getUpImage()%>" /> |
674 </td></tr> | 661 </td> |
675 <tr><td> | 662 </tr> |
676 <input type="image" | 663 <tr> |
664 <td><input type="image" | |
677 onclick="setAction('sortByBookIdDown', 'fullTextSearchForm');" | 665 onclick="setAction('sortByBookIdDown', 'fullTextSearchForm');" |
678 src="<%=sessionBean.getApplicationBean().getDownImage()%>"/> | 666 src="<%=sessionBean.getApplicationBean().getDownImage()%>" /> |
679 </td></tr> | 667 </td> |
668 </tr> | |
680 </table> | 669 </table> |
681 </td> | 670 </td> |
682 </tr> | 671 </tr> |
683 <tr> | 672 <tr> |
684 <td> | 673 <td><input type="text" class="filterInput" |
685 <input type="text" class="filterInput" name="bookIdFilter" id="bookIdFilter" value="<%= sessionBean.getFullTextSearchPage().getBookIdFilter()%>" size="8"/> | 674 name="bookIdFilter" id="bookIdFilter" |
686 </td> | 675 value="<%=sessionBean.getFullTextSearchPage() |
687 <td> | 676 .getBookIdFilter()%>" |
688 <input type="image" | 677 size="8" /></td> |
689 onclick="setAction('filter', 'fullTextSearchForm');" | 678 <td><input type="image" |
690 src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/> | 679 onclick="setAction('filter', 'fullTextSearchForm');" |
691 </td> | 680 src="<%=sessionBean.getApplicationBean().getFilterImage()%>" /> |
681 </td> | |
692 </tr> | 682 </tr> |
693 </table> | 683 </table> |
694 </th> | 684 </th> |
695 <th> | 685 <th> |
696 <table class="sortTable"> | 686 <table class="sortTable"> |
697 <tr> | 687 <tr> |
698 <td><label class="tableTitle">Book Name</label></td> | 688 <td><label class="tableTitle">Book Name</label></td> |
699 <td> | 689 <td> |
700 <table> | 690 <table> |
701 <tr><td> | 691 <tr> |
702 <input type="image" | 692 <td><input type="image" |
703 onclick="setAction('sortByBookNameUp', 'fullTextSearchForm');" | 693 onclick="setAction('sortByBookNameUp', 'fullTextSearchForm');" |
704 src="<%=sessionBean.getApplicationBean().getUpImage()%>"/> | 694 src="<%=sessionBean.getApplicationBean().getUpImage()%>" /> |
705 </td></tr> | 695 </td> |
706 <tr><td> | 696 </tr> |
707 <input type="image" | 697 <tr> |
698 <td><input type="image" | |
708 onclick="setAction('sortByBookNameDown', 'fullTextSearchForm');" | 699 onclick="setAction('sortByBookNameDown', 'fullTextSearchForm');" |
709 src="<%=sessionBean.getApplicationBean().getDownImage()%>"/> | 700 src="<%=sessionBean.getApplicationBean().getDownImage()%>" /> |
710 </td></tr> | 701 </td> |
702 </tr> | |
711 </table> | 703 </table> |
712 </td> | 704 </td> |
713 </tr> | 705 </tr> |
714 <tr> | 706 <tr> |
715 <td> | 707 <td><input type="text" class="filterInput" |
716 <input type="text" class="filterInput" name="bookNameFilter" id="bookNameFilter" value="<%= sessionBean.getFullTextSearchPage().getBookNameFilter()%>" size="8"/> | 708 name="bookNameFilter" id="bookNameFilter" |
717 </td> | 709 value="<%=sessionBean.getFullTextSearchPage() |
718 <td> | 710 .getBookNameFilter()%>" |
719 <input type="image" | 711 size="8" /></td> |
720 onclick="setAction('filter', 'fullTextSearchForm');" | 712 <td><input type="image" |
721 src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/> | 713 onclick="setAction('filter', 'fullTextSearchForm');" |
722 </td> | 714 src="<%=sessionBean.getApplicationBean().getFilterImage()%>" /> |
723 </tr> | 715 </td> |
724 </table> | 716 </tr> |
717 </table> | |
725 </th> | 718 </th> |
726 <th> | 719 <th> |
727 <table class="sortTable"> | 720 <table class="sortTable"> |
728 <tr> | 721 <tr> |
729 <td><label class="tableTitle">Level 1</label></td> | 722 <td><label class="tableTitle">Level 1</label></td> |
730 <td> | 723 <td> |
731 <table> | 724 <table> |
732 <tr><td> | 725 <tr> |
733 <input type="image" | 726 <td><input type="image" |
734 onclick="setAction('sortByLevel1Up', 'fullTextSearchForm');" | 727 onclick="setAction('sortByLevel1Up', 'fullTextSearchForm');" |
735 src="<%=sessionBean.getApplicationBean().getUpImage()%>"/> | 728 src="<%=sessionBean.getApplicationBean().getUpImage()%>" /> |
736 </td></tr> | 729 </td> |
737 <tr><td> | 730 </tr> |
738 <input type="image" | 731 <tr> |
732 <td><input type="image" | |
739 onclick="setAction('sortByLevel1Down', 'fullTextSearchForm');" | 733 onclick="setAction('sortByLevel1Down', 'fullTextSearchForm');" |
740 src="<%=sessionBean.getApplicationBean().getDownImage()%>"/> | 734 src="<%=sessionBean.getApplicationBean().getDownImage()%>" /> |
741 </td></tr> | 735 </td> |
736 </tr> | |
742 </table> | 737 </table> |
743 </td> | 738 </td> |
744 </tr> | 739 </tr> |
745 <tr> | 740 <tr> |
746 <td> | 741 <td><input type="text" class="filterInput" |
747 <input type="text" class="filterInput" name="level1Filter" id="level1Filter" value="<%= sessionBean.getFullTextSearchPage().getLevel1Filter()%>" size="8"/> | 742 name="level1Filter" id="level1Filter" |
748 </td> | 743 value="<%=sessionBean.getFullTextSearchPage() |
749 <td> | 744 .getLevel1Filter()%>" |
750 <input type="image" | 745 size="8" /></td> |
751 onclick="setAction('filter', 'fullTextSearchForm');" | 746 <td><input type="image" |
752 src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/> | 747 onclick="setAction('filter', 'fullTextSearchForm');" |
753 </td> | 748 src="<%=sessionBean.getApplicationBean().getFilterImage()%>" /> |
754 </tr> | 749 </td> |
755 </table> | 750 </tr> |
751 </table> | |
756 </th> | 752 </th> |
757 <th> | 753 <th> |
758 <table class="sortTable"> | 754 <table class="sortTable"> |
759 <tr> | 755 <tr> |
760 <td><label class="tableTitle">Level 2</label></td> | 756 <td><label class="tableTitle">Level 2</label></td> |
761 <td> | 757 <td> |
762 <table> | 758 <table> |
763 <tr><td> | 759 <tr> |
764 <input type="image" | 760 <td><input type="image" |
765 onclick="setAction('sortByLevel2Up', 'fullTextSearchForm');" | 761 onclick="setAction('sortByLevel2Up', 'fullTextSearchForm');" |
766 src="<%=sessionBean.getApplicationBean().getUpImage()%>"/> | 762 src="<%=sessionBean.getApplicationBean().getUpImage()%>" /> |
767 </td></tr> | 763 </td> |
768 <tr><td> | 764 </tr> |
769 <input type="image" | 765 <tr> |
766 <td><input type="image" | |
770 onclick="setAction('sortByLevel2Down', 'fullTextSearchForm');" | 767 onclick="setAction('sortByLevel2Down', 'fullTextSearchForm');" |
771 src="<%=sessionBean.getApplicationBean().getDownImage()%>"/> | 768 src="<%=sessionBean.getApplicationBean().getDownImage()%>" /> |
772 </td></tr> | 769 </td> |
770 </tr> | |
773 </table> | 771 </table> |
774 </td> | 772 </td> |
775 </tr> | 773 </tr> |
776 <tr> | 774 <tr> |
777 <td> | 775 <td><input type="text" class="filterInput" |
778 <input type="text" class="filterInput" name="level2Filter" id="level2Filter" value="<%= sessionBean.getFullTextSearchPage().getLevel2Filter()%>" size="8"/> | 776 name="level2Filter" id="level2Filter" |
779 </td> | 777 value="<%=sessionBean.getFullTextSearchPage() |
780 <td> | 778 .getLevel2Filter()%>" |
781 <input type="image" | 779 size="8" /></td> |
782 onclick="setAction('filter', 'fullTextSearchForm');" | 780 <td><input type="image" |
783 src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/> | 781 onclick="setAction('filter', 'fullTextSearchForm');" |
784 </td> | 782 src="<%=sessionBean.getApplicationBean().getFilterImage()%>" /> |
785 </tr> | 783 </td> |
784 </tr> | |
786 </table> | 785 </table> |
787 </th> | 786 </th> |
788 <th> | 787 <th> |
789 <table class="sortTable"> | 788 <table class="sortTable"> |
790 <tr> | 789 <tr> |
791 <td><label class="tableTitle">Dynasty</label></td> | 790 <td><label class="tableTitle">Dynasty</label></td> |
792 <td> | 791 <td> |
793 <table> | 792 <table> |
794 <tr><td> | 793 <tr> |
795 <input type="image" | 794 <td><input type="image" |
796 onclick="setAction('sortByDynastyUp', 'fullTextSearchForm');" | 795 onclick="setAction('sortByDynastyUp', 'fullTextSearchForm');" |
797 src="<%=sessionBean.getApplicationBean().getUpImage()%>"/> | 796 src="<%=sessionBean.getApplicationBean().getUpImage()%>" /> |
798 </td></tr> | 797 </td> |
799 <tr><td> | 798 </tr> |
800 <input type="image" | 799 <tr> |
800 <td><input type="image" | |
801 onclick="setAction('sortByDynastyDown', 'fullTextSearchForm');" | 801 onclick="setAction('sortByDynastyDown', 'fullTextSearchForm');" |
802 src="<%=sessionBean.getApplicationBean().getDownImage()%>"/> | 802 src="<%=sessionBean.getApplicationBean().getDownImage()%>" /> |
803 </td></tr> | 803 </td> |
804 </tr> | |
804 </table> | 805 </table> |
805 </td> | 806 </td> |
806 </tr> | 807 </tr> |
807 <tr> | 808 <tr> |
808 <td> | 809 <td><input type="text" class="filterInput" |
809 <input type="text" class="filterInput" name="dynastyFilter" id="dynastyFilter" value="<%= sessionBean.getFullTextSearchPage().getDynastyFilter()%>" size="8"/> | 810 name="dynastyFilter" id="dynastyFilter" |
810 </td> | 811 value="<%=sessionBean.getFullTextSearchPage() |
811 <td> | 812 .getDynastyFilter()%>" |
812 <input type="image" | 813 size="8" /></td> |
813 onclick="setAction('filter', 'fullTextSearchForm');" | 814 <td><input type="image" |
814 src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/> | 815 onclick="setAction('filter', 'fullTextSearchForm');" |
815 </td> | 816 src="<%=sessionBean.getApplicationBean().getFilterImage()%>" /> |
816 </tr> | 817 </td> |
817 </table> | 818 </tr> |
819 </table> | |
818 </th> | 820 </th> |
819 <th> | 821 <th> |
820 <table class="sortTable"> | 822 <table class="sortTable"> |
821 <tr> | 823 <tr> |
822 <td><label class="tableTitle">Period</label></td> | 824 <td><label class="tableTitle">Period</label></td> |
823 <td> | 825 <td> |
824 <table> | 826 <table> |
825 <tr><td> | 827 <tr> |
826 <input type="image" | 828 <td><input type="image" |
827 onclick="setAction('sortByPeriodUp', 'fullTextSearchForm');" | 829 onclick="setAction('sortByPeriodUp', 'fullTextSearchForm');" |
828 src="<%=sessionBean.getApplicationBean().getUpImage()%>"/> | 830 src="<%=sessionBean.getApplicationBean().getUpImage()%>" /> |
829 </td></tr> | 831 </td> |
830 <tr><td> | 832 </tr> |
831 <input type="image" | 833 <tr> |
834 <td><input type="image" | |
832 onclick="setAction('sortByPeriodDown', 'fullTextSearchForm');" | 835 onclick="setAction('sortByPeriodDown', 'fullTextSearchForm');" |
833 src="<%=sessionBean.getApplicationBean().getDownImage()%>"/> | 836 src="<%=sessionBean.getApplicationBean().getDownImage()%>" /> |
834 </td></tr> | 837 </td> |
838 </tr> | |
835 </table> | 839 </table> |
836 </td> | 840 </td> |
837 </tr> | 841 </tr> |
838 <tr> | 842 <tr> |
839 <td> | 843 <td><input type="text" class="filterInput" |
840 <input type="text" class="filterInput" name="periodFilter" id="periodFilter" value="<%= sessionBean.getFullTextSearchPage().getPeriodFilter()%>" size="8"/> | 844 name="periodFilter" id="periodFilter" |
841 </td> | 845 value="<%=sessionBean.getFullTextSearchPage() |
842 <td> | 846 .getPeriodFilter()%>" |
843 <input type="image" | 847 size="8" /></td> |
844 onclick="setAction('filter', 'fullTextSearchForm');" | 848 <td><input type="image" |
845 src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/> | 849 onclick="setAction('filter', 'fullTextSearchForm');" |
846 </td> | 850 src="<%=sessionBean.getApplicationBean().getFilterImage()%>" /> |
847 </tr> | 851 </td> |
848 </table> | 852 </tr> |
853 </table> | |
849 </th> | 854 </th> |
850 <th> | 855 <th> |
851 <table class="sortTable"> | 856 <table class="sortTable"> |
852 <tr> | 857 <tr> |
853 <td><label class="tableTitle">Admin Type</label></td> | 858 <td><label class="tableTitle">Admin Type</label></td> |
854 <td> | 859 <td> |
855 <table> | 860 <table> |
856 <tr><td> | 861 <tr> |
857 <input type="image" | 862 <td><input type="image" |
858 onclick="setAction('sortByAdminTypeUp', 'fullTextSearchForm');" | 863 onclick="setAction('sortByAdminTypeUp', 'fullTextSearchForm');" |
859 src="<%=sessionBean.getApplicationBean().getUpImage()%>"/> | 864 src="<%=sessionBean.getApplicationBean().getUpImage()%>" /> |
860 </td></tr> | 865 </td> |
861 <tr><td> | 866 </tr> |
862 <input type="image" | 867 <tr> |
868 <td><input type="image" | |
863 onclick="setAction('sortByAdminTypeDown', 'fullTextSearchForm');" | 869 onclick="setAction('sortByAdminTypeDown', 'fullTextSearchForm');" |
864 src="<%=sessionBean.getApplicationBean().getDownImage()%>"/> | 870 src="<%=sessionBean.getApplicationBean().getDownImage()%>" /> |
865 </td></tr> | 871 </td> |
872 </tr> | |
866 </table> | 873 </table> |
867 </td> | 874 </td> |
868 </tr> | 875 </tr> |
869 <tr> | 876 <tr> |
870 <td> | 877 <td><input type="text" class="filterInput" |
871 <input type="text" class="filterInput" name="adminTypeFilter" id="adminTypeFilter" value="<%= sessionBean.getFullTextSearchPage().getAdminTypeFilter()%>" size="8"/> | 878 name="adminTypeFilter" id="adminTypeFilter" |
872 </td> | 879 value="<%=sessionBean.getFullTextSearchPage() |
873 <td> | 880 .getAdminTypeFilter()%>" |
874 <input type="image" | 881 size="8" /></td> |
875 onclick="setAction('filter', 'fullTextSearchForm');" | 882 <td><input type="image" |
876 src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/> | 883 onclick="setAction('filter', 'fullTextSearchForm');" |
877 </td> | 884 src="<%=sessionBean.getApplicationBean().getFilterImage()%>" /> |
878 </tr> | 885 </td> |
879 </table> | 886 </tr> |
880 </th> | 887 </table> |
881 | 888 </th> |
889 | |
882 <th> | 890 <th> |
883 <table class="sortTable"> | 891 <table class="sortTable"> |
884 <tr> | 892 <tr> |
885 <td><label class="tableTitle">Section Name</label></td> | 893 <td><label class="tableTitle">Section Name</label></td> |
886 <td> | 894 <td> |
887 <table> | 895 <table> |
888 <tr><td> | 896 <tr> |
889 <input type="image" | 897 <td><input type="image" |
890 onclick="setAction('sortBySectionNameUp', 'fullTextSearchForm');" | 898 onclick="setAction('sortBySectionNameUp', 'fullTextSearchForm');" |
891 src="<%=sessionBean.getApplicationBean().getUpImage()%>"/> | 899 src="<%=sessionBean.getApplicationBean().getUpImage()%>" /> |
892 </td></tr> | 900 </td> |
893 <tr><td> | 901 </tr> |
894 <input type="image" | 902 <tr> |
903 <td><input type="image" | |
895 onclick="setAction('sortBySectionNameDown', 'fullTextSearchForm');" | 904 onclick="setAction('sortBySectionNameDown', 'fullTextSearchForm');" |
896 src="<%=sessionBean.getApplicationBean().getDownImage()%>"/> | 905 src="<%=sessionBean.getApplicationBean().getDownImage()%>" /> |
897 </td></tr> | 906 </td> |
907 </tr> | |
898 </table> | 908 </table> |
899 </td> | 909 </td> |
900 </tr> | 910 </tr> |
901 <tr> | 911 <tr> |
902 <td> | 912 <td><input type="text" class="filterInput" |
903 <input type="text" class="filterInput" name="sectionNameFilter" id="sectionNameFilter" value="<%= sessionBean.getFullTextSearchPage().getSectionNameFilter()%>" size="8"/> | 913 name="sectionNameFilter" id="sectionNameFilter" |
904 </td> | 914 value="<%=sessionBean.getFullTextSearchPage() |
905 <td> | 915 .getSectionNameFilter()%>" |
906 <input type="image" | 916 size="8" /></td> |
907 onclick="setAction('filter', 'fullTextSearchForm');" | 917 <td><input type="image" |
908 src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/> | 918 onclick="setAction('filter', 'fullTextSearchForm');" |
909 </td> | 919 src="<%=sessionBean.getApplicationBean().getFilterImage()%>" /> |
910 </tr> | 920 </td> |
911 </table> | 921 </tr> |
912 </th> | 922 </table> |
913 | 923 </th> |
924 | |
914 <!-- | 925 <!-- |
915 <th> | 926 <th> |
916 <table class="sortTable"> | 927 <table class="sortTable"> |
917 <tr> | 928 <tr> |
918 <td><label class="tableTitle">Section Pages</label></td> | 929 <td><label class="tableTitle">Section Pages</label></td> |
939 <table class="sortTable"> | 950 <table class="sortTable"> |
940 <tr> | 951 <tr> |
941 <td><label class="tableTitle">Page</label></td> | 952 <td><label class="tableTitle">Page</label></td> |
942 <td> | 953 <td> |
943 <table> | 954 <table> |
944 <tr><td> | 955 <tr> |
945 <input type="image" | 956 <td><input type="image" |
946 onclick="setAction('sortByStartPageUp', 'fullTextSearchForm');" | 957 onclick="setAction('sortByStartPageUp', 'fullTextSearchForm');" |
947 src="<%=sessionBean.getApplicationBean().getUpImage()%>"/> | 958 src="<%=sessionBean.getApplicationBean().getUpImage()%>" /> |
948 </td></tr> | 959 </td> |
949 <tr><td> | 960 </tr> |
950 <input type="image" | 961 <tr> |
962 <td><input type="image" | |
951 onclick="setAction('sortByStartPageDown', 'fullTextSearchForm');" | 963 onclick="setAction('sortByStartPageDown', 'fullTextSearchForm');" |
952 src="<%=sessionBean.getApplicationBean().getDownImage()%>"/> | 964 src="<%=sessionBean.getApplicationBean().getDownImage()%>" /> |
953 </td></tr> | 965 </td> |
966 </tr> | |
954 </table> | 967 </table> |
955 </td> | 968 </td> |
956 </tr> | 969 </tr> |
957 </table> | 970 </table> |
958 | 971 |
959 </th> | 972 </th> |
960 <th style="min-width:300px"> | 973 <th style="min-width: 300px"> |
961 | 974 |
962 <table class="sortTable"> | 975 <table class="sortTable"> |
963 <tr> | 976 <tr> |
964 <td><label class="tableTitle">Content</label></td> | 977 <td><label class="tableTitle">Content</label></td> |
965 <td></td> | 978 <td></td> |
966 </tr> | 979 </tr> |
967 <tr> | 980 <tr> |
968 <td> | 981 <td><input type="text" class="filterInput" |
969 <input type="text" class="filterInput" name="contentFilter" id="contentFilter" value="<%= sessionBean.getFullTextSearchPage().getContentFilter()%>" size="8"/> | 982 name="contentFilter" id="contentFilter" |
970 </td> | 983 value="<%=sessionBean.getFullTextSearchPage() |
971 <td> | 984 .getContentFilter()%>" |
972 <input type="image" | 985 size="8" /></td> |
973 onclick="setAction('filter', 'fullTextSearchForm');" | 986 <td><input type="image" |
974 src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/> | 987 onclick="setAction('filter', 'fullTextSearchForm');" |
975 </td> | 988 src="<%=sessionBean.getApplicationBean().getFilterImage()%>" /> |
976 </tr> | 989 </td> |
977 | 990 </tr> |
978 </table> | 991 |
979 | 992 </table> |
993 | |
980 </th> | 994 </th> |
981 <th><label class="tableTitle">Select rows</label></th> | 995 <th><label class="tableTitle">Select rows</label></th> |
982 </tr> | 996 </tr> |
983 | 997 |
984 | 998 |
985 <% | 999 <% |
986 for (DBContents content : sessionBean.getFullTextSearchPage().getDisplayList() ) { | 1000 for (DBContents content : sessionBean |
1001 .getFullTextSearchPage().getDisplayList()) { | |
987 %> | 1002 %> |
1003 | |
1004 <% | |
1005 if (content.isRemoved()) { | |
1006 %> | |
1007 <tr class="removedContent"> | |
1008 <% | |
1009 } else { | |
1010 %> | |
988 | 1011 |
989 <% if ( content.isRemoved() ) { %> | 1012 <tr> |
990 <tr class="removedContent"> | 1013 <% |
991 <% } else { %> | 1014 } |
992 <tr> | 1015 %> |
993 <% } %> | 1016 |
994 | 1017 <td><%=content.getInx()%></td> |
995 <td><%=content.getInx() %></td> | 1018 <td><%=content.getBookId()%></td> |
996 <td><%=content.getBookId() %></td> | |
997 <td><%=content.getSection().getBook().getName()%></td> | 1019 <td><%=content.getSection().getBook().getName()%></td> |
998 <td><%=content.getSection().getBook().getLevel1()%></td> | 1020 <td><%=content.getSection().getBook().getLevel1()%></td> |
999 <td><%=content.getSection().getBook().getLevel2()%></td> | 1021 <td><%=content.getSection().getBook().getLevel2()%></td> |
1000 <td><%=content.getSection().getBook().getDynasty()%></td> | 1022 <td><%=content.getSection().getBook().getDynasty()%></td> |
1001 <td><%=content.getSection().getBook().getPeriod()%></td> | 1023 <td><%=content.getSection().getBook().getPeriod()%></td> |
1002 <td><%=content.getSection().getBook().getAdmin_type() %></td> | 1024 <td><%=content.getSection().getBook() |
1003 <td><%=content.getSection().getName() %></td> | 1025 .getAdmin_type()%></td> |
1004 | 1026 <td><%=content.getSection().getName()%></td> |
1027 | |
1005 <!-- View text in Ext-Interface --> | 1028 <!-- View text in Ext-Interface --> |
1006 <td> | 1029 <td><a href="#" title="Show Section in Extraction Interface" |
1007 <a href="#" | 1030 onclick="sectionInExtractionInterface('<%=content.getSection().getId()%>', '<%=content.getSection().getName()%>', '<%=content.getSection().getBook().getId()%>', '<%=content.getSection().getBook().getName()%>', '<%=sessionBean.getTopicListPage() |
1008 title="Show Section in Extraction Interface" | 1031 .getCompleteTopicList().get(0).getId()%>', '<%=sessionBean.getUser().getId()%>', '<%=sessionBean.getApplicationBean() |
1009 onclick="sectionInExtractionInterface('<%=content.getSection().getId() %>', '<%=content.getSection().getName() %>', '<%=content.getSection().getBook().getId() %>', '<%=content.getSection().getBook().getName() %>', '<%=sessionBean.getTopicListPage().getCompleteTopicList().get(0).getId() %>', '<%=sessionBean.getUser().getId() %>', '<%=sessionBean.getApplicationBean().getExtractionInterfaceUrl()%>');"> | 1032 .getExtractionInterfaceUrl()%>');"> |
1010 <img title="Show Section in Extraction Interface" src="<%=sessionBean.getApplicationBean().getShowImage()%>"> | 1033 <img title="Show Section in Extraction Interface" |
1011 </a> | 1034 src="<%=sessionBean.getApplicationBean() |
1012 | 1035 .getShowImage()%>"> |
1036 </a></td> | |
1037 | |
1038 | |
1039 <td><%=content.getPage()%></td> | |
1040 <td class="content"><%=content.getContent()%></td> | |
1041 <td id="content_<%=content.getId()%>"> | |
1042 <% | |
1043 if (content.isRemoved()) { | |
1044 %> <input type="image" | |
1045 onclick="setMousePos(); setAction0('recoverFocusedContent', 'fullTextSearchForm', 'focusedContentId', '<%=content.getId()%>');" | |
1046 src="<%=sessionBean.getApplicationBean() | |
1047 .getCheckboxUncheckedImage()%>" | |
1048 width="20" height="20" /> <% | |
1049 } else { | |
1050 %> <input type="image" | |
1051 onclick="setMousePos(); setAction0('removeFocusedContent', 'fullTextSearchForm', 'focusedContentId', '<%=content.getId()%>');" | |
1052 src="<%=sessionBean.getApplicationBean() | |
1053 .getCheckboxCheckedImage()%>" | |
1054 width="20" height="20" /> <% | |
1055 } | |
1056 %> | |
1057 | |
1058 | |
1059 | |
1013 </td> | 1060 </td> |
1014 | 1061 |
1015 | 1062 |
1016 <td><%=content.getPage() %></td> | |
1017 <td class="content"><%=content.getContent()%></td> | |
1018 <td id="content_<%=content.getId() %>"> | |
1019 <% if ( content.isRemoved() ) { %> | |
1020 | |
1021 <input type="image" onclick="setMousePos(); setAction0('recoverFocusedContent', 'fullTextSearchForm', 'focusedContentId', '<%=content.getId() %>');" | |
1022 src="<%=sessionBean.getApplicationBean().getCheckboxUncheckedImage()%>" width="20" height="20"/> | |
1023 | |
1024 <% } else { %> | |
1025 | |
1026 <input type="image" onclick="setMousePos(); setAction0('removeFocusedContent', 'fullTextSearchForm', 'focusedContentId', '<%=content.getId() %>');" | |
1027 src="<%=sessionBean.getApplicationBean().getCheckboxCheckedImage()%>" width="20" height="20"/> | |
1028 | |
1029 <% } %> | |
1030 | |
1031 | |
1032 | |
1033 </td> | |
1034 | |
1035 | |
1036 </tr> | 1063 </tr> |
1037 <% | 1064 <% |
1038 } | 1065 } |
1039 %> | 1066 %> |
1040 | 1067 |
1041 </tbody> | 1068 </tbody> |
1042 </table> | 1069 </table> |
1043 | 1070 |
1044 | 1071 |
1045 <% | 1072 <% |
1046 } | 1073 } |
1047 %> | 1074 %> |
1048 | 1075 |
1049 </div> | 1076 </div> |
1050 | 1077 |
1051 <jsp:include page="../componentes/paginator.jsp"> | 1078 <jsp:include page="../componentes/paginator.jsp"> |
1052 <jsp:param name="formName" value="fullTextSearchForm"/> | 1079 <jsp:param name="formName" value="fullTextSearchForm" /> |
1053 </jsp:include> | 1080 </jsp:include> |
1054 | 1081 |
1055 | 1082 |
1056 </form> | 1083 </form> |
1057 | 1084 |
1058 <% } %> | 1085 <% |
1059 | 1086 } |
1087 %> | |
1088 | |
1060 </div> | 1089 </div> |
1061 | 1090 |
1062 </body> | 1091 </body> |
1063 </html> | 1092 </html> |