#set( $downloadall = false) $context.putPageValue("searcher",$searcherManager.getSearcher($catalogid,"asset") ) #foreach( $item in $orderitems ) #set( $publishqueueid = $item.get("publishqueueid")) #set($publishqueue = $searcherManager.getData($catalogid, "publishqueue",$item.get("publishqueueid") ) ) #if( $publishqueue.publishdestination == "0" || $publishqueue.publishdestination == "pushhttp") ##download with the browser #if( $order.orderstatus == "error" ) #set( $downloadall = false) #else #set( $presetid = $publishqueue.get("presetid") ) #if( $presetid == "0") #set( $downloadall = true) #else #set( $downloadall = true) #end #end #elseif( $publishqueue.publishdestination == "1" ) #if( $destination.publishtype == "aspera") #if( $item.status == "complete" || $item.status == "delivered" ) #set( $downloadall = true) #end #end #end #end #if($downloadall )
[[Download All (Zip)]][[Download Metadata]]
#end #set( $downloadall = false) #set( $cdnprefix = $mediaarchive.getCatalogSettingValue("cdn_prefix") ) #set($mediadbappid=$mediaarchive.getMediaDbId()) #if( !$cdnprefix ) #set( $cdnprefix = $context.siteRoot ) #end #foreach( $item in $orderitems ) #set( $asset = $mediaarchive.getAssetBySourcePath($item.assetsourcepath)) #set( $sourcepath = $asset.sourcePath ) #set( $click = "$home$apphome/views/modules/asset/editor/index.html?hitssessionid=$rootid&assetid=${asset.getId()}&orderid=$order.id" ) #set( $publishqueueid = $item.get("publishqueueid")) #set($publishqueue = $searcherManager.getData($catalogid, "publishqueue",$item.get("publishqueueid") ) ) #set( $presetid = $publishqueue.get("presetid") ) #if( $publishqueue.publishdestination == "0" || $publishqueue.publishdestination == "pushhttp") ##download with the browser #if( $order.orderstatus == "error" ) ##Link to my orders #set( $downloadall = false) #else #set( $presetid = $publishqueue.get("presetid") ) #if( $presetid == "0") #else #end #end #elseif( $publishqueue.publishdestination == "1" ) #else #end #end
$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/detaileditor.html?detailsreadonly=true", $context) [[Error, download not available]] #if($asset.googleid && $asset.googledownloadurl) [[Download]] #elseif($asset.googleid && $asset.linkurl) [[Download]] #else #set ($originalpath = $mediaarchive.asLinkToOriginal($asset) ) [[Download]] #end #set( $downloadall = true) ${publishqueue.exportname} #set($convertpreset = $searcherManager.getData($catalogid, "convertpreset", $presetid ) ) [[Download]] #set( $downloadall = true) #if( $destination.publishtype == "aspera") #if( $item.status == "complete" || $item.status == "delivered" ) #end #end [[View]]
#if($downloadall )
[[Download All (Zip)]][[Download Metadata]]
#end