#set($hits = $publishingentityassethits) #if(!$ismodulesearch) #set ( $ismodulesearch = $content.get("ismodulesearch") ) #end #if(!$ismodulesearch) #set ( $ismodulesearch = $context.getRequestParameter("ismodulesearch") ) #end #if(!$publishingid) #set ( $publishingid = $context.getRequestParameter("publishingid") ) #end #set($loop = $hits) #ifnotnull($lightboxassets) #set($loop = $lightboxassets) #set( $hits = $assethits ) $context.putPageValue("hits",$hits) #end
#if( $hideheader && $hideheader != "true") $pages.include("$componenthome/results/header.html",$context) #end
#set($count = 0) #set($viewerlink = $content.get("assetviewerlink") ) #set($stackedfield = $mediaarchive.getCatalogSettingValue("stackedgalleryfield")) #foreach( $brick in $loop.getPageOfHits()) #ifnotnull( $hitassetlookup ) #set( $hit = $hitassetlookup.get($brick.getId()) ) #end #ifnull( $hitassetlookup ) #set( $hit = $brick) #end $context.putPageValue("brick", $brick) $context.putPageValue("hit", $hit) $context.putPageValue("asset", $hit) #set($type = $hit.getSearchHit().getType()) #set($rendertype = $mediaarchive.getMediaRenderType($hit.fileformat)) $context.putPageValue("type", $rendertype) $context.putPageValue("assetid", $hit.id) $context.putPageValue("count", $count ) $context.putPageValue("sourcepath", $hit.sourcepath ) $context.putPageValue("thumbsize", "mediumplus" ) #set($sourcepath = $hit.sourcepath) #set($assetwidth = $mediaarchive.getRealImageWidth($hit)) #set($assetheight = $mediaarchive.getRealImageHeight($hit)) #set($click = "$siteroot$viewerlink?hitssessionid=${hits.getSessionId()}&assetid=$!{hit.id}") #set($isselected = $!hits.isSelectedOnPage($!{hit.id}) )
0) data-imgwidth="$!assetwidth" data-imgheight="$!assetheight" #elseif($rendertype == "audio") data-imgwidth="250" data-imgheight="110" #else data-imgwidth="250" ##moduleicon data-imgheight="110" #end > ## #if(!$rendertype || $type =="rendertype") #set( $rendertype = "mime" ) #elseif( $rendertype =="video" || $rendertype =="document") #set( $rendertype = "image" ) #end #set($convertpreset = $mediaarchive.getCachedData("convertpreset", "largeimage" ) ) #ifnull($convertpreset) #set($convertpreset = $mediaarchive.getCachedData("convertpreset", "webplargeimage" ) ) #end #set($downloadlink = $mediaarchive.asLinkToShare($siteroot, $hit, $convertpreset)) #ifnotnull($downloadlink) #set($downloadlink = "${downloadlink}?download=true&ondemand=true") #end $context.putPageValue("downloadlink", $downloadlink)
$pages.include("/$!mediadbappid/services/publishingdestination/gallery/rendertype/$!{rendertype}.html", $context)
#ifnotnull($downloadlink) #end
#set ( $count = $count + 1) #end