#set( $attachmentroot = $content.attachmentroot )
#if( $file )
#set( $parentsourcepath = "${file.parentsourcepath}" )
#set( $name = $file.name)
#end
#set( $generated = "/WEB-INF/data/${catalogid}/generated/$parentsourcepath/${file.name}200x200.jpg" )
#if ( $file.isfolder == "false" )
#else
#end
#if ( $name ) $name #else [[Click on a file name to view details about that file]] #end
#if ( $file.isfolder == "false" )
#end
$context.putPageValue("data",$file)
$context.putPageValue("searcher",$mediaarchive.getAssetSearcher() )
#if( $asset.assettype && $archive.viewExists("asset/assettype/$asset.assettype/general") )
#set ($view = "asset/assettype/$asset.assettype/general")
#else
#set ($view = "asset/assettype/default/general")
#end
$context.putPageValue("view",$view)
$pages.include("/$applicationid/components/xml/detailviewer.html", $context)
#if ( $file.isfolder != "false" )
#else
#end
#set( $editPath = "/WEB-INF/data/$catalogid/originals/$parentsourcepath/${file.name}" )
$pages.include("./revisionslink.html?editPath=$editPath&parentsourcepath=$parentsourcepath", $context)
#if( $asset.assettype && $archive.viewExists("asset/assettype/$asset.assettype/fileproperties") )
#set ($view = "asset/assettype/$asset.assettype/fileproperties")
#else
#set ($view = "asset/assettype/default/fileproperties")
#end
$context.putPageValue("view",$view)
$pages.include("/$applicationid/components/xml/detailviewer.html", $context)