annotate src/main/java/de/mpiwg/itgroup/ismi/browse/AbstractEntityRepositoryBean.java @ 179:c9dec00f0f17

add "show private" to browse all function.
author Robert Casties <casties@mpiwg-berlin.mpg.de>
date Fri, 08 Jun 2018 18:59:49 +0200
parents aa564b1b5e1f
children b0b0f8e63c26
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
jurzua
parents:
diff changeset
1 package de.mpiwg.itgroup.ismi.browse;
jurzua
parents:
diff changeset
2
jurzua
parents:
diff changeset
3 import java.util.ArrayList;
jurzua
parents:
diff changeset
4 import java.util.Collections;
jurzua
parents:
diff changeset
5 import java.util.HashMap;
jurzua
parents:
diff changeset
6 import java.util.List;
jurzua
parents:
diff changeset
7 import java.util.Map;
jurzua
parents:
diff changeset
8
jurzua
parents:
diff changeset
9 import javax.faces.event.ActionEvent;
jurzua
parents:
diff changeset
10 import javax.faces.event.ValueChangeEvent;
jurzua
parents:
diff changeset
11 import javax.faces.model.SelectItem;
jurzua
parents:
diff changeset
12
jurzua
parents:
diff changeset
13 import org.apache.commons.lang.StringUtils;
jurzua
parents:
diff changeset
14 import org.apache.log4j.Logger;
jurzua
parents:
diff changeset
15 import org.mpi.openmind.repository.bo.Attribute;
jurzua
parents:
diff changeset
16 import org.mpi.openmind.repository.bo.Entity;
jurzua
parents:
diff changeset
17 import org.mpi.openmind.repository.services.utils.AttributeFilter;
jurzua
parents:
diff changeset
18
jurzua
parents:
diff changeset
19 import de.mpiwg.itgroup.ismi.util.guiComponents.DataPaginator;
jurzua
parents:
diff changeset
20
jurzua
parents:
diff changeset
21 public class AbstractEntityRepositoryBean extends AbstractBrowse {
jurzua
parents:
diff changeset
22
jurzua
parents:
diff changeset
23 private static final long serialVersionUID = 3154642100627969159L;
jurzua
parents:
diff changeset
24
169
0b5d02012299 more work on publicByAuthor feature.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 146
diff changeset
25 protected static Logger logger = Logger.getLogger(AbstractEntityRepositoryBean.class);
1
jurzua
parents:
diff changeset
26
jurzua
parents:
diff changeset
27 public static String MODE_ADVANCED = "advanced";
jurzua
parents:
diff changeset
28 public static String MODE_ALL = "all";
jurzua
parents:
diff changeset
29 public static String MODE_NONE = "none";
jurzua
parents:
diff changeset
30
jurzua
parents:
diff changeset
31
169
0b5d02012299 more work on publicByAuthor feature.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 146
diff changeset
32 protected String objectClass = null;
0b5d02012299 more work on publicByAuthor feature.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 146
diff changeset
33 protected List<Entity> entities = new ArrayList<Entity>();
0b5d02012299 more work on publicByAuthor feature.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 146
diff changeset
34 protected List<Entity> currentEntities = new ArrayList<Entity>();
1
jurzua
parents:
diff changeset
35
169
0b5d02012299 more work on publicByAuthor feature.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 146
diff changeset
36 protected List<SelectItem> definitions = new ArrayList<SelectItem>();
1
jurzua
parents:
diff changeset
37
169
0b5d02012299 more work on publicByAuthor feature.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 146
diff changeset
38 protected transient DataPaginator advancedPaginator = new DataPaginator();
1
jurzua
parents:
diff changeset
39
169
0b5d02012299 more work on publicByAuthor feature.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 146
diff changeset
40 protected String ocTerm;
0b5d02012299 more work on publicByAuthor feature.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 146
diff changeset
41 protected String currentTab;
1
jurzua
parents:
diff changeset
42
169
0b5d02012299 more work on publicByAuthor feature.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 146
diff changeset
43 protected String textFullTitle;
0b5d02012299 more work on publicByAuthor feature.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 146
diff changeset
44 protected String textFullTitleTranslit;
0b5d02012299 more work on publicByAuthor feature.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 146
diff changeset
45 protected String textShortTitle;
1
jurzua
parents:
diff changeset
46
169
0b5d02012299 more work on publicByAuthor feature.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 146
diff changeset
47 protected String personName;
0b5d02012299 more work on publicByAuthor feature.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 146
diff changeset
48 protected String personNameTranslit;
173
aa564b1b5e1f publicByAuthor feature ui for selecting texts ready.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 169
diff changeset
49 protected String personMamsNr;
1
jurzua
parents:
diff changeset
50
169
0b5d02012299 more work on publicByAuthor feature.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 146
diff changeset
51 protected String codexIdentifier;
1
jurzua
parents:
diff changeset
52
169
0b5d02012299 more work on publicByAuthor feature.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 146
diff changeset
53 protected String collectionName;
1
jurzua
parents:
diff changeset
54
169
0b5d02012299 more work on publicByAuthor feature.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 146
diff changeset
55 protected String placeName;
0b5d02012299 more work on publicByAuthor feature.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 146
diff changeset
56 protected String placeType;
1
jurzua
parents:
diff changeset
57
169
0b5d02012299 more work on publicByAuthor feature.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 146
diff changeset
58 protected String aliasAlias;
1
jurzua
parents:
diff changeset
59
169
0b5d02012299 more work on publicByAuthor feature.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 146
diff changeset
60 protected String repositoryName;
1
jurzua
parents:
diff changeset
61
169
0b5d02012299 more work on publicByAuthor feature.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 146
diff changeset
62 protected String witnessFullTitle;
0b5d02012299 more work on publicByAuthor feature.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 146
diff changeset
63 protected String witnessFullTitleTranslit;
0b5d02012299 more work on publicByAuthor feature.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 146
diff changeset
64 protected String witnessAhlwardtNo;
1
jurzua
parents:
diff changeset
65
169
0b5d02012299 more work on publicByAuthor feature.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 146
diff changeset
66 protected boolean advancedSearch = false;
0b5d02012299 more work on publicByAuthor feature.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 146
diff changeset
67 protected String resultMode = MODE_NONE;
0b5d02012299 more work on publicByAuthor feature.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 146
diff changeset
68 protected String resultSummaryMsg;
1
jurzua
parents:
diff changeset
69
169
0b5d02012299 more work on publicByAuthor feature.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 146
diff changeset
70 protected String subjectType;
0b5d02012299 more work on publicByAuthor feature.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 146
diff changeset
71 protected List<SelectItem> suggestedSubjectTypes = new ArrayList<SelectItem>();
81
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
72
169
0b5d02012299 more work on publicByAuthor feature.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 146
diff changeset
73 protected String referenceBibIdNo;
1
jurzua
parents:
diff changeset
74
169
0b5d02012299 more work on publicByAuthor feature.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 146
diff changeset
75 protected String page;
0b5d02012299 more work on publicByAuthor feature.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 146
diff changeset
76 protected String pageMsg;
1
jurzua
parents:
diff changeset
77
jurzua
parents:
diff changeset
78 public static String main_subject = "main_subject";
jurzua
parents:
diff changeset
79 public static String sub_subject = "sub_subject";
jurzua
parents:
diff changeset
80
jurzua
parents:
diff changeset
81 public AbstractEntityRepositoryBean(){
jurzua
parents:
diff changeset
82 suggestedSubjectTypes.add(new SelectItem(null, "-- choose --"));
jurzua
parents:
diff changeset
83 suggestedSubjectTypes.add(new SelectItem(main_subject, main_subject));
jurzua
parents:
diff changeset
84 suggestedSubjectTypes.add(new SelectItem(sub_subject, sub_subject));
jurzua
parents:
diff changeset
85 this.updateDefinitions(getWrapper().getLWDefinitions());
jurzua
parents:
diff changeset
86 }
jurzua
parents:
diff changeset
87
103
03dcbaf8b8cf add download-as-csv button to browse repository.
casties
parents: 81
diff changeset
88 /**
03dcbaf8b8cf add download-as-csv button to browse repository.
casties
parents: 81
diff changeset
89 * Put the current subset of this.entites in this.currentEntities.
03dcbaf8b8cf add download-as-csv button to browse repository.
casties
parents: 81
diff changeset
90 */
169
0b5d02012299 more work on publicByAuthor feature.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 146
diff changeset
91 protected void updateAdvancedEntities() {
103
03dcbaf8b8cf add download-as-csv button to browse repository.
casties
parents: 81
diff changeset
92 if (StringUtils.isNotEmpty(getObjectClass())) {
03dcbaf8b8cf add download-as-csv button to browse repository.
casties
parents: 81
diff changeset
93 this.advancedPaginator.initCount();
03dcbaf8b8cf add download-as-csv button to browse repository.
casties
parents: 81
diff changeset
94 int startRecord = this.advancedPaginator.getCurrentPage() * this.advancedPaginator.getItemsPerPage();
03dcbaf8b8cf add download-as-csv button to browse repository.
casties
parents: 81
diff changeset
95 if ((this.advancedPaginator.getCurrentPage() + 1) == this.advancedPaginator.getNumberOfPages()) {
03dcbaf8b8cf add download-as-csv button to browse repository.
casties
parents: 81
diff changeset
96 int mod = this.entities.size() % advancedPaginator.getItemsPerPage();
03dcbaf8b8cf add download-as-csv button to browse repository.
casties
parents: 81
diff changeset
97 if (mod == 0) {
03dcbaf8b8cf add download-as-csv button to browse repository.
casties
parents: 81
diff changeset
98 this.currentEntities = entities.subList(startRecord,
03dcbaf8b8cf add download-as-csv button to browse repository.
casties
parents: 81
diff changeset
99 startRecord + this.advancedPaginator.getItemsPerPage());
03dcbaf8b8cf add download-as-csv button to browse repository.
casties
parents: 81
diff changeset
100 } else {
03dcbaf8b8cf add download-as-csv button to browse repository.
casties
parents: 81
diff changeset
101 this.currentEntities = entities.subList(startRecord, startRecord + mod);
03dcbaf8b8cf add download-as-csv button to browse repository.
casties
parents: 81
diff changeset
102 }
03dcbaf8b8cf add download-as-csv button to browse repository.
casties
parents: 81
diff changeset
103
03dcbaf8b8cf add download-as-csv button to browse repository.
casties
parents: 81
diff changeset
104 } else {
03dcbaf8b8cf add download-as-csv button to browse repository.
casties
parents: 81
diff changeset
105 this.currentEntities = entities.subList(startRecord,
03dcbaf8b8cf add download-as-csv button to browse repository.
casties
parents: 81
diff changeset
106 startRecord + this.advancedPaginator.getItemsPerPage());
03dcbaf8b8cf add download-as-csv button to browse repository.
casties
parents: 81
diff changeset
107 }
03dcbaf8b8cf add download-as-csv button to browse repository.
casties
parents: 81
diff changeset
108 } else {
03dcbaf8b8cf add download-as-csv button to browse repository.
casties
parents: 81
diff changeset
109 // empty object_class
03dcbaf8b8cf add download-as-csv button to browse repository.
casties
parents: 81
diff changeset
110 this.currentEntities = new ArrayList<Entity>();
03dcbaf8b8cf add download-as-csv button to browse repository.
casties
parents: 81
diff changeset
111 }
03dcbaf8b8cf add download-as-csv button to browse repository.
casties
parents: 81
diff changeset
112 }
1
jurzua
parents:
diff changeset
113
jurzua
parents:
diff changeset
114 public String advancedFirst() {
jurzua
parents:
diff changeset
115 this.advancedPaginator.first();
jurzua
parents:
diff changeset
116 this.updateAdvancedEntities();
173
aa564b1b5e1f publicByAuthor feature ui for selecting texts ready.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 169
diff changeset
117 return null; //GOTO_ENTITY_REPOSITORY;
1
jurzua
parents:
diff changeset
118 }
jurzua
parents:
diff changeset
119
jurzua
parents:
diff changeset
120 public String advancedLast() {
jurzua
parents:
diff changeset
121 this.advancedPaginator.last();
jurzua
parents:
diff changeset
122 this.updateAdvancedEntities();
173
aa564b1b5e1f publicByAuthor feature ui for selecting texts ready.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 169
diff changeset
123 return null; //GOTO_ENTITY_REPOSITORY;
1
jurzua
parents:
diff changeset
124 }
jurzua
parents:
diff changeset
125
jurzua
parents:
diff changeset
126 public String advancedFastForward() {
jurzua
parents:
diff changeset
127 this.advancedPaginator.fastForward();
jurzua
parents:
diff changeset
128 this.updateAdvancedEntities();
173
aa564b1b5e1f publicByAuthor feature ui for selecting texts ready.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 169
diff changeset
129 return null; //GOTO_ENTITY_REPOSITORY;
1
jurzua
parents:
diff changeset
130 }
jurzua
parents:
diff changeset
131
jurzua
parents:
diff changeset
132 public String advancedFastRewind() {
jurzua
parents:
diff changeset
133 this.advancedPaginator.fastRewind();
jurzua
parents:
diff changeset
134 this.updateAdvancedEntities();
173
aa564b1b5e1f publicByAuthor feature ui for selecting texts ready.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 169
diff changeset
135 return null; //GOTO_ENTITY_REPOSITORY;
1
jurzua
parents:
diff changeset
136 }
jurzua
parents:
diff changeset
137
jurzua
parents:
diff changeset
138 public String advancedPrevious() {
jurzua
parents:
diff changeset
139 this.advancedPaginator.previous();
jurzua
parents:
diff changeset
140 this.updateAdvancedEntities();
173
aa564b1b5e1f publicByAuthor feature ui for selecting texts ready.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 169
diff changeset
141 return null; //GOTO_ENTITY_REPOSITORY;
1
jurzua
parents:
diff changeset
142 }
jurzua
parents:
diff changeset
143
jurzua
parents:
diff changeset
144 public String advancedNext() {
jurzua
parents:
diff changeset
145 this.advancedPaginator.next();
jurzua
parents:
diff changeset
146 this.updateAdvancedEntities();
173
aa564b1b5e1f publicByAuthor feature ui for selecting texts ready.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 169
diff changeset
147 return null; //GOTO_ENTITY_REPOSITORY;
1
jurzua
parents:
diff changeset
148 }
jurzua
parents:
diff changeset
149
jurzua
parents:
diff changeset
150 public void reset(){
jurzua
parents:
diff changeset
151 this.entities = new ArrayList<Entity>();
jurzua
parents:
diff changeset
152 this.currentEntities = new ArrayList<Entity>();
jurzua
parents:
diff changeset
153 this.resultSummaryMsg = new String();
jurzua
parents:
diff changeset
154 }
jurzua
parents:
diff changeset
155
jurzua
parents:
diff changeset
156 public void actionGoToPageAdvancedResult(ActionEvent event){
jurzua
parents:
diff changeset
157 this.pageMsg = "";
jurzua
parents:
diff changeset
158 try{
jurzua
parents:
diff changeset
159 Integer page = new Integer(getPage());
jurzua
parents:
diff changeset
160 this.advancedPaginator.goToPage(page - 1);
jurzua
parents:
diff changeset
161 this.updateAdvancedEntities();
jurzua
parents:
diff changeset
162 }catch(Exception e){
jurzua
parents:
diff changeset
163 this.pageMsg = "page is invalid!";
jurzua
parents:
diff changeset
164 }
jurzua
parents:
diff changeset
165 }
jurzua
parents:
diff changeset
166
jurzua
parents:
diff changeset
167 public DataPaginator getAdvancedPaginator() {
jurzua
parents:
diff changeset
168 return advancedPaginator;
jurzua
parents:
diff changeset
169 }
jurzua
parents:
diff changeset
170
jurzua
parents:
diff changeset
171 public void setAdvancedPaginator(DataPaginator advancedPaginator) {
jurzua
parents:
diff changeset
172 this.advancedPaginator = advancedPaginator;
jurzua
parents:
diff changeset
173 }
jurzua
parents:
diff changeset
174
jurzua
parents:
diff changeset
175 public void updateDefinitions(List<Entity> defs) {
jurzua
parents:
diff changeset
176 this.definitions = new ArrayList<SelectItem>();
jurzua
parents:
diff changeset
177 SelectItem option = null;
jurzua
parents:
diff changeset
178 for (Entity def : defs) {
jurzua
parents:
diff changeset
179 if (def.getOwnValue() != null) {
jurzua
parents:
diff changeset
180 option = new SelectItem(def.getOwnValue());
jurzua
parents:
diff changeset
181 this.definitions.add(option);
jurzua
parents:
diff changeset
182 }
jurzua
parents:
diff changeset
183 }
jurzua
parents:
diff changeset
184 this.setEntities(new ArrayList<Entity>());
jurzua
parents:
diff changeset
185 if (defs.size() > 0) {
jurzua
parents:
diff changeset
186 this.objectClass = defs.get(0).getOwnValue();
jurzua
parents:
diff changeset
187 }
jurzua
parents:
diff changeset
188 }
jurzua
parents:
diff changeset
189
jurzua
parents:
diff changeset
190 public void actionDisplayAdvancedSearch(ActionEvent event) {
jurzua
parents:
diff changeset
191 this.advancedSearch = true;
jurzua
parents:
diff changeset
192 }
jurzua
parents:
diff changeset
193
jurzua
parents:
diff changeset
194 public void actionHideAdvancedSearch(ActionEvent event) {
jurzua
parents:
diff changeset
195 this.advancedSearch = false;
jurzua
parents:
diff changeset
196 }
jurzua
parents:
diff changeset
197
jurzua
parents:
diff changeset
198 public void actionChangeDefinition(ValueChangeEvent event) {
jurzua
parents:
diff changeset
199 this.objectClass = (String) event.getNewValue();
jurzua
parents:
diff changeset
200 }
jurzua
parents:
diff changeset
201
jurzua
parents:
diff changeset
202 public void searchByOwnvalue(){
jurzua
parents:
diff changeset
203 this.resultMode = MODE_ADVANCED;
jurzua
parents:
diff changeset
204 this.setPage("");
jurzua
parents:
diff changeset
205 this.currentEntities = new ArrayList<Entity>();
jurzua
parents:
diff changeset
206 this.entities = getWrapper().searchEntityByOwnValue(objectClass, ocTerm);
jurzua
parents:
diff changeset
207 this.resultSummaryMsg = "";
jurzua
parents:
diff changeset
208
jurzua
parents:
diff changeset
209 if(this.entities.size() > 0){
jurzua
parents:
diff changeset
210
jurzua
parents:
diff changeset
211 this.advancedPaginator.setCurrentPage(0);
jurzua
parents:
diff changeset
212 int entitiesCount = this.entities.size();
jurzua
parents:
diff changeset
213 this.advancedPaginator.resetNumberOfPages(entitiesCount);
jurzua
parents:
diff changeset
214 this.updateAdvancedEntities();
jurzua
parents:
diff changeset
215 }else {
jurzua
parents:
diff changeset
216 this.resultSummaryMsg = "No items were found!";
jurzua
parents:
diff changeset
217 }
jurzua
parents:
diff changeset
218 }
jurzua
parents:
diff changeset
219
jurzua
parents:
diff changeset
220
81
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
221 public void searchByAttributes() throws Exception {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
222 this.resultMode = MODE_ADVANCED;
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
223 this.setPage("");
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
224 this.entities = new ArrayList<Entity>();
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
225 this.currentEntities = new ArrayList<Entity>();
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
226
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
227 List<AttributeFilter> filterList = new ArrayList<AttributeFilter>();
1
jurzua
parents:
diff changeset
228
81
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
229 this.resultSummaryMsg = "";
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
230 Map<Entity, Attribute> resultMap = new HashMap<Entity, Attribute>();
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
231
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
232 /*
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
233 * create list of filters for the selected attributes
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
234 */
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
235 if (this.objectClass.equals(TEXT)) {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
236 if (StringUtils.isNotEmpty(textFullTitle)) {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
237 filterList.add(new AttributeFilter("full_title", this.textFullTitle, TEXT));
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
238 }
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
239 if (StringUtils.isNotEmpty(textFullTitleTranslit)) {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
240 filterList.add(new AttributeFilter("full_title_translit", textFullTitleTranslit, TEXT));
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
241 }
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
242 if (StringUtils.isNotEmpty(textShortTitle)) {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
243 List<Entity> l = getWrapper().searchEntityByAttributeOfTarRelation(TEXT, "is_prime_alias_title_of",
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
244 ALIAS, "alias", textShortTitle, 20);
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
245 for (Entity e : l) {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
246 this.entities.add(e);
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
247 }
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
248 }
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
249 } else if (this.objectClass.equals(WITNESS)) {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
250 // witnessAhlwardtNo
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
251 if (StringUtils.isNotEmpty(this.witnessAhlwardtNo)) {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
252 filterList.add(new AttributeFilter("ahlwardt_no", this.witnessAhlwardtNo, WITNESS));
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
253 }
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
254 } else if (this.objectClass.equals(SUBJECT)) {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
255 if (StringUtils.isNotEmpty(this.subjectType)) {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
256 filterList.add(new AttributeFilter("type", this.subjectType, SUBJECT));
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
257 }
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
258 } else if (this.objectClass.equals(ALIAS)) {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
259 if (StringUtils.isNotEmpty(this.aliasAlias)) {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
260 filterList.add(new AttributeFilter("alias", this.aliasAlias, ALIAS));
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
261 }
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
262 } else if (this.objectClass.equals(COLLECTION)) {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
263 if (StringUtils.isNotEmpty(this.collectionName)) {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
264 filterList.add(new AttributeFilter("name", this.collectionName, COLLECTION));
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
265 }
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
266 } else if (this.objectClass.equals(REPOSITORY)) {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
267 if (StringUtils.isNotEmpty(this.repositoryName)) {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
268 filterList.add(new AttributeFilter("name", this.repositoryName, REPOSITORY));
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
269 }
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
270 } else if (this.objectClass.equals(PLACE)) {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
271 if (StringUtils.isNotEmpty(this.placeName)) {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
272 filterList.add(new AttributeFilter("name", this.placeName, PLACE));
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
273 }
104
42d0169904f3 add search for place type.
casties
parents: 103
diff changeset
274 if (StringUtils.isNotEmpty(this.placeType)) {
42d0169904f3 add search for place type.
casties
parents: 103
diff changeset
275 filterList.add(new AttributeFilter("type", this.placeType, PLACE));
42d0169904f3 add search for place type.
casties
parents: 103
diff changeset
276 }
81
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
277 } else if (this.objectClass.equals(CODEX)) {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
278 if (StringUtils.isNotEmpty(this.codexIdentifier)) {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
279 filterList.add(new AttributeFilter("identifier", this.codexIdentifier, CODEX));
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
280 }
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
281 } else if (this.objectClass.equals(REFERENCE)) {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
282 // search "#bibIdNo\W" as regex in endnote-id attribute
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
283 if (StringUtils.isNotEmpty(this.referenceBibIdNo)) {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
284 filterList.add(new AttributeFilter("endnote-id", "#" + this.referenceBibIdNo + "[[:>:]]", REFERENCE, true));
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
285 }
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
286 } else if (this.objectClass.equals(PERSON)) {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
287 if (StringUtils.isNotEmpty(this.personName)) {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
288 filterList.add(new AttributeFilter("name", this.personName, PERSON));
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
289 }
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
290 if (StringUtils.isNotEmpty(this.personNameTranslit)) {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
291 filterList.add(new AttributeFilter("name_translit", this.personNameTranslit, PERSON));
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
292 }
173
aa564b1b5e1f publicByAuthor feature ui for selecting texts ready.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 169
diff changeset
293 if (StringUtils.isNotEmpty(this.personMamsNr)) {
aa564b1b5e1f publicByAuthor feature ui for selecting texts ready.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 169
diff changeset
294 filterList.add(new AttributeFilter("mams_number", this.personMamsNr, PERSON));
aa564b1b5e1f publicByAuthor feature ui for selecting texts ready.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 169
diff changeset
295 }
81
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
296 }
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
297
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
298 /*
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
299 * run search and sort result (by ownvalue)
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
300 */
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
301 if (filterList.size() > 0) {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
302 resultMap = getWrapper().searchEntityByAttributeFilter(filterList, 500);
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
303 // pack entities (Map keys) into List
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
304 for (Entity ent : resultMap.keySet()) {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
305 this.entities.add(ent);
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
306 }
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
307 // sort List (by ownvalue)
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
308 Collections.sort(entities);
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
309 }
1
jurzua
parents:
diff changeset
310
81
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
311 if (resultMap.size() > 0) {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
312 this.resultSummaryMsg = resultMap.size() + " items were found!";
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
313 this.advancedPaginator.setCurrentPage(0);
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
314 int entitiesCount = this.entities.size();
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
315 this.advancedPaginator.resetNumberOfPages(entitiesCount);
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
316 this.updateAdvancedEntities();
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
317 } else {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
318 this.resultSummaryMsg = "No items were found!";
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
319 }
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
320 }
1
jurzua
parents:
diff changeset
321
179
c9dec00f0f17 add "show private" to browse all function.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 173
diff changeset
322 public void searchByPublic(boolean isPublic) {
146
29bd63f749c6 add Browse by Public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 104
diff changeset
323 this.resultMode = MODE_ADVANCED;
29bd63f749c6 add Browse by Public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 104
diff changeset
324 this.setPage("");
29bd63f749c6 add Browse by Public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 104
diff changeset
325 this.currentEntities = new ArrayList<Entity>();
29bd63f749c6 add Browse by Public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 104
diff changeset
326 this.entities = getWrapper().searchEntityByPublic(objectClass, isPublic);
29bd63f749c6 add Browse by Public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 104
diff changeset
327 this.resultSummaryMsg = "";
29bd63f749c6 add Browse by Public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 104
diff changeset
328
29bd63f749c6 add Browse by Public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 104
diff changeset
329 if (this.entities.size() > 0) {
29bd63f749c6 add Browse by Public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 104
diff changeset
330 this.advancedPaginator.setCurrentPage(0);
29bd63f749c6 add Browse by Public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 104
diff changeset
331 int entitiesCount = this.entities.size();
29bd63f749c6 add Browse by Public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 104
diff changeset
332 this.advancedPaginator.resetNumberOfPages(entitiesCount);
29bd63f749c6 add Browse by Public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 104
diff changeset
333 this.updateAdvancedEntities();
29bd63f749c6 add Browse by Public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 104
diff changeset
334 } else {
29bd63f749c6 add Browse by Public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 104
diff changeset
335 this.resultSummaryMsg = "No items were found!";
29bd63f749c6 add Browse by Public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 104
diff changeset
336 }
29bd63f749c6 add Browse by Public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 104
diff changeset
337 }
29bd63f749c6 add Browse by Public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 104
diff changeset
338
1
jurzua
parents:
diff changeset
339 public boolean isRenderedSearch(){
jurzua
parents:
diff changeset
340 if(StringUtils.isNotEmpty(this.objectClass) && (
jurzua
parents:
diff changeset
341 objectClass.equals(SUBJECT) ||
jurzua
parents:
diff changeset
342 objectClass.equals(REPOSITORY) ||
jurzua
parents:
diff changeset
343 objectClass.equals(ALIAS) ||
jurzua
parents:
diff changeset
344 objectClass.equals(COLLECTION) ||
jurzua
parents:
diff changeset
345 objectClass.equals(TEXT) ||
jurzua
parents:
diff changeset
346 objectClass.equals(PERSON) ||
jurzua
parents:
diff changeset
347 objectClass.equals(CODEX) ||
jurzua
parents:
diff changeset
348 objectClass.equals(WITNESS) ||
81
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
349 objectClass.equals(PLACE) ||
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
350 objectClass.equals(REFERENCE))) {
1
jurzua
parents:
diff changeset
351 return true;
jurzua
parents:
diff changeset
352 }
jurzua
parents:
diff changeset
353 return false;
jurzua
parents:
diff changeset
354 }
jurzua
parents:
diff changeset
355
jurzua
parents:
diff changeset
356 public String actionSearchByAttributes() {
jurzua
parents:
diff changeset
357 try {
jurzua
parents:
diff changeset
358 this.searchByAttributes();
jurzua
parents:
diff changeset
359 } catch (Exception e) {
jurzua
parents:
diff changeset
360 printInternalError(e);
jurzua
parents:
diff changeset
361 logger.error(e.getMessage(), e);
jurzua
parents:
diff changeset
362 }
jurzua
parents:
diff changeset
363
jurzua
parents:
diff changeset
364 return GOTO_ENTITY_REPOSITORY;
jurzua
parents:
diff changeset
365 }
jurzua
parents:
diff changeset
366
jurzua
parents:
diff changeset
367 public String actionSearchByOwnvalue(){
jurzua
parents:
diff changeset
368 try {
jurzua
parents:
diff changeset
369 this.searchByOwnvalue();
jurzua
parents:
diff changeset
370 } catch (Exception e) {
jurzua
parents:
diff changeset
371 printInternalError(e);
jurzua
parents:
diff changeset
372 logger.error(e.getMessage(), e);
jurzua
parents:
diff changeset
373 }
jurzua
parents:
diff changeset
374
jurzua
parents:
diff changeset
375 return GOTO_ENTITY_REPOSITORY;
jurzua
parents:
diff changeset
376 }
jurzua
parents:
diff changeset
377
146
29bd63f749c6 add Browse by Public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 104
diff changeset
378 public String actionSearchByPublic() {
29bd63f749c6 add Browse by Public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 104
diff changeset
379 try {
179
c9dec00f0f17 add "show private" to browse all function.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 173
diff changeset
380 this.searchByPublic(true);
146
29bd63f749c6 add Browse by Public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 104
diff changeset
381 } catch (Exception e) {
29bd63f749c6 add Browse by Public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 104
diff changeset
382 printInternalError(e);
29bd63f749c6 add Browse by Public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 104
diff changeset
383 logger.error(e.getMessage(), e);
29bd63f749c6 add Browse by Public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 104
diff changeset
384 }
29bd63f749c6 add Browse by Public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 104
diff changeset
385
29bd63f749c6 add Browse by Public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 104
diff changeset
386 return GOTO_ENTITY_REPOSITORY;
29bd63f749c6 add Browse by Public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 104
diff changeset
387 }
29bd63f749c6 add Browse by Public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 104
diff changeset
388
179
c9dec00f0f17 add "show private" to browse all function.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 173
diff changeset
389 public String actionSearchByPrivate() {
c9dec00f0f17 add "show private" to browse all function.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 173
diff changeset
390 try {
c9dec00f0f17 add "show private" to browse all function.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 173
diff changeset
391 this.searchByPublic(false);
c9dec00f0f17 add "show private" to browse all function.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 173
diff changeset
392 } catch (Exception e) {
c9dec00f0f17 add "show private" to browse all function.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 173
diff changeset
393 printInternalError(e);
c9dec00f0f17 add "show private" to browse all function.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 173
diff changeset
394 logger.error(e.getMessage(), e);
c9dec00f0f17 add "show private" to browse all function.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 173
diff changeset
395 }
c9dec00f0f17 add "show private" to browse all function.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 173
diff changeset
396
c9dec00f0f17 add "show private" to browse all function.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 173
diff changeset
397 return GOTO_ENTITY_REPOSITORY;
c9dec00f0f17 add "show private" to browse all function.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 173
diff changeset
398 }
c9dec00f0f17 add "show private" to browse all function.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 173
diff changeset
399
1
jurzua
parents:
diff changeset
400 public boolean isAdvancedSearch() {
jurzua
parents:
diff changeset
401 return advancedSearch;
jurzua
parents:
diff changeset
402 }
jurzua
parents:
diff changeset
403
jurzua
parents:
diff changeset
404 public void setAdvancedSearch(boolean advancedSearch) {
jurzua
parents:
diff changeset
405 this.advancedSearch = advancedSearch;
jurzua
parents:
diff changeset
406 }
jurzua
parents:
diff changeset
407
jurzua
parents:
diff changeset
408 public String getTextFullTitle() {
jurzua
parents:
diff changeset
409 return textFullTitle;
jurzua
parents:
diff changeset
410 }
jurzua
parents:
diff changeset
411
jurzua
parents:
diff changeset
412 public void setTextFullTitle(String textFullTitle) {
jurzua
parents:
diff changeset
413 this.textFullTitle = textFullTitle;
jurzua
parents:
diff changeset
414 }
jurzua
parents:
diff changeset
415
jurzua
parents:
diff changeset
416 public String getTextFullTitleTranslit() {
jurzua
parents:
diff changeset
417 return textFullTitleTranslit;
jurzua
parents:
diff changeset
418 }
jurzua
parents:
diff changeset
419
jurzua
parents:
diff changeset
420 public void setTextFullTitleTranslit(String textFullTitleTranslit) {
jurzua
parents:
diff changeset
421 this.textFullTitleTranslit = textFullTitleTranslit;
jurzua
parents:
diff changeset
422 }
jurzua
parents:
diff changeset
423
jurzua
parents:
diff changeset
424 public String getTextShortTitle() {
jurzua
parents:
diff changeset
425 return textShortTitle;
jurzua
parents:
diff changeset
426 }
jurzua
parents:
diff changeset
427
jurzua
parents:
diff changeset
428 public void setTextShortTitle(String textShortTitle) {
jurzua
parents:
diff changeset
429 this.textShortTitle = textShortTitle;
jurzua
parents:
diff changeset
430 }
jurzua
parents:
diff changeset
431
jurzua
parents:
diff changeset
432 public String getPersonName() {
jurzua
parents:
diff changeset
433 return personName;
jurzua
parents:
diff changeset
434 }
jurzua
parents:
diff changeset
435
jurzua
parents:
diff changeset
436 public void setPersonName(String personName) {
jurzua
parents:
diff changeset
437 this.personName = personName;
jurzua
parents:
diff changeset
438 }
jurzua
parents:
diff changeset
439
jurzua
parents:
diff changeset
440 public String getPersonNameTranslit() {
jurzua
parents:
diff changeset
441 return personNameTranslit;
jurzua
parents:
diff changeset
442 }
jurzua
parents:
diff changeset
443
jurzua
parents:
diff changeset
444 public void setPersonNameTranslit(String personNameTranslit) {
jurzua
parents:
diff changeset
445 this.personNameTranslit = personNameTranslit;
jurzua
parents:
diff changeset
446 }
jurzua
parents:
diff changeset
447
173
aa564b1b5e1f publicByAuthor feature ui for selecting texts ready.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 169
diff changeset
448 /**
aa564b1b5e1f publicByAuthor feature ui for selecting texts ready.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 169
diff changeset
449 * @return the personMamsNr
aa564b1b5e1f publicByAuthor feature ui for selecting texts ready.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 169
diff changeset
450 */
aa564b1b5e1f publicByAuthor feature ui for selecting texts ready.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 169
diff changeset
451 public String getPersonMamsNr() {
aa564b1b5e1f publicByAuthor feature ui for selecting texts ready.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 169
diff changeset
452 return personMamsNr;
aa564b1b5e1f publicByAuthor feature ui for selecting texts ready.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 169
diff changeset
453 }
aa564b1b5e1f publicByAuthor feature ui for selecting texts ready.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 169
diff changeset
454
aa564b1b5e1f publicByAuthor feature ui for selecting texts ready.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 169
diff changeset
455 /**
aa564b1b5e1f publicByAuthor feature ui for selecting texts ready.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 169
diff changeset
456 * @param personMamsNr the personMamsNr to set
aa564b1b5e1f publicByAuthor feature ui for selecting texts ready.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 169
diff changeset
457 */
aa564b1b5e1f publicByAuthor feature ui for selecting texts ready.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 169
diff changeset
458 public void setPersonMamsNr(String personMamsNr) {
aa564b1b5e1f publicByAuthor feature ui for selecting texts ready.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 169
diff changeset
459 this.personMamsNr = personMamsNr;
aa564b1b5e1f publicByAuthor feature ui for selecting texts ready.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 169
diff changeset
460 }
aa564b1b5e1f publicByAuthor feature ui for selecting texts ready.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 169
diff changeset
461
aa564b1b5e1f publicByAuthor feature ui for selecting texts ready.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 169
diff changeset
462 public String getObjectClass() {
1
jurzua
parents:
diff changeset
463 return objectClass;
jurzua
parents:
diff changeset
464 }
jurzua
parents:
diff changeset
465
jurzua
parents:
diff changeset
466 public void setObjectClass(String objectClass) {
jurzua
parents:
diff changeset
467 this.objectClass = objectClass;
jurzua
parents:
diff changeset
468 }
jurzua
parents:
diff changeset
469
jurzua
parents:
diff changeset
470 public List<Entity> getEntities() {
jurzua
parents:
diff changeset
471 return this.entities;
jurzua
parents:
diff changeset
472 }
jurzua
parents:
diff changeset
473
jurzua
parents:
diff changeset
474 public void setEntities(List<Entity> entities) {
jurzua
parents:
diff changeset
475 this.entities = entities;
jurzua
parents:
diff changeset
476 }
jurzua
parents:
diff changeset
477
jurzua
parents:
diff changeset
478 public List<SelectItem> getDefinitions() {
jurzua
parents:
diff changeset
479 return definitions;
jurzua
parents:
diff changeset
480 }
jurzua
parents:
diff changeset
481
jurzua
parents:
diff changeset
482 public void setDefinitions(List<SelectItem> definitions) {
jurzua
parents:
diff changeset
483 this.definitions = definitions;
jurzua
parents:
diff changeset
484 }
jurzua
parents:
diff changeset
485
jurzua
parents:
diff changeset
486 public String getResultMode() {
jurzua
parents:
diff changeset
487 return resultMode;
jurzua
parents:
diff changeset
488 }
jurzua
parents:
diff changeset
489
jurzua
parents:
diff changeset
490 public void setResultMode(String resultMode) {
jurzua
parents:
diff changeset
491 this.resultMode = resultMode;
jurzua
parents:
diff changeset
492 }
jurzua
parents:
diff changeset
493
jurzua
parents:
diff changeset
494 public String getResultSummaryMsg() {
jurzua
parents:
diff changeset
495 return resultSummaryMsg;
jurzua
parents:
diff changeset
496 }
jurzua
parents:
diff changeset
497
jurzua
parents:
diff changeset
498 public void setResultSummaryMsg(String resultSummaryMsg) {
jurzua
parents:
diff changeset
499 this.resultSummaryMsg = resultSummaryMsg;
jurzua
parents:
diff changeset
500 }
jurzua
parents:
diff changeset
501
jurzua
parents:
diff changeset
502 public String getPage() {
jurzua
parents:
diff changeset
503 return page;
jurzua
parents:
diff changeset
504 }
jurzua
parents:
diff changeset
505
jurzua
parents:
diff changeset
506 public void setPage(String page) {
jurzua
parents:
diff changeset
507 this.page = page;
jurzua
parents:
diff changeset
508 }
jurzua
parents:
diff changeset
509
jurzua
parents:
diff changeset
510 public String getPageMsg() {
jurzua
parents:
diff changeset
511 return pageMsg;
jurzua
parents:
diff changeset
512 }
jurzua
parents:
diff changeset
513
jurzua
parents:
diff changeset
514 public void setPageMsg(String pageMsg) {
jurzua
parents:
diff changeset
515 this.pageMsg = pageMsg;
jurzua
parents:
diff changeset
516 }
jurzua
parents:
diff changeset
517 public String getCodexIdentifier() {
jurzua
parents:
diff changeset
518 return codexIdentifier;
jurzua
parents:
diff changeset
519 }
jurzua
parents:
diff changeset
520 public void setCodexIdentifier(String codexIdentifier) {
jurzua
parents:
diff changeset
521 this.codexIdentifier = codexIdentifier;
jurzua
parents:
diff changeset
522 }
jurzua
parents:
diff changeset
523 public String getPlaceName() {
jurzua
parents:
diff changeset
524 return placeName;
jurzua
parents:
diff changeset
525 }
jurzua
parents:
diff changeset
526 public void setPlaceName(String placeName) {
jurzua
parents:
diff changeset
527 this.placeName = placeName;
jurzua
parents:
diff changeset
528 }
jurzua
parents:
diff changeset
529
104
42d0169904f3 add search for place type.
casties
parents: 103
diff changeset
530 /**
42d0169904f3 add search for place type.
casties
parents: 103
diff changeset
531 * @return the placeType
42d0169904f3 add search for place type.
casties
parents: 103
diff changeset
532 */
42d0169904f3 add search for place type.
casties
parents: 103
diff changeset
533 public String getPlaceType() {
42d0169904f3 add search for place type.
casties
parents: 103
diff changeset
534 return placeType;
42d0169904f3 add search for place type.
casties
parents: 103
diff changeset
535 }
42d0169904f3 add search for place type.
casties
parents: 103
diff changeset
536
42d0169904f3 add search for place type.
casties
parents: 103
diff changeset
537 /**
42d0169904f3 add search for place type.
casties
parents: 103
diff changeset
538 * @param placeType the placeType to set
42d0169904f3 add search for place type.
casties
parents: 103
diff changeset
539 */
42d0169904f3 add search for place type.
casties
parents: 103
diff changeset
540 public void setPlaceType(String placeType) {
42d0169904f3 add search for place type.
casties
parents: 103
diff changeset
541 this.placeType = placeType;
42d0169904f3 add search for place type.
casties
parents: 103
diff changeset
542 }
42d0169904f3 add search for place type.
casties
parents: 103
diff changeset
543
42d0169904f3 add search for place type.
casties
parents: 103
diff changeset
544 public String getCollectionName() {
1
jurzua
parents:
diff changeset
545 return collectionName;
jurzua
parents:
diff changeset
546 }
jurzua
parents:
diff changeset
547
jurzua
parents:
diff changeset
548 public void setCollectionName(String collectionName) {
jurzua
parents:
diff changeset
549 this.collectionName = collectionName;
jurzua
parents:
diff changeset
550 }
jurzua
parents:
diff changeset
551
jurzua
parents:
diff changeset
552 public String getAliasAlias() {
jurzua
parents:
diff changeset
553 return aliasAlias;
jurzua
parents:
diff changeset
554 }
jurzua
parents:
diff changeset
555
jurzua
parents:
diff changeset
556 public void setAliasAlias(String aliasAlias) {
jurzua
parents:
diff changeset
557 this.aliasAlias = aliasAlias;
jurzua
parents:
diff changeset
558 }
jurzua
parents:
diff changeset
559
jurzua
parents:
diff changeset
560 public String getRepositoryName() {
jurzua
parents:
diff changeset
561 return repositoryName;
jurzua
parents:
diff changeset
562 }
jurzua
parents:
diff changeset
563
jurzua
parents:
diff changeset
564 public void setRepositoryName(String repositoryName) {
jurzua
parents:
diff changeset
565 this.repositoryName = repositoryName;
jurzua
parents:
diff changeset
566 }
jurzua
parents:
diff changeset
567
jurzua
parents:
diff changeset
568 public String getSubjectType() {
jurzua
parents:
diff changeset
569 return subjectType;
jurzua
parents:
diff changeset
570 }
jurzua
parents:
diff changeset
571
jurzua
parents:
diff changeset
572 public void setSubjectType(String subjectType) {
jurzua
parents:
diff changeset
573 this.subjectType = subjectType;
jurzua
parents:
diff changeset
574 }
jurzua
parents:
diff changeset
575
jurzua
parents:
diff changeset
576 public List<SelectItem> getSuggestedSubjectTypes() {
jurzua
parents:
diff changeset
577 return suggestedSubjectTypes;
jurzua
parents:
diff changeset
578 }
jurzua
parents:
diff changeset
579
jurzua
parents:
diff changeset
580 public void setSuggestedSubjectTypes(List<SelectItem> suggestedTypes) {
jurzua
parents:
diff changeset
581 this.suggestedSubjectTypes = suggestedTypes;
jurzua
parents:
diff changeset
582 }
jurzua
parents:
diff changeset
583 public List<Entity> getCurrentEntities() {
jurzua
parents:
diff changeset
584 return currentEntities;
jurzua
parents:
diff changeset
585 }
jurzua
parents:
diff changeset
586
jurzua
parents:
diff changeset
587 public void setCurrentEntities(List<Entity> currentEntities) {
jurzua
parents:
diff changeset
588 this.currentEntities = currentEntities;
jurzua
parents:
diff changeset
589 }
jurzua
parents:
diff changeset
590
jurzua
parents:
diff changeset
591 public String getWitnessFullTitle() {
jurzua
parents:
diff changeset
592 return witnessFullTitle;
jurzua
parents:
diff changeset
593 }
jurzua
parents:
diff changeset
594
jurzua
parents:
diff changeset
595 public void setWitnessFullTitle(String witnessFullTitle) {
jurzua
parents:
diff changeset
596 this.witnessFullTitle = witnessFullTitle;
jurzua
parents:
diff changeset
597 }
jurzua
parents:
diff changeset
598
jurzua
parents:
diff changeset
599 public String getWitnessFullTitleTranslit() {
jurzua
parents:
diff changeset
600 return witnessFullTitleTranslit;
jurzua
parents:
diff changeset
601 }
jurzua
parents:
diff changeset
602
jurzua
parents:
diff changeset
603 public void setWitnessFullTitleTranslit(String witnessFullTitleTranslit) {
jurzua
parents:
diff changeset
604 this.witnessFullTitleTranslit = witnessFullTitleTranslit;
jurzua
parents:
diff changeset
605 }
jurzua
parents:
diff changeset
606
jurzua
parents:
diff changeset
607 public String getWitnessAhlwardtNo() {
jurzua
parents:
diff changeset
608 return witnessAhlwardtNo;
jurzua
parents:
diff changeset
609 }
jurzua
parents:
diff changeset
610
jurzua
parents:
diff changeset
611 public void setWitnessAhlwardtNo(String witnessAhlwardtNo) {
jurzua
parents:
diff changeset
612 this.witnessAhlwardtNo = witnessAhlwardtNo;
jurzua
parents:
diff changeset
613 }
jurzua
parents:
diff changeset
614
81
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
615 /**
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
616 * @return the referenceBibIdNo
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
617 */
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
618 public String getReferenceBibIdNo() {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
619 return referenceBibIdNo;
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
620 }
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
621
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
622 /**
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
623 * @param referenceBibIdNo the referenceBibIdNo to set
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
624 */
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
625 public void setReferenceBibIdNo(String referenceBibIdNo) {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
626 this.referenceBibIdNo = referenceBibIdNo;
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
627 }
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
628
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
629 public String getOcTerm() {
1
jurzua
parents:
diff changeset
630 return ocTerm;
jurzua
parents:
diff changeset
631 }
jurzua
parents:
diff changeset
632
jurzua
parents:
diff changeset
633 public void setOcTerm(String ocTerm) {
jurzua
parents:
diff changeset
634 this.ocTerm = ocTerm;
jurzua
parents:
diff changeset
635 }
jurzua
parents:
diff changeset
636
jurzua
parents:
diff changeset
637 public String getCurrentTab() {
jurzua
parents:
diff changeset
638 return currentTab;
jurzua
parents:
diff changeset
639 }
jurzua
parents:
diff changeset
640
jurzua
parents:
diff changeset
641 public void setCurrentTab(String currentTab) {
jurzua
parents:
diff changeset
642 this.currentTab = currentTab;
jurzua
parents:
diff changeset
643 }
jurzua
parents:
diff changeset
644
jurzua
parents:
diff changeset
645
jurzua
parents:
diff changeset
646 }