Mercurial > hg > ismi-richfaces
comparison src/main/java/de/mpiwg/itgroup/ismi/entry/beans/CurrentWitnessBean.java @ 136:502ae5b1a07d
fixing bugs from re-use efforts. misc cleanups.
author | casties |
---|---|
date | Thu, 02 Mar 2017 19:48:58 +0100 |
parents | 25bfcc9d757c |
children | 1c09041f1182 |
comparison
equal
deleted
inserted
replaced
135:0183b8a09717 | 136:502ae5b1a07d |
---|---|
234 | 234 |
235 // WITNESS -> was_copied_in -> PLACE | 235 // WITNESS -> was_copied_in -> PLACE |
236 replaceUniqueAliasSourceRelation(this.entity, this.copyPlaceLo, PLACE, rel_was_copied_in, rel_was_copied_in_as); | 236 replaceUniqueAliasSourceRelation(this.entity, this.copyPlaceLo, PLACE, rel_was_copied_in, rel_was_copied_in_as); |
237 | 237 |
238 //REFERENCE -> is_reference_of -> WITNESS | 238 //REFERENCE -> is_reference_of -> WITNESS |
239 this.prepareEndNoteRefs2Save(); | 239 this.saveReferences(); |
240 | 240 |
241 //WITNESS -> was studied by manyToMany -> PERSON | 241 //WITNESS -> was studied by manyToMany -> PERSON |
242 replaceMultipleSourceRelations(entity, studiedByList.getEntities(), PERSON, rel_was_studied_by); | 242 replaceMultipleSourceRelations(entity, studiedByList.getEntities(), PERSON, rel_was_studied_by); |
243 | 243 |
244 // WITNESS -> had_patron -> PERSON | 244 // WITNESS -> had_patron -> PERSON |
260 | 260 |
261 // WITNESS -> is_part_of_codex | 261 // WITNESS -> is_part_of_codex |
262 if(this.isSelectedSaveAsNew()){ | 262 if(this.isSelectedSaveAsNew()){ |
263 //this.entity = getWrapper().saveEntityAsNew(this.entity, user.getEmail()); | 263 //this.entity = getWrapper().saveEntityAsNew(this.entity, user.getEmail()); |
264 }else{ | 264 }else{ |
265 // save this entity | 265 /* |
266 * save this entity | |
267 */ | |
266 this.entity = getWrapper().saveEntity(this.entity, user.getEmail(), editWitnessIntent); | 268 this.entity = getWrapper().saveEntity(this.entity, user.getEmail(), editWitnessIntent); |
267 } | 269 } |
268 // re-set form | 270 // re-set form |
269 this.setEntity(this.entity); | 271 this.setEntity(this.entity); |
270 | 272 |