Mercurial > hg > ismi-richfaces
comparison src/main/java/de/mpiwg/itgroup/ismi/entry/beans/CurrentWitnessBean.java @ 209:c9347929be25
fix bug with ALIAS attribute being "ALIAS".
author | casties |
---|---|
date | Tue, 27 Aug 2019 12:38:48 +0200 |
parents | 8049becb05ca |
children | 0aa8975784d9 |
comparison
equal
deleted
inserted
replaced
208:c1f509c69e9d | 209:c9347929be25 |
---|---|
314 } | 314 } |
315 | 315 |
316 if (alias == null) { | 316 if (alias == null) { |
317 // create new alias | 317 // create new alias |
318 alias = new Entity(Node.TYPE_ABOX, ALIAS, false); | 318 alias = new Entity(Node.TYPE_ABOX, ALIAS, false); |
319 alias.addAttribute(new Attribute(ALIAS, "text", valueTextWritten)); | 319 alias.addAttribute(new Attribute("alias", "text", valueTextWritten)); |
320 alias = getWrapper().saveEntity(alias, user.getEmail(), null); | 320 alias = getWrapper().saveEntity(alias, user.getEmail(), null); |
321 new Relation(alias, this.titleLo.getEntity(), "is_alias_title_of"); | 321 new Relation(alias, this.titleLo.getEntity(), "is_alias_title_of"); |
322 alias = getWrapper().saveEntity(alias, user.getEmail(), null); | 322 alias = getWrapper().saveEntity(alias, user.getEmail(), null); |
323 } | 323 } |
324 if (alias.isLightweight()) { | 324 if (alias.isLightweight()) { |
351 } | 351 } |
352 | 352 |
353 if (alias == null) { | 353 if (alias == null) { |
354 // create new alias | 354 // create new alias |
355 alias = new Entity(Node.TYPE_ABOX, ALIAS, false); | 355 alias = new Entity(Node.TYPE_ABOX, ALIAS, false); |
356 alias.addAttribute(new Attribute(ALIAS, "text", valueAuthorWritten)); | 356 alias.addAttribute(new Attribute("alias", "text", valueAuthorWritten)); |
357 alias = getWrapper().saveEntity(alias, user.getEmail(), null); | 357 alias = getWrapper().saveEntity(alias, user.getEmail(), null); |
358 new Relation(alias, this.authorLo.getEntity(), "is_alias_name_of"); | 358 new Relation(alias, this.authorLo.getEntity(), "is_alias_name_of"); |
359 alias = getWrapper().saveEntity(alias, user.getEmail(), null); | 359 alias = getWrapper().saveEntity(alias, user.getEmail(), null); |
360 } | 360 } |
361 if (alias.isLightweight()) { | 361 if (alias.isLightweight()) { |