changed order to have name first in csv and added the xmlResults from vitro with VIVO specific items
This commit is contained in:
parent
06ca894546
commit
1bae4ff677
2 changed files with 30 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
||||||
<#assign todayDate = today?date>
|
<#assign todayDate = today?date>
|
||||||
Results from ${siteName} for ${querytext} on ${todayDate}
|
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>
|
<#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}"
|
"${individual.name}",<#if individual.preferredTitle?has_content>"${individual.preferredTitle}"</#if>,<#if individual.email?has_content>"${individual.email}"</#if>,"${individual.uri}","${individual.profileUrl}"
|
||||||
</#list>
|
</#list>
|
||||||
|
|
|
@ -0,0 +1,28 @@
|
||||||
|
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<response>
|
||||||
|
|
||||||
|
<lst name="responseHeader">
|
||||||
|
<str name="q">${querytext?xml}</str>
|
||||||
|
<#if nextPage??>
|
||||||
|
<str name="nextPage">${nextPage?xml}</str>
|
||||||
|
</#if>
|
||||||
|
</lst>
|
||||||
|
|
||||||
|
<result name="response" numFound="${hitCount}" start="${startIndex}" >
|
||||||
|
<#list individuals as individual>
|
||||||
|
<doc>
|
||||||
|
<str name="uri">${individual.uri?xml}</str>
|
||||||
|
<str name="name">${individual.name?xml}</str>
|
||||||
|
<#if individual.preferredTitle?has_content>
|
||||||
|
<str name="title">${individual.preferredTitle?xml}</str>
|
||||||
|
</#if>
|
||||||
|
<#if individual.email?has_content>
|
||||||
|
<str name="email">"${individual.email}"</str>
|
||||||
|
</#if>
|
||||||
|
<str name="vivo-url">${individual.profileUrl?xml}"</str>
|
||||||
|
</doc>
|
||||||
|
</#list>
|
||||||
|
</result>
|
||||||
|
|
||||||
|
</response>
|
Loading…
Add table
Reference in a new issue