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
BIN
productMods/images/individual/download-icon.png
Normal file
BIN
productMods/images/individual/download-icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 953 B |
|
@ -0,0 +1,9 @@
|
||||||
|
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||||
|
<#assign today = .now >
|
||||||
|
<#assign todayDate = today?date>
|
||||||
|
Results from ${siteName} for ${querytext} on ${todayDate}
|
||||||
|
|
||||||
|
URI, Name, Title, Email, VIVO Profile URL
|
||||||
|
<#list individuals as individual>
|
||||||
|
"${individual.uri}","${individual.name}",<#if individual.preferredTitle?has_content>"${individual.preferredTitle}"</#if>,<#if individual.email?has_content>"${individual.email}"</#if>,"${individual.profileUrl}"
|
||||||
|
</#list>
|
|
@ -15,13 +15,20 @@ public class IndividualSearchResult extends BaseIndividualSearchResult {
|
||||||
private static final String CORE = "http://vivoweb.org/ontology/core#";
|
private static final String CORE = "http://vivoweb.org/ontology/core#";
|
||||||
|
|
||||||
public IndividualSearchResult(Individual individual, VitroRequest vreq) {
|
public IndividualSearchResult(Individual individual, VitroRequest vreq) {
|
||||||
super(individual, vreq);
|
super(individual, vreq);
|
||||||
|
log.info("Called Individual Search Result");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Access methods for templates */
|
/* Access methods for templates */
|
||||||
|
|
||||||
public String getPreferredTitle() {
|
public String getPreferredTitle() {
|
||||||
|
log.info("Called get Title");
|
||||||
return individual.getDataValue(CORE + "preferredTitle");
|
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