{!{@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" - itemService - the service to get items - 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 "selectItem('', '', '')" on the select button !} {#paginationButtons searchFormId=searchFormId searchResults=searchResults}{/paginationButtons} Type File Name # Revisions Actions {#if searchResults.get("empty").asBoolean()}

No Files

{#if actionType == 'full'}
{/if} {#else} {#for result in searchResults.get("results")} {#let id=result.get("id").asText() fileName=result.get("fileName").asText() latestRevision=result.get("revisions").get(result.get("revisions").size() - 1)} {#icons/fileType mimeType=latestRevision.get("mimeType").asText()}{/icons/fileType} {fileName} {result.get("revisions").size()} {#if actionType == 'full'} {#icons/download}{/icons/download} {! TODO:: re-enable for #467 !} {!!} {#else if actionType == 'select'} {/if} {/for} {/if} {#paginationButtons searchFormId=searchFormId searchResults=searchResults}{/paginationButtons}