Removed method to return moniker or vclass, now unnecessary after corrections to IndividualJena.getMoniker() in r5103.

This commit is contained in:
rjy7 2010-07-04 17:39:50 +00:00
parent c92f69134c
commit 29544748e3
2 changed files with 11 additions and 5 deletions

View file

@ -28,10 +28,12 @@ public class IndividualTemplateModel extends BaseTemplateModel {
}
/* These methods perform some manipulation of the data returned by the Individual methods */
public String getTagline() {
String tagline = individual.getMoniker();
return StringUtils.isEmpty(tagline) ? individual.getVClass().getName() : tagline;
}
// RY Individiual.getMoniker() was already trying to do this, but due to errors in the code it was not.
// That's fixed now.
// public String getTagline() {
// String tagline = individual.getMoniker();
// return StringUtils.isEmpty(tagline) ? individual.getVClass().getName() : tagline;
// }
// Return link to individual's profile page.
// There may be other urls associated with the individual. E.g., we might need
@ -88,6 +90,10 @@ public class IndividualTemplateModel extends BaseTemplateModel {
public String getName() {
return individual.getName();
}
public String getMoniker() {
return individual.getMoniker();
}
public String getUri() {
return individual.getURI();

View file

@ -7,7 +7,7 @@
<a href="${individual.profileUrl}">${individual.name}</a>
<ul class="individualData">
<@l.firstLastList>
<li>${individual.tagline}</li>,
<li>${individual.moniker}</li>,
<#list individual.links as link>
<li><a class="externalLink" href="${link.url}">${link.anchor}</a></li>,
</#list>