ExtSearch/views/twig/admin/d3_cfg_extsearch_main.html.twig

775 lines
60 KiB
Twig
Raw Normal View History

2024-02-09 18:44:23 +01:00
{% include "headitem.html.twig" with {title: "D3TBCLEXTSEARCH_SETTINGS_RESULTS"|translate} %}
<script type="text/javascript">
<!--
{% if updatelist == 1 %}
UpdateList('{{ oxid }}');
{% endif %}
function UpdateList( sID)
{
let oSearch = parent.list.document.getElementById("search");
oSearch.oxid.value=sID;
oSearch.fnc.value='';
oSearch.submit();
}
function EditThis( sID)
{
let oTransfer = document.getElementById("transfer");
oTransfer.oxid.value=sID;
oTransfer.cl.value='';
oTransfer.submit();
let oSearch = parent.list.document.getElementById("search");
oSearch.actedit.value = 0;
oSearch.oxid.value=sID;
oSearch.submit();
}
function _groupExp(el) {
let _cur = el.parentNode;
if (_cur.className === "exp") _cur.className = "";
else _cur.className = "exp";
}
-->
</script>
<style type="text/css">
<!--
fieldset {
border: 1px inset black;
background-color: #F0F0F0;
}
legend {
font-weight: bold;
}
.groupExp dl dt {
font-weight: normal;
width: 55%;
padding-left: 10px;
padding-top: 10px;
}
.groupExp.highlighted {
background-color: #CD0210;
}
.groupExp.highlighted a.rc b {
color: white;
}
.groupExp.highlighted .exp a.rc b {
color: black;
}
.groupExp.highlighted .exp {
background-color: #F0F0F0;
}
.ext_edittext {
padding: 2px;
}
td.edittext {
white-space: normal;
}
.confinput {
width: 300px;
height: 70px;
}
.edittext select.editinput {
width: auto;
}
-->
</style>
{% if readonly %}
{% set readonly = "readonly disabled" %}
{% else %}
{% set readonly = "" %}
{% endif %}
<form name="transfer" id="transfer" action="{{ oViewConf.getSelfLink()|raw }}" method="post">
{{ oViewConf.getHiddenSid()|raw }}
<input type="hidden" name="oxid" value="{{ oxid }}">
<input type="hidden" name="cl" value="{{ oViewConf.getActiveClassName()|raw }}">
<input type="hidden" name="actshop" value="{{ shop.id }}">
<input type="hidden" name="editlanguage" value="{{ editlanguage }}">
</form>
<table style="border: 0; width:98%;">
<tr>
<td style="vertical-align: top;" class="edittext">
<form name="myedit" id="myedit" action="{{ oViewConf.getSelfLink()|raw }}" method="post">
{{ oViewConf.getHiddenSid()|raw }}
<input type="hidden" name="cl" value="{{ oViewConf.getActiveClassName()|raw }}">
<input type="hidden" name="fnc" value="save">
<input type="hidden" name="oxid" value="{{ oxid }}">
<input type="hidden" name="editval[oxid]" value="{{ oxid }}">
{% block d3_cfg_extsearch_main__form %}
{% include "@d3modcfg_lib/admin/inc/active.html.twig" %}
{% if oView.getValueStatus() == 'error' %}
<hr>
<b>{{ translate({ ident: "D3_CFG_MOD_GENERAL_NOCONFIG_DESC" }) }}</b>
<br>
<br>
<span class="d3modcfg_btn fixed icon d3color-orange">
<button type="submit" {{ readonly }}>
<i class="fa fa-warning fa-inverse"></i>{{ translate({ ident: "D3_CFG_MOD_GENERAL_NOCONFIG_BTN" }) }}
</button>
</span>
{% else %}
<div class="groupExp {% if edit.getEditValue('aExtSearch_similarSearchFields') == '' %}highlighted{% endif %}">
<div class="">
{% block d3_cfg_extsearch_main__main %}
<a class="rc" onclick="_groupExp(this); return false;" href="#">
<b>
{{ translate({ ident: "D3_EXTSEARCH_MAIN_MAINSETTINGS" }) }}
</b>
</a>
<dl>
<dt>
<label for="similarSearchFields">{{ translate({ ident: "D3_EXTSEARCH_MAIN_FIELDLIST" }) }}</label>
{% if edit.getEditValue('aExtSearch_similarSearchFields') == '' %}
<br><div style="background-color: #CD0210; color: white;">{{ translate({ ident: "D3_EXTSEARCH_MAIN_NOFIELDSDEFINED" }) }}</div>
{% endif %}
</dt>
<dd>
<textarea id="similarSearchFields" class="confinput" name="valuearr[aExtSearch_similarSearchFields]" {{ readonly }}>{{ edit.getEditValue('aExtSearch_similarSearchFields') }}</textarea>
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_EXTSEARCH_MAIN_FIELDLIST_DESC"), 'sHelpText': help_text("D3_EXTSEARCH_MAIN_FIELDLIST_DESC")} %}
{% set clParam = "cl="|cat(oViewConf.getActiveClassName()) %}
<input type="button" value="{{ translate({ ident: "D3_EXTSEARCH_MAIN_SORTDEBUG" }) }}" onclick="window.open('{{ oViewConf.getSelfLink()|add_url_parameters( clParam )|add_url_parameters("fnc=startSortAnalysis") }}', 'startSortAnalysis', 'width=800, height=300, left=100, scrollbars=yes, resizable=yes'); return false;" {{ readonly }}>
</dd>
<dd class="spacer"></dd>
</dl>
<dl>
<dt>
<label for="blSearchUseAND">{{ translate({ ident: "SHOP_CONFIG_SEARCHUSEAND" }) }}</label>
</dt>
<dd>
<input type=hidden name=confbools[blSearchUseAND] value=0>
<input id="blSearchUseAND" type=checkbox name=confbools[blSearchUseAND] value=1 {% if oConfig.getConfigParam('blSearchUseAND') %}checked{% endif %} {{ readonly }}>
{% include "inputhelp.html.twig" with {'sHelpId': help_id("HELP_"), 'sHelpText': help_text("HELP_")} %}
</dd>
<dd class="spacer"></dd>
</dl>
<dl>
<dt>
<label for="MultiSearchwordUsage">{{ translate({ ident: "D3_EXTSEARCH_MAIN_MULIPLEWORDS" }) }}</label>
</dt>
<dd>
<SELECT id="MultiSearchwordUsage" class="edittext ext_edittext" name="value[sExtSearch_MultiSearchwordUsage]" {{ readonly }}>
<OPTION value="singleWord"{% if edit.getEditValue('sExtSearch_MultiSearchwordUsage') == 'singleWord' %} selected>&bull; {% else %}>{% endif %}{{ translate({ ident: "D3_EXTSEARCH_MAIN_MULIPLEWORDS_SINGLE" }) }}</option>
<OPTION value="wholeParam"{% if edit.getEditValue('sExtSearch_MultiSearchwordUsage') == 'wholeParam' %} selected>&bull; {% else %}>{% endif %}{{ translate({ ident: "D3_EXTSEARCH_MAIN_MULIPLEWORDS_WHOLE" }) }}</option>
<OPTION value="syntax"{% if edit.getEditValue('sExtSearch_MultiSearchwordUsage') == 'syntax' %} selected>&bull; {% else %}>{% endif %}{{ translate({ ident: "D3_EXTSEARCH_MAIN_MULIPLEWORDS_SYNTAX" }) }}</option>
</SELECT>
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_EXTSEARCH_MAIN_MULIPLEWORDS_DESC"), 'sHelpText': help_text("D3_EXTSEARCH_MAIN_MULIPLEWORDS_DESC")} %}
</dd>
<dd class="spacer"></dd>
</dl>
<dl>
<dt>
<label for="findPutInAndLeaveOut">{{ translate({ ident: "D3_EXTSEARCH_MAIN_PUTINLEAVEOUT" }) }}</label>
</dt>
<dd>
<input type="hidden" name="value[blExtSearch_findPutInAndLeaveOut]" value="0">
<input id="findPutInAndLeaveOut" class="edittext ext_edittext" type="checkbox" name="value[blExtSearch_findPutInAndLeaveOut]" value='1' {% if edit.getEditValue('blExtSearch_findPutInAndLeaveOut') == 1 %}checked{% endif %} {{ readonly }}>
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_EXTSEARCH_MAIN_PUTINLEAVEOUT_DESC"), 'sHelpText': help_text("D3_EXTSEARCH_MAIN_PUTINLEAVEOUT_DESC")} %}
</dd>
<dd class="spacer"></dd>
</dl>
<dl>
<dt>
<label for="ShowPopup">{{ translate({ ident: "D3_EXTSEARCH_MAIN_SHOW_POPUP" }) }}</label>
</dt>
<dd>
<input type="hidden" name="value[blExtSearch_ShowPopup]" value="0">
<input id="ShowPopup" class="edittext ext_edittext" type="checkbox" name="value[blExtSearch_ShowPopup]" value='1' {% if edit.getEditValue('blExtSearch_ShowPopup') == 1 %}checked{% endif %} {{ readonly }}>
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_EXTSEARCH_MAIN_SHOW_POPUP_DESC"), 'sHelpText': help_text("D3_EXTSEARCH_MAIN_SHOW_POPUP_DESC")} %}
</dd>
<dd class="spacer"></dd>
</dl>
{% endblock %}
</div>
</div>
<div class="groupExp">
<div class="">
{% block d3_cfg_extsearch_main__sorting %}
<a class="rc" onclick="_groupExp(this); return false;" href="#">
<b>
{{ translate({ ident: "D3_EXTSEARCH_MAIN_SORTING" }) }}
</b>
</a>
<dl>
<dt>
<label for="orderByPriority">{{ translate({ ident: "D3_EXTSEARCH_MAIN_ORDERBYPRIORITY" }) }}</label>
</dt>
<dd>
<input type="hidden" name="value[blExtSearch_orderByPriority]" value="0">
<input id="orderByPriority" class="edittext ext_edittext" type="checkbox" name="value[blExtSearch_orderByPriority]" value='1' {% if edit.getEditValue('blExtSearch_orderByPriority') == 1 %}checked{% endif %} {{ readonly }}>
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_EXTSEARCH_MAIN_ORDERBYPRIORITY_DESC"), 'sHelpText': help_text("D3_EXTSEARCH_MAIN_ORDERBYPRIORITY_DESC")} %}
</dd>
<dd class="spacer"></dd>
</dl>
<dl>
<dt>
<label for="orderByPush">{{ translate({ ident: "D3_EXTSEARCH_MAIN_ORDERBYPUSH" }) }}</label>
</dt>
<dd>
<input type="hidden" name="value[blExtSearch_orderByPush]" value="0">
<input id="orderByPush" class="edittext ext_edittext" type="checkbox" name="value[blExtSearch_orderByPush]" value='1' {% if edit.getEditValue('blExtSearch_orderByPush') == 1 %}checked{% endif %} {{ readonly }}>
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_EXTSEARCH_MAIN_ORDERBYPUSH_DESC"), 'sHelpText': help_text("D3_EXTSEARCH_MAIN_ORDERBYPUSH_DESC")} %}
</dd>
<dd class="spacer"></dd>
</dl>
<dl>
<dt>
<label for="orderByAlternative">{{ translate({ ident: "D3_EXTSEARCH_MAIN_ORDERBYALTERNATIVE" }) }}</label>
</dt>
<dd>
<input id="orderByAlternative" class="editinput" type="text" size="10" maxlength="50" name="value[sExtSearch_orderByAlternative]" value='{% if edit.getEditValue('sExtSearch_orderByAlternative') %}{{ edit.getEditValue('sExtSearch_orderByAlternative') }}{% else %}oxtitle{% endif %}' {{ readonly }}>&nbsp;
<input type="radio" class="editinput" name="value[sExtSearch_orderDirAlternative]" value="asc" {% if edit.getEditValue('sExtSearch_orderDirAlternative') == "asc" or false == edit.getEditValue('sExtSearch_orderByAlternative') %}checked{% endif %} {{ readonly }}>{{ translate({ ident: "CATEGORY_MAIN_ASC" }) }}
<input type="radio" class="editinput" name="value[sExtSearch_orderDirAlternative]" value="desc" {% if edit.getEditValue('sExtSearch_orderDirAlternative') == "desc" %}checked{% endif %} {{ readonly }}>{{ translate({ ident: "CATEGORY_MAIN_DESC" }) }}
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_EXTSEARCH_MAIN_ORDERBYALTERNATIVE_DESC"), 'sHelpText': help_text("D3_EXTSEARCH_MAIN_ORDERBYALTERNATIVE_DESC")} %}
</dd>
<dd class="spacer"></dd>
</dl>
{% endblock %}
</div>
</div>
<div class="groupExp">
<div class="">
{% block d3_cfg_extsearch_main__variants %}
<a class="rc" onclick="_groupExp(this); return false;" href="#">
<b>
{{ translate({ ident: "D3_EXTSEARCH_MAIN_VARIANTSETTINGS" }) }}
</b>
</a>
<dl>
<dt>
<label for="VariantSearch">{{ translate({ ident: "D3_EXTSEARCH_MAIN_VARIANTSEARCH" }) }}</label>
</dt>
<dd>
<input type="hidden" name="value[blExtSearch_VariantSearch]" value="0">
<input id="VariantSearch" class="edittext ext_edittext" type="checkbox" name="value[blExtSearch_VariantSearch]" value='1' {% if edit.getEditValue('blExtSearch_VariantSearch') == 1 %}checked{% endif %} onclick='{% include "@d3_extsearch/admin/d3_togglegroup_extsearch.html.twig" with {sToggleOptionName: "blExtSearch_VariantSearch", sToggleOptionClass: ".variant_options"} %}' {{ readonly }}>
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_EXTSEARCH_MAIN_VARIANTSEARCH_DESC"), 'sHelpText': help_text("D3_EXTSEARCH_MAIN_VARIANTSEARCH_DESC")} %}
</dd>
<dd class="spacer"></dd>
</dl>
<dl class="variant_options">
<dt>
<label for="VariantUsage">{{ translate({ ident: "D3_EXTSEARCH_MAIN_VARIANTUSAGE" }) }}</label>
</dt>
<dd>
<SELECT id="VariantUsage" class="edittext ext_edittext" name="value[sExtSearch_VariantUsage]" {{ readonly }}>
<OPTION value="showParent"{% if edit.getEditValue('sExtSearch_VariantUsage') == 'showParent' %} selected>&bull; {% else %}>{% endif %}{{ translate({ ident: "D3_EXTSEARCH_MAIN_VARIANTUSAGE_SHOWPARENT" }) }}</option>
<OPTION value="showVariant"{% if edit.getEditValue('sExtSearch_VariantUsage') == 'showVariant' %} selected>&bull; {% else %}>{% endif %}{{ translate({ ident: "D3_EXTSEARCH_MAIN_VARIANTUSAGE_SHOWVARIANT" }) }}</option>
</SELECT>
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_EXTSEARCH_MAIN_VARIANTUSAGE_DESC"), 'sHelpText': help_text("D3_EXTSEARCH_MAIN_VARIANTUSAGE_DESC")} %}
</dd>
<dd class="spacer"></dd>
</dl>
<dl class="variant_options">
<dt>
<label for="showVariantsWithoutFilters">{{ translate({ ident: "D3_EXTSEARCH_MAIN_SHOWVARIANTSWITHOUTFILTERS" }) }}</label>
</dt>
<dd>
<input type="hidden" name="value[blExtSearch_showVariantsWithoutFilters]" value="0">
<input id="orderByPush" class="edittext ext_edittext" type="checkbox" name="value[blExtSearch_showVariantsWithoutFilters]" value='1' {% if edit.getEditValue('blExtSearch_showVariantsWithoutFilters') == 1 %}checked{% endif %} {{ readonly }}>
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_EXTSEARCH_MAIN_SHOWVARIANTSWITHOUTFILTERS_DESC"), 'sHelpText': help_text("D3_EXTSEARCH_MAIN_SHOWVARIANTSWITHOUTFILTERS_DESC")} %}
</dd>
<dd class="spacer"></dd>
</dl>
{% if oView.d3UseAlistFilters() %}
{% set blActionRestriction = "" %}
{% else %}
{% set blActionRestriction = "readonly disabled" %}
{% set blRestricted = true %}
{% endif %}
<dl class="variant_options">
<dt>
<label for="VariantInAList" class="{{ blActionRestriction }}">{{ translate({ ident: "D3_EXTSEARCH_MAIN_VARIANTINALIST" }) }}</label>
</dt>
<dd>
<input type="hidden" name="value[blExtSearch_VariantInAList]" value="0" {{ blActionRestriction }}>
<input id="VariantInAList" class="edittext ext_edittext" type="checkbox" {{ blActionRestriction }} name="value[blExtSearch_VariantInAList]" value='1' {% if not blRestricted and edit.getEditValue('blExtSearch_VariantInAList') == 1 %}checked{% endif %} {{ readonly }}>
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_EXTSEARCH_MAIN_VARIANTINALIST_DESC"), 'sHelpText': help_text("D3_EXTSEARCH_MAIN_VARIANTINALIST_DESC")} %}
</dd>
<dd class="spacer"></dd>
</dl>
<dl class="variant_options">
<dt>
<label for="VariantCheckParentActive">{{ translate({ ident: "D3_EXTSEARCH_MAIN_VARIANTCHECKPARENTACTIVE" }) }}</label>
</dt>
<dd>
<input type="hidden" name="value[blExtSearch_VariantCheckParentActive]" value="0">
<input id="VariantCheckParentActive" class="edittext ext_edittext" type="checkbox" name="value[blExtSearch_VariantCheckParentActive]" value='1' {% if edit.getEditValue('blExtSearch_VariantCheckParentActive') == 1 %}checked{% endif %} {{ readonly }}>
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_EXTSEARCH_MAIN_VARIANTCHECKPARENTACTIVE_DESC"), 'sHelpText': help_text("D3_EXTSEARCH_MAIN_VARIANTCHECKPARENTACTIVE_DESC")} %}
</dd>
<dd class="spacer"></dd>
</dl>
{% endblock %}
</div>
</div>
<div class="groupExp">
<div class="">
{% block d3_cfg_extsearch_main__phonetics %}
<a class="rc" onclick="_groupExp(this); return false;" href="#">
<b>
{{ translate({ ident: "D3_EXTSEARCH_MAIN_PHONETICS" }) }}
</b>
</a>
<dl>
<dt style="width: 90%; float: none;">{{ translate({ ident: "D3_EXTSEARCH_MAIN_PHONETICS_DESC" }) }}</dt>
</dl>
<dl>
<dt>
<label for="similarSearch">{{ translate({ ident: "D3_EXTSEARCH_MAIN_SIMILARSEARCH" }) }}</label>
</dt>
<dd>
<input type="hidden" name="value[blExtSearch_similarSearch]" value="0">
<input id="similarSearch" class="edittext ext_edittext" type="checkbox" name="value[blExtSearch_similarSearch]" value='1' {% if edit.getEditValue('blExtSearch_similarSearch') == 1 %}checked{% endif %} onclick='{% include "@d3_extsearch/admin/d3_togglegroup_extsearch.html.twig" with {sToggleOptionName: "blExtSearch_similarSearch", sToggleOptionClass: ".phonetic_options"} %}' {{ readonly }}>
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_EXTSEARCH_MAIN_SIMILARSEARCH_DESC"), 'sHelpText': help_text("D3_EXTSEARCH_MAIN_SIMILARSEARCH_DESC")} %}
</dd>
<dd class="spacer"></dd>
</dl>
<dl class="phonetic_options">
<dt>
<label for="langFile">{{ translate({ ident: "D3_EXTSEARCH_MAIN_PHONETICLANG" }) }}</label>
</dt>
<dd>
<select id="langFile" name="value[sExtSearch_langFile]" class="editinput" {{ readonly }}>
{% for aLang in oView.getPhoneticLanguages() %}
<option value="{{ aLang.file }}" {% if edit.getEditValue('sExtSearch_langFile') == aLang.file %}selected>&bull; {% else %}>{% endif %}{{ aLang.name }} ({{ aLang.file }})</option>
{% endfor %}
</select>
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_EXTSEARCH_MAIN_PHONETICLANG_DESC"), 'sHelpText': help_text("D3_EXTSEARCH_MAIN_PHONETICLANG_DESC")} %}
</dd>
<dd class="spacer"></dd>
</dl>
<dl class="phonetic_options">
<dt>
<label for="blsimilarExtList">{{ translate({ ident: "D3_EXTSEARCH_MAIN_SIMILAREXTLIST_1" }) }}</label>
</dt>
<dd>
<input type="hidden" name="value[blExtSearch_similarExtList]" value="0">
<input id="blsimilarExtList" class="edittext ext_edittext" type="checkbox" name="value[blExtSearch_similarExtList]" value='1' {% if edit.getEditValue('blExtSearch_similarExtList') == 1 %}checked{% endif %} {{ readonly }}>
<input id="isimilarExtList" type="text" class="editinput" size="8" maxlength="5" name="value[iExtSearch_similarExtList]" value="{% if edit.getEditValue('iExtSearch_similarExtList') %}{{ edit.getEditValue('iExtSearch_similarExtList') }}{% else %}10{% endif %}" {{ readonly }}>
<label for="isimilarExtList">{{ translate({ ident: "D3_EXTSEARCH_MAIN_SIMILAREXTLIST_2" }) }}</label>
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_EXTSEARCH_MAIN_SIMILAREXTLIST_DESC"), 'sHelpText': help_text("D3_EXTSEARCH_MAIN_SIMILAREXTLIST_DESC")} %}
</dd>
<dd class="spacer"></dd>
</dl>
<dl class="phonetic_options">
<dt>
<label for="minPhonLength">{{ translate({ ident: "D3_EXTSEARCH_MAIN_MINPHONLENGTH" }) }}</label>
</dt>
<dd>
<SELECT id="minPhonLength" class="edittext ext_edittext" name="value[iExtSearch_minPhonLength]" {{ readonly }}>
<OPTION value="2"{% if edit.getEditValue('iExtSearch_minPhonLength') == 2 %} selected>&bull; {% else %}>{% endif %}{{ translate({ ident: "D3_EXTSEARCH_MAIN_MINPHONLENGTH_LESS" }) }}</option>
<OPTION value="3"{% if edit.getEditValue('iExtSearch_minPhonLength') == 3 %} selected>&bull; {% else %}>{% endif %}{{ translate({ ident: "D3_EXTSEARCH_MAIN_MINPHONLENGTH_REG" }) }}</option>
<OPTION value="4"{% if edit.getEditValue('iExtSearch_minPhonLength') == 4 %} selected>&bull; {% else %}>{% endif %}{{ translate({ ident: "D3_EXTSEARCH_MAIN_MINPHONLENGTH_MORE" }) }}</option>
</SELECT>
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_EXTSEARCH_MAIN_MINPHONLENGTH_DESC"), 'sHelpText': help_text("D3_EXTSEARCH_MAIN_MINPHONLENGTH_DESC")} %}
</dd>
<dd class="spacer"></dd>
</dl>
{% endblock %}
</div>
</div>
<div class="groupExp">
<div class="">
{% block d3_cfg_extsearch_main__semantics %}
<a class="rc" onclick="_groupExp(this); return false;" href="#">
<b>
{{ translate({ ident: "D3_EXTSEARCH_MAIN_SEMANTICS" }) }}
</b>
</a>
<dl>
<dt style="width: 90%; float: none;">{{ translate({ ident: "D3_EXTSEARCH_MAIN_SEMANTICS_DESC" }) }}</dt>
</dl>
<dl>
<dt>
<label for="semanticSearch">{{ translate({ ident: "D3_EXTSEARCH_MAIN_SEMANTICSEARCH" }) }}</label>
</dt>
<dd>
<input type="hidden" name="value[blExtSearch_semanticSearch]" value="0">
<input id="semanticSearch" class="edittext ext_edittext" type="checkbox" name="value[blExtSearch_semanticSearch]" value='1' {% if edit.getEditValue('blExtSearch_semanticSearch') == 1 %}checked{% endif %} onclick='{% include "@d3_extsearch/admin/d3_togglegroup_extsearch.html.twig" with {sToggleOptionName: "blExtSearch_semanticSearch", sToggleOptionClass: ".semantic_options"} %}' {{ readonly }}>
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_EXTSEARCH_MAIN_SEMANTICSEARCH_DESC"), 'sHelpText': help_text("D3_EXTSEARCH_MAIN_SEMANTICSEARCH_DESC")} %}
</dd>
<dd class="spacer"></dd>
</dl>
<dl class="semantic_options">
<dt>
<label for="semanticUsePhonetic">{{ translate({ ident: "D3_EXTSEARCH_MAIN_SEMANTICUSEPHONETIC" }) }}</label>
</dt>
<dd>
<input type="hidden" name="value[blExtSearch_semanticUsePhonetic]" value="{% if edit.getEditValue('blExtSearch_similarSearch') != 1 %}{{ edit.getEditValue('blExtSearch_semanticUsePhonetic') }}{% else %}0{% endif %}">
<input id="semanticUsePhonetic" class="edittext ext_edittext" type="checkbox" name="value[blExtSearch_semanticUsePhonetic]" value='1' {% if edit.getEditValue('blExtSearch_semanticUsePhonetic') == 1 %}checked{% endif %} {% if edit.getEditValue('blExtSearch_similarSearch') != 1 %}disabled{% endif %} {{ readonly }}>
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_EXTSEARCH_MAIN_SEMANTICUSEPHONETIC_DESC"), 'sHelpText': help_text("D3_EXTSEARCH_MAIN_SEMANTICUSEPHONETIC_DESC")} %}
</dd>
<dd class="spacer"></dd>
</dl>
{% endblock %}
</div>
</div>
<div class="groupExp">
<div class="">
{% block d3_cfg_extsearch_main__category %}
<a class="rc" onclick="_groupExp(this); return false;" href="#">
<b>
{{ translate({ ident: "D3_EXTSEARCH_MAIN_CATEGORY" }) }}
</b>
</a>
<dl>
<dt>
<label for="catSearch">{{ translate({ ident: "D3_EXTSEARCH_MAIN_CATEGORY_SEARCH" }) }}</label>
</dt>
<dd>
<input type="hidden" name="value[blExtSearch_catSearch]" value="0">
<input id="catSearch" class="edittext ext_edittext" type="checkbox" name="value[blExtSearch_catSearch]" value='1' {% if edit.getEditValue('blExtSearch_catSearch') == 1 %}checked{% endif %} onclick='{% include "@d3_extsearch/admin/d3_togglegroup_extsearch.html.twig" with {sToggleOptionName: "blExtSearch_catSearch", sToggleOptionClass: ".category_options"} %}' {{ readonly }}>
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_EXTSEARCH_MAIN_CATEGORY_SEARCH_DESC"), 'sHelpText': help_text("D3_EXTSEARCH_MAIN_CATEGORY_SEARCH_DESC")} %}
</dd>
<dd class="spacer"></dd>
</dl>
<dl class="category_options">
<dt>
<label for="blSearchUseAND">{{ translate({ ident: "SHOP_CONFIG_SEARCHUSEAND" }) }}</label>
</dt>
<dd>
<input type=hidden name=value[blExtSearch_catSearchUseAND] value=0>
<input id="blSearchUseAND" type=checkbox name=value[blExtSearch_catSearchUseAND] value=1 {% if edit.getEditValue('blExtSearch_catSearchUseAND') %}checked{% endif %} {{ readonly }}>
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_EXTSEARCH_MAIN_CATEGORY_ANDOR_DESC"), 'sHelpText': help_text("D3_EXTSEARCH_MAIN_CATEGORY_ANDOR_DESC")} %}
</dd>
<dd class="spacer"></dd>
</dl>
<dl style="display: none;">
<dt>
<label for="showCatArticles">{{ translate({ ident: "D3_EXTSEARCH_MAIN_CATEGORY_ARTHANDLING" }) }}</label>
</dt>
<dd>
<SELECT id="showCatArticles" class="edittext ext_edittext" name="value[sExtSearch_showCatArticles]" {{ readonly }}>
<OPTION selected value="artincat"{% if edit.getEditValue('sExtSearch_showCatArticles') == 'artincat' or edit.getEditValue('sExtSearch_showCatArticles') == '' %} selected>&bull; {% else %}>{% endif %}{{ translate({ ident: "D3_EXTSEARCH_MAIN_CATEGORY_ARTINCAT" }) }}</option>
<OPTION value="catinlist"{% if edit.getEditValue('sExtSearch_showCatArticles') == 'catinlist__' %} selected>&bull; {% else %}>{% endif %}{{ translate({ ident: "D3_EXTSEARCH_MAIN_CATEGORY_CATINLIST" }) }}</option>
</SELECT>
</dd>
<dd class="spacer"></dd>
</dl>
<dl class="category_options">
<dt>
<label for="catPrio">{{ translate({ ident: "D3_EXTSEARCH_MAIN_CATEGORY_PRIORITY" }) }}</label>
</dt>
<dd>
<input id="catPrio" type="text" class="editinput" size="8" maxlength="5" name="value[iExtSearch_catPrio]" value="{% if edit.getEditValue('iExtSearch_catPrio') %}{{ edit.getEditValue('iExtSearch_catPrio') }}{% else %}50{% endif %}" {{ readonly }}>
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_EXTSEARCH_MAIN_CATEGORY_PRIORITY_DESC"), 'sHelpText': help_text("D3_EXTSEARCH_MAIN_CATEGORY_PRIORITY_DESC")} %}
</dd>
<dd class="spacer"></dd>
</dl>
{% endblock %}
</div>
</div>
<div class="groupExp">
<div class="">
{% block d3_cfg_extsearch_main__manufacturer %}
<a class="rc" onclick="_groupExp(this); return false;" href="#">
<b>
{{ translate({ ident: "D3_EXTSEARCH_MAIN_MANUFACTURER" }) }}
</b>
</a>
<dl>
<dt>
<label for="manufacturerSearch">{{ translate({ ident: "D3_EXTSEARCH_MAIN_MANUFACTURER_SEARCH" }) }}</label>
</dt>
<dd>
<input type="hidden" name="value[blExtSearch_manufacturerSearch]" value="0">
<input id="manufacturerSearch" class="edittext ext_edittext" type="checkbox" name="value[blExtSearch_manufacturerSearch]" value='1' {% if edit.getEditValue('blExtSearch_manufacturerSearch') == 1 %}checked{% endif %} onclick='{% include "@d3_extsearch/admin/d3_togglegroup_extsearch.html.twig" with {sToggleOptionName: "blExtSearch_manufacturerSearch", sToggleOptionClass: ".manufacturer_options"} %}' {{ readonly }}>
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_EXTSEARCH_MAIN_MANUFACTURER_SEARCH_DESC"), 'sHelpText': help_text("D3_EXTSEARCH_MAIN_MANUFACTURER_SEARCH_DESC")} %}
</dd>
<dd class="spacer"></dd>
</dl>
<dl class="manufacturer_options">
<dt>
<label for="blSearchUseAND">{{ translate({ ident: "SHOP_CONFIG_SEARCHUSEAND" }) }}</label>
</dt>
<dd>
<input type=hidden name=value[blExtSearch_manufacturerSearchUseAND] value=0>
<input id="blSearchUseAND" type=checkbox name=value[blExtSearch_manufacturerSearchUseAND] value=1 {% if edit.getEditValue('blExtSearch_manufacturerSearchUseAND') %}checked{% endif %} {{ readonly }}>
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_EXTSEARCH_MAIN_MANUFACTURER_ANDOR_DESC"), 'sHelpText': help_text("D3_EXTSEARCH_MAIN_MANUFACTURER_ANDOR_DESC")} %}
</dd>
<dd class="spacer"></dd>
</dl>
<dl class="manufacturer_options">
<dt>
<label for="manufacturerPrio">{{ translate({ ident: "D3_EXTSEARCH_MAIN_MANUFACTURER_PRIORITY" }) }}</label>
</dt>
<dd>
<input id="manufacturerPrio" type="text" class="editinput" size="8" maxlength="5" name="value[iExtSearch_manufacturerPrio]" value="{% if edit.getEditValue('iExtSearch_manufacturerPrio') %}{{ edit.getEditValue('iExtSearch_manufacturerPrio') }}{% else %}50{% endif %}" {{ readonly }}>
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_EXTSEARCH_MAIN_MANUFACTURER_PRIORITY_DESC"), 'sHelpText': help_text("D3_EXTSEARCH_MAIN_MANUFACTURER_PRIORITY_DESC")} %}
</dd>
<dd class="spacer"></dd>
</dl>
{% endblock %}
</div>
</div>
<div class="groupExp">
<div class="">
{% block d3_cfg_extsearch_main__contents %}
<a class="rc" onclick="_groupExp(this); return false;" href="#">
<b>
{{ translate({ ident: "D3_EXTSEARCH_NAVI_CONTENTS" }) }}
</b>
</a>
<dl>
<dt>
<label for="showContentList">{{ translate({ ident: "D3_EXTSEARCH_NAVI_CONTENTLIST" }) }}</label>
</dt>
<dd>
<input type="hidden" name="value[blExtSearch_showContentList]" value="0">
<input id="showContentList" class="edittext ext_edittext" type="checkbox" name="value[blExtSearch_showContentList]" value='1' {% if edit.getEditValue('blExtSearch_showContentList') == 1 %}checked{% endif %} onclick='{% include "@d3_extsearch/admin/d3_togglegroup_extsearch.html.twig" with {sToggleOptionName: "blExtSearch_showContentList", sToggleOptionClass: ".content_options"} %}' {{ readonly }}>
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_EXTSEARCH_NAVI_CONTENTLIST_DESC"), 'sHelpText': help_text("D3_EXTSEARCH_NAVI_CONTENTLIST_DESC")} %}
</dd>
<dd class="spacer"></dd>
</dl>
<dl class="content_options">
<dt>
<label for="contentSearchLongtext">{{ translate({ ident: "D3_EXTSEARCH_NAVI_CONTENTSEARCHINLONGTEXT" }) }}</label>
</dt>
<dd>
<input type="hidden" name="value[blExtSearch_contentSearchLongtext]" value="0">
<input id="contentSearchLongtext" class="edittext ext_edittext" type="checkbox" name="value[blExtSearch_contentSearchLongtext]" value='1' {% if edit.getEditValue('blExtSearch_contentSearchLongtext') == 1 %}checked{% endif %} {{ readonly }}>
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_EXTSEARCH_NAVI_CONTENTLONG_DESC"), 'sHelpText': help_text("D3_EXTSEARCH_NAVI_CONTENTLONG_DESC")} %}
</dd>
<dd class="spacer"></dd>
</dl>
{% endblock %}
</div>
</div>
<div class="groupExp">
<div class="">
{% block d3_cfg_extsearch_main__redirects %}
<a class="rc" onclick="_groupExp(this); return false;" href="#">
<b>
{{ translate({ ident: "D3_EXTSEARCH_NAVI_REDIRECTS" }) }}
</b>
</a>
<dl>
<dt>
<label for="useArtNumSearch">{{ translate({ ident: "D3_EXTSEARCH_MAIN_USEARTNUMSEARCH" }) }}</label>
</dt>
<dd>
<input type="hidden" name="value[blExtSearch_useArtNumSearch]" value="0">
<input id="useArtNumSearch" class="edittext ext_edittext" type="checkbox" name="value[blExtSearch_useArtNumSearch]" value='1' {% if edit.getEditValue('blExtSearch_useArtNumSearch') == 1 %}checked{% endif %} {{ readonly }}>
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_EXTSEARCH_MAIN_USEARTNUMSEARCH_DESC"), 'sHelpText': help_text("D3_EXTSEARCH_MAIN_USEARTNUMSEARCH_DESC")} %}
</dd>
<dd class="spacer"></dd>
</dl>
<dl>
<dt>
<label for="goToUniqueHit">{{ translate({ ident: "D3_EXTSEARCH_NAVI_UNIQUEHIT" }) }}</label>
</dt>
<dd>
<input type="hidden" name="value[blExtSearch_goToUniqueHit]" value="0">
<input id="goToUniqueHit" class="edittext ext_edittext" type="checkbox" name="value[blExtSearch_goToUniqueHit]" value='1' {% if edit.getEditValue('blExtSearch_goToUniqueHit') == 1 %}checked{% endif %} {{ readonly }}>
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_EXTSEARCH_NAVI_UNIQUEHIT_DESC"), 'sHelpText': help_text("D3_EXTSEARCH_NAVI_UNIQUEHIT_DESC")} %}
</dd>
<dd class="spacer"></dd>
</dl>
<dl>
<dt>
<label for="goToUniqueContentHit">{{ translate({ ident: "D3_EXTSEARCH_NAVI_UNIQUECONTENTHIT" }) }}</label>
</dt>
<dd>
<input type="hidden" name="value[blExtSearch_goToUniqueContentHit]" value="0">
<input id="goToUniqueContentHit" class="edittext ext_edittext" type="checkbox" name="value[blExtSearch_goToUniqueContentHit]" value='1' {% if edit.getEditValue('blExtSearch_goToUniqueContentHit') == 1 %}checked{% endif %} {{ readonly }}>
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_EXTSEARCH_NAVI_UNIQUECONTENTHIT_DESC"), 'sHelpText': help_text("D3_EXTSEARCH_NAVI_UNIQUECONTENTHIT_DESC")} %}
</dd>
<dd class="spacer"></dd>
</dl>
<dl>
<dt>
<label for="goToUniqueVendorHit">{{ translate({ ident: "D3_EXTSEARCH_NAVI_UNIQUEVENDORHIT" }) }}</label>
</dt>
<dd>
<input type="hidden" name="value[blExtSearch_goToUniqueVendorHit]" value="0">
<input id="goToUniqueVendorHit" class="edittext ext_edittext" type="checkbox" name="value[blExtSearch_goToUniqueVendorHit]" value='1' {% if edit.getEditValue('blExtSearch_goToUniqueVendorHit') == 1 %}checked{% endif %} {{ readonly }}>
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_EXTSEARCH_NAVI_UNIQUEVENDORHIT_DESC"), 'sHelpText': help_text("D3_EXTSEARCH_NAVI_UNIQUEVENDORHIT_DESC")} %}
</dd>
<dd class="spacer"></dd>
</dl>
<dl>
<dt>
<label for="goToUniqueManufacturerHit">{{ translate({ ident: "D3_EXTSEARCH_NAVI_UNIQUEMANUFACTURERHIT" }) }}</label>
</dt>
<dd>
<input type="hidden" name="value[blExtSearch_goToUniqueManufacturerHit]" value="0">
<input id="goToUniqueManufacturerHit" class="edittext ext_edittext" type="checkbox" name="value[blExtSearch_goToUniqueManufacturerHit]" value='1' {% if edit.getEditValue('blExtSearch_goToUniqueManufacturerHit') == 1 %}checked{% endif %} {{ readonly }}>
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_EXTSEARCH_NAVI_UNIQUEMANUFACTURERHIT_DESC"), 'sHelpText': help_text("D3_EXTSEARCH_NAVI_UNIQUEMANUFACTURERHIT_DESC")} %}
</dd>
<dd class="spacer"></dd>
</dl>
{% endblock %}
</div>
</div>
<div class="groupExp">
<div class="">
{% block d3_cfg_extsearch_main__log %}
<a class="rc" onclick="_groupExp(this); return false;" href="#">
<b>
{{ translate({ ident: "D3_EXTSEARCH_MAIN_LOGSETTINGS" }) }}
</b>
</a>
<dl>
<dt>
<label for="logHitless">{{ translate({ ident: "D3_EXTSEARCH_MAIN_LOGHITLESS" }) }}</label>
</dt>
<dd>
<input type="hidden" name="value[blExtSearch_logHitless]" value="0">
<input id="logHitless" class="edittext ext_edittext" type="checkbox" name="value[blExtSearch_logHitless]" value='1' {% if edit.getEditValue('blExtSearch_logHitless') == 1 %}checked{% endif %} {{ readonly }}>
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_EXTSEARCH_MAIN_LOGHITLESS_DESC"), 'sHelpText': help_text("D3_EXTSEARCH_MAIN_LOGHITLESS_DESC")} %}
</dd>
<dd class="spacer"></dd>
</dl>
<dl>
<dt>
<label for="generallyLogForSearch">{{ translate({ ident: "D3_EXTSEARCH_MAIN_LOGFORSEARCH" }) }}</label>
</dt>
<dd>
<input type="hidden" name="value[blExtSearch_generallyLogForSearch]" value="0">
<input id="generallyLogForSearch" class="edittext ext_edittext" type="checkbox" name="value[blExtSearch_generallyLogForSearch]" value='1' {% if edit.getEditValue('blExtSearch_generallyLogForSearch') == 1 %}checked{% endif %} {{ readonly }}>
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_EXTSEARCH_MAIN_LOGFORSEARCH_DESC"), 'sHelpText': help_text("D3_EXTSEARCH_MAIN_LOGFORSEARCH_DESC")} %}
</dd>
<dd class="spacer"></dd>
</dl>
{% endblock %}
</div>
</div>
<div class="groupExp">
<div class="">
{% block d3_cfg_extsearch_main__admin %}
<a class="rc" onclick="_groupExp(this); return false;" href="#">
<b>
{{ translate({ ident: "D3_EXTSEARCH_MAIN_ADMINPANEL" }) }}
</b>
</a>
<dl>
<dt>
<label for="adminShowVariants">{{ translate({ ident: "D3_EXTSEARCH_MAIN_ADMINSHOWVARIANTS" }) }}</label>
</dt>
<dd>
<input type="hidden" name="value[blExtSearch_adminShowVariants]" value="0">
<input id="adminShowVariants" class="edittext ext_edittext" type="checkbox" name="value[blExtSearch_adminShowVariants]" value='1' {% if edit.getEditValue('blExtSearch_adminShowVariants') == 1 %}checked{% endif %} {{ readonly }}>
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_EXTSEARCH_MAIN_ADMINSHOWVARIANTS_DESC"), 'sHelpText': help_text("D3_EXTSEARCH_MAIN_ADMINSHOWVARIANTS_DESC")} %}
</dd>
<dd class="spacer"></dd>
</dl>
<dl>
<dt>
<input id="articlesPerTick" type="text" class="editinput" size="4" maxlength="3" name="value[iExtSearch_articlesPerTick]" value="{{ oView.getArticleCountPerTick() }}" {{ readonly }}>
<label for="articlesPerTick">{{ translate({ ident: "D3_EXTSEARCH_MAIN_INDEXARTCNT" }) }}</label>
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_EXTSEARCH_MAIN_INDEXARTCNT_DESC"), 'sHelpText': help_text("D3_EXTSEARCH_MAIN_INDEXARTCNT_DESC")} %}
</dt>
<dd>
</dd>
<dd class="spacer"></dd>
</dl>
{% endblock %}
</div>
</div>
<table style="width: 100%">
<tr>
<td class="edittext ext_edittext" style="text-align: left;">
<br>
<span class="d3modcfg_btn icon d3color-green">
<button type="submit" name="save" {{ readonly }}>
<i class="fa fa-check-circle fa-inverse"></i>{{ translate({ ident: "D3_EXTSEARCH_MAIN_SAVE" }) }}
</button>
</span>
<br><br>
</td>
</tr>
</table>
{% endif %}
{% endblock %}
</form>
{% if oView.getValueStatus() != 'error' %}
<div class="groupExp {% if oView.getIndexStatus() > 0 %}highlighted{% endif %}">
<div class="">
<a class="rc" onclick="_groupExp(this); return false;" href="#">
<b>
{{ translate({ ident: "D3_EXTSEARCH_MAIN_INDEX" }) }}
</b>
</a>
<form name="myedit" id="myedit" action="{{ oViewConf.getSelfLink()|raw }}" method="post" style="padding: 0;margin: 0;height:0;">
{{ oViewConf.getHiddenSid()|raw }}
<input type="hidden" name="cl" value="{{ oViewConf.getActiveClassName()|raw }}">
<input type="hidden" name="fnc" value="generatePhoneticStrings">
<input type="hidden" name="editlanguage" value="{{ editlanguage }}">
<input type="hidden" name="oxid" value="{{ oxid }}">
{% block d3_cfg_extsearch_main__index %}
<dl>
<dt style="width: 90%; float: none;">{{ translate({ ident: "D3_EXTSEARCH_MAIN_INDEX_DESC" }) }}</dt>
</dl>
{% set clParam = "cl="|cat(oViewConf.getActiveClassName()) %}
<dl>
<dt>
&nbsp;
</dt>
<dd>
<span class="d3modcfg_btn icon d3color-orange">
<button type="submit" name="save" onclick="window.open('{{ oViewConf.getSelfLink()|add_url_parameters(clParam)|add_url_parameters("fnc=generatePhoneticStrings") }}', 'generate_phonetic', 'width=300, height=300, left=100'); return false;" {{ readonly }}>
<i class="fa fa-warning fa-inverse"></i>{{ translate({ ident: "D3_EXTSEARCH_MAIN_GENINDEXCMPL" }) }}
</button>
</span>
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_EXTSEARCH_MAIN_GENINDEXCMPL_DESC"), 'sHelpText': help_text("D3_EXTSEARCH_MAIN_GENINDEXCMPL_DESC")} %}
</dd>
<dd class="spacer"></dd>
</dl>
<dl>
<dt>
&nbsp;
</dt>
<dd>
<span class="d3modcfg_btn icon d3color-orange">
<button type="submit" name="save" onclick="window.open('{{ oViewConf.getSelfLink()|add_url_parameters(clParam)|add_url_parameters("fnc=generatePhoneticSemantic") }}', 'generate_phoneticsemantic', 'width=300, height=300, left=100'); return false;" {{ readonly }}>
<i class="fa fa-warning fa-inverse"></i>{{ translate({ ident: "D3_EXTSEARCH_MAIN_GENSEMANTICINDEX" }) }}
</button>
</span>
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_EXTSEARCH_MAIN_GENSEMANTICINDEX_DESC"), 'sHelpText': help_text("D3_EXTSEARCH_MAIN_GENSEMANTICINDEX_DESC")} %}
</dd>
</dl>
{% endblock %}
</form>
<div class="spacer"></div>
</div>
</div>
{% endif %}
</td>
</tr>
</table>
{% include "@d3modcfg_lib/admin/inc/inc.html.twig" %}