<div id="simple-search-container">
  <#include "customSearchForm.ftl">
  <button id="switch-to-extended-searchform">Расширенный поиск</button>
</div>
<#include "queryBuilder.ftl">

<script>
 $('#switch-to-extended-searchform').on('click', function() {
   $('#simple-search-container').hide();   
   $('#querybuilder-container').show();   
   localStorage.setItem('extendedSearchOpen',true);
 });
 if (localStorage.getItem('extendedSearchOpen') === true || localStorage.getItem('extendedSearchOpen') === 'true') {
   $('#simple-search-container').hide();
   $('#querybuilder-container').show();
 }
</script>

