#set( $module = $content.module) #set( $galleryhome = $content.galleryhome) #if( !$librarycol ) #set($collectionid = $context.getRequestParameter("collectionid")) #if($module=="librarycollection" && $collectionid) #set( $librarycol = $mediaarchive.query("librarycollection").exact("id",$collectionid).searchOne() ) #end #end #if( $librarycol ) $context.putPageValue("librarycol",$librarycol) $context.putPageValue("collectionid", $librarycol.getId()) #end #if( $modulehits.size() > -1 ) #set( $hits = $modulehits) $context.putPageValue("hits",$modulehits) #end
#set( $view = "$module/assetviewersearch") #set( $searcher = $mediaarchive.getSearcher($module)) $context.putPageValue("view", $view) $context.putPageValue("searcher", $searcher) #set($usestartswith = $page.isPropertyTrue('usestartswith')) $context.putPageValue("usestartswith",$usestartswith) $context.putPageValue("caneditlists",false)
#if( $librarycol) #end ##We need 2 things passed in: $searcher, $view or $searcher $details #if (!$details && $userprofile) #set ($details = $searcher.getDetailsForView($view, $userprofile)) #else #set ($details = $searcher.getDetailsForView($view)) #end $context.putPageValue("idprefix","search") #foreach( $detail in $details) $context.putPageValue("detail", $detail) $context.putPageValue("searchform", true) #if ($detail.isLeaf()) #if ($detail.isFilter()) #set($filternode = $hits.findFilterValue($detail.id)) $context.putPageValue("filternode",$filternode) #if(($edit == "true") || ($filternode && !$filternode.isEmpty() && $filternode.children.size() > 1)) $pages.include("$galleryhome/gridfilters/detailedit.html", $context) #end #else $pages.include("$galleryhome/gridfilters/detailedit.html", $context) #end #else $pages.include("$galleryhome/gridfilters/section.html", $context) #end #end #set ($resultview = $userprofile.get('resultview')) #if( !$resultview ) #end