{!{@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" - storageService - the service to get storage blocks - 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 "selectStorageBlock('', '', '')" on the select button !} {#paginationButtons searchFormId = searchFormId searchResults = searchResults}{/paginationButtons} {#if showItem} {#icons/item /} Item{/if} Status Amount {#icons/storageBlock /} From For By Due Back Actions {#if searchResults.get("empty").asBoolean()}

No Checkouts Found

Checkout an item on the {#links/inventoryItems /} page!

{#else} {#for result in searchResults.get("results")} {#let id = result.get("id").asText()} {#if showItem} {#links/inventoryItem inventoryItem = result.get("item").asText() itemName = result.get("item-name").asText()}{/links/inventoryItem} {/if} {#if result.get("stillCheckedOut").asBoolean()} {#icons/transactionCheckout /} Out {#else} {#icons/transactionCheckin /} In {/if} {#if result.get("type").asText() == "AMOUNT"} {#amountDisplay amount = result.get("checkedOut")}{/amountDisplay} {#else} 1 {/if} {#links/storageBlock id = result.get("fromBlock").asText() label = result.get("fromBlock-labelText").asText()}{/links/storageBlock} {!TODO:: if have fromStored, show that !} {#let checkedOutFor=result.get("checkoutDetails").get("checkedOutFor") } {#when checkedOutFor.get("type").asText()} {#is "OQM_ENTITY"} {#interactingEntityRef entityRef=checkedOutFor.get("entityRef") rootPrefix=rootPrefix /} {#is "EXT_SYS_USER"} {checkedOutFor.get("name")} / {checkedOutFor.get("externalId")} {/when} {/let} {#interactingEntityRef entityRef = result.get("creatorRef") rootPrefix=rootPrefix /} {#let dueBack = result.get("checkoutDetails").get("dueBack")} {#if dueBack == null} N/A {#else} {cdi:DateTimeService.formatForUi(dueBack.asText())} {/if} {/let} {#if actionType == 'full'} {#if result.get("stillCheckedOut").asBoolean()} {/if} {#else if actionType == 'select'} {#else if actionType == 'viewCheckin'} {#icons/view /} {#if result.get("stillCheckedOut").asBoolean()} {/if} {/if} {/let} {/for} {/if} {#paginationButtons searchFormId = searchFormId searchResults = searchResults /}