diff --git a/productMods/images/individual/download-icon.png b/productMods/images/individual/download-icon.png new file mode 100644 index 00000000..f23201df Binary files /dev/null and b/productMods/images/individual/download-icon.png differ diff --git a/productMods/templates/freemarker/body/search/search-csvResults.ftl b/productMods/templates/freemarker/body/search/search-csvResults.ftl new file mode 100644 index 00000000..4fce9d6a --- /dev/null +++ b/productMods/templates/freemarker/body/search/search-csvResults.ftl @@ -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 individual.email?has_content>"${individual.email}","${individual.profileUrl}" + diff --git a/src/edu/cornell/mannlib/vitro/webapp/web/templatemodels/searchresult/IndividualSearchResult.java b/src/edu/cornell/mannlib/vitro/webapp/web/templatemodels/searchresult/IndividualSearchResult.java index 0d73c1d3..780f95a2 100644 --- a/src/edu/cornell/mannlib/vitro/webapp/web/templatemodels/searchresult/IndividualSearchResult.java +++ b/src/edu/cornell/mannlib/vitro/webapp/web/templatemodels/searchresult/IndividualSearchResult.java @@ -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"); + } } \ No newline at end of file