#set( $status = $order.get("checkoutstatus") )
| $context.putPageValue("asset", $asset) $context.putPageValue("item", $item) $context.setRequestParameter("sourcepath", $sourcepath) #set( $assetpath = $mediaarchive.getLinkToAssetViewer($sourcepath) ) #set( $thumbend = $mediaarchive.getLinkToSize($sourcepath, "thumb") ) #set( $tsize = "$home$thumbend" ) #if( $parenthits ) #set( $rootid = $parenthits.sessionId ) #else #set( $rootid = $hits.sessionId ) #end #set( $type = $mediaarchive.getMediaRenderType($asset.fileFormat)) #if(!$type) #set ($type = "none") #end $context.putPageValue("cell", $asset) $context.putPageValue("showdetails", "false") $context.putPageValue("thumbsize", "crop") $pages.include("${apphome}/components/results/thumbnails/${type}.html", $context) | $context.putPageValue("searcher",$searcherManager.getSearcher($catalogid,"asset") ) $context.putPageValue("view","asset/downloaddetails") $context.putPageValue("data",$asset) $pages.include("/$applicationid/components/xml/detaileditorcss.html?detailsreadonly=true", $context) | #set( $publishqueueid = $item.get("publishqueueid")) #ifnull($publishqueueid) #set( $presetid ="0") #end #if(!$presetid) #set($publishqueue = $searcherManager.getData($catalogid, "publishqueue",$item.get("publishqueueid") ) ) #set( $presetid = $publishqueue.get("presetid") ) #end #if( $order.orderstatus == "error" )[[Error, download not available]] | ##Link to my orders #set( $downloadall = false) #else #if( $presetid == "0")#if($asset.googleid && $asset.googledownloadurl) [[Download]] #elseif($asset.googleid && $asset.linkurl) [[Download]] #else #set ($originalpath = $mediaarchive.asLinkToOriginal($asset) ) #if( $status == "pending" ) [[Pending]] #else #if($item.status == "approved") [[Download]] #else [[Not Approved for Download]] #end #end #end #set( $downloadall = true) | #else ##TODO: Support specific sized for generated orders${publishqueue.exportname} | #set($convertpreset = $searcherManager.getData($catalogid, "convertpreset", $presetid ) ) [[Download]] #set( $downloadall = true) | #end #end