annotate src/main/java/de/mpiwg/web/jsp/JSPProxy.java @ 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 cf747a960516
children 90d5e86c157d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
3e62083dbcbf First commit. This project comes from LGServer. We removed the framework icefaces. Now, LGServices uses just JSP and jquery.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1 package de.mpiwg.web.jsp;
3e62083dbcbf First commit. This project comes from LGServer. We removed the framework icefaces. Now, LGServices uses just JSP and jquery.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
2
3e62083dbcbf First commit. This project comes from LGServer. We removed the framework icefaces. Now, LGServices uses just JSP and jquery.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
3 import org.apache.commons.lang.StringUtils;
3e62083dbcbf First commit. This project comes from LGServer. We removed the framework icefaces. Now, LGServices uses just JSP and jquery.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
4 import org.apache.log4j.Logger;
3e62083dbcbf First commit. This project comes from LGServer. We removed the framework icefaces. Now, LGServices uses just JSP and jquery.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
5
3e62083dbcbf First commit. This project comes from LGServer. We removed the framework icefaces. Now, LGServices uses just JSP and jquery.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
6 public class JSPProxy extends AbstractJSPPage {
3e62083dbcbf First commit. This project comes from LGServer. We removed the framework icefaces. Now, LGServices uses just JSP and jquery.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
7
3e62083dbcbf First commit. This project comes from LGServer. We removed the framework icefaces. Now, LGServices uses just JSP and jquery.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
8 private static Logger logger = Logger.getLogger(JSPProxy.class);
3e62083dbcbf First commit. This project comes from LGServer. We removed the framework icefaces. Now, LGServices uses just JSP and jquery.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
9
3e62083dbcbf First commit. This project comes from LGServer. We removed the framework icefaces. Now, LGServices uses just JSP and jquery.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
10 private String action;
3e62083dbcbf First commit. This project comes from LGServer. We removed the framework icefaces. Now, LGServices uses just JSP and jquery.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
11 private String bean;
3e62083dbcbf First commit. This project comes from LGServer. We removed the framework icefaces. Now, LGServices uses just JSP and jquery.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
12
3e62083dbcbf First commit. This project comes from LGServer. We removed the framework icefaces. Now, LGServices uses just JSP and jquery.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
13 public void init(){
3e62083dbcbf First commit. This project comes from LGServer. We removed the framework icefaces. Now, LGServices uses just JSP and jquery.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
14 /*
3e62083dbcbf First commit. This project comes from LGServer. We removed the framework icefaces. Now, LGServices uses just JSP and jquery.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
15 Map<String, String[]> parameters = request.getParameterMap();
3e62083dbcbf First commit. This project comes from LGServer. We removed the framework icefaces. Now, LGServices uses just JSP and jquery.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
16 for(String parameter : parameters.keySet()) {
3e62083dbcbf First commit. This project comes from LGServer. We removed the framework icefaces. Now, LGServices uses just JSP and jquery.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
17 if(parameter.toLowerCase().startsWith("token")) {
3e62083dbcbf First commit. This project comes from LGServer. We removed the framework icefaces. Now, LGServices uses just JSP and jquery.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
18 String[] values = parameters.get(parameter);
3e62083dbcbf First commit. This project comes from LGServer. We removed the framework icefaces. Now, LGServices uses just JSP and jquery.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
19 System.out.println(parameter + "= " + values);
3e62083dbcbf First commit. This project comes from LGServer. We removed the framework icefaces. Now, LGServices uses just JSP and jquery.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
20 }
3e62083dbcbf First commit. This project comes from LGServer. We removed the framework icefaces. Now, LGServices uses just JSP and jquery.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
21 }*/
3e62083dbcbf First commit. This project comes from LGServer. We removed the framework icefaces. Now, LGServices uses just JSP and jquery.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
22 }
3e62083dbcbf First commit. This project comes from LGServer. We removed the framework icefaces. Now, LGServices uses just JSP and jquery.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
23
3e62083dbcbf First commit. This project comes from LGServer. We removed the framework icefaces. Now, LGServices uses just JSP and jquery.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
24
3e62083dbcbf First commit. This project comes from LGServer. We removed the framework icefaces. Now, LGServices uses just JSP and jquery.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
25 public String processRequest(){
3e62083dbcbf First commit. This project comes from LGServer. We removed the framework icefaces. Now, LGServices uses just JSP and jquery.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
26
3e62083dbcbf First commit. This project comes from LGServer. We removed the framework icefaces. Now, LGServices uses just JSP and jquery.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
27 logger.info("processRequest [bean= " + bean + ", action=" + action +"]");
3e62083dbcbf First commit. This project comes from LGServer. We removed the framework icefaces. Now, LGServices uses just JSP and jquery.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
28
11
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
29 try{
41
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
30
43
9dbbbfd474f4 new: 1.existing topic in search result. 2.difference-set of book for topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 42
diff changeset
31
9dbbbfd474f4 new: 1.existing topic in search result. 2.difference-set of book for topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 42
diff changeset
32 if(StringUtils.equals(bean, "loginBean")){
9dbbbfd474f4 new: 1.existing topic in search result. 2.difference-set of book for topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 42
diff changeset
33 getSessionBean().loadParameters(request, response);
9dbbbfd474f4 new: 1.existing topic in search result. 2.difference-set of book for topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 42
diff changeset
34
9dbbbfd474f4 new: 1.existing topic in search result. 2.difference-set of book for topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 42
diff changeset
35 if(StringUtils.equals(action, "login")){
9dbbbfd474f4 new: 1.existing topic in search result. 2.difference-set of book for topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 42
diff changeset
36 getSessionBean().login();
9dbbbfd474f4 new: 1.existing topic in search result. 2.difference-set of book for topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 42
diff changeset
37 }else if(StringUtils.equals(action, "logout")){
9dbbbfd474f4 new: 1.existing topic in search result. 2.difference-set of book for topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 42
diff changeset
38 getSessionBean().logout();
9dbbbfd474f4 new: 1.existing topic in search result. 2.difference-set of book for topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 42
diff changeset
39 }
58
b8ad346e39a0 new: modify based on doc 'Improving LGServices interface.docx': user workflow improvement, functions like adding task into a topic and search suggestions.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 51
diff changeset
40 //return TopicListPage.page; // the new home page?
b8ad346e39a0 new: modify based on doc 'Improving LGServices interface.docx': user workflow improvement, functions like adding task into a topic and search suggestions.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 51
diff changeset
41 return "pages/home.jsp";
43
9dbbbfd474f4 new: 1.existing topic in search result. 2.difference-set of book for topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 42
diff changeset
42
9dbbbfd474f4 new: 1.existing topic in search result. 2.difference-set of book for topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 42
diff changeset
43 } else if (getSessionBean() == null || getSessionBean().getUser() == null) {
9dbbbfd474f4 new: 1.existing topic in search result. 2.difference-set of book for topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 42
diff changeset
44 // return to home page where will ask user to login.
9dbbbfd474f4 new: 1.existing topic in search result. 2.difference-set of book for topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 42
diff changeset
45
9dbbbfd474f4 new: 1.existing topic in search result. 2.difference-set of book for topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 42
diff changeset
46 // alert session timeout
9dbbbfd474f4 new: 1.existing topic in search result. 2.difference-set of book for topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 42
diff changeset
47 getSessionBean().addMsg("Timeout or Logout at another page! Please login again.");
9dbbbfd474f4 new: 1.existing topic in search result. 2.difference-set of book for topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 42
diff changeset
48
58
b8ad346e39a0 new: modify based on doc 'Improving LGServices interface.docx': user workflow improvement, functions like adding task into a topic and search suggestions.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 51
diff changeset
49 //return TopicListPage.page; // the new home page?
b8ad346e39a0 new: modify based on doc 'Improving LGServices interface.docx': user workflow improvement, functions like adding task into a topic and search suggestions.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 51
diff changeset
50 return "pages/home.jsp";
43
9dbbbfd474f4 new: 1.existing topic in search result. 2.difference-set of book for topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 42
diff changeset
51 }
9dbbbfd474f4 new: 1.existing topic in search result. 2.difference-set of book for topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 42
diff changeset
52
9dbbbfd474f4 new: 1.existing topic in search result. 2.difference-set of book for topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 42
diff changeset
53
11
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
54 if(StringUtils.equals(bean, BranchPage.bean)){
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
55
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
56 getSessionBean().getBranchPage().loadParameters(request, response);
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
57
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
58 if(StringUtils.equals(action, "addContributor")){
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
59 getSessionBean().getBranchPage().addContributor();
58
b8ad346e39a0 new: modify based on doc 'Improving LGServices interface.docx': user workflow improvement, functions like adding task into a topic and search suggestions.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 51
diff changeset
60 }else if(StringUtils.equals(action, "removeContributor")){
11
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
61 getSessionBean().getBranchPage().removeContributor();
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
62 }else if(StringUtils.equals(action, "deleteFile")){
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
63 getSessionBean().getBranchPage().deleteFile();
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
64 }else if(StringUtils.equals(action, "publishFile")){
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
65 getSessionBean().getBranchPage().publishFile();
31
c8d367a4bbcd new: user updates label in branch
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 24
diff changeset
66 }else if(StringUtils.equals(action, "updateLabel")){
c8d367a4bbcd new: user updates label in branch
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 24
diff changeset
67 getSessionBean().getBranchPage().updateLabel();
34
2e1662afc81c new: add synchronization for files uploaded to LGDataverse
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 32
diff changeset
68 }else if (StringUtils.equals(action, "forceReloadBranch")) {
2e1662afc81c new: add synchronization for files uploaded to LGDataverse
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 32
diff changeset
69 getSessionBean().getBranchPage().forceReloadBranch();
11
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
70 }
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
71
34
2e1662afc81c new: add synchronization for files uploaded to LGDataverse
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 32
diff changeset
72
11
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
73 return BranchPage.page;
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
74
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
75
41
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
76 } else if(StringUtils.equals(bean, CreateFilePage.bean)){
11
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
77
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
78 getSessionBean().getCreateFilePage().loadParameters(request, response);
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
79
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
80 if(StringUtils.equals(action, "loadSection")){
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
81 getSessionBean().getCreateFilePage().loadSection();
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
82 }else if(StringUtils.equals(action, "reset")){
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
83 getSessionBean().getCreateFilePage().reset();
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
84 }
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
85
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
86 return CreateFilePage.page;
39
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
87
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
88 } else if(StringUtils.equals(bean, HomePage.bean)){
11
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
89
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
90 getSessionBean().getHomePage().loadParameters(request, response);
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
91
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
92 if(StringUtils.equals(action, "deleteBranch")){
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
93 getSessionBean().getHomePage().deleteBranch();
32
74fe1518bc5c new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 31
diff changeset
94 } else if(StringUtils.equals(action, "reloadBranches")){
11
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
95 getSessionBean().getHomePage().reloadBranches();
32
74fe1518bc5c new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 31
diff changeset
96 }
74fe1518bc5c new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 31
diff changeset
97 // zoe add for sorting in home page, which shows user's branches
74fe1518bc5c new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 31
diff changeset
98 else if (StringUtils.equals(action, "forceReloadBranches")) {
74fe1518bc5c new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 31
diff changeset
99 getSessionBean().getHomePage().forceLoadBranches();;
74fe1518bc5c new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 31
diff changeset
100 } else if(StringUtils.equals(action, "filter")){
74fe1518bc5c new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 31
diff changeset
101 getSessionBean().getHomePage().filter();
74fe1518bc5c new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 31
diff changeset
102 }
74fe1518bc5c new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 31
diff changeset
103 else if(StringUtils.equals(action, "sortByBranchIdUp")) {
74fe1518bc5c new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 31
diff changeset
104 getSessionBean().getHomePage().sortByBranchIdUp();
74fe1518bc5c new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 31
diff changeset
105 } else if(StringUtils.equals(action, "sortByBranchIdDown")) {
74fe1518bc5c new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 31
diff changeset
106 getSessionBean().getHomePage().sortByBranchIdDown();
74fe1518bc5c new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 31
diff changeset
107 } else if(StringUtils.equals(action, "sortByBookNameUp")) {
74fe1518bc5c new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 31
diff changeset
108 getSessionBean().getHomePage().sortByBookNameUp();
74fe1518bc5c new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 31
diff changeset
109 } else if(StringUtils.equals(action, "sortByBookNameDown")) {
74fe1518bc5c new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 31
diff changeset
110 getSessionBean().getHomePage().sortByBookNameDown();
35
89a5ca7d44f7 new: rename branch to task, add fields in task table, add scroll bar
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 34
diff changeset
111
89a5ca7d44f7 new: rename branch to task, add fields in task table, add scroll bar
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 34
diff changeset
112 } else if(StringUtils.equals(action, "sortByLevel1Up")) {
89a5ca7d44f7 new: rename branch to task, add fields in task table, add scroll bar
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 34
diff changeset
113 getSessionBean().getHomePage().sortByLevel1Up();
89a5ca7d44f7 new: rename branch to task, add fields in task table, add scroll bar
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 34
diff changeset
114 } else if(StringUtils.equals(action, "sortByLevel1Down")) {
89a5ca7d44f7 new: rename branch to task, add fields in task table, add scroll bar
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 34
diff changeset
115 getSessionBean().getHomePage().sortByLevel1Down();
89a5ca7d44f7 new: rename branch to task, add fields in task table, add scroll bar
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 34
diff changeset
116 } else if(StringUtils.equals(action, "sortByLevel2Up")) {
89a5ca7d44f7 new: rename branch to task, add fields in task table, add scroll bar
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 34
diff changeset
117 getSessionBean().getHomePage().sortByLevel2Up();
89a5ca7d44f7 new: rename branch to task, add fields in task table, add scroll bar
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 34
diff changeset
118 } else if(StringUtils.equals(action, "sortByLevel2Down")) {
89a5ca7d44f7 new: rename branch to task, add fields in task table, add scroll bar
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 34
diff changeset
119 getSessionBean().getHomePage().sortByLevel2Down();
89a5ca7d44f7 new: rename branch to task, add fields in task table, add scroll bar
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 34
diff changeset
120
89a5ca7d44f7 new: rename branch to task, add fields in task table, add scroll bar
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 34
diff changeset
121 } else if(StringUtils.equals(action, "sortByAdminTypeUp")) {
89a5ca7d44f7 new: rename branch to task, add fields in task table, add scroll bar
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 34
diff changeset
122 getSessionBean().getHomePage().sortByAdminTypeUp();
89a5ca7d44f7 new: rename branch to task, add fields in task table, add scroll bar
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 34
diff changeset
123 } else if(StringUtils.equals(action, "sortByAdminTypeDown")) {
89a5ca7d44f7 new: rename branch to task, add fields in task table, add scroll bar
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 34
diff changeset
124 getSessionBean().getHomePage().sortByAdminTypeDown();
89a5ca7d44f7 new: rename branch to task, add fields in task table, add scroll bar
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 34
diff changeset
125 } else if(StringUtils.equals(action, "sortByDynastyUp")) {
89a5ca7d44f7 new: rename branch to task, add fields in task table, add scroll bar
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 34
diff changeset
126 getSessionBean().getHomePage().sortByDynastyUp();
89a5ca7d44f7 new: rename branch to task, add fields in task table, add scroll bar
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 34
diff changeset
127 } else if(StringUtils.equals(action, "sortByDynastyDown")) {
89a5ca7d44f7 new: rename branch to task, add fields in task table, add scroll bar
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 34
diff changeset
128 getSessionBean().getHomePage().sortByDynastyDown();
89a5ca7d44f7 new: rename branch to task, add fields in task table, add scroll bar
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 34
diff changeset
129 } else if(StringUtils.equals(action, "sortBySectionStartPageUp")) {
89a5ca7d44f7 new: rename branch to task, add fields in task table, add scroll bar
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 34
diff changeset
130 getSessionBean().getHomePage().sortBySectionStartPageUp();
89a5ca7d44f7 new: rename branch to task, add fields in task table, add scroll bar
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 34
diff changeset
131 } else if(StringUtils.equals(action, "sortBySectionStartPageDown")) {
89a5ca7d44f7 new: rename branch to task, add fields in task table, add scroll bar
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 34
diff changeset
132 getSessionBean().getHomePage().sortBySectionStartPageDown();
89a5ca7d44f7 new: rename branch to task, add fields in task table, add scroll bar
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 34
diff changeset
133
89a5ca7d44f7 new: rename branch to task, add fields in task table, add scroll bar
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 34
diff changeset
134
32
74fe1518bc5c new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 31
diff changeset
135 } else if(StringUtils.equals(action, "sortByPeriodUp")) {
74fe1518bc5c new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 31
diff changeset
136 getSessionBean().getHomePage().sortByPeriodUp();
74fe1518bc5c new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 31
diff changeset
137 } else if(StringUtils.equals(action, "sortByPeriodDown")) {
74fe1518bc5c new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 31
diff changeset
138 getSessionBean().getHomePage().sortByPeriodDown();
74fe1518bc5c new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 31
diff changeset
139 } else if(StringUtils.equals(action, "sortBySectionNameUp")) {
74fe1518bc5c new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 31
diff changeset
140 getSessionBean().getHomePage().sortBySectionNameUp();
74fe1518bc5c new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 31
diff changeset
141 } else if(StringUtils.equals(action, "sortBySectionNameDown")) {
74fe1518bc5c new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 31
diff changeset
142 getSessionBean().getHomePage().sortBySectionNameDown();
74fe1518bc5c new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 31
diff changeset
143 } else if(StringUtils.equals(action, "sortByLabelUp")) {
74fe1518bc5c new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 31
diff changeset
144 getSessionBean().getHomePage().sortByLabelUp();
74fe1518bc5c new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 31
diff changeset
145 } else if(StringUtils.equals(action, "sortByLabelDown")) {
74fe1518bc5c new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 31
diff changeset
146 getSessionBean().getHomePage().sortByLabelDown();
74fe1518bc5c new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 31
diff changeset
147 } else if(StringUtils.equals(action, "sortByLastModifiedUp")) {
74fe1518bc5c new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 31
diff changeset
148 getSessionBean().getHomePage().sortByLastModifiedUp();
74fe1518bc5c new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 31
diff changeset
149 } else if(StringUtils.equals(action, "sortByLastModifiedDown")) {
74fe1518bc5c new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 31
diff changeset
150 getSessionBean().getHomePage().sortByLastModifiedDown();
34
2e1662afc81c new: add synchronization for files uploaded to LGDataverse
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 32
diff changeset
151 } else if(StringUtils.equals(action, "sortByPublishedInDataverseUp")) {
2e1662afc81c new: add synchronization for files uploaded to LGDataverse
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 32
diff changeset
152 getSessionBean().getHomePage().sortByPublishedInDataverseUp();
2e1662afc81c new: add synchronization for files uploaded to LGDataverse
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 32
diff changeset
153 } else if(StringUtils.equals(action, "sortByPublishedInDataverseDown")) {
2e1662afc81c new: add synchronization for files uploaded to LGDataverse
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 32
diff changeset
154 getSessionBean().getHomePage().sortByPublishedInDataverseDown();
11
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
155 }
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
156
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
157 return HomePage.page;
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
158
43
9dbbbfd474f4 new: 1.existing topic in search result. 2.difference-set of book for topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 42
diff changeset
159
11
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
160 }else if(StringUtils.equals(bean, SearchPage.bean)){
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
161 getSessionBean().getSearchPage().loadParameters(request, response);
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
162
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
163 if(StringUtils.equals(action, "search")){
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
164 getSessionBean().getSearchPage().search();
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
165 } else if(StringUtils.equals(action, "filter")){
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
166 getSessionBean().getSearchPage().filter();
41
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
167
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
168
11
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
169 //PAGINATOR
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
170 } else if(StringUtils.equals(action, "firstPage")){
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
171 getSessionBean().getSearchPage().firstPage();
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
172 } else if(StringUtils.equals(action, "fastRewind")){
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
173 getSessionBean().getSearchPage().fastRewind();
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
174 } else if(StringUtils.equals(action, "previousPage")){
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
175 getSessionBean().getSearchPage().previousPage();
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
176 } else if(StringUtils.equals(action, "nextPage")){
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
177 getSessionBean().getSearchPage().nextPage();
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
178 } else if(StringUtils.equals(action, "fastForward")){
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
179 getSessionBean().getSearchPage().fastForward();
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
180 } else if(StringUtils.equals(action, "lastPage")){
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
181 getSessionBean().getSearchPage().lastPage();
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
182
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
183 //SORTING
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
184 } else if(StringUtils.equals(action, "sortByBookIdUp")){
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
185 getSessionBean().getSearchPage().sortByBookIdUp();
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
186 } else if(StringUtils.equals(action, "sortByBookIdDown")){
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
187 getSessionBean().getSearchPage().sortByBookIdDown();
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
188 } else if(StringUtils.equals(action, "sortByBookNameUp")){
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
189 getSessionBean().getSearchPage().sortByBookNameUp();
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
190 } else if(StringUtils.equals(action, "sortByBookNameDown")){
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
191 getSessionBean().getSearchPage().sortByBookNameDown();
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
192 } else if(StringUtils.equals(action, "sortByDynastyUp")){
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
193 getSessionBean().getSearchPage().sortByDynastyUp();
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
194 } else if(StringUtils.equals(action, "sortByDynastyDown")){
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
195 getSessionBean().getSearchPage().sortByDynastyDown();
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
196 } else if(StringUtils.equals(action, "sortByPeriodUp")){
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
197 getSessionBean().getSearchPage().sortByPeriodUp();
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
198 } else if(StringUtils.equals(action, "sortByPeriodDown")){
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
199 getSessionBean().getSearchPage().sortByPeriodDown();
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
200 } else if(StringUtils.equals(action, "sortByVolumeUp")){
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
201 getSessionBean().getSearchPage().sortByVolumeUp();
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
202 } else if(StringUtils.equals(action, "sortByVolumeDown")){
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
203 getSessionBean().getSearchPage().sortByVolumeDown();
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
204 } else if(StringUtils.equals(action, "sortBySectionNameUp")){
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
205 getSessionBean().getSearchPage().sortBySectionNameUp();
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
206 } else if(StringUtils.equals(action, "sortBySectionNameDown")){
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
207 getSessionBean().getSearchPage().sortBySectionNameDown();
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
208
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
209 } else if(StringUtils.equals(action, "sortByLevel1Up")){
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
210 getSessionBean().getSearchPage().sortByLevel1Up();
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
211 } else if(StringUtils.equals(action, "sortByLevel1Down")){
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
212 getSessionBean().getSearchPage().sortByLevel1Down();
58
b8ad346e39a0 new: modify based on doc 'Improving LGServices interface.docx': user workflow improvement, functions like adding task into a topic and search suggestions.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 51
diff changeset
213 } else if(StringUtils.equals(action, "sortByLevel2Up")){
b8ad346e39a0 new: modify based on doc 'Improving LGServices interface.docx': user workflow improvement, functions like adding task into a topic and search suggestions.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 51
diff changeset
214 getSessionBean().getSearchPage().sortByLevel2Up();
b8ad346e39a0 new: modify based on doc 'Improving LGServices interface.docx': user workflow improvement, functions like adding task into a topic and search suggestions.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 51
diff changeset
215 } else if(StringUtils.equals(action, "sortByLevel2Down")){
b8ad346e39a0 new: modify based on doc 'Improving LGServices interface.docx': user workflow improvement, functions like adding task into a topic and search suggestions.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 51
diff changeset
216 getSessionBean().getSearchPage().sortByLevel2Down();
b8ad346e39a0 new: modify based on doc 'Improving LGServices interface.docx': user workflow improvement, functions like adding task into a topic and search suggestions.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 51
diff changeset
217
11
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
218 } else if(StringUtils.equals(action, "sortByAdminTypeUp")){
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
219 getSessionBean().getSearchPage().sortByAdminTypeUp();
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
220 } else if(StringUtils.equals(action, "sortByAdminTypeDown")){
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
221 getSessionBean().getSearchPage().sortByAdminTypeDown();
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
222
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
223 } else if(StringUtils.equals(action, "sortByStartPageUp")){
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
224 getSessionBean().getSearchPage().sortByStartPageUp();
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
225 } else if(StringUtils.equals(action, "sortByStartPageDown")){
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
226 getSessionBean().getSearchPage().sortByStartPageDown();
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
227 }
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
228
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
229 return SearchPage.page;
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
230
39
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
231 } else if(StringUtils.equals(bean, FullTextSearchPage.bean)){
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
232 getSessionBean().getFullTextSearchPage().loadParameters(request, response);
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
233
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
234 if(StringUtils.equals(action, "search")){
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
235 getSessionBean().getFullTextSearchPage().search();
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
236 } else if(StringUtils.equals(action, "filter")){
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
237 getSessionBean().getFullTextSearchPage().filter();
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
238 } else if(StringUtils.equals(action, "save")){
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
239 getSessionBean().getFullTextSearchPage().save();
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
240 } else if(StringUtils.equals(action, "removeFocusedContent")){
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
241 getSessionBean().getFullTextSearchPage().removeFocusedContent(true);
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
242 } else if(StringUtils.equals(action, "recoverFocusedContent")){
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
243 getSessionBean().getFullTextSearchPage().removeFocusedContent(false);
48
13555aff1f88 new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 43
diff changeset
244
13555aff1f88 new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 43
diff changeset
245 // for searching in batch keywords
13555aff1f88 new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 43
diff changeset
246 } else if(StringUtils.equals(action, "searchBatch")){
49
7c2e1b14b77d new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 48
diff changeset
247 getSessionBean().getFullTextSearchPage().searchBatch();
39
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
248
49
7c2e1b14b77d new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 48
diff changeset
249 // load existing searching result
7c2e1b14b77d new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 48
diff changeset
250 } else if(StringUtils.equals(action, "loadFile")) {
7c2e1b14b77d new: load existing full text searching result into searching table
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 48
diff changeset
251 getSessionBean().getFullTextSearchPage().loadFile();
48
13555aff1f88 new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 43
diff changeset
252
51
cf747a960516 new: auto scroll to the last position when de/selecting rows, and add number of selected rows info, in full text search page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 49
diff changeset
253 // delete existing searching result
cf747a960516 new: auto scroll to the last position when de/selecting rows, and add number of selected rows info, in full text search page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 49
diff changeset
254 } else if(StringUtils.equals(action, "deleteFile")) {
cf747a960516 new: auto scroll to the last position when de/selecting rows, and add number of selected rows info, in full text search page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 49
diff changeset
255 getSessionBean().getFullTextSearchPage().deleteFile();
cf747a960516 new: auto scroll to the last position when de/selecting rows, and add number of selected rows info, in full text search page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 49
diff changeset
256
39
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
257 //PAGINATOR
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
258 } else if(StringUtils.equals(action, "firstPage")){
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
259 getSessionBean().getFullTextSearchPage().firstPage();
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
260 } else if(StringUtils.equals(action, "fastRewind")){
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
261 getSessionBean().getFullTextSearchPage().fastRewind();
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
262 } else if(StringUtils.equals(action, "previousPage")){
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
263 getSessionBean().getFullTextSearchPage().previousPage();
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
264 } else if(StringUtils.equals(action, "nextPage")){
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
265 getSessionBean().getFullTextSearchPage().nextPage();
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
266 } else if(StringUtils.equals(action, "fastForward")){
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
267 getSessionBean().getFullTextSearchPage().fastForward();
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
268 } else if(StringUtils.equals(action, "lastPage")){
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
269 getSessionBean().getFullTextSearchPage().lastPage();
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
270
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
271 //SORTING
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
272 } else if(StringUtils.equals(action, "sortByInxUp")){
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
273 getSessionBean().getFullTextSearchPage().sortByInxUp();
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
274 } else if(StringUtils.equals(action, "sortByInxDown")){
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
275 getSessionBean().getFullTextSearchPage().sortByInxDown();
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
276 } else if(StringUtils.equals(action, "sortByBookIdUp")){
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
277 getSessionBean().getFullTextSearchPage().sortByBookIdUp();
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
278 } else if(StringUtils.equals(action, "sortByBookIdDown")){
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
279 getSessionBean().getFullTextSearchPage().sortByBookIdDown();
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
280 } else if(StringUtils.equals(action, "sortByBookNameUp")){
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
281 getSessionBean().getFullTextSearchPage().sortByBookNameUp();
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
282 } else if(StringUtils.equals(action, "sortByBookNameDown")){
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
283 getSessionBean().getFullTextSearchPage().sortByBookNameDown();
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
284 } else if(StringUtils.equals(action, "sortByDynastyUp")){
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
285 getSessionBean().getFullTextSearchPage().sortByDynastyUp();
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
286 } else if(StringUtils.equals(action, "sortByDynastyDown")){
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
287 getSessionBean().getFullTextSearchPage().sortByDynastyDown();
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
288 } else if(StringUtils.equals(action, "sortByPeriodUp")){
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
289 getSessionBean().getFullTextSearchPage().sortByPeriodUp();
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
290 } else if(StringUtils.equals(action, "sortByPeriodDown")){
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
291 getSessionBean().getFullTextSearchPage().sortByPeriodDown();
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
292 } else if(StringUtils.equals(action, "sortBySectionNameUp")){
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
293 getSessionBean().getFullTextSearchPage().sortBySectionNameUp();
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
294 } else if(StringUtils.equals(action, "sortBySectionNameDown")){
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
295 getSessionBean().getFullTextSearchPage().sortBySectionNameDown();
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
296
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
297 } else if(StringUtils.equals(action, "sortByLevel1Up")){
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
298 getSessionBean().getFullTextSearchPage().sortByLevel1Up();
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
299 } else if(StringUtils.equals(action, "sortByLevel1Down")){
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
300 getSessionBean().getFullTextSearchPage().sortByLevel1Down();
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
301 } else if(StringUtils.equals(action, "sortByLevel2Up")){
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
302 getSessionBean().getFullTextSearchPage().sortByLevel2Up();
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
303 } else if(StringUtils.equals(action, "sortByLevel2Down")){
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
304 getSessionBean().getFullTextSearchPage().sortByLevel2Down();
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
305 } else if(StringUtils.equals(action, "sortByAdminTypeUp")){
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
306 getSessionBean().getFullTextSearchPage().sortByAdminTypeUp();
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
307 } else if(StringUtils.equals(action, "sortByAdminTypeDown")){
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
308 getSessionBean().getFullTextSearchPage().sortByAdminTypeDown();
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
309
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
310 } else if(StringUtils.equals(action, "sortByStartPageUp")){
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
311 getSessionBean().getFullTextSearchPage().sortByStartPageUp();
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
312 } else if(StringUtils.equals(action, "sortByStartPageDown")){
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
313 getSessionBean().getFullTextSearchPage().sortByStartPageDown();
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
314 }
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
315
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
316
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
317 return FullTextSearchPage.page;
37840afb7b80 new: full text search
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 35
diff changeset
318
41
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
319
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
320 } else if(StringUtils.equals(bean, TopicListPage.bean)){
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
321 getSessionBean().getTopicListPage().loadParameters(request, response);
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
322
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
323 if(StringUtils.equals(action, "forceLoadTopics")){
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
324 getSessionBean().getTopicListPage().forceLoadTopics();
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
325
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
326 } else if(StringUtils.equals(action, "deleteTopic")){
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
327 getSessionBean().getTopicListPage().deleteTopic();
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
328 } else if(StringUtils.equals(action, "createTopic")){
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
329 Long userId = getSessionBean().getUser().getId();
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
330 getSessionBean().getTopicListPage().createTopic(userId);
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
331 }
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
332
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
333
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
334 return TopicListPage.page;
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
335
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
336
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
337 } else if(StringUtils.equals(bean, TopicPage.bean)){
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
338 getSessionBean().getTopicPage().loadParameters(request, response);
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
339
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
340 if(StringUtils.equals(action, "forceLoadTopicSectionRelation")){
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
341 getSessionBean().getTopicPage().forceLoadTopicSectionRelation();
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
342
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
343 } else if(StringUtils.equals(action, "filter")){
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
344 getSessionBean().getTopicPage().filter();
42
815cd86bb9ec bug fixed: some NullPointer situations caused by null topicId
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 41
diff changeset
345
815cd86bb9ec bug fixed: some NullPointer situations caused by null topicId
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 41
diff changeset
346 } else
41
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
347
42
815cd86bb9ec bug fixed: some NullPointer situations caused by null topicId
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 41
diff changeset
348 /* ====
815cd86bb9ec bug fixed: some NullPointer situations caused by null topicId
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 41
diff changeset
349 * topic information, which are relevant to topicListPage
815cd86bb9ec bug fixed: some NullPointer situations caused by null topicId
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 41
diff changeset
350 * can improved by not always calling getTopicListPage().forceLoadTopics() but rather updating the changed/modified topic in topicList.
815cd86bb9ec bug fixed: some NullPointer situations caused by null topicId
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 41
diff changeset
351 * */
815cd86bb9ec bug fixed: some NullPointer situations caused by null topicId
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 41
diff changeset
352 if(StringUtils.equals(action, "addContributor")){
815cd86bb9ec bug fixed: some NullPointer situations caused by null topicId
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 41
diff changeset
353 getSessionBean().getTopicPage().addContributor();
815cd86bb9ec bug fixed: some NullPointer situations caused by null topicId
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 41
diff changeset
354 getSessionBean().getTopicListPage().forceLoadTopics();
815cd86bb9ec bug fixed: some NullPointer situations caused by null topicId
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 41
diff changeset
355
815cd86bb9ec bug fixed: some NullPointer situations caused by null topicId
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 41
diff changeset
356 } else if(StringUtils.equals(action, "removeContributor")){
815cd86bb9ec bug fixed: some NullPointer situations caused by null topicId
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 41
diff changeset
357 getSessionBean().getTopicPage().removeContributor();
815cd86bb9ec bug fixed: some NullPointer situations caused by null topicId
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 41
diff changeset
358 getSessionBean().getTopicListPage().forceLoadTopics();
815cd86bb9ec bug fixed: some NullPointer situations caused by null topicId
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 41
diff changeset
359
815cd86bb9ec bug fixed: some NullPointer situations caused by null topicId
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 41
diff changeset
360 } else if( StringUtils.equals(action ,"updateDescription")) {
815cd86bb9ec bug fixed: some NullPointer situations caused by null topicId
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 41
diff changeset
361 getSessionBean().getTopicPage().updateDescription();
815cd86bb9ec bug fixed: some NullPointer situations caused by null topicId
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 41
diff changeset
362 getSessionBean().getTopicListPage().forceLoadTopics();
815cd86bb9ec bug fixed: some NullPointer situations caused by null topicId
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 41
diff changeset
363
43
9dbbbfd474f4 new: 1.existing topic in search result. 2.difference-set of book for topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 42
diff changeset
364 } else if( StringUtils.equals(action ,"updateKeywords")) {
9dbbbfd474f4 new: 1.existing topic in search result. 2.difference-set of book for topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 42
diff changeset
365 getSessionBean().getTopicPage().updateKeywords();
9dbbbfd474f4 new: 1.existing topic in search result. 2.difference-set of book for topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 42
diff changeset
366 getSessionBean().getTopicListPage().forceLoadTopics();
9dbbbfd474f4 new: 1.existing topic in search result. 2.difference-set of book for topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 42
diff changeset
367
9dbbbfd474f4 new: 1.existing topic in search result. 2.difference-set of book for topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 42
diff changeset
368
42
815cd86bb9ec bug fixed: some NullPointer situations caused by null topicId
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 41
diff changeset
369 /* ====== */
815cd86bb9ec bug fixed: some NullPointer situations caused by null topicId
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 41
diff changeset
370
815cd86bb9ec bug fixed: some NullPointer situations caused by null topicId
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 41
diff changeset
371
815cd86bb9ec bug fixed: some NullPointer situations caused by null topicId
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 41
diff changeset
372 } else if( StringUtils.equals(action ,"deleteSection")) {
815cd86bb9ec bug fixed: some NullPointer situations caused by null topicId
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 41
diff changeset
373 getSessionBean().getTopicPage().deleteSection(getLongParameter("sectionId"));
815cd86bb9ec bug fixed: some NullPointer situations caused by null topicId
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 41
diff changeset
374
815cd86bb9ec bug fixed: some NullPointer situations caused by null topicId
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 41
diff changeset
375
43
9dbbbfd474f4 new: 1.existing topic in search result. 2.difference-set of book for topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 42
diff changeset
376 } else if(StringUtils.equals(action, "addSection")) {
41
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
377 Long selectedSectionId = getLongParameter("selectedSectionId");
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
378 Long selectedTopicId = getLongParameter("selectedTopicId");
43
9dbbbfd474f4 new: 1.existing topic in search result. 2.difference-set of book for topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 42
diff changeset
379 getSessionBean().getTopicPage().addSectionToTopic(selectedSectionId, selectedTopicId);
58
b8ad346e39a0 new: modify based on doc 'Improving LGServices interface.docx': user workflow improvement, functions like adding task into a topic and search suggestions.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 51
diff changeset
380
b8ad346e39a0 new: modify based on doc 'Improving LGServices interface.docx': user workflow improvement, functions like adding task into a topic and search suggestions.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 51
diff changeset
381 // TODO it's possible to add a section into a topic in the task page, so need to modify here...
b8ad346e39a0 new: modify based on doc 'Improving LGServices interface.docx': user workflow improvement, functions like adding task into a topic and search suggestions.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 51
diff changeset
382
43
9dbbbfd474f4 new: 1.existing topic in search result. 2.difference-set of book for topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 42
diff changeset
383 getSessionBean().getSearchPage().updateTopicSectionRelation();
41
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
384
58
b8ad346e39a0 new: modify based on doc 'Improving LGServices interface.docx': user workflow improvement, functions like adding task into a topic and search suggestions.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 51
diff changeset
385 String sourceBean = getParameter("sourceBean");
b8ad346e39a0 new: modify based on doc 'Improving LGServices interface.docx': user workflow improvement, functions like adding task into a topic and search suggestions.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 51
diff changeset
386 if (StringUtils.equals(sourceBean, "home")) {
b8ad346e39a0 new: modify based on doc 'Improving LGServices interface.docx': user workflow improvement, functions like adding task into a topic and search suggestions.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 51
diff changeset
387 return HomePage.page;
b8ad346e39a0 new: modify based on doc 'Improving LGServices interface.docx': user workflow improvement, functions like adding task into a topic and search suggestions.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 51
diff changeset
388 } else if (StringUtils.equals(sourceBean, "search")) {
b8ad346e39a0 new: modify based on doc 'Improving LGServices interface.docx': user workflow improvement, functions like adding task into a topic and search suggestions.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 51
diff changeset
389 return SearchPage.page;
b8ad346e39a0 new: modify based on doc 'Improving LGServices interface.docx': user workflow improvement, functions like adding task into a topic and search suggestions.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 51
diff changeset
390 }
b8ad346e39a0 new: modify based on doc 'Improving LGServices interface.docx': user workflow improvement, functions like adding task into a topic and search suggestions.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 51
diff changeset
391
41
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
392 return SearchPage.page;
43
9dbbbfd474f4 new: 1.existing topic in search result. 2.difference-set of book for topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 42
diff changeset
393
9dbbbfd474f4 new: 1.existing topic in search result. 2.difference-set of book for topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 42
diff changeset
394 } else if(StringUtils.equals(action, "addAllSections")) {
9dbbbfd474f4 new: 1.existing topic in search result. 2.difference-set of book for topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 42
diff changeset
395 Long selectedTopicId = getLongParameter("selectedTopicId");
9dbbbfd474f4 new: 1.existing topic in search result. 2.difference-set of book for topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 42
diff changeset
396 getSessionBean().getTopicPage().addAllSectionsToTopic(getSessionBean().getSearchPage().getFilteredSectionList(), selectedTopicId);
9dbbbfd474f4 new: 1.existing topic in search result. 2.difference-set of book for topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 42
diff changeset
397 getSessionBean().getSearchPage().updateTopicSectionRelation();
41
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
398
43
9dbbbfd474f4 new: 1.existing topic in search result. 2.difference-set of book for topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 42
diff changeset
399 return SearchPage.page;
41
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
400
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
401
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
402 //SORTING
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
403 } else if(StringUtils.equals(action, "sortByBookIdUp")){
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
404 getSessionBean().getTopicPage().sortByBookIdUp();
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
405 } else if(StringUtils.equals(action, "sortByBookIdDown")){
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
406 getSessionBean().getTopicPage().sortByBookIdDown();
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
407 } else if(StringUtils.equals(action, "sortByBookNameUp")){
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
408 getSessionBean().getTopicPage().sortByBookNameUp();
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
409 } else if(StringUtils.equals(action, "sortByBookNameDown")){
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
410 getSessionBean().getTopicPage().sortByBookNameDown();
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
411 } else if(StringUtils.equals(action, "sortByDynastyUp")){
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
412 getSessionBean().getTopicPage().sortByDynastyUp();
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
413 } else if(StringUtils.equals(action, "sortByDynastyDown")){
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
414 getSessionBean().getTopicPage().sortByDynastyDown();
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
415 } else if(StringUtils.equals(action, "sortByPeriodUp")){
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
416 getSessionBean().getTopicPage().sortByPeriodUp();
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
417 } else if(StringUtils.equals(action, "sortByPeriodDown")){
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
418 getSessionBean().getTopicPage().sortByPeriodDown();
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
419 } else if(StringUtils.equals(action, "sortBySectionNameUp")){
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
420 getSessionBean().getTopicPage().sortBySectionNameUp();
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
421 } else if(StringUtils.equals(action, "sortBySectionNameDown")){
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
422 getSessionBean().getTopicPage().sortBySectionNameDown();
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
423
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
424 } else if(StringUtils.equals(action, "sortByLevel1Up")){
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
425 getSessionBean().getTopicPage().sortByLevel1Up();
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
426 } else if(StringUtils.equals(action, "sortByLevel1Down")){
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
427 getSessionBean().getTopicPage().sortByLevel1Down();
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
428 } else if(StringUtils.equals(action, "sortByLevel2Up")){
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
429 getSessionBean().getTopicPage().sortByLevel2Up();
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
430 } else if(StringUtils.equals(action, "sortByLevel2Down")){
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
431 getSessionBean().getTopicPage().sortByLevel2Down();
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
432
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
433
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
434 } else if(StringUtils.equals(action, "sortByAdminTypeUp")){
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
435 getSessionBean().getTopicPage().sortByAdminTypeUp();
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
436 } else if(StringUtils.equals(action, "sortByAdminTypeDown")){
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
437 getSessionBean().getTopicPage().sortByAdminTypeDown();
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
438
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
439 } else if(StringUtils.equals(action, "sortByStartPageUp")){
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
440 getSessionBean().getTopicPage().sortByStartPageUp();
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
441 } else if(StringUtils.equals(action, "sortByStartPageDown")){
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
442 getSessionBean().getTopicPage().sortByStartPageDown();
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
443 }
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
444
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
445 return TopicPage.page;
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
446
ba9515f22897 new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
447
14
3387d855a194 new: toc status in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 13
diff changeset
448 } else if(StringUtils.equals(bean, BooksPage.bean)){
3387d855a194 new: toc status in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 13
diff changeset
449 getSessionBean().getBooksPage().loadParameters(request, response);
3387d855a194 new: toc status in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 13
diff changeset
450
3387d855a194 new: toc status in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 13
diff changeset
451 if(StringUtils.equals(action, "setTocCorrection")){
3387d855a194 new: toc status in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 13
diff changeset
452 getSessionBean().getBooksPage().setTocCorrection();
3387d855a194 new: toc status in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 13
diff changeset
453 } else if (StringUtils.equals(action, "unSetTocCorrection")){
3387d855a194 new: toc status in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 13
diff changeset
454 getSessionBean().getBooksPage().unSetTocCorrection();
21
5b1856cd6b4f bug fixed: 1.TOC Done display issue 2.issue in firefox
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 20
diff changeset
455
5b1856cd6b4f bug fixed: 1.TOC Done display issue 2.issue in firefox
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 20
diff changeset
456 } else if(StringUtils.equals(action, "saveComment")){
5b1856cd6b4f bug fixed: 1.TOC Done display issue 2.issue in firefox
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 20
diff changeset
457 getSessionBean().getBooksPage().saveComment();
15
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
458
14
3387d855a194 new: toc status in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 13
diff changeset
459 } else if (StringUtils.equals(action, "forceReloadBooks")) {
21
5b1856cd6b4f bug fixed: 1.TOC Done display issue 2.issue in firefox
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 20
diff changeset
460 getSessionBean().getBooksPage().forceLoadBooks();
17
372dab740f15 new: filters in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 15
diff changeset
461 } else if(StringUtils.equals(action, "filter")){
372dab740f15 new: filters in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 15
diff changeset
462 getSessionBean().getBooksPage().filter();
18
881e7591f3e4 new: adding paginator in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 17
diff changeset
463
21
5b1856cd6b4f bug fixed: 1.TOC Done display issue 2.issue in firefox
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 20
diff changeset
464
42
815cd86bb9ec bug fixed: some NullPointer situations caused by null topicId
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 41
diff changeset
465 //PAGINATOR
18
881e7591f3e4 new: adding paginator in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 17
diff changeset
466 } else if(StringUtils.equals(action, "firstPage")){
881e7591f3e4 new: adding paginator in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 17
diff changeset
467 getSessionBean().getBooksPage().firstPage();
881e7591f3e4 new: adding paginator in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 17
diff changeset
468 } else if(StringUtils.equals(action, "fastRewind")){
881e7591f3e4 new: adding paginator in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 17
diff changeset
469 getSessionBean().getBooksPage().fastRewind();
881e7591f3e4 new: adding paginator in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 17
diff changeset
470 } else if(StringUtils.equals(action, "previousPage")){
881e7591f3e4 new: adding paginator in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 17
diff changeset
471 getSessionBean().getBooksPage().previousPage();
881e7591f3e4 new: adding paginator in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 17
diff changeset
472 } else if(StringUtils.equals(action, "nextPage")){
881e7591f3e4 new: adding paginator in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 17
diff changeset
473 getSessionBean().getBooksPage().nextPage();
881e7591f3e4 new: adding paginator in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 17
diff changeset
474 } else if(StringUtils.equals(action, "fastForward")){
881e7591f3e4 new: adding paginator in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 17
diff changeset
475 getSessionBean().getBooksPage().fastForward();
881e7591f3e4 new: adding paginator in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 17
diff changeset
476 } else if(StringUtils.equals(action, "lastPage")){
881e7591f3e4 new: adding paginator in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 17
diff changeset
477 getSessionBean().getBooksPage().lastPage();
881e7591f3e4 new: adding paginator in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 17
diff changeset
478
15
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
479 // Sorting
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
480 } else if(StringUtils.equals(action, "sortByBookIdUp")){
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
481 getSessionBean().getBooksPage().sortByBookIdUp();
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
482 } else if(StringUtils.equals(action, "sortByBookIdDown")){
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
483 getSessionBean().getBooksPage().sortByBookIdDown();
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
484
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
485 } else if(StringUtils.equals(action, "sortByBookNameUp")){
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
486 getSessionBean().getBooksPage().sortByBookNameUp();
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
487 } else if(StringUtils.equals(action, "sortByBookNameDown")){
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
488 getSessionBean().getBooksPage().sortByBookNameDown();
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
489
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
490 } else if(StringUtils.equals(action, "sortByLevel1Up")){
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
491 getSessionBean().getBooksPage().sortByLevel1Up();
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
492 } else if(StringUtils.equals(action, "sortByLevel1Down")){
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
493 getSessionBean().getBooksPage().sortByLevel1Down();
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
494
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
495 } else if(StringUtils.equals(action, "sortByLevel2Up")){
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
496 getSessionBean().getBooksPage().sortByLevel2Up();
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
497 } else if(StringUtils.equals(action, "sortByLevel2Down")){
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
498 getSessionBean().getBooksPage().sortByLevel2Down();
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
499
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
500 } else if(StringUtils.equals(action, "sortByPeriodUp")){
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
501 getSessionBean().getBooksPage().sortByPeriodUp();
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
502 } else if(StringUtils.equals(action, "sortByPeriodDown")){
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
503 getSessionBean().getBooksPage().sortByPeriodDown();
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
504
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
505 } else if(StringUtils.equals(action, "sortByDynastyUp")){
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
506 getSessionBean().getBooksPage().sortByDynastyUp();
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
507 } else if(StringUtils.equals(action, "sortByDynastyDown")){
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
508 getSessionBean().getBooksPage().sortByDynastyDown();
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
509
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
510 } else if(StringUtils.equals(action, "sortByAdminTypeUp")){
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
511 getSessionBean().getBooksPage().sortByAdminTypeUp();
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
512 } else if(StringUtils.equals(action, "sortByAdminTypeDown")){
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
513 getSessionBean().getBooksPage().sortByAdminTypeDown();
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
514
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
515 } else if(StringUtils.equals(action, "sortByStartYearUp")){
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
516 getSessionBean().getBooksPage().sortByStartYearUp();
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
517 } else if(StringUtils.equals(action, "sortByStartYearDown")){
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
518 getSessionBean().getBooksPage().sortByStartYearDown();
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
519
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
520 } else if(StringUtils.equals(action, "sortByEditionUp")){
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
521 getSessionBean().getBooksPage().sortByEditionUp();
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
522 } else if(StringUtils.equals(action, "sortByEditionDown")){
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
523 getSessionBean().getBooksPage().sortByEditionDown();
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
524
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
525 } else if(StringUtils.equals(action, "sortByTocCorrectionUp")){
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
526 getSessionBean().getBooksPage().sortByTocCorrectionUp();
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
527 } else if(StringUtils.equals(action, "sortByTocCorrectionDown")){
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
528 getSessionBean().getBooksPage().sortByTocCorrectionDown();
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
529
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
530 } else if(StringUtils.equals(action, "sortByEditorUp")){
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
531 getSessionBean().getBooksPage().sortByEditorUp();
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
532 } else if(StringUtils.equals(action, "sortByEditorDown")){
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
533 getSessionBean().getBooksPage().sortByEditorDown();
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
534
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
535 } else if(StringUtils.equals(action, "sortByDateUp")){
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
536 getSessionBean().getBooksPage().sortByDateUp();
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
537 } else if(StringUtils.equals(action, "sortByDateDown")){
d81a5401b9af new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 14
diff changeset
538 getSessionBean().getBooksPage().sortByDateDown();
14
3387d855a194 new: toc status in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 13
diff changeset
539 }
3387d855a194 new: toc status in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 13
diff changeset
540
3387d855a194 new: toc status in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 13
diff changeset
541 return BooksPage.page;
3387d855a194 new: toc status in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 13
diff changeset
542 }
0
3e62083dbcbf First commit. This project comes from LGServer. We removed the framework icefaces. Now, LGServices uses just JSP and jquery.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
543
11
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
544 }catch(Exception e){
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
545 e.printStackTrace();
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
546 addMsg("There is an internal error: " + e.getLocalizedMessage());
24
07f7594ba56e add filters to lastEditor and editTime in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 21
diff changeset
547
58
b8ad346e39a0 new: modify based on doc 'Improving LGServices interface.docx': user workflow improvement, functions like adding task into a topic and search suggestions.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 51
diff changeset
548 //return TopicListPage.page;
b8ad346e39a0 new: modify based on doc 'Improving LGServices interface.docx': user workflow improvement, functions like adding task into a topic and search suggestions.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 51
diff changeset
549 return HomePage.page;
11
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
550 }
f15b0214cc1c Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 8
diff changeset
551
40
35ed4e650a53 bug fixed: full text search when section not found in section_index table. add paginator
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 39
diff changeset
552
35ed4e650a53 bug fixed: full text search when section not found in section_index table. add paginator
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 39
diff changeset
553 //Default Page:
58
b8ad346e39a0 new: modify based on doc 'Improving LGServices interface.docx': user workflow improvement, functions like adding task into a topic and search suggestions.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 51
diff changeset
554 //return TopicListPage.page; // will be the new home page?
b8ad346e39a0 new: modify based on doc 'Improving LGServices interface.docx': user workflow improvement, functions like adding task into a topic and search suggestions.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents: 51
diff changeset
555 return HomePage.page;
0
3e62083dbcbf First commit. This project comes from LGServer. We removed the framework icefaces. Now, LGServices uses just JSP and jquery.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
556 }
3e62083dbcbf First commit. This project comes from LGServer. We removed the framework icefaces. Now, LGServices uses just JSP and jquery.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
557
3e62083dbcbf First commit. This project comes from LGServer. We removed the framework icefaces. Now, LGServices uses just JSP and jquery.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
558
3e62083dbcbf First commit. This project comes from LGServer. We removed the framework icefaces. Now, LGServices uses just JSP and jquery.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
559 public String getAction() {
3e62083dbcbf First commit. This project comes from LGServer. We removed the framework icefaces. Now, LGServices uses just JSP and jquery.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
560 return action;
3e62083dbcbf First commit. This project comes from LGServer. We removed the framework icefaces. Now, LGServices uses just JSP and jquery.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
561 }
3e62083dbcbf First commit. This project comes from LGServer. We removed the framework icefaces. Now, LGServices uses just JSP and jquery.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
562
3e62083dbcbf First commit. This project comes from LGServer. We removed the framework icefaces. Now, LGServices uses just JSP and jquery.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
563
3e62083dbcbf First commit. This project comes from LGServer. We removed the framework icefaces. Now, LGServices uses just JSP and jquery.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
564 public void setAction(String action) {
3e62083dbcbf First commit. This project comes from LGServer. We removed the framework icefaces. Now, LGServices uses just JSP and jquery.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
565 this.action = action;
3e62083dbcbf First commit. This project comes from LGServer. We removed the framework icefaces. Now, LGServices uses just JSP and jquery.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
566 }
3e62083dbcbf First commit. This project comes from LGServer. We removed the framework icefaces. Now, LGServices uses just JSP and jquery.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
567
3e62083dbcbf First commit. This project comes from LGServer. We removed the framework icefaces. Now, LGServices uses just JSP and jquery.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
568
3e62083dbcbf First commit. This project comes from LGServer. We removed the framework icefaces. Now, LGServices uses just JSP and jquery.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
569 public String getBean() {
3e62083dbcbf First commit. This project comes from LGServer. We removed the framework icefaces. Now, LGServices uses just JSP and jquery.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
570 return bean;
3e62083dbcbf First commit. This project comes from LGServer. We removed the framework icefaces. Now, LGServices uses just JSP and jquery.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
571 }
3e62083dbcbf First commit. This project comes from LGServer. We removed the framework icefaces. Now, LGServices uses just JSP and jquery.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
572
3e62083dbcbf First commit. This project comes from LGServer. We removed the framework icefaces. Now, LGServices uses just JSP and jquery.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
573
3e62083dbcbf First commit. This project comes from LGServer. We removed the framework icefaces. Now, LGServices uses just JSP and jquery.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
574 public void setBean(String bean) {
3e62083dbcbf First commit. This project comes from LGServer. We removed the framework icefaces. Now, LGServices uses just JSP and jquery.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
575 this.bean = bean;
3e62083dbcbf First commit. This project comes from LGServer. We removed the framework icefaces. Now, LGServices uses just JSP and jquery.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
576 }
3e62083dbcbf First commit. This project comes from LGServer. We removed the framework icefaces. Now, LGServices uses just JSP and jquery.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
577 }