annotate src/main/java/de/mpiwg/itgroup/ismi/browse/AbstractEntityRepositoryBean.java @ 207:91f177641ec7

New clean actions to delete lost floruit_dates and empty references.
author casties
date Mon, 26 Aug 2019 16:06:55 +0200
parents b0b0f8e63c26
children
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
186
b0b0f8e63c26 add missing item count messages to browse repository modes.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 179
diff changeset
209 if(this.entities.size() > 0){
1
jurzua
parents:
diff changeset
210 this.advancedPaginator.setCurrentPage(0);
jurzua
parents:
diff changeset
211 int entitiesCount = this.entities.size();
186
b0b0f8e63c26 add missing item count messages to browse repository modes.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 179
diff changeset
212 this.resultSummaryMsg = entitiesCount + " items were found!";
1
jurzua
parents:
diff changeset
213 this.advancedPaginator.resetNumberOfPages(entitiesCount);
jurzua
parents:
diff changeset
214 this.updateAdvancedEntities();
186
b0b0f8e63c26 add missing item count messages to browse repository modes.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 179
diff changeset
215 } else {
1
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
207
91f177641ec7 New clean actions to delete lost floruit_dates and empty references.
casties
parents: 186
diff changeset
221 public void searchByAttributes(List<AttributeFilter> filterList) throws Exception {
81
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
207
91f177641ec7 New clean actions to delete lost floruit_dates and empty references.
casties
parents: 186
diff changeset
227 if (filterList == null) {
91f177641ec7 New clean actions to delete lost floruit_dates and empty references.
casties
parents: 186
diff changeset
228 filterList = new ArrayList<AttributeFilter>();
91f177641ec7 New clean actions to delete lost floruit_dates and empty references.
casties
parents: 186
diff changeset
229 }
1
jurzua
parents:
diff changeset
230
81
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
231 this.resultSummaryMsg = "";
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
232 Map<Entity, Attribute> resultMap = new HashMap<Entity, Attribute>();
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 /*
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
235 * create list of filters for the selected attributes
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
236 */
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
237 if (this.objectClass.equals(TEXT)) {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
238 if (StringUtils.isNotEmpty(textFullTitle)) {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
239 filterList.add(new AttributeFilter("full_title", this.textFullTitle, 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(textFullTitleTranslit)) {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
242 filterList.add(new AttributeFilter("full_title_translit", textFullTitleTranslit, TEXT));
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
243 }
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
244 if (StringUtils.isNotEmpty(textShortTitle)) {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
245 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
246 ALIAS, "alias", textShortTitle, 20);
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
247 for (Entity e : l) {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
248 this.entities.add(e);
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
249 }
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
250 }
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
251 } else if (this.objectClass.equals(WITNESS)) {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
252 // witnessAhlwardtNo
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
253 if (StringUtils.isNotEmpty(this.witnessAhlwardtNo)) {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
254 filterList.add(new AttributeFilter("ahlwardt_no", this.witnessAhlwardtNo, WITNESS));
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
255 }
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
256 } else if (this.objectClass.equals(SUBJECT)) {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
257 if (StringUtils.isNotEmpty(this.subjectType)) {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
258 filterList.add(new AttributeFilter("type", this.subjectType, SUBJECT));
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
259 }
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
260 } else if (this.objectClass.equals(ALIAS)) {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
261 if (StringUtils.isNotEmpty(this.aliasAlias)) {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
262 filterList.add(new AttributeFilter("alias", this.aliasAlias, ALIAS));
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
263 }
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
264 } else if (this.objectClass.equals(COLLECTION)) {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
265 if (StringUtils.isNotEmpty(this.collectionName)) {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
266 filterList.add(new AttributeFilter("name", this.collectionName, COLLECTION));
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
267 }
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
268 } else if (this.objectClass.equals(REPOSITORY)) {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
269 if (StringUtils.isNotEmpty(this.repositoryName)) {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
270 filterList.add(new AttributeFilter("name", this.repositoryName, REPOSITORY));
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
271 }
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
272 } else if (this.objectClass.equals(PLACE)) {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
273 if (StringUtils.isNotEmpty(this.placeName)) {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
274 filterList.add(new AttributeFilter("name", this.placeName, PLACE));
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
275 }
104
42d0169904f3 add search for place type.
casties
parents: 103
diff changeset
276 if (StringUtils.isNotEmpty(this.placeType)) {
42d0169904f3 add search for place type.
casties
parents: 103
diff changeset
277 filterList.add(new AttributeFilter("type", this.placeType, PLACE));
42d0169904f3 add search for place type.
casties
parents: 103
diff changeset
278 }
81
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
279 } else if (this.objectClass.equals(CODEX)) {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
280 if (StringUtils.isNotEmpty(this.codexIdentifier)) {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
281 filterList.add(new AttributeFilter("identifier", this.codexIdentifier, CODEX));
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
282 }
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
283 } else if (this.objectClass.equals(REFERENCE)) {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
284 // search "#bibIdNo\W" as regex in endnote-id attribute
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
285 if (StringUtils.isNotEmpty(this.referenceBibIdNo)) {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
286 filterList.add(new AttributeFilter("endnote-id", "#" + this.referenceBibIdNo + "[[:>:]]", REFERENCE, true));
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
287 }
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
288 } else if (this.objectClass.equals(PERSON)) {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
289 if (StringUtils.isNotEmpty(this.personName)) {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
290 filterList.add(new AttributeFilter("name", this.personName, 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 if (StringUtils.isNotEmpty(this.personNameTranslit)) {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
293 filterList.add(new AttributeFilter("name_translit", this.personNameTranslit, PERSON));
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
294 }
173
aa564b1b5e1f publicByAuthor feature ui for selecting texts ready.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 169
diff changeset
295 if (StringUtils.isNotEmpty(this.personMamsNr)) {
aa564b1b5e1f publicByAuthor feature ui for selecting texts ready.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 169
diff changeset
296 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
297 }
81
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
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 * run search and sort result (by ownvalue)
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 if (filterList.size() > 0) {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
304 resultMap = getWrapper().searchEntityByAttributeFilter(filterList, 500);
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
305 // pack entities (Map keys) into List
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
306 for (Entity ent : resultMap.keySet()) {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
307 this.entities.add(ent);
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
308 }
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
309 // sort List (by ownvalue)
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
310 Collections.sort(entities);
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
311 }
1
jurzua
parents:
diff changeset
312
81
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
313 if (resultMap.size() > 0) {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
314 this.advancedPaginator.setCurrentPage(0);
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
315 int entitiesCount = this.entities.size();
186
b0b0f8e63c26 add missing item count messages to browse repository modes.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 179
diff changeset
316 this.resultSummaryMsg = entitiesCount + " items were found!";
81
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
317 this.advancedPaginator.resetNumberOfPages(entitiesCount);
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
318 this.updateAdvancedEntities();
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
319 } else {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
320 this.resultSummaryMsg = "No items were found!";
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
321 }
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
322 }
1
jurzua
parents:
diff changeset
323
179
c9dec00f0f17 add "show private" to browse all function.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 173
diff changeset
324 public void searchByPublic(boolean isPublic) {
146
29bd63f749c6 add Browse by Public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 104
diff changeset
325 this.resultMode = MODE_ADVANCED;
29bd63f749c6 add Browse by Public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 104
diff changeset
326 this.setPage("");
29bd63f749c6 add Browse by Public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 104
diff changeset
327 this.currentEntities = new ArrayList<Entity>();
29bd63f749c6 add Browse by Public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 104
diff changeset
328 this.entities = getWrapper().searchEntityByPublic(objectClass, isPublic);
29bd63f749c6 add Browse by Public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 104
diff changeset
329 this.resultSummaryMsg = "";
29bd63f749c6 add Browse by Public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 104
diff changeset
330
29bd63f749c6 add Browse by Public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 104
diff changeset
331 if (this.entities.size() > 0) {
29bd63f749c6 add Browse by Public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 104
diff changeset
332 this.advancedPaginator.setCurrentPage(0);
29bd63f749c6 add Browse by Public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 104
diff changeset
333 int entitiesCount = this.entities.size();
186
b0b0f8e63c26 add missing item count messages to browse repository modes.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 179
diff changeset
334 this.resultSummaryMsg = entitiesCount + " items were found!";
146
29bd63f749c6 add Browse by Public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 104
diff changeset
335 this.advancedPaginator.resetNumberOfPages(entitiesCount);
29bd63f749c6 add Browse by Public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 104
diff changeset
336 this.updateAdvancedEntities();
29bd63f749c6 add Browse by Public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 104
diff changeset
337 } else {
29bd63f749c6 add Browse by Public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 104
diff changeset
338 this.resultSummaryMsg = "No items were found!";
29bd63f749c6 add Browse by Public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 104
diff changeset
339 }
29bd63f749c6 add Browse by Public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 104
diff changeset
340 }
29bd63f749c6 add Browse by Public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 104
diff changeset
341
1
jurzua
parents:
diff changeset
342 public boolean isRenderedSearch(){
jurzua
parents:
diff changeset
343 if(StringUtils.isNotEmpty(this.objectClass) && (
jurzua
parents:
diff changeset
344 objectClass.equals(SUBJECT) ||
jurzua
parents:
diff changeset
345 objectClass.equals(REPOSITORY) ||
jurzua
parents:
diff changeset
346 objectClass.equals(ALIAS) ||
jurzua
parents:
diff changeset
347 objectClass.equals(COLLECTION) ||
jurzua
parents:
diff changeset
348 objectClass.equals(TEXT) ||
jurzua
parents:
diff changeset
349 objectClass.equals(PERSON) ||
jurzua
parents:
diff changeset
350 objectClass.equals(CODEX) ||
jurzua
parents:
diff changeset
351 objectClass.equals(WITNESS) ||
81
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
352 objectClass.equals(PLACE) ||
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
353 objectClass.equals(REFERENCE))) {
1
jurzua
parents:
diff changeset
354 return true;
jurzua
parents:
diff changeset
355 }
jurzua
parents:
diff changeset
356 return false;
jurzua
parents:
diff changeset
357 }
jurzua
parents:
diff changeset
358
jurzua
parents:
diff changeset
359 public String actionSearchByAttributes() {
jurzua
parents:
diff changeset
360 try {
207
91f177641ec7 New clean actions to delete lost floruit_dates and empty references.
casties
parents: 186
diff changeset
361 this.searchByAttributes(null);
1
jurzua
parents:
diff changeset
362 } catch (Exception e) {
jurzua
parents:
diff changeset
363 printInternalError(e);
jurzua
parents:
diff changeset
364 logger.error(e.getMessage(), e);
jurzua
parents:
diff changeset
365 }
jurzua
parents:
diff changeset
366
jurzua
parents:
diff changeset
367 return GOTO_ENTITY_REPOSITORY;
jurzua
parents:
diff changeset
368 }
jurzua
parents:
diff changeset
369
jurzua
parents:
diff changeset
370 public String actionSearchByOwnvalue(){
jurzua
parents:
diff changeset
371 try {
jurzua
parents:
diff changeset
372 this.searchByOwnvalue();
jurzua
parents:
diff changeset
373 } catch (Exception e) {
jurzua
parents:
diff changeset
374 printInternalError(e);
jurzua
parents:
diff changeset
375 logger.error(e.getMessage(), e);
jurzua
parents:
diff changeset
376 }
jurzua
parents:
diff changeset
377
jurzua
parents:
diff changeset
378 return GOTO_ENTITY_REPOSITORY;
jurzua
parents:
diff changeset
379 }
jurzua
parents:
diff changeset
380
146
29bd63f749c6 add Browse by Public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 104
diff changeset
381 public String actionSearchByPublic() {
29bd63f749c6 add Browse by Public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 104
diff changeset
382 try {
179
c9dec00f0f17 add "show private" to browse all function.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 173
diff changeset
383 this.searchByPublic(true);
146
29bd63f749c6 add Browse by Public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 104
diff changeset
384 } catch (Exception e) {
29bd63f749c6 add Browse by Public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 104
diff changeset
385 printInternalError(e);
29bd63f749c6 add Browse by Public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 104
diff changeset
386 logger.error(e.getMessage(), e);
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
29bd63f749c6 add Browse by Public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 104
diff changeset
389 return GOTO_ENTITY_REPOSITORY;
29bd63f749c6 add Browse by Public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 104
diff changeset
390 }
29bd63f749c6 add Browse by Public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 104
diff changeset
391
179
c9dec00f0f17 add "show private" to browse all function.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 173
diff changeset
392 public String actionSearchByPrivate() {
c9dec00f0f17 add "show private" to browse all function.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 173
diff changeset
393 try {
c9dec00f0f17 add "show private" to browse all function.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 173
diff changeset
394 this.searchByPublic(false);
c9dec00f0f17 add "show private" to browse all function.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 173
diff changeset
395 } catch (Exception e) {
c9dec00f0f17 add "show private" to browse all function.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 173
diff changeset
396 printInternalError(e);
c9dec00f0f17 add "show private" to browse all function.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 173
diff changeset
397 logger.error(e.getMessage(), e);
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
c9dec00f0f17 add "show private" to browse all function.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 173
diff changeset
400 return GOTO_ENTITY_REPOSITORY;
c9dec00f0f17 add "show private" to browse all function.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 173
diff changeset
401 }
c9dec00f0f17 add "show private" to browse all function.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 173
diff changeset
402
1
jurzua
parents:
diff changeset
403 public boolean isAdvancedSearch() {
jurzua
parents:
diff changeset
404 return advancedSearch;
jurzua
parents:
diff changeset
405 }
jurzua
parents:
diff changeset
406
jurzua
parents:
diff changeset
407 public void setAdvancedSearch(boolean advancedSearch) {
jurzua
parents:
diff changeset
408 this.advancedSearch = advancedSearch;
jurzua
parents:
diff changeset
409 }
jurzua
parents:
diff changeset
410
jurzua
parents:
diff changeset
411 public String getTextFullTitle() {
jurzua
parents:
diff changeset
412 return textFullTitle;
jurzua
parents:
diff changeset
413 }
jurzua
parents:
diff changeset
414
jurzua
parents:
diff changeset
415 public void setTextFullTitle(String textFullTitle) {
jurzua
parents:
diff changeset
416 this.textFullTitle = textFullTitle;
jurzua
parents:
diff changeset
417 }
jurzua
parents:
diff changeset
418
jurzua
parents:
diff changeset
419 public String getTextFullTitleTranslit() {
jurzua
parents:
diff changeset
420 return textFullTitleTranslit;
jurzua
parents:
diff changeset
421 }
jurzua
parents:
diff changeset
422
jurzua
parents:
diff changeset
423 public void setTextFullTitleTranslit(String textFullTitleTranslit) {
jurzua
parents:
diff changeset
424 this.textFullTitleTranslit = textFullTitleTranslit;
jurzua
parents:
diff changeset
425 }
jurzua
parents:
diff changeset
426
jurzua
parents:
diff changeset
427 public String getTextShortTitle() {
jurzua
parents:
diff changeset
428 return textShortTitle;
jurzua
parents:
diff changeset
429 }
jurzua
parents:
diff changeset
430
jurzua
parents:
diff changeset
431 public void setTextShortTitle(String textShortTitle) {
jurzua
parents:
diff changeset
432 this.textShortTitle = textShortTitle;
jurzua
parents:
diff changeset
433 }
jurzua
parents:
diff changeset
434
jurzua
parents:
diff changeset
435 public String getPersonName() {
jurzua
parents:
diff changeset
436 return personName;
jurzua
parents:
diff changeset
437 }
jurzua
parents:
diff changeset
438
jurzua
parents:
diff changeset
439 public void setPersonName(String personName) {
jurzua
parents:
diff changeset
440 this.personName = personName;
jurzua
parents:
diff changeset
441 }
jurzua
parents:
diff changeset
442
jurzua
parents:
diff changeset
443 public String getPersonNameTranslit() {
jurzua
parents:
diff changeset
444 return personNameTranslit;
jurzua
parents:
diff changeset
445 }
jurzua
parents:
diff changeset
446
jurzua
parents:
diff changeset
447 public void setPersonNameTranslit(String personNameTranslit) {
jurzua
parents:
diff changeset
448 this.personNameTranslit = personNameTranslit;
jurzua
parents:
diff changeset
449 }
jurzua
parents:
diff changeset
450
173
aa564b1b5e1f publicByAuthor feature ui for selecting texts ready.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 169
diff changeset
451 /**
aa564b1b5e1f publicByAuthor feature ui for selecting texts ready.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 169
diff changeset
452 * @return the 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 public String getPersonMamsNr() {
aa564b1b5e1f publicByAuthor feature ui for selecting texts ready.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 169
diff changeset
455 return personMamsNr;
aa564b1b5e1f publicByAuthor feature ui for selecting texts ready.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 169
diff changeset
456 }
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 /**
aa564b1b5e1f publicByAuthor feature ui for selecting texts ready.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 169
diff changeset
459 * @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
460 */
aa564b1b5e1f publicByAuthor feature ui for selecting texts ready.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 169
diff changeset
461 public void setPersonMamsNr(String personMamsNr) {
aa564b1b5e1f publicByAuthor feature ui for selecting texts ready.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 169
diff changeset
462 this.personMamsNr = personMamsNr;
aa564b1b5e1f publicByAuthor feature ui for selecting texts ready.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 169
diff changeset
463 }
aa564b1b5e1f publicByAuthor feature ui for selecting texts ready.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 169
diff changeset
464
aa564b1b5e1f publicByAuthor feature ui for selecting texts ready.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents: 169
diff changeset
465 public String getObjectClass() {
1
jurzua
parents:
diff changeset
466 return objectClass;
jurzua
parents:
diff changeset
467 }
jurzua
parents:
diff changeset
468
jurzua
parents:
diff changeset
469 public void setObjectClass(String objectClass) {
jurzua
parents:
diff changeset
470 this.objectClass = objectClass;
jurzua
parents:
diff changeset
471 }
jurzua
parents:
diff changeset
472
jurzua
parents:
diff changeset
473 public List<Entity> getEntities() {
jurzua
parents:
diff changeset
474 return this.entities;
jurzua
parents:
diff changeset
475 }
jurzua
parents:
diff changeset
476
jurzua
parents:
diff changeset
477 public void setEntities(List<Entity> entities) {
jurzua
parents:
diff changeset
478 this.entities = entities;
jurzua
parents:
diff changeset
479 }
jurzua
parents:
diff changeset
480
jurzua
parents:
diff changeset
481 public List<SelectItem> getDefinitions() {
jurzua
parents:
diff changeset
482 return definitions;
jurzua
parents:
diff changeset
483 }
jurzua
parents:
diff changeset
484
jurzua
parents:
diff changeset
485 public void setDefinitions(List<SelectItem> definitions) {
jurzua
parents:
diff changeset
486 this.definitions = definitions;
jurzua
parents:
diff changeset
487 }
jurzua
parents:
diff changeset
488
jurzua
parents:
diff changeset
489 public String getResultMode() {
jurzua
parents:
diff changeset
490 return resultMode;
jurzua
parents:
diff changeset
491 }
jurzua
parents:
diff changeset
492
jurzua
parents:
diff changeset
493 public void setResultMode(String resultMode) {
jurzua
parents:
diff changeset
494 this.resultMode = resultMode;
jurzua
parents:
diff changeset
495 }
jurzua
parents:
diff changeset
496
jurzua
parents:
diff changeset
497 public String getResultSummaryMsg() {
jurzua
parents:
diff changeset
498 return resultSummaryMsg;
jurzua
parents:
diff changeset
499 }
jurzua
parents:
diff changeset
500
jurzua
parents:
diff changeset
501 public void setResultSummaryMsg(String resultSummaryMsg) {
jurzua
parents:
diff changeset
502 this.resultSummaryMsg = resultSummaryMsg;
jurzua
parents:
diff changeset
503 }
jurzua
parents:
diff changeset
504
jurzua
parents:
diff changeset
505 public String getPage() {
jurzua
parents:
diff changeset
506 return page;
jurzua
parents:
diff changeset
507 }
jurzua
parents:
diff changeset
508
jurzua
parents:
diff changeset
509 public void setPage(String page) {
jurzua
parents:
diff changeset
510 this.page = page;
jurzua
parents:
diff changeset
511 }
jurzua
parents:
diff changeset
512
jurzua
parents:
diff changeset
513 public String getPageMsg() {
jurzua
parents:
diff changeset
514 return pageMsg;
jurzua
parents:
diff changeset
515 }
jurzua
parents:
diff changeset
516
jurzua
parents:
diff changeset
517 public void setPageMsg(String pageMsg) {
jurzua
parents:
diff changeset
518 this.pageMsg = pageMsg;
jurzua
parents:
diff changeset
519 }
jurzua
parents:
diff changeset
520 public String getCodexIdentifier() {
jurzua
parents:
diff changeset
521 return codexIdentifier;
jurzua
parents:
diff changeset
522 }
jurzua
parents:
diff changeset
523 public void setCodexIdentifier(String codexIdentifier) {
jurzua
parents:
diff changeset
524 this.codexIdentifier = codexIdentifier;
jurzua
parents:
diff changeset
525 }
jurzua
parents:
diff changeset
526 public String getPlaceName() {
jurzua
parents:
diff changeset
527 return placeName;
jurzua
parents:
diff changeset
528 }
jurzua
parents:
diff changeset
529 public void setPlaceName(String placeName) {
jurzua
parents:
diff changeset
530 this.placeName = placeName;
jurzua
parents:
diff changeset
531 }
jurzua
parents:
diff changeset
532
104
42d0169904f3 add search for place type.
casties
parents: 103
diff changeset
533 /**
42d0169904f3 add search for place type.
casties
parents: 103
diff changeset
534 * @return the 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 public String getPlaceType() {
42d0169904f3 add search for place type.
casties
parents: 103
diff changeset
537 return placeType;
42d0169904f3 add search for place type.
casties
parents: 103
diff changeset
538 }
42d0169904f3 add search for place type.
casties
parents: 103
diff changeset
539
42d0169904f3 add search for place type.
casties
parents: 103
diff changeset
540 /**
42d0169904f3 add search for place type.
casties
parents: 103
diff changeset
541 * @param placeType the placeType to set
42d0169904f3 add search for place type.
casties
parents: 103
diff changeset
542 */
42d0169904f3 add search for place type.
casties
parents: 103
diff changeset
543 public void setPlaceType(String placeType) {
42d0169904f3 add search for place type.
casties
parents: 103
diff changeset
544 this.placeType = placeType;
42d0169904f3 add search for place type.
casties
parents: 103
diff changeset
545 }
42d0169904f3 add search for place type.
casties
parents: 103
diff changeset
546
42d0169904f3 add search for place type.
casties
parents: 103
diff changeset
547 public String getCollectionName() {
1
jurzua
parents:
diff changeset
548 return collectionName;
jurzua
parents:
diff changeset
549 }
jurzua
parents:
diff changeset
550
jurzua
parents:
diff changeset
551 public void setCollectionName(String collectionName) {
jurzua
parents:
diff changeset
552 this.collectionName = collectionName;
jurzua
parents:
diff changeset
553 }
jurzua
parents:
diff changeset
554
jurzua
parents:
diff changeset
555 public String getAliasAlias() {
jurzua
parents:
diff changeset
556 return aliasAlias;
jurzua
parents:
diff changeset
557 }
jurzua
parents:
diff changeset
558
jurzua
parents:
diff changeset
559 public void setAliasAlias(String aliasAlias) {
jurzua
parents:
diff changeset
560 this.aliasAlias = aliasAlias;
jurzua
parents:
diff changeset
561 }
jurzua
parents:
diff changeset
562
jurzua
parents:
diff changeset
563 public String getRepositoryName() {
jurzua
parents:
diff changeset
564 return repositoryName;
jurzua
parents:
diff changeset
565 }
jurzua
parents:
diff changeset
566
jurzua
parents:
diff changeset
567 public void setRepositoryName(String repositoryName) {
jurzua
parents:
diff changeset
568 this.repositoryName = repositoryName;
jurzua
parents:
diff changeset
569 }
jurzua
parents:
diff changeset
570
jurzua
parents:
diff changeset
571 public String getSubjectType() {
jurzua
parents:
diff changeset
572 return subjectType;
jurzua
parents:
diff changeset
573 }
jurzua
parents:
diff changeset
574
jurzua
parents:
diff changeset
575 public void setSubjectType(String subjectType) {
jurzua
parents:
diff changeset
576 this.subjectType = subjectType;
jurzua
parents:
diff changeset
577 }
jurzua
parents:
diff changeset
578
jurzua
parents:
diff changeset
579 public List<SelectItem> getSuggestedSubjectTypes() {
jurzua
parents:
diff changeset
580 return suggestedSubjectTypes;
jurzua
parents:
diff changeset
581 }
jurzua
parents:
diff changeset
582
jurzua
parents:
diff changeset
583 public void setSuggestedSubjectTypes(List<SelectItem> suggestedTypes) {
jurzua
parents:
diff changeset
584 this.suggestedSubjectTypes = suggestedTypes;
jurzua
parents:
diff changeset
585 }
jurzua
parents:
diff changeset
586 public List<Entity> getCurrentEntities() {
jurzua
parents:
diff changeset
587 return currentEntities;
jurzua
parents:
diff changeset
588 }
jurzua
parents:
diff changeset
589
jurzua
parents:
diff changeset
590 public void setCurrentEntities(List<Entity> currentEntities) {
jurzua
parents:
diff changeset
591 this.currentEntities = currentEntities;
jurzua
parents:
diff changeset
592 }
jurzua
parents:
diff changeset
593
jurzua
parents:
diff changeset
594 public String getWitnessFullTitle() {
jurzua
parents:
diff changeset
595 return witnessFullTitle;
jurzua
parents:
diff changeset
596 }
jurzua
parents:
diff changeset
597
jurzua
parents:
diff changeset
598 public void setWitnessFullTitle(String witnessFullTitle) {
jurzua
parents:
diff changeset
599 this.witnessFullTitle = witnessFullTitle;
jurzua
parents:
diff changeset
600 }
jurzua
parents:
diff changeset
601
jurzua
parents:
diff changeset
602 public String getWitnessFullTitleTranslit() {
jurzua
parents:
diff changeset
603 return witnessFullTitleTranslit;
jurzua
parents:
diff changeset
604 }
jurzua
parents:
diff changeset
605
jurzua
parents:
diff changeset
606 public void setWitnessFullTitleTranslit(String witnessFullTitleTranslit) {
jurzua
parents:
diff changeset
607 this.witnessFullTitleTranslit = witnessFullTitleTranslit;
jurzua
parents:
diff changeset
608 }
jurzua
parents:
diff changeset
609
jurzua
parents:
diff changeset
610 public String getWitnessAhlwardtNo() {
jurzua
parents:
diff changeset
611 return witnessAhlwardtNo;
jurzua
parents:
diff changeset
612 }
jurzua
parents:
diff changeset
613
jurzua
parents:
diff changeset
614 public void setWitnessAhlwardtNo(String witnessAhlwardtNo) {
jurzua
parents:
diff changeset
615 this.witnessAhlwardtNo = witnessAhlwardtNo;
jurzua
parents:
diff changeset
616 }
jurzua
parents:
diff changeset
617
81
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
618 /**
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
619 * @return the 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 public String getReferenceBibIdNo() {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
622 return referenceBibIdNo;
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
623 }
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 /**
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
626 * @param referenceBibIdNo the referenceBibIdNo to set
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 public void setReferenceBibIdNo(String referenceBibIdNo) {
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
629 this.referenceBibIdNo = referenceBibIdNo;
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
630 }
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
631
0d5d36c83e77 added search for bibliography id attribute for REFERENCEs.
casties
parents: 78
diff changeset
632 public String getOcTerm() {
1
jurzua
parents:
diff changeset
633 return ocTerm;
jurzua
parents:
diff changeset
634 }
jurzua
parents:
diff changeset
635
jurzua
parents:
diff changeset
636 public void setOcTerm(String ocTerm) {
jurzua
parents:
diff changeset
637 this.ocTerm = ocTerm;
jurzua
parents:
diff changeset
638 }
jurzua
parents:
diff changeset
639
jurzua
parents:
diff changeset
640 public String getCurrentTab() {
jurzua
parents:
diff changeset
641 return currentTab;
jurzua
parents:
diff changeset
642 }
jurzua
parents:
diff changeset
643
jurzua
parents:
diff changeset
644 public void setCurrentTab(String currentTab) {
jurzua
parents:
diff changeset
645 this.currentTab = currentTab;
jurzua
parents:
diff changeset
646 }
jurzua
parents:
diff changeset
647
jurzua
parents:
diff changeset
648
jurzua
parents:
diff changeset
649 }