{!{@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 /} Image Name Storage Type {#icons/categories /} Categories Total # {#icons/stored /} # {#icons/storageBlocks /} {#icons/flags /} Flags Actions {#if searchResults.get("empty").asBoolean()}

No Items

{#if actionType == 'full'}
{/if} {#else} {#for result in searchResults.get("results")} {#let id = result.get("id").asText() name = result.get("name").asText()} {#if ! result.get("imageIds").isEmpty()} {/if} {name} {cdi:EnumFormattingService.formatEnum(result.get("storageType").asText())} {#for curCat in result.get("categories-objs")} {#objView/itemCatBadge rootPrefix=rootPrefix category=curCat /} {/for} {#amountDisplay amount = result.get("stats").get("total")}{/amountDisplay} {result.get("stats").get("numStored").asInt()} {result.get("storageBlocks").size()} {#object/inventoryItems/flags item=result /} {#if actionType == 'full'} {#itemStored/transaction/buttons/transactionDropdown dropdownClasses="btn-sm me-1" buttonText=false itemId=id checkinButton=false /} {#else if actionType == 'select'} {#else if actionType == 'view'} {#icons/view /} View {!{#itemStored/transaction/buttons/transactionDropdown dropdownClasses="btn-sm me-1" buttonText=false itemId=id checkinButton=false /}!} {/if} {/let} {/for} {/if} {#paginationButtons searchFormId = searchFormId searchResults = searchResults}{/paginationButtons}