Added a new field email to IndividualSearchResults and a modification of the csv-results for VIVO that includes email and preferred title where available
This commit is contained in:
parent
71d21c4999
commit
06ca894546
3 changed files with 17 additions and 1 deletions
|
@ -15,13 +15,20 @@ public class IndividualSearchResult extends BaseIndividualSearchResult {
|
|||
private static final String CORE = "http://vivoweb.org/ontology/core#";
|
||||
|
||||
public IndividualSearchResult(Individual individual, VitroRequest vreq) {
|
||||
super(individual, vreq);
|
||||
super(individual, vreq);
|
||||
log.info("Called Individual Search Result");
|
||||
}
|
||||
|
||||
/* Access methods for templates */
|
||||
|
||||
public String getPreferredTitle() {
|
||||
log.info("Called get Title");
|
||||
return individual.getDataValue(CORE + "preferredTitle");
|
||||
}
|
||||
|
||||
public String getEmail() {
|
||||
log.info("Called get Email");
|
||||
return individual.getDataValue(CORE + "email");
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue