#set( $module = $content.module) #if ($editfilters) #set( $edit = true ) #elseif( !$editfilters) #set( $edit = $context.getRequestParameter("editfilters")) #end #if( $edit) $context.putPageValue("edit",$edit) #end #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( !$edit )
#end
#set( $view = "asset/assetadvancedfilter") #set( $searcher = $mediaarchive.getAssetSearcher()) $context.putPageValue("view", $view) $context.putPageValue("searcher", $searcher) #set($usestartswith = $page.isPropertyTrue('usestartswith')) $context.putPageValue("usestartswith",$usestartswith) $context.putPageValue("caneditlists",false) ##SORT
#if( $librarycol) #end
#set($minimizedfilterbox = true) #if(!$userprofile.minimizefilterboxsorting || $userprofile.minimizefilterboxsorting == "false") #set($minimizedfilterbox = false) #end [[Sort]]
#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") ##FILTERS #foreach( $detail in $details) #set( $viewpermission = $context.getPageValue("canviewfilter${detail.getId()}") ) ##ifnull($viewpermission) #set( $viewpermission = true) ##end #if( $viewpermission ) $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("/${applicationid}/components/filters/detailedit.html", $context) #end #else $pages.include("/${applicationid}/components/filters/detailedit.html", $context) #end #else $pages.include("/${applicationid}/components/filters/section.html", $context) #end #end #end #set( $nodeID = $context.getRequestParameter("nodeID")) #if( $librarycol.rootcategory ) #if($nodeID && $nodeID != $librarycol.rootcategory) #else #end #elseif( $selectedlibrary.categoryid ) #elseif( $category ) #set($categoryid = $category.getId()) #end #set ($resultview = $userprofile.get('resultview')) #if( !$resultview ) #end
#if ($edit == "true") ##TODO: Pass this view name in #set ($alldetails = $searcher.getUserPropertyDetails() )
[[Edit Fiters]]:
#if( $collectionid ) #set($doneUrl = "$home$apphome/views/modules/librarycollection/media/index.html?collectionid=$!collectionid&clearselection=true") #else #set($doneUrl = "$home$apphome/views/modules/asset/index.html") #end [[Done Editing]]
#end