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