Mercurial > hg > LGServices
annotate src/main/java/de/mpiwg/web/jsp/JSPProxy.java @ 48:13555aff1f88
new: multiple full text searching. topics and tasks improvement.
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Thu, 21 Jan 2016 11:56:30 +0100 |
parents | 9dbbbfd474f4 |
children | 7c2e1b14b77d |
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 } |
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
|
40 return TopicListPage.page; // the new home page |
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
|
41 //return "pages/home.jsp"; |
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 |
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
|
49 return TopicListPage.page; // the new home page |
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
|
50 } |
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 |
11
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
53 if(StringUtils.equals(bean, BranchPage.bean)){ |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
54 |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
55 getSessionBean().getBranchPage().loadParameters(request, response); |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
56 |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
57 if(StringUtils.equals(action, "addContributor")){ |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
58 getSessionBean().getBranchPage().addContributor(); |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
59 } else if(StringUtils.equals(action, "removeContributor")){ |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
60 getSessionBean().getBranchPage().removeContributor(); |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
61 }else if(StringUtils.equals(action, "deleteFile")){ |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
62 getSessionBean().getBranchPage().deleteFile(); |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
63 }else if(StringUtils.equals(action, "publishFile")){ |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
64 getSessionBean().getBranchPage().publishFile(); |
31
c8d367a4bbcd
new: user updates label in branch
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
24
diff
changeset
|
65 }else if(StringUtils.equals(action, "updateLabel")){ |
c8d367a4bbcd
new: user updates label in branch
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
24
diff
changeset
|
66 getSessionBean().getBranchPage().updateLabel(); |
34
2e1662afc81c
new: add synchronization for files uploaded to LGDataverse
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
32
diff
changeset
|
67 }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
|
68 getSessionBean().getBranchPage().forceReloadBranch(); |
11
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
69 } |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
70 |
34
2e1662afc81c
new: add synchronization for files uploaded to LGDataverse
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
32
diff
changeset
|
71 |
11
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
72 return BranchPage.page; |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
73 |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
74 |
41
ba9515f22897
new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
40
diff
changeset
|
75 } else if(StringUtils.equals(bean, CreateFilePage.bean)){ |
11
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
76 |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
77 getSessionBean().getCreateFilePage().loadParameters(request, response); |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
78 |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
79 if(StringUtils.equals(action, "loadSection")){ |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
80 getSessionBean().getCreateFilePage().loadSection(); |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
81 }else if(StringUtils.equals(action, "reset")){ |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
82 getSessionBean().getCreateFilePage().reset(); |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
83 } |
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 return CreateFilePage.page; |
39 | 86 |
87 } else if(StringUtils.equals(bean, HomePage.bean)){ | |
11
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
88 |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
89 getSessionBean().getHomePage().loadParameters(request, response); |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
90 |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
91 if(StringUtils.equals(action, "deleteBranch")){ |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
92 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
|
93 } else if(StringUtils.equals(action, "reloadBranches")){ |
11
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
94 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
|
95 } |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
31
diff
changeset
|
96 // 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
|
97 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
|
98 getSessionBean().getHomePage().forceLoadBranches();; |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
31
diff
changeset
|
99 } 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
|
100 getSessionBean().getHomePage().filter(); |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
31
diff
changeset
|
101 } |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
31
diff
changeset
|
102 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
|
103 getSessionBean().getHomePage().sortByBranchIdUp(); |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
31
diff
changeset
|
104 } 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
|
105 getSessionBean().getHomePage().sortByBranchIdDown(); |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
31
diff
changeset
|
106 } 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
|
107 getSessionBean().getHomePage().sortByBookNameUp(); |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
31
diff
changeset
|
108 } 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
|
109 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
|
110 |
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 } 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
|
112 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
|
113 } 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
|
114 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
|
115 } 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
|
116 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
|
117 } 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
|
118 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
|
119 |
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 } 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
|
121 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
|
122 } 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
|
123 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
|
124 } 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
|
125 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
|
126 } 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
|
127 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
|
128 } 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
|
129 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
|
130 } 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
|
131 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
|
132 |
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 |
32
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
31
diff
changeset
|
134 } 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
|
135 getSessionBean().getHomePage().sortByPeriodUp(); |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
31
diff
changeset
|
136 } 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
|
137 getSessionBean().getHomePage().sortByPeriodDown(); |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
31
diff
changeset
|
138 } 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
|
139 getSessionBean().getHomePage().sortBySectionNameUp(); |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
31
diff
changeset
|
140 } 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
|
141 getSessionBean().getHomePage().sortBySectionNameDown(); |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
31
diff
changeset
|
142 } 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
|
143 getSessionBean().getHomePage().sortByLabelUp(); |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
31
diff
changeset
|
144 } 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
|
145 getSessionBean().getHomePage().sortByLabelDown(); |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
31
diff
changeset
|
146 } 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
|
147 getSessionBean().getHomePage().sortByLastModifiedUp(); |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
31
diff
changeset
|
148 } 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
|
149 getSessionBean().getHomePage().sortByLastModifiedDown(); |
34
2e1662afc81c
new: add synchronization for files uploaded to LGDataverse
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
32
diff
changeset
|
150 } 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
|
151 getSessionBean().getHomePage().sortByPublishedInDataverseUp(); |
2e1662afc81c
new: add synchronization for files uploaded to LGDataverse
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
32
diff
changeset
|
152 } 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
|
153 getSessionBean().getHomePage().sortByPublishedInDataverseDown(); |
11
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
154 } |
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 return HomePage.page; |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
157 |
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
|
158 |
11
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
159 }else if(StringUtils.equals(bean, SearchPage.bean)){ |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
160 getSessionBean().getSearchPage().loadParameters(request, response); |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
161 |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
162 if(StringUtils.equals(action, "search")){ |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
163 getSessionBean().getSearchPage().search(); |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
164 } else if(StringUtils.equals(action, "filter")){ |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
165 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
|
166 |
ba9515f22897
new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
40
diff
changeset
|
167 |
11
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
168 //PAGINATOR |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
169 } else if(StringUtils.equals(action, "firstPage")){ |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
170 getSessionBean().getSearchPage().firstPage(); |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
171 } else if(StringUtils.equals(action, "fastRewind")){ |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
172 getSessionBean().getSearchPage().fastRewind(); |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
173 } else if(StringUtils.equals(action, "previousPage")){ |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
174 getSessionBean().getSearchPage().previousPage(); |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
175 } else if(StringUtils.equals(action, "nextPage")){ |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
176 getSessionBean().getSearchPage().nextPage(); |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
177 } else if(StringUtils.equals(action, "fastForward")){ |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
178 getSessionBean().getSearchPage().fastForward(); |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
179 } else if(StringUtils.equals(action, "lastPage")){ |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
180 getSessionBean().getSearchPage().lastPage(); |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
181 |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
182 //SORTING |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
183 } else if(StringUtils.equals(action, "sortByBookIdUp")){ |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
184 getSessionBean().getSearchPage().sortByBookIdUp(); |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
185 } else if(StringUtils.equals(action, "sortByBookIdDown")){ |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
186 getSessionBean().getSearchPage().sortByBookIdDown(); |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
187 } else if(StringUtils.equals(action, "sortByBookNameUp")){ |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
188 getSessionBean().getSearchPage().sortByBookNameUp(); |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
189 } else if(StringUtils.equals(action, "sortByBookNameDown")){ |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
190 getSessionBean().getSearchPage().sortByBookNameDown(); |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
191 } else if(StringUtils.equals(action, "sortByDynastyUp")){ |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
192 getSessionBean().getSearchPage().sortByDynastyUp(); |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
193 } else if(StringUtils.equals(action, "sortByDynastyDown")){ |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
194 getSessionBean().getSearchPage().sortByDynastyDown(); |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
195 } else if(StringUtils.equals(action, "sortByPeriodUp")){ |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
196 getSessionBean().getSearchPage().sortByPeriodUp(); |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
197 } else if(StringUtils.equals(action, "sortByPeriodDown")){ |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
198 getSessionBean().getSearchPage().sortByPeriodDown(); |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
199 } else if(StringUtils.equals(action, "sortByVolumeUp")){ |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
200 getSessionBean().getSearchPage().sortByVolumeUp(); |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
201 } else if(StringUtils.equals(action, "sortByVolumeDown")){ |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
202 getSessionBean().getSearchPage().sortByVolumeDown(); |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
203 } else if(StringUtils.equals(action, "sortBySectionNameUp")){ |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
204 getSessionBean().getSearchPage().sortBySectionNameUp(); |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
205 } else if(StringUtils.equals(action, "sortBySectionNameDown")){ |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
206 getSessionBean().getSearchPage().sortBySectionNameDown(); |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
207 |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
208 } else if(StringUtils.equals(action, "sortByLevel1Up")){ |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
209 getSessionBean().getSearchPage().sortByLevel1Up(); |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
210 } else if(StringUtils.equals(action, "sortByLevel1Down")){ |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
211 getSessionBean().getSearchPage().sortByLevel1Down(); |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
212 |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
213 } else if(StringUtils.equals(action, "sortByAdminTypeUp")){ |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
214 getSessionBean().getSearchPage().sortByAdminTypeUp(); |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
215 } else if(StringUtils.equals(action, "sortByAdminTypeDown")){ |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
216 getSessionBean().getSearchPage().sortByAdminTypeDown(); |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
217 |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
218 } else if(StringUtils.equals(action, "sortByStartPageUp")){ |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
219 getSessionBean().getSearchPage().sortByStartPageUp(); |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
220 } else if(StringUtils.equals(action, "sortByStartPageDown")){ |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
221 getSessionBean().getSearchPage().sortByStartPageDown(); |
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 |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
224 return SearchPage.page; |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
225 |
39 | 226 } else if(StringUtils.equals(bean, FullTextSearchPage.bean)){ |
227 getSessionBean().getFullTextSearchPage().loadParameters(request, response); | |
228 | |
229 if(StringUtils.equals(action, "search")){ | |
230 getSessionBean().getFullTextSearchPage().search(); | |
231 } else if(StringUtils.equals(action, "filter")){ | |
232 getSessionBean().getFullTextSearchPage().filter(); | |
233 } else if(StringUtils.equals(action, "save")){ | |
234 getSessionBean().getFullTextSearchPage().save(); | |
235 } else if(StringUtils.equals(action, "removeFocusedContent")){ | |
236 getSessionBean().getFullTextSearchPage().removeFocusedContent(true); | |
237 } else if(StringUtils.equals(action, "recoverFocusedContent")){ | |
238 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
|
239 |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
43
diff
changeset
|
240 // 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
|
241 } else if(StringUtils.equals(action, "searchBatch")){ |
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
43
diff
changeset
|
242 getSessionBean().getFullTextSearchPage().searchBatch(); |
39 | 243 |
48
13555aff1f88
new: multiple full text searching. topics and tasks improvement.
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
43
diff
changeset
|
244 |
39 | 245 //PAGINATOR |
246 } else if(StringUtils.equals(action, "firstPage")){ | |
247 getSessionBean().getFullTextSearchPage().firstPage(); | |
248 } else if(StringUtils.equals(action, "fastRewind")){ | |
249 getSessionBean().getFullTextSearchPage().fastRewind(); | |
250 } else if(StringUtils.equals(action, "previousPage")){ | |
251 getSessionBean().getFullTextSearchPage().previousPage(); | |
252 } else if(StringUtils.equals(action, "nextPage")){ | |
253 getSessionBean().getFullTextSearchPage().nextPage(); | |
254 } else if(StringUtils.equals(action, "fastForward")){ | |
255 getSessionBean().getFullTextSearchPage().fastForward(); | |
256 } else if(StringUtils.equals(action, "lastPage")){ | |
257 getSessionBean().getFullTextSearchPage().lastPage(); | |
258 | |
259 //SORTING | |
260 } else if(StringUtils.equals(action, "sortByInxUp")){ | |
261 getSessionBean().getFullTextSearchPage().sortByInxUp(); | |
262 } else if(StringUtils.equals(action, "sortByInxDown")){ | |
263 getSessionBean().getFullTextSearchPage().sortByInxDown(); | |
264 } else if(StringUtils.equals(action, "sortByBookIdUp")){ | |
265 getSessionBean().getFullTextSearchPage().sortByBookIdUp(); | |
266 } else if(StringUtils.equals(action, "sortByBookIdDown")){ | |
267 getSessionBean().getFullTextSearchPage().sortByBookIdDown(); | |
268 } else if(StringUtils.equals(action, "sortByBookNameUp")){ | |
269 getSessionBean().getFullTextSearchPage().sortByBookNameUp(); | |
270 } else if(StringUtils.equals(action, "sortByBookNameDown")){ | |
271 getSessionBean().getFullTextSearchPage().sortByBookNameDown(); | |
272 } else if(StringUtils.equals(action, "sortByDynastyUp")){ | |
273 getSessionBean().getFullTextSearchPage().sortByDynastyUp(); | |
274 } else if(StringUtils.equals(action, "sortByDynastyDown")){ | |
275 getSessionBean().getFullTextSearchPage().sortByDynastyDown(); | |
276 } else if(StringUtils.equals(action, "sortByPeriodUp")){ | |
277 getSessionBean().getFullTextSearchPage().sortByPeriodUp(); | |
278 } else if(StringUtils.equals(action, "sortByPeriodDown")){ | |
279 getSessionBean().getFullTextSearchPage().sortByPeriodDown(); | |
280 } else if(StringUtils.equals(action, "sortBySectionNameUp")){ | |
281 getSessionBean().getFullTextSearchPage().sortBySectionNameUp(); | |
282 } else if(StringUtils.equals(action, "sortBySectionNameDown")){ | |
283 getSessionBean().getFullTextSearchPage().sortBySectionNameDown(); | |
284 | |
285 } else if(StringUtils.equals(action, "sortByLevel1Up")){ | |
286 getSessionBean().getFullTextSearchPage().sortByLevel1Up(); | |
287 } else if(StringUtils.equals(action, "sortByLevel1Down")){ | |
288 getSessionBean().getFullTextSearchPage().sortByLevel1Down(); | |
289 } else if(StringUtils.equals(action, "sortByLevel2Up")){ | |
290 getSessionBean().getFullTextSearchPage().sortByLevel2Up(); | |
291 } else if(StringUtils.equals(action, "sortByLevel2Down")){ | |
292 getSessionBean().getFullTextSearchPage().sortByLevel2Down(); | |
293 } else if(StringUtils.equals(action, "sortByAdminTypeUp")){ | |
294 getSessionBean().getFullTextSearchPage().sortByAdminTypeUp(); | |
295 } else if(StringUtils.equals(action, "sortByAdminTypeDown")){ | |
296 getSessionBean().getFullTextSearchPage().sortByAdminTypeDown(); | |
297 | |
298 } else if(StringUtils.equals(action, "sortByStartPageUp")){ | |
299 getSessionBean().getFullTextSearchPage().sortByStartPageUp(); | |
300 } else if(StringUtils.equals(action, "sortByStartPageDown")){ | |
301 getSessionBean().getFullTextSearchPage().sortByStartPageDown(); | |
302 } | |
303 | |
304 | |
305 return FullTextSearchPage.page; | |
306 | |
41
ba9515f22897
new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
40
diff
changeset
|
307 |
ba9515f22897
new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
40
diff
changeset
|
308 } 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
|
309 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
|
310 |
ba9515f22897
new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
40
diff
changeset
|
311 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
|
312 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
|
313 |
ba9515f22897
new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
40
diff
changeset
|
314 } 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
|
315 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
|
316 } 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
|
317 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
|
318 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
|
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 |
ba9515f22897
new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
40
diff
changeset
|
321 |
ba9515f22897
new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
40
diff
changeset
|
322 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
|
323 |
ba9515f22897
new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
40
diff
changeset
|
324 |
ba9515f22897
new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
40
diff
changeset
|
325 } 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
|
326 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
|
327 |
ba9515f22897
new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
40
diff
changeset
|
328 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
|
329 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
|
330 |
ba9515f22897
new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
40
diff
changeset
|
331 } 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
|
332 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
|
333 |
815cd86bb9ec
bug fixed: some NullPointer situations caused by null topicId
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
334 } 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
|
335 |
42
815cd86bb9ec
bug fixed: some NullPointer situations caused by null topicId
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
336 /* ==== |
815cd86bb9ec
bug fixed: some NullPointer situations caused by null topicId
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
337 * 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
|
338 * 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
|
339 * */ |
815cd86bb9ec
bug fixed: some NullPointer situations caused by null topicId
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
340 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
|
341 getSessionBean().getTopicPage().addContributor(); |
815cd86bb9ec
bug fixed: some NullPointer situations caused by null topicId
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
342 getSessionBean().getTopicListPage().forceLoadTopics(); |
815cd86bb9ec
bug fixed: some NullPointer situations caused by null topicId
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
343 |
815cd86bb9ec
bug fixed: some NullPointer situations caused by null topicId
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
344 } 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
|
345 getSessionBean().getTopicPage().removeContributor(); |
815cd86bb9ec
bug fixed: some NullPointer situations caused by null topicId
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
346 getSessionBean().getTopicListPage().forceLoadTopics(); |
815cd86bb9ec
bug fixed: some NullPointer situations caused by null topicId
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
347 |
815cd86bb9ec
bug fixed: some NullPointer situations caused by null topicId
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
348 } 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
|
349 getSessionBean().getTopicPage().updateDescription(); |
815cd86bb9ec
bug fixed: some NullPointer situations caused by null topicId
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
350 getSessionBean().getTopicListPage().forceLoadTopics(); |
815cd86bb9ec
bug fixed: some NullPointer situations caused by null topicId
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
351 |
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
|
352 } 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
|
353 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
|
354 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
|
355 |
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
|
356 |
42
815cd86bb9ec
bug fixed: some NullPointer situations caused by null topicId
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
357 /* ====== */ |
815cd86bb9ec
bug fixed: some NullPointer situations caused by null topicId
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
358 |
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 ,"deleteSection")) { |
815cd86bb9ec
bug fixed: some NullPointer situations caused by null topicId
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
361 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
|
362 |
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, "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
|
365 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
|
366 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
|
367 getSessionBean().getTopicPage().addSectionToTopic(selectedSectionId, 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
|
368 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
|
369 |
ba9515f22897
new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
40
diff
changeset
|
370 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
|
371 |
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
|
372 } 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
|
373 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
|
374 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
|
375 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
|
376 |
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
|
377 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
|
378 |
ba9515f22897
new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
40
diff
changeset
|
379 |
ba9515f22897
new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
40
diff
changeset
|
380 //SORTING |
ba9515f22897
new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
40
diff
changeset
|
381 } 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
|
382 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
|
383 } 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
|
384 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
|
385 } 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
|
386 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
|
387 } 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
|
388 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
|
389 } 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
|
390 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
|
391 } 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
|
392 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
|
393 } 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
|
394 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
|
395 } 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
|
396 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
|
397 } 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
|
398 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
|
399 } 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
|
400 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
|
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 } 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
|
403 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
|
404 } 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
|
405 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
|
406 } 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
|
407 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
|
408 } 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
|
409 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
|
410 |
ba9515f22897
new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
40
diff
changeset
|
411 |
ba9515f22897
new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
40
diff
changeset
|
412 } 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
|
413 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
|
414 } 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
|
415 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
|
416 |
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, "sortByStartPageUp")){ |
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().sortByStartPageUp(); |
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, "sortByStartPageDown")){ |
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().sortByStartPageDown(); |
ba9515f22897
new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
40
diff
changeset
|
421 } |
ba9515f22897
new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
40
diff
changeset
|
422 |
ba9515f22897
new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
40
diff
changeset
|
423 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
|
424 |
ba9515f22897
new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
40
diff
changeset
|
425 |
14
3387d855a194
new: toc status in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
13
diff
changeset
|
426 } 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
|
427 getSessionBean().getBooksPage().loadParameters(request, response); |
3387d855a194
new: toc status in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
13
diff
changeset
|
428 |
3387d855a194
new: toc status in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
13
diff
changeset
|
429 if(StringUtils.equals(action, "setTocCorrection")){ |
3387d855a194
new: toc status in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
13
diff
changeset
|
430 getSessionBean().getBooksPage().setTocCorrection(); |
3387d855a194
new: toc status in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
13
diff
changeset
|
431 } else if (StringUtils.equals(action, "unSetTocCorrection")){ |
3387d855a194
new: toc status in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
13
diff
changeset
|
432 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
|
433 |
5b1856cd6b4f
bug fixed: 1.TOC Done display issue 2.issue in firefox
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
20
diff
changeset
|
434 } 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
|
435 getSessionBean().getBooksPage().saveComment(); |
15
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
436 |
14
3387d855a194
new: toc status in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
13
diff
changeset
|
437 } 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
|
438 getSessionBean().getBooksPage().forceLoadBooks(); |
17
372dab740f15
new: filters in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
15
diff
changeset
|
439 } else if(StringUtils.equals(action, "filter")){ |
372dab740f15
new: filters in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
15
diff
changeset
|
440 getSessionBean().getBooksPage().filter(); |
18
881e7591f3e4
new: adding paginator in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
17
diff
changeset
|
441 |
21
5b1856cd6b4f
bug fixed: 1.TOC Done display issue 2.issue in firefox
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
20
diff
changeset
|
442 |
42
815cd86bb9ec
bug fixed: some NullPointer situations caused by null topicId
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
443 //PAGINATOR |
18
881e7591f3e4
new: adding paginator in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
17
diff
changeset
|
444 } else if(StringUtils.equals(action, "firstPage")){ |
881e7591f3e4
new: adding paginator in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
17
diff
changeset
|
445 getSessionBean().getBooksPage().firstPage(); |
881e7591f3e4
new: adding paginator in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
17
diff
changeset
|
446 } else if(StringUtils.equals(action, "fastRewind")){ |
881e7591f3e4
new: adding paginator in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
17
diff
changeset
|
447 getSessionBean().getBooksPage().fastRewind(); |
881e7591f3e4
new: adding paginator in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
17
diff
changeset
|
448 } else if(StringUtils.equals(action, "previousPage")){ |
881e7591f3e4
new: adding paginator in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
17
diff
changeset
|
449 getSessionBean().getBooksPage().previousPage(); |
881e7591f3e4
new: adding paginator in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
17
diff
changeset
|
450 } else if(StringUtils.equals(action, "nextPage")){ |
881e7591f3e4
new: adding paginator in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
17
diff
changeset
|
451 getSessionBean().getBooksPage().nextPage(); |
881e7591f3e4
new: adding paginator in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
17
diff
changeset
|
452 } else if(StringUtils.equals(action, "fastForward")){ |
881e7591f3e4
new: adding paginator in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
17
diff
changeset
|
453 getSessionBean().getBooksPage().fastForward(); |
881e7591f3e4
new: adding paginator in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
17
diff
changeset
|
454 } else if(StringUtils.equals(action, "lastPage")){ |
881e7591f3e4
new: adding paginator in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
17
diff
changeset
|
455 getSessionBean().getBooksPage().lastPage(); |
881e7591f3e4
new: adding paginator in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
17
diff
changeset
|
456 |
15
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
457 // Sorting |
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
458 } else if(StringUtils.equals(action, "sortByBookIdUp")){ |
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
459 getSessionBean().getBooksPage().sortByBookIdUp(); |
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
460 } else if(StringUtils.equals(action, "sortByBookIdDown")){ |
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
461 getSessionBean().getBooksPage().sortByBookIdDown(); |
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
462 |
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
463 } else if(StringUtils.equals(action, "sortByBookNameUp")){ |
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
464 getSessionBean().getBooksPage().sortByBookNameUp(); |
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
465 } else if(StringUtils.equals(action, "sortByBookNameDown")){ |
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
466 getSessionBean().getBooksPage().sortByBookNameDown(); |
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
467 |
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
468 } else if(StringUtils.equals(action, "sortByLevel1Up")){ |
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
469 getSessionBean().getBooksPage().sortByLevel1Up(); |
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
470 } else if(StringUtils.equals(action, "sortByLevel1Down")){ |
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
471 getSessionBean().getBooksPage().sortByLevel1Down(); |
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
472 |
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
473 } else if(StringUtils.equals(action, "sortByLevel2Up")){ |
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
474 getSessionBean().getBooksPage().sortByLevel2Up(); |
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
475 } else if(StringUtils.equals(action, "sortByLevel2Down")){ |
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
476 getSessionBean().getBooksPage().sortByLevel2Down(); |
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
477 |
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
478 } else if(StringUtils.equals(action, "sortByPeriodUp")){ |
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
479 getSessionBean().getBooksPage().sortByPeriodUp(); |
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
480 } else if(StringUtils.equals(action, "sortByPeriodDown")){ |
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
481 getSessionBean().getBooksPage().sortByPeriodDown(); |
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
482 |
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
483 } else if(StringUtils.equals(action, "sortByDynastyUp")){ |
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
484 getSessionBean().getBooksPage().sortByDynastyUp(); |
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
485 } else if(StringUtils.equals(action, "sortByDynastyDown")){ |
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
486 getSessionBean().getBooksPage().sortByDynastyDown(); |
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
487 |
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
488 } else if(StringUtils.equals(action, "sortByAdminTypeUp")){ |
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
489 getSessionBean().getBooksPage().sortByAdminTypeUp(); |
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
490 } else if(StringUtils.equals(action, "sortByAdminTypeDown")){ |
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
491 getSessionBean().getBooksPage().sortByAdminTypeDown(); |
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
492 |
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
493 } else if(StringUtils.equals(action, "sortByStartYearUp")){ |
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
494 getSessionBean().getBooksPage().sortByStartYearUp(); |
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
495 } else if(StringUtils.equals(action, "sortByStartYearDown")){ |
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
496 getSessionBean().getBooksPage().sortByStartYearDown(); |
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
497 |
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
498 } else if(StringUtils.equals(action, "sortByEditionUp")){ |
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
499 getSessionBean().getBooksPage().sortByEditionUp(); |
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
500 } else if(StringUtils.equals(action, "sortByEditionDown")){ |
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
501 getSessionBean().getBooksPage().sortByEditionDown(); |
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
502 |
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
503 } else if(StringUtils.equals(action, "sortByTocCorrectionUp")){ |
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
504 getSessionBean().getBooksPage().sortByTocCorrectionUp(); |
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
505 } else if(StringUtils.equals(action, "sortByTocCorrectionDown")){ |
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
506 getSessionBean().getBooksPage().sortByTocCorrectionDown(); |
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
507 |
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
508 } else if(StringUtils.equals(action, "sortByEditorUp")){ |
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
509 getSessionBean().getBooksPage().sortByEditorUp(); |
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
510 } else if(StringUtils.equals(action, "sortByEditorDown")){ |
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
511 getSessionBean().getBooksPage().sortByEditorDown(); |
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
512 |
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
513 } else if(StringUtils.equals(action, "sortByDateUp")){ |
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
514 getSessionBean().getBooksPage().sortByDateUp(); |
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
515 } else if(StringUtils.equals(action, "sortByDateDown")){ |
d81a5401b9af
new: sorting in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
14
diff
changeset
|
516 getSessionBean().getBooksPage().sortByDateDown(); |
14
3387d855a194
new: toc status in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
13
diff
changeset
|
517 } |
3387d855a194
new: toc status in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
13
diff
changeset
|
518 |
3387d855a194
new: toc status in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
13
diff
changeset
|
519 return BooksPage.page; |
3387d855a194
new: toc status in books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
13
diff
changeset
|
520 } |
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
|
521 |
11
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
522 }catch(Exception e){ |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
523 e.printStackTrace(); |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
524 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
|
525 |
41
ba9515f22897
new: topic management and adding sections from searching result into topic
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
40
diff
changeset
|
526 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
|
527 //return HomePage.page; |
11
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
528 } |
f15b0214cc1c
Adding query for table SectionVersion
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
8
diff
changeset
|
529 |
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
|
530 |
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
|
531 //Default Page: |
42
815cd86bb9ec
bug fixed: some NullPointer situations caused by null topicId
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
41
diff
changeset
|
532 return TopicListPage.page; // will be the new home 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
|
533 //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
|
534 } |
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
|
535 |
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
|
536 |
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
|
537 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
|
538 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
|
539 } |
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
|
540 |
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
|
541 |
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
|
542 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
|
543 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
|
544 } |
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
|
545 |
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
|
546 |
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
|
547 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
|
548 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
|
549 } |
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
|
550 |
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
|
551 |
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
|
552 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
|
553 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
|
554 } |
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
|
555 } |