annotate src/main/java/de/mpiwg/itgroup/ismi/browse/AbstractEntityRepositoryBean.java @ 169:0b5d02012299 public_by_author

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