#set($hitssessionid = $hits.getSessionId()) #set( $module = $content.module) #if (!$nodeID) #set($nodeID = $context.getRequestParameter("nodeID")) $context.putPageValue("nodeID",$nodeID) #end #if( !$librarycol && $category ) #set( $librarycol = $mediaarchive.query("librarycollection").orgroup("rootcategory",$category.getParentCategories()).searchOne() ) #end #if( $librarycol ) $context.putPageValue("librarycol",$librarycol) #end #if($librarycol )
#if($librarycol.collectionimage) #set($asset = $mediaarchive.getAsset($librarycol.collectionimage)) #else #set($asset = $mediaarchive.query("asset").match("category",$librarycol.rootcategory).exact("previewstatus","2").sort("assetaddeddateDown").searchOne() ) #end #set( $link = $mediaarchive.asLinkToPreview($asset,"image200x200.jpg"))

${librarycol}

#if( $canviewsavedcollections )
$pages.include("$apphome/components/librarycollection/togglelike.html",$context)
#end
#end
#if( $hits.getSearchQuery().hasMainInput()) #if($librarycol) [[Searching within]]: $librarycol [[for]]: $hits.getSearchQuery().getMainInput() #else [[Searching for]]: $hits.getSearchQuery().getMainInput() #end #end #set($currentSort = $hits.getSearchQuery().getSortBy()) ##TODO Loop over the view and show them here if they match #if( $category ) #if( $mediaarchive.getCategorySearcher().getRootCategory() != $category) #if( $librarycol ) #set($href = "$home$apphome/views/modules/librarycollection/media/index.html?hitssessionid=$hits.getSessionId()&collectionid=$librarycol.getId()&clearselection=true") #else #set($href = "$home$apphome/views/modules/asset/index.html?clearselection=true") #end $category #end #end ##set( $terms = $userfilters.getFilteredTerms($hits) ) #set( $terms = $hits.getFilteredTerms($context, "advancedfilter") ) #foreach( $term in $terms) #if( $librarycol ) #set($href = "$home$apphome/views/modules/librarycollection/search.html?hitssessionid=$hits.getSessionId()&collectionid=$librarycol.getId()&removeterm=$term.getId()") #else #set($href = "$home$apphome/views/modules/asset/index.html?hitssessionid=$hits.getSessionId()&removeterm=$term.getId()") #end #if ($nodeID) #set($href = $href + "&nodeID=${nodeID}") #end #if($currentSort) #set($href = $href + "&sortby=${currentSort}") #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( $librarycol ) #set($href = "$home$apphome/views/modules/librarycollection/media/index.html?hitssessionid=$hits.getSessionId()&collectionid=$librarycol.getId()&assetclearresults=true&clearfilters=true") #else #set($href = "$home$apphome/views/modules/asset/index.html?hitssessionid=$hits.getSessionId()&assetclearresults=true&assetclearselection=true&clearselection=true&clearfilters=true") #end #if ($nodeID) #set($href = $href + "&nodeID=$!{nodeID}") #end [[Clear]] #end