From 1bae4ff67770de1ec54c93504c8b25af16c6e57c Mon Sep 17 00:00:00 2001 From: "Stephen V. Williams" Date: Fri, 31 May 2013 12:21:02 -0600 Subject: [PATCH] changed order to have name first in csv and added the xmlResults from vitro with VIVO specific items --- .../body/search/search-csvResults.ftl | 4 +-- .../body/search/search-xmlResults.ftl | 28 +++++++++++++++++++ 2 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 productMods/templates/freemarker/body/search/search-xmlResults.ftl diff --git a/productMods/templates/freemarker/body/search/search-csvResults.ftl b/productMods/templates/freemarker/body/search/search-csvResults.ftl index 4fce9d6a..688d37ca 100644 --- a/productMods/templates/freemarker/body/search/search-csvResults.ftl +++ b/productMods/templates/freemarker/body/search/search-csvResults.ftl @@ -3,7 +3,7 @@ <#assign todayDate = today?date> Results from ${siteName} for ${querytext} on ${todayDate} -URI, Name, Title, Email, VIVO Profile URL +Name, Title, Email, URI, 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}" +"${individual.name}",<#if individual.preferredTitle?has_content>"${individual.preferredTitle}",<#if individual.email?has_content>"${individual.email}","${individual.uri}","${individual.profileUrl}" diff --git a/productMods/templates/freemarker/body/search/search-xmlResults.ftl b/productMods/templates/freemarker/body/search/search-xmlResults.ftl new file mode 100644 index 00000000..5a47d369 --- /dev/null +++ b/productMods/templates/freemarker/body/search/search-xmlResults.ftl @@ -0,0 +1,28 @@ +<#-- $This file is distributed under the terms of the license in /doc/license.txt$ --> + + + + + ${querytext?xml} + <#if nextPage??> + ${nextPage?xml} + + + + + <#list individuals as individual> + + ${individual.uri?xml} + ${individual.name?xml} + <#if individual.preferredTitle?has_content> + ${individual.preferredTitle?xml} + + <#if individual.email?has_content> + "${individual.email}" + + ${individual.profileUrl?xml}" + + + + + \ No newline at end of file