Mercurial > hg > ismi-richfaces
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 |
rev | line source |
---|---|
1 | 1 package de.mpiwg.itgroup.ismi.browse; |
2 | |
3 import java.util.ArrayList; | |
4 import java.util.Collections; | |
5 import java.util.HashMap; | |
6 import java.util.List; | |
7 import java.util.Map; | |
8 | |
9 import javax.faces.event.ActionEvent; | |
10 import javax.faces.event.ValueChangeEvent; | |
11 import javax.faces.model.SelectItem; | |
12 | |
13 import org.apache.commons.lang.StringUtils; | |
14 import org.apache.log4j.Logger; | |
15 import org.mpi.openmind.repository.bo.Attribute; | |
16 import org.mpi.openmind.repository.bo.Entity; | |
17 import org.mpi.openmind.repository.services.utils.AttributeFilter; | |
18 | |
19 import de.mpiwg.itgroup.ismi.util.guiComponents.DataPaginator; | |
20 | |
21 public class AbstractEntityRepositoryBean extends AbstractBrowse { | |
22 | |
23 private static final long serialVersionUID = 3154642100627969159L; | |
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 | 26 |
27 public static String MODE_ADVANCED = "advanced"; | |
28 public static String MODE_ALL = "all"; | |
29 public static String MODE_NONE = "none"; | |
30 | |
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 | 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 | 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 | 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 | 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 | 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 | 50 |
169
0b5d02012299
more work on publicByAuthor feature.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
146
diff
changeset
|
51 protected String codexIdentifier; |
1 | 52 |
169
0b5d02012299
more work on publicByAuthor feature.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
146
diff
changeset
|
53 protected String collectionName; |
1 | 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 | 57 |
169
0b5d02012299
more work on publicByAuthor feature.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
146
diff
changeset
|
58 protected String aliasAlias; |
1 | 59 |
169
0b5d02012299
more work on publicByAuthor feature.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
146
diff
changeset
|
60 protected String repositoryName; |
1 | 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 | 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 | 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 | 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 | 77 |
78 public static String main_subject = "main_subject"; | |
79 public static String sub_subject = "sub_subject"; | |
80 | |
81 public AbstractEntityRepositoryBean(){ | |
82 suggestedSubjectTypes.add(new SelectItem(null, "-- choose --")); | |
83 suggestedSubjectTypes.add(new SelectItem(main_subject, main_subject)); | |
84 suggestedSubjectTypes.add(new SelectItem(sub_subject, sub_subject)); | |
85 this.updateDefinitions(getWrapper().getLWDefinitions()); | |
86 } | |
87 | |
103 | 88 /** |
89 * Put the current subset of this.entites in this.currentEntities. | |
90 */ | |
169
0b5d02012299
more work on publicByAuthor feature.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
146
diff
changeset
|
91 protected void updateAdvancedEntities() { |
103 | 92 if (StringUtils.isNotEmpty(getObjectClass())) { |
93 this.advancedPaginator.initCount(); | |
94 int startRecord = this.advancedPaginator.getCurrentPage() * this.advancedPaginator.getItemsPerPage(); | |
95 if ((this.advancedPaginator.getCurrentPage() + 1) == this.advancedPaginator.getNumberOfPages()) { | |
96 int mod = this.entities.size() % advancedPaginator.getItemsPerPage(); | |
97 if (mod == 0) { | |
98 this.currentEntities = entities.subList(startRecord, | |
99 startRecord + this.advancedPaginator.getItemsPerPage()); | |
100 } else { | |
101 this.currentEntities = entities.subList(startRecord, startRecord + mod); | |
102 } | |
103 | |
104 } else { | |
105 this.currentEntities = entities.subList(startRecord, | |
106 startRecord + this.advancedPaginator.getItemsPerPage()); | |
107 } | |
108 } else { | |
109 // empty object_class | |
110 this.currentEntities = new ArrayList<Entity>(); | |
111 } | |
112 } | |
1 | 113 |
114 public String advancedFirst() { | |
115 this.advancedPaginator.first(); | |
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 | 118 } |
119 | |
120 public String advancedLast() { | |
121 this.advancedPaginator.last(); | |
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 | 124 } |
125 | |
126 public String advancedFastForward() { | |
127 this.advancedPaginator.fastForward(); | |
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 | 130 } |
131 | |
132 public String advancedFastRewind() { | |
133 this.advancedPaginator.fastRewind(); | |
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 | 136 } |
137 | |
138 public String advancedPrevious() { | |
139 this.advancedPaginator.previous(); | |
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 | 142 } |
143 | |
144 public String advancedNext() { | |
145 this.advancedPaginator.next(); | |
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 | 148 } |
149 | |
150 public void reset(){ | |
151 this.entities = new ArrayList<Entity>(); | |
152 this.currentEntities = new ArrayList<Entity>(); | |
153 this.resultSummaryMsg = new String(); | |
154 } | |
155 | |
156 public void actionGoToPageAdvancedResult(ActionEvent event){ | |
157 this.pageMsg = ""; | |
158 try{ | |
159 Integer page = new Integer(getPage()); | |
160 this.advancedPaginator.goToPage(page - 1); | |
161 this.updateAdvancedEntities(); | |
162 }catch(Exception e){ | |
163 this.pageMsg = "page is invalid!"; | |
164 } | |
165 } | |
166 | |
167 public DataPaginator getAdvancedPaginator() { | |
168 return advancedPaginator; | |
169 } | |
170 | |
171 public void setAdvancedPaginator(DataPaginator advancedPaginator) { | |
172 this.advancedPaginator = advancedPaginator; | |
173 } | |
174 | |
175 public void updateDefinitions(List<Entity> defs) { | |
176 this.definitions = new ArrayList<SelectItem>(); | |
177 SelectItem option = null; | |
178 for (Entity def : defs) { | |
179 if (def.getOwnValue() != null) { | |
180 option = new SelectItem(def.getOwnValue()); | |
181 this.definitions.add(option); | |
182 } | |
183 } | |
184 this.setEntities(new ArrayList<Entity>()); | |
185 if (defs.size() > 0) { | |
186 this.objectClass = defs.get(0).getOwnValue(); | |
187 } | |
188 } | |
189 | |
190 public void actionDisplayAdvancedSearch(ActionEvent event) { | |
191 this.advancedSearch = true; | |
192 } | |
193 | |
194 public void actionHideAdvancedSearch(ActionEvent event) { | |
195 this.advancedSearch = false; | |
196 } | |
197 | |
198 public void actionChangeDefinition(ValueChangeEvent event) { | |
199 this.objectClass = (String) event.getNewValue(); | |
200 } | |
201 | |
202 public void searchByOwnvalue(){ | |
203 this.resultMode = MODE_ADVANCED; | |
204 this.setPage(""); | |
205 this.currentEntities = new ArrayList<Entity>(); | |
206 this.entities = getWrapper().searchEntityByOwnValue(objectClass, ocTerm); | |
207 this.resultSummaryMsg = ""; | |
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 | 210 this.advancedPaginator.setCurrentPage(0); |
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 | 213 this.advancedPaginator.resetNumberOfPages(entitiesCount); |
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 | 216 this.resultSummaryMsg = "No items were found!"; |
217 } | |
218 } | |
219 | |
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 | 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 | 276 if (StringUtils.isNotEmpty(this.placeType)) { |
277 filterList.add(new AttributeFilter("type", this.placeType, PLACE)); | |
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 | 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 | 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 | 342 public boolean isRenderedSearch(){ |
343 if(StringUtils.isNotEmpty(this.objectClass) && ( | |
344 objectClass.equals(SUBJECT) || | |
345 objectClass.equals(REPOSITORY) || | |
346 objectClass.equals(ALIAS) || | |
347 objectClass.equals(COLLECTION) || | |
348 objectClass.equals(TEXT) || | |
349 objectClass.equals(PERSON) || | |
350 objectClass.equals(CODEX) || | |
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 | 354 return true; |
355 } | |
356 return false; | |
357 } | |
358 | |
359 public String actionSearchByAttributes() { | |
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 | 362 } catch (Exception e) { |
363 printInternalError(e); | |
364 logger.error(e.getMessage(), e); | |
365 } | |
366 | |
367 return GOTO_ENTITY_REPOSITORY; | |
368 } | |
369 | |
370 public String actionSearchByOwnvalue(){ | |
371 try { | |
372 this.searchByOwnvalue(); | |
373 } catch (Exception e) { | |
374 printInternalError(e); | |
375 logger.error(e.getMessage(), e); | |
376 } | |
377 | |
378 return GOTO_ENTITY_REPOSITORY; | |
379 } | |
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 | 403 public boolean isAdvancedSearch() { |
404 return advancedSearch; | |
405 } | |
406 | |
407 public void setAdvancedSearch(boolean advancedSearch) { | |
408 this.advancedSearch = advancedSearch; | |
409 } | |
410 | |
411 public String getTextFullTitle() { | |
412 return textFullTitle; | |
413 } | |
414 | |
415 public void setTextFullTitle(String textFullTitle) { | |
416 this.textFullTitle = textFullTitle; | |
417 } | |
418 | |
419 public String getTextFullTitleTranslit() { | |
420 return textFullTitleTranslit; | |
421 } | |
422 | |
423 public void setTextFullTitleTranslit(String textFullTitleTranslit) { | |
424 this.textFullTitleTranslit = textFullTitleTranslit; | |
425 } | |
426 | |
427 public String getTextShortTitle() { | |
428 return textShortTitle; | |
429 } | |
430 | |
431 public void setTextShortTitle(String textShortTitle) { | |
432 this.textShortTitle = textShortTitle; | |
433 } | |
434 | |
435 public String getPersonName() { | |
436 return personName; | |
437 } | |
438 | |
439 public void setPersonName(String personName) { | |
440 this.personName = personName; | |
441 } | |
442 | |
443 public String getPersonNameTranslit() { | |
444 return personNameTranslit; | |
445 } | |
446 | |
447 public void setPersonNameTranslit(String personNameTranslit) { | |
448 this.personNameTranslit = personNameTranslit; | |
449 } | |
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 | 466 return objectClass; |
467 } | |
468 | |
469 public void setObjectClass(String objectClass) { | |
470 this.objectClass = objectClass; | |
471 } | |
472 | |
473 public List<Entity> getEntities() { | |
474 return this.entities; | |
475 } | |
476 | |
477 public void setEntities(List<Entity> entities) { | |
478 this.entities = entities; | |
479 } | |
480 | |
481 public List<SelectItem> getDefinitions() { | |
482 return definitions; | |
483 } | |
484 | |
485 public void setDefinitions(List<SelectItem> definitions) { | |
486 this.definitions = definitions; | |
487 } | |
488 | |
489 public String getResultMode() { | |
490 return resultMode; | |
491 } | |
492 | |
493 public void setResultMode(String resultMode) { | |
494 this.resultMode = resultMode; | |
495 } | |
496 | |
497 public String getResultSummaryMsg() { | |
498 return resultSummaryMsg; | |
499 } | |
500 | |
501 public void setResultSummaryMsg(String resultSummaryMsg) { | |
502 this.resultSummaryMsg = resultSummaryMsg; | |
503 } | |
504 | |
505 public String getPage() { | |
506 return page; | |
507 } | |
508 | |
509 public void setPage(String page) { | |
510 this.page = page; | |
511 } | |
512 | |
513 public String getPageMsg() { | |
514 return pageMsg; | |
515 } | |
516 | |
517 public void setPageMsg(String pageMsg) { | |
518 this.pageMsg = pageMsg; | |
519 } | |
520 public String getCodexIdentifier() { | |
521 return codexIdentifier; | |
522 } | |
523 public void setCodexIdentifier(String codexIdentifier) { | |
524 this.codexIdentifier = codexIdentifier; | |
525 } | |
526 public String getPlaceName() { | |
527 return placeName; | |
528 } | |
529 public void setPlaceName(String placeName) { | |
530 this.placeName = placeName; | |
531 } | |
532 | |
104 | 533 /** |
534 * @return the placeType | |
535 */ | |
536 public String getPlaceType() { | |
537 return placeType; | |
538 } | |
539 | |
540 /** | |
541 * @param placeType the placeType to set | |
542 */ | |
543 public void setPlaceType(String placeType) { | |
544 this.placeType = placeType; | |
545 } | |
546 | |
547 public String getCollectionName() { | |
1 | 548 return collectionName; |
549 } | |
550 | |
551 public void setCollectionName(String collectionName) { | |
552 this.collectionName = collectionName; | |
553 } | |
554 | |
555 public String getAliasAlias() { | |
556 return aliasAlias; | |
557 } | |
558 | |
559 public void setAliasAlias(String aliasAlias) { | |
560 this.aliasAlias = aliasAlias; | |
561 } | |
562 | |
563 public String getRepositoryName() { | |
564 return repositoryName; | |
565 } | |
566 | |
567 public void setRepositoryName(String repositoryName) { | |
568 this.repositoryName = repositoryName; | |
569 } | |
570 | |
571 public String getSubjectType() { | |
572 return subjectType; | |
573 } | |
574 | |
575 public void setSubjectType(String subjectType) { | |
576 this.subjectType = subjectType; | |
577 } | |
578 | |
579 public List<SelectItem> getSuggestedSubjectTypes() { | |
580 return suggestedSubjectTypes; | |
581 } | |
582 | |
583 public void setSuggestedSubjectTypes(List<SelectItem> suggestedTypes) { | |
584 this.suggestedSubjectTypes = suggestedTypes; | |
585 } | |
586 public List<Entity> getCurrentEntities() { | |
587 return currentEntities; | |
588 } | |
589 | |
590 public void setCurrentEntities(List<Entity> currentEntities) { | |
591 this.currentEntities = currentEntities; | |
592 } | |
593 | |
594 public String getWitnessFullTitle() { | |
595 return witnessFullTitle; | |
596 } | |
597 | |
598 public void setWitnessFullTitle(String witnessFullTitle) { | |
599 this.witnessFullTitle = witnessFullTitle; | |
600 } | |
601 | |
602 public String getWitnessFullTitleTranslit() { | |
603 return witnessFullTitleTranslit; | |
604 } | |
605 | |
606 public void setWitnessFullTitleTranslit(String witnessFullTitleTranslit) { | |
607 this.witnessFullTitleTranslit = witnessFullTitleTranslit; | |
608 } | |
609 | |
610 public String getWitnessAhlwardtNo() { | |
611 return witnessAhlwardtNo; | |
612 } | |
613 | |
614 public void setWitnessAhlwardtNo(String witnessAhlwardtNo) { | |
615 this.witnessAhlwardtNo = witnessAhlwardtNo; | |
616 } | |
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 | 633 return ocTerm; |
634 } | |
635 | |
636 public void setOcTerm(String ocTerm) { | |
637 this.ocTerm = ocTerm; | |
638 } | |
639 | |
640 public String getCurrentTab() { | |
641 return currentTab; | |
642 } | |
643 | |
644 public void setCurrentTab(String currentTab) { | |
645 this.currentTab = currentTab; | |
646 } | |
647 | |
648 | |
649 } |