#set( $terms = $hits.getFilteredTerms($context,"advancedfilter") )
#if($content.get("section") == "favorites")

[[Favorites]]

#else #if($terms) [[Results]] > #end #end #if( $hits.getSearchQuery().hasMainInput()) $hits.getSearchQuery().getMainInput()  #end ##TODO Loop over the view and show them here if they match #if( $category ) #if( $mediaarchive.getCategorySearcher().getRootCategory() != $category) #if( $librarycol ) #set($href = "$siteroot$apphome/views/modules/librarycollection/media/index.html?hitssessionid=$hits.getSessionId()&collectionid=$librarycol.getId()&clearselection=true") #else #set($href = "$siteroot$apphome/views/modules/asset/index.html?clearselection=true") #end $category #end #end #if ($librarycol) $librarycol #end #foreach( $term in $terms) #if( $librarycol ) #set($href = "$siteroot$apphome/views/modules/librarycollection/media/index.html?hitssessionid=$hits.getSessionId()&collectionid=$librarycol.getId()&removeterm=$term.getId()") #else #set($href = "$siteroot$apphome/views/modules/asset/index.html?hitssessionid=$hits.getSessionId()&removeterm=$term.getId()") #end #if ($nodeID) #set($href = $href + "&nodeID=${nodeID}") #end $term.getDetail(): #foreach( $val in $term.getValueCollection() ) #if ($term.getDetail().getId() == "keywords") #if( $foreach.count > 1) [[and]] #end #else #if( $foreach.count > 1) [[or]] #end #end #if($term.getDetail().isList()) $context.getText( $mediaarchive.getData($term.getDetail().getListId(),$val) ) #elseif($term.getDetail().isBoolean()) #if($term.getValue() == "true") [[True]] #else [[False]] #end #elseif($term.getDetail().isDate()) #set($op = $term.operation) #if($op == "afterdate") [[After]]: #elseif($op == "beforedate") [[Before]]: #elseif($op == "betweendates") [[Between]]: #end $term.getValue() #else #if($term.getValue()) $term.getValue() #elseif($val) $val #end #end #end   ## #end #if( $hits.getSearchQuery().hasMainInput() || ($terms && !$terms.isEmpty()) ) #if($content.get("section") == "favorites") #set($href = "$siteroot$apphome/views/modules/$module.id/favorites.html?hitssessionid=$hits.getSessionId()&clearselection=true&clearfilters=true") #else #set($href = "$siteroot$apphome/views/modules/$module.id/index.html?hitssessionid=$hits.getSessionId()&clearselection=true&clearfilters=true") #end #if ($nodeID) #set($href = $href + "&nodeID=$!{nodeID}") #end [[clear all]] #end