Mercurial > hg > LGServices
annotate src/main/java/de/mpiwg/web/jsp/HomePage.java @ 35:89a5ca7d44f7
new: rename branch to task, add fields in task table, add scroll bar
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Thu, 19 Nov 2015 17:14:06 +0100 |
parents | 2e1662afc81c |
children | b8ad346e39a0 |
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 java.util.ArrayList; |
32
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
4 import java.util.Collections; |
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
|
5 import java.util.List; |
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 |
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 import javax.servlet.http.HttpServletRequest; |
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 import javax.servlet.http.HttpServletResponse; |
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 |
8 | 10 import org.apache.commons.lang.StringUtils; |
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
|
11 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
|
12 |
8 | 13 |
14 | |
27
3b3e2963c8f7
new: rewrite LGServices for LGDataverse with the new dataverse, dataverse4.0
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
20
diff
changeset
|
15 |
32
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
16 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
17 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
18 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
19 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
20 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
21 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
22 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
23 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
24 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
25 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
26 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
27 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
28 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
29 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
30 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
31 |
34
2e1662afc81c
new: add synchronization for files uploaded to LGDataverse
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
32
diff
changeset
|
32 |
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
|
33 |
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
|
34 |
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
|
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
|
36 |
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
|
37 |
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
|
38 import de.mpiwg.gazetteer.bo.LGBranch; |
32
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
39 import de.mpiwg.gazetteer.db.DBBook; |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
40 import de.mpiwg.gazetteer.utils.DBService; |
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
|
41 import de.mpiwg.gazetteer.utils.DataProvider; |
32
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
42 import de.mpiwg.web.books.SortBooksByBookId; |
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
|
43 import de.mpiwg.web.branch.SortBranchByAdminType; |
32
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
44 import de.mpiwg.web.branch.SortBranchByBookName; |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
45 import de.mpiwg.web.branch.SortBranchByBranchId; |
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
|
46 import de.mpiwg.web.branch.SortBranchByDynasty; |
32
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
47 import de.mpiwg.web.branch.SortBranchByLabel; |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
48 import de.mpiwg.web.branch.SortBranchByLastModified; |
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
|
49 import de.mpiwg.web.branch.SortBranchByLevel1; |
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
|
50 import de.mpiwg.web.branch.SortBranchByLevel2; |
32
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
51 import de.mpiwg.web.branch.SortBranchByPeriod; |
34
2e1662afc81c
new: add synchronization for files uploaded to LGDataverse
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
32
diff
changeset
|
52 import de.mpiwg.web.branch.SortBranchByPublishedInDataverse; |
32
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
53 import de.mpiwg.web.branch.SortBranchBySectionName; |
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
|
54 import de.mpiwg.web.branch.SortBranchBySectionStartPage; |
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
|
55 |
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
|
56 public class HomePage 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
|
57 |
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
|
58 private static Logger logger = Logger.getLogger(HomePage.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
|
59 |
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
|
60 public static String bean = "homeBean"; |
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
|
61 public static String page = "pages/home.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
|
62 |
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
|
63 |
32
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
64 private List<LGBranch> completeBranchList; // complete branch list |
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
|
65 private Long branchId; |
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
|
66 |
32
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
67 private List<LGBranch> filteredBranchList; |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
68 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
69 private List<LGBranch> displayBranchList; |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
70 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
71 private String bookNameFilter = new String(); |
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
|
72 private String level1Filter = new String(); |
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
|
73 private String level2Filter = new String(); |
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
|
74 private String dynastyFilter = new String(); |
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
|
75 private String adminTypeFilter = new String(); |
32
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
76 private String bookIdFilter = new String(); |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
77 private String periodFilter = new String(); |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
78 private String sectionNameFilter = new String(); |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
79 private String labelFilter = new String(); |
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
|
80 |
32
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
81 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
82 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
83 private int branchNumber; |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
84 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
85 private String filteringMessage; |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
86 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
87 private DataPaginator paginator = new DataPaginator(); |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
88 |
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
|
89 |
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
|
90 public void loadParameters(HttpServletRequest request, HttpServletResponse response){ |
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
|
91 this.request = request; |
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
|
92 this.response = response; |
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
|
93 |
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
|
94 this.branchId = getLongParameter("branchId"); |
32
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
95 this.bookIdFilter = getParameter("bookIdFilter"); |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
96 this.bookNameFilter = getParameter("bookNameFilter"); |
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
|
97 this.level1Filter = getParameter("level1Filter"); |
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
|
98 this.level2Filter = getParameter("level2Filter"); |
32
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
99 this.periodFilter = getParameter("periodFilter"); |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
100 this.sectionNameFilter = getParameter("sectionNameFilter"); |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
101 this.labelFilter = getParameter("labelFilter"); |
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
|
102 this.dynastyFilter = getParameter("dynastyFilter"); |
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
|
103 this.adminTypeFilter = getParameter("adminTypeFilter"); |
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
|
104 } |
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
|
105 |
32
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
106 |
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
|
107 public void reloadBranches(){ |
32
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
108 logger.debug("reloadBranches"); |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
109 if (this.completeBranchList == null) { |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
110 this.forceLoadBranches(); |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
111 this.filteringMessage = null; |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
112 } |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
113 return; |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
114 } |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
115 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
116 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
117 public void forceLoadBranches(){ |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
118 logger.debug("forceLoadBranches"); |
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
|
119 |
32
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
120 this.completeBranchList = new ArrayList<LGBranch>(); |
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
|
121 if(getSessionBean().getUser() != null){ |
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
|
122 for(LGBranch branch : DataProvider.getInstance().getBranches(getSessionBean().getUser().getId())){ |
20
996f8f1b69db
little modification on books page
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
8
diff
changeset
|
123 branch.loadTransientData(); |
27
3b3e2963c8f7
new: rewrite LGServices for LGDataverse with the new dataverse, dataverse4.0
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
20
diff
changeset
|
124 // section of this branch may be deleted. In this case, we don't add the branch to branches list |
3b3e2963c8f7
new: rewrite LGServices for LGDataverse with the new dataverse, dataverse4.0
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
20
diff
changeset
|
125 // TODO might let user to delete the branch? |
3b3e2963c8f7
new: rewrite LGServices for LGDataverse with the new dataverse, dataverse4.0
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
20
diff
changeset
|
126 if (branch.isEmpty()) { |
3b3e2963c8f7
new: rewrite LGServices for LGDataverse with the new dataverse, dataverse4.0
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
20
diff
changeset
|
127 logger.debug("section of the branch doesn't exist anymore."); |
3b3e2963c8f7
new: rewrite LGServices for LGDataverse with the new dataverse, dataverse4.0
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
20
diff
changeset
|
128 } else { |
32
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
129 this.completeBranchList.add(branch); |
27
3b3e2963c8f7
new: rewrite LGServices for LGDataverse with the new dataverse, dataverse4.0
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
20
diff
changeset
|
130 } |
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
|
131 } |
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
|
132 } |
32
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
133 this.setBranchNumber(this.completeBranchList.size()); |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
134 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
135 sortByLastModifiedDown(); // default sorting by from lasted modified to oldest |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
136 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
137 |
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
|
138 } |
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
|
139 |
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
|
140 public void deleteBranch(){ |
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
|
141 logger.debug("deleteBranch " + branchId); |
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
|
142 |
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
|
143 if(branchId != null){ |
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
|
144 LGBranch branch = DataProvider.getInstance().getBranch(branchId); |
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
|
145 if(branch != null){ |
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
|
146 DataProvider.getInstance().deleteBranch(branch); |
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
|
147 this.reloadBranches(); |
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
|
148 } |
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
|
149 } |
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
|
150 } |
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
|
151 |
32
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
152 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
153 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
154 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
155 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
156 public List<LGBranch> getFilteredBranchList() { |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
157 return filteredBranchList; |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
158 } |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
159 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
160 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
161 public void setFilteredBranchList(List<LGBranch> filteredBranchList) { |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
162 this.filteredBranchList = filteredBranchList; |
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
|
163 } |
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
|
164 |
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
|
165 |
32
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
166 public List<LGBranch> getDisplayBranchList() { |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
167 return displayBranchList; |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
168 } |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
169 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
170 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
171 public void setDisplayBranchList(List<LGBranch> displayBranchList) { |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
172 this.displayBranchList = displayBranchList; |
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
|
173 } |
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
|
174 |
32
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
175 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
176 public List<LGBranch> getCompleteBranchList() { |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
177 return completeBranchList; |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
178 } |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
179 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
180 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
181 public void setCompleteBranchList(List<LGBranch> completeBranchList) { |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
182 this.completeBranchList = completeBranchList; |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
183 } |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
184 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
185 |
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
|
186 public Long getBranchId() { |
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
|
187 return branchId; |
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
|
188 } |
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
|
189 |
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
|
190 public void setBranchId(Long branchId) { |
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
|
191 this.branchId = branchId; |
32
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
192 } |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
193 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
194 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
195 public String getPeriodFilter() { |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
196 return periodFilter; |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
197 } |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
198 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
199 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
200 public void setPeriodFilter(String periodFilter) { |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
201 this.periodFilter = periodFilter; |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
202 } |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
203 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
204 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
205 public String getSectionNameFilter() { |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
206 return sectionNameFilter; |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
207 } |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
208 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
209 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
210 public void setSectionNameFilter(String sectionNameFilter) { |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
211 this.sectionNameFilter = sectionNameFilter; |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
212 } |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
213 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
214 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
215 public List<LGBranch> getFilteredBranches() { |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
216 return filteredBranchList; |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
217 } |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
218 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
219 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
220 public void setFilteredBranches(List<LGBranch> filteredBranches) { |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
221 this.filteredBranchList = filteredBranches; |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
222 } |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
223 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
224 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
225 public String getBookNameFilter() { |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
226 return bookNameFilter; |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
227 } |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
228 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
229 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
230 public void setBookNameFilter(String bookNameFilter) { |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
231 this.bookNameFilter = bookNameFilter; |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
232 } |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
233 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
234 public String getBookIdFilter() { |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
235 return bookIdFilter; |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
236 } |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
237 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
238 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
239 public void setBookIdFilter(String bookIdFilter) { |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
240 this.bookIdFilter = bookIdFilter; |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
241 } |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
242 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
243 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
244 private void updateCurrentBranches() { |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
245 this.displayBranchList = this.filteredBranchList; |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
246 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
247 } |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
248 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
249 public void filter(){ |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
250 this.filteredBranchList = new ArrayList<LGBranch>(); |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
251 for (LGBranch branch : this.completeBranchList) { |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
252 if(!this.filteredBranchList.contains(branch)){ |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
253 if( (StringUtils.isEmpty(bookNameFilter) || StringUtils.startsWith(branch.getBook().getName(), bookNameFilter)) && |
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
|
254 (StringUtils.isEmpty(level1Filter) || StringUtils.startsWith(branch.getBook().getLevel1(), level1Filter)) && |
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
|
255 (StringUtils.isEmpty(level2Filter) || StringUtils.startsWith(branch.getBook().getLevel2(), level2Filter)) && |
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
|
256 (StringUtils.isEmpty(dynastyFilter) || StringUtils.startsWith(branch.getBook().getDynasty(), dynastyFilter)) && |
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
|
257 (StringUtils.isEmpty(adminTypeFilter) || StringUtils.startsWith(branch.getBook().getAdmin_type(), adminTypeFilter)) && |
32
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
258 (StringUtils.isEmpty(bookIdFilter) || StringUtils.startsWith(branch.getBook().getId(), bookIdFilter)) && |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
259 (StringUtils.isEmpty(periodFilter) || StringUtils.startsWith(branch.getBook().getPeriod(), periodFilter)) && |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
260 (StringUtils.isEmpty(sectionNameFilter) || StringUtils.startsWith(branch.getSection().getName(), sectionNameFilter)) && |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
261 (StringUtils.isEmpty(labelFilter) || StringUtils.startsWith(branch.getLabel(), labelFilter)) |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
262 ){ |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
263 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
264 this.filteredBranchList.add(branch); |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
265 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
266 } |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
267 } |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
268 } |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
269 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
270 if(completeBranchList.size() > 0){ |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
271 this.filteringMessage = this.filteredBranchList.size() + " branches listed after filtering"; |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
272 this.paginator.setCurrentPage(0); |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
273 this.paginator.resetNumberOfPages(filteredBranchList.size()); |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
274 this.updateCurrentBranches(); |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
275 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
276 }else{ |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
277 this.filteredBranchList = null; |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
278 } |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
279 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
280 } |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
281 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
282 public void sortByBranchIdUp() { |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
283 Collections.sort(this.completeBranchList, new SortBranchByBranchId()); |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
284 filter(); |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
285 } |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
286 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
287 public void sortByBranchIdDown() { |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
288 Collections.sort(this.completeBranchList, new SortBranchByBranchId()); |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
289 Collections.reverse(this.completeBranchList); |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
290 filter(); |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
291 } |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
292 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
293 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
294 public void sortByBookNameUp() { |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
295 Collections.sort(this.completeBranchList, new SortBranchByBookName()); |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
296 filter(); |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
297 } |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
298 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
299 public void sortByBookNameDown() { |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
300 Collections.sort(this.completeBranchList, new SortBranchByBookName()); |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
301 Collections.reverse(this.completeBranchList); |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
302 filter(); |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
303 } |
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
|
304 |
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
|
305 public void 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
|
306 Collections.sort(this.completeBranchList, new SortBranchByLevel1()); |
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
|
307 filter(); |
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
|
308 } |
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
|
309 |
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
|
310 public void 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
|
311 Collections.sort(this.completeBranchList, new SortBranchByLevel1()); |
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
|
312 Collections.reverse(this.completeBranchList); |
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
|
313 filter(); |
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
|
314 } |
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
|
315 public void 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
|
316 Collections.sort(this.completeBranchList, new SortBranchByLevel2()); |
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
|
317 filter(); |
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
|
318 } |
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
|
319 |
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
|
320 public void 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
|
321 Collections.sort(this.completeBranchList, new SortBranchByLevel2()); |
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
|
322 Collections.reverse(this.completeBranchList); |
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
|
323 filter(); |
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
|
324 } |
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
|
325 public void 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
|
326 Collections.sort(this.completeBranchList, new SortBranchByDynasty()); |
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
|
327 filter(); |
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
|
328 } |
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
|
329 public void 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
|
330 Collections.sort(this.completeBranchList, new SortBranchByDynasty()); |
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
|
331 Collections.reverse(this.completeBranchList); |
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
|
332 filter(); |
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
|
333 } |
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
|
334 public void 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
|
335 Collections.sort(this.completeBranchList, new SortBranchByAdminType()); |
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
|
336 filter(); |
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
|
337 } |
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
|
338 public void 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
|
339 Collections.sort(this.completeBranchList, new SortBranchByAdminType()); |
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
|
340 Collections.reverse(this.completeBranchList); |
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
|
341 filter(); |
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
|
342 } |
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
|
343 public void 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
|
344 Collections.sort(this.completeBranchList, new SortBranchBySectionStartPage()); |
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
|
345 filter(); |
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
|
346 } |
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
|
347 public void 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
|
348 Collections.sort(this.completeBranchList, new SortBranchBySectionStartPage()); |
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
|
349 Collections.reverse(this.completeBranchList); |
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
|
350 filter(); |
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
|
351 } |
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
|
352 |
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
|
353 |
32
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
354 public void sortByPeriodUp() { |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
355 Collections.sort(this.completeBranchList, new SortBranchByPeriod()); |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
356 filter(); |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
357 } |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
358 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
359 public void sortByPeriodDown() { |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
360 Collections.sort(this.completeBranchList, new SortBranchByPeriod()); |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
361 Collections.reverse(this.completeBranchList); |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
362 filter(); |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
363 } |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
364 public void sortBySectionNameUp() { |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
365 Collections.sort(this.completeBranchList, new SortBranchBySectionName()); |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
366 filter(); |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
367 } |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
368 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
369 public void sortBySectionNameDown() { |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
370 Collections.sort(this.completeBranchList, new SortBranchBySectionName()); |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
371 Collections.reverse(this.completeBranchList); |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
372 filter(); |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
373 } |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
374 public void sortByLabelUp() { |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
375 Collections.sort(this.completeBranchList, new SortBranchByLabel()); |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
376 filter(); |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
377 } |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
378 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
379 public void sortByLabelDown() { |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
380 Collections.sort(this.completeBranchList, new SortBranchByLabel()); |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
381 Collections.reverse(this.completeBranchList); |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
382 filter(); |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
383 } |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
384 public void sortByLastModifiedUp() { |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
385 Collections.sort(this.completeBranchList, new SortBranchByLastModified()); |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
386 filter(); |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
387 } |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
388 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
389 public void sortByLastModifiedDown() { |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
390 Collections.sort(this.completeBranchList, new SortBranchByLastModified()); |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
391 Collections.reverse(this.completeBranchList); |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
392 filter(); |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
393 } |
34
2e1662afc81c
new: add synchronization for files uploaded to LGDataverse
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
32
diff
changeset
|
394 public void sortByPublishedInDataverseUp() { |
2e1662afc81c
new: add synchronization for files uploaded to LGDataverse
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
32
diff
changeset
|
395 Collections.sort(this.completeBranchList, new SortBranchByPublishedInDataverse()); |
2e1662afc81c
new: add synchronization for files uploaded to LGDataverse
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
32
diff
changeset
|
396 filter(); |
2e1662afc81c
new: add synchronization for files uploaded to LGDataverse
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
32
diff
changeset
|
397 } |
32
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
398 |
34
2e1662afc81c
new: add synchronization for files uploaded to LGDataverse
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
32
diff
changeset
|
399 public void sortByPublishedInDataverseDown() { |
2e1662afc81c
new: add synchronization for files uploaded to LGDataverse
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
32
diff
changeset
|
400 Collections.sort(this.completeBranchList, new SortBranchByPublishedInDataverse()); |
2e1662afc81c
new: add synchronization for files uploaded to LGDataverse
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
32
diff
changeset
|
401 Collections.reverse(this.completeBranchList); |
2e1662afc81c
new: add synchronization for files uploaded to LGDataverse
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
32
diff
changeset
|
402 filter(); |
2e1662afc81c
new: add synchronization for files uploaded to LGDataverse
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
32
diff
changeset
|
403 } |
32
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
404 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
405 public int getBranchNumber() { |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
406 return branchNumber; |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
407 } |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
408 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
409 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
410 public void setBranchNumber(int branchNumber) { |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
411 this.branchNumber = branchNumber; |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
412 } |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
413 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
414 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
415 public String getFilteringMessage() { |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
416 return filteringMessage; |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
417 } |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
418 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
419 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
420 public void setFilteringMessage(String filteringMessage) { |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
421 this.filteringMessage = filteringMessage; |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
422 } |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
423 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
424 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
425 public String getLabelFilter() { |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
426 return labelFilter; |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
427 } |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
428 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
429 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
430 public void setLabelFilter(String labelFilter) { |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
431 this.labelFilter = labelFilter; |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
432 } |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
433 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
434 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
435 public DataPaginator getPaginator() { |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
436 return paginator; |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
437 } |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
438 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
439 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
440 public void setPaginator(DataPaginator paginator) { |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
441 this.paginator = paginator; |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
442 } |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
443 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
444 |
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
|
445 public String getLevel1Filter() { |
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
|
446 return level1Filter; |
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
|
447 } |
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
|
448 |
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
|
449 |
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
|
450 public void setLevel1Filter(String level1Filter) { |
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
|
451 this.level1Filter = level1Filter; |
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
|
452 } |
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
|
453 |
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
|
454 |
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
|
455 public String getLevel2Filter() { |
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
|
456 return level2Filter; |
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
|
457 } |
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
|
458 |
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
|
459 |
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
|
460 public void setLevel2Filter(String level2Filter) { |
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
|
461 this.level2Filter = level2Filter; |
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
|
462 } |
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
|
463 |
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
|
464 |
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
|
465 public String getDynastyFilter() { |
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
|
466 return dynastyFilter; |
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
|
467 } |
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
|
468 |
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
|
469 |
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
|
470 public void setDynastyFilter(String dynastyFilter) { |
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
|
471 this.dynastyFilter = dynastyFilter; |
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
|
472 } |
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
|
473 |
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
|
474 |
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
|
475 public String getAdminTypeFilter() { |
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
|
476 return adminTypeFilter; |
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
|
477 } |
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
|
478 |
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
|
479 |
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
|
480 public void setAdminTypeFilter(String adminTypeFilter) { |
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
|
481 this.adminTypeFilter = adminTypeFilter; |
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
|
482 } |
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
|
483 |
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
|
484 |
32
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
485 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
486 |
74fe1518bc5c
new: sorting and filters in homepage for branch list
Zoe Hong <zhong@mpiwg-berlin.mpg.de>
parents:
27
diff
changeset
|
487 |
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
|
488 } |