{% set bSearch = false %}
{% set nColNum = 0 %}
{% if column_num is defined %}
{% set nColNum = column_num %}
{% endif %}
{% if define_latin_icon is defined and define_latin_icon == 1 %}
{% set bSearch = true %}
<li class="nav-item"><a href="javascript:defineLatin();" title="{{ app.session.get('ui_str')["whitaker.icon.tooltip"] }}" class="nav-link"><i class="fa-regular fa-face-thinking"></i><span class="mobile-only"> {{ app.session.get('ui_str')["whitaker.icon.shorttooltip"] }}</span></a></li>
{% if nColNum < 2 %}
<li class="nav-item"><a href="javascript:quickSearch();" title="{{ app.session.get('ui_str')["toolbar.search.latin"] }}" class="nav-link"><i class="fas fa-user-graduate"></i><span class="mobile-only"> {{ app.session.get('ui_str')["linktitle.short.neolatinsearch"] }}</span></a></li>
{% endif %}
{% elseif IsSwedenborgWork is defined and IsSwedenborgWork == 1 and nColNum < 2 %}
{% set bSearch = true %}
<li class="nav-item"><a href="javascript:quickSearch();" title="{{ app.session.get('ui_str')["toolbar.search.not.latin"] }}" class="nav-link"><i class="fas fa-rocket"></i><span class="mobile-only"> {{ app.session.get('ui_str')["toolbar.search.short.not.latin"] }}</span></a></li>
{% endif %}
{% if passage_scanimage is defined and passage_scanimage is not empty %}
<li class="nav-item"><a href="javascript:openWin('{{ path("show_scanimages", {'PassageID': passage.id}) }}',screen.width/1.3,screen.height/1.2,20,20);" title="{{ app.session.get('ui_str')["latinscans.seescanfile"] }}" class="nav-link"><img src="{{ asset('/bundles/ncbsw/media/scan-thumb.webp') }}" /><span class="mobile-only"> {{ app.session.get('ui_str')["latinscans.seescanfile"] }}</span></a></li>
{% endif %}
{% if bSearch %}
<script>
var isCtrl = false;
var isShift = false;
document.onkeyup=function(e){
if(e.keyCode == 17) isCtrl=false;
else if(e.keyCode == 16) isShift=false;
}
document.onkeydown=function(e){
if(e.keyCode == 17) isCtrl=true;
else if(e.keyCode == 16) isShift=true;
if(e.keyCode == 83 && isShift) {
quickSearch();
return false;
}
else if(e.keyCode == 76 && isCtrl) {
defineLatin();
return false;
}
}
</script>
{% elseif nColNum < 2 %}
<script>
var isShift = false;
document.onkeyup=function(e){
if(e.keyCode == 16) isShift=false;
}
document.onkeydown=function(e){
if(e.keyCode == 16) isShift=true;
if(e.keyCode == 83 && isShift) {
quickSearch();
return false;
}
}
</script>
{% endif %}