#set( $downloadall = false) #set( $cdnprefix = $mediaarchive.getCatalogSettingValue("cdn_prefix") ) #set($mediadbappid=$mediaarchive.getMediaDbId()) #if( !$cdnprefix ) #set( $cdnprefix = $context.siteRoot ) #end #foreach( $asset in $orderassets ) ##set( $asset = $mediaarchive.getAssetBySourcePath($item.assetsourcepath)) #set( $click = "$home$apphome/views/modules/asset/editor/index.html?hitssessionid=$rootid&assetid=${asset.getId()}&orderid=$order.id" ) #if( $order.orderstatus == "error" ) ##Link to my orders #set( $downloadall = false) #else #end #end
$context.putPageValue("asset", $asset) $context.putPageValue("item", $item) $context.setRequestParameter("sourcepath", $asset.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 ($assetsourcepath = $asset.sourcepath) ## #set( $tsize = "$home$cataloghome/downloads/preview/thumbsmall/$assetsourcepath/thumb.jpg") ## ${asset} [[Error, download not available]] #set( $originalpath = $mediaarchive.asLinkToOriginal($asset) ) [[Download]] #set( $downloadall = true)
#if($downloadall )
[[Download All (Zip)]]
#end