NIHVIVO-2425 Write autocomplete results to the response's writer directly without merging to a Freemarker template.
This commit is contained in:
parent
3745c37cc9
commit
12e68942fc
2 changed files with 54 additions and 45 deletions
|
@ -10,8 +10,8 @@
|
|||
[
|
||||
<#if results??>
|
||||
<#list results as result>
|
||||
<#-- result.label and result.uri are already quoted -->
|
||||
{ "label": ${result.label}, "uri": ${result.uri} }<#if result_has_next>,</#if>
|
||||
<#-- result.jsonLabel and result.jsonUri are already quoted -->
|
||||
{ "label": ${result.jsonLabel}, "uri": ${result.jsonUri} }<#if result_has_next>,</#if>
|
||||
</#list>
|
||||
</#if>
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue