{!{@tech.ebp.oqm.baseStation.service.mongo.search.SearchResult searchResults}!} {!{@tech.ebp.oqm.baseStation.service.mongo.search.PagingCalculations pagingCalculations}!} {! Template to show storage search results. Gives the contents of a table, but not the main table tag Ingests: - actionType - the action to take. "full" or "select" - searchResults - searchFormId - the id of the search form controlling the results - inputIdPrepend - the prepend for the id of the inputs to set the data of - otherModalId - the id of the other modal to open when selected if `actionType` is "select", callback will be "selectImage('', '', '')" on the select button !}
{#paginationButtons searchFormId=searchFormId searchResults=searchResults}{/paginationButtons}
{#if searchResults.get("empty").asBoolean()}

No Images found.

{#if actionType == 'full'} {! TODO:: make the anchor of the page the id of the image !} {/if}
{#else} {#for result in searchResults.get("results")} {#let id=result.get("id").asText() title=result.get("fileName").asText()}
{title}
{title}
{#if !result.get("description").asText().isBlank() }

{result.get("description").asText()}

{/if}
{/let} {/for} {/if}
{#paginationButtons searchFormId=searchFormId searchResults=searchResults}{/paginationButtons}