|
$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)
|
#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" )
|
[[Error, download not available]] | ##Link to my orders
#set( $downloadall = false)
#else
#set( $presetid = $publishqueue.get("presetid") )
#if( $presetid == "0")
|
#if($asset.googleid && $asset.googledownloadurl)
[[Download]]
#elseif($asset.googleid && $asset.linkurl)
[[Download]]
#else
#set ($originalpath = $mediaarchive.asLinkToOriginal($asset) )
[[Download]]
#end
#set( $downloadall = true)
|
#else
${publishqueue.exportname}
|
#set($convertpreset = $searcherManager.getData($catalogid, "convertpreset", $presetid ) )
[[Download]]
#set( $downloadall = true)
|
#end
#end
#elseif( $publishqueue.publishdestination == "1" )
|
#if( $destination.publishtype == "aspera")
#if( $item.status == "complete" || $item.status == "delivered" )
#end
#end
|
#else
|
[[View]] |
#end
#end