- translate reading-path views (poet, category, poem, search, header, login, partials) from Persian to Urdu (exact-run dictionary, 262 strings; AI-summary data marker kept) - semantic search widget only when SemanticSearchAPIRoot is configured - appsettings defaults: no Ganjoor tracking script, no Ganjoor semantic search, API/site roots default to the local Divan stack instead of api.ganjoor.net Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
93 lines
3.9 KiB
Plaintext
93 lines
3.9 KiB
Plaintext
@model DivanRazor.Pages._SearchHeaderPartialModel
|
|
<div id="hdr2" class="clearfix">
|
|
<h1><a href="/" title="دیوان"><img src="/image/gdapk.png" alt="دیوان" /></a></h1>
|
|
<div class="actionbox">
|
|
<form action="/search" method="get" id="searchform">
|
|
<input type="text" name="s" id="s" class="inputText" value="@Model.SearchQuery" placeholder="تلاش" />
|
|
@if (Model.ShowExactSearchHiddenField)
|
|
{
|
|
<input type="hidden" name="es" id="es" value="1" />
|
|
}
|
|
<select name="author" id="author" onchange="onSelectedPoetChanged()">
|
|
@{
|
|
if (Model.SelectedPoetId != 0)
|
|
{
|
|
<option value="0">تمام شعرا کے کلام میں</option>
|
|
}
|
|
else
|
|
{
|
|
<option value="0" selected>تمام شعرا کے کلام میں</option>
|
|
}
|
|
|
|
if (Model.Poets != null)
|
|
{
|
|
foreach (var poet in Model.Poets)
|
|
{
|
|
if (poet.Id == Model.SelectedPoetId)
|
|
{
|
|
<option value="@poet.Id" selected>@Html.Raw(poet.Nickname)</option>
|
|
}
|
|
else
|
|
{
|
|
<option value="@poet.Id">@Html.Raw(poet.Nickname)</option>
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</select>
|
|
@if (Model.CurrentCategory != null)
|
|
{
|
|
<select name="cat" id="cat" style="@(Model.WideCategorySelect ? "width:150px" : "")">
|
|
@{
|
|
var effectiveSelectedCatId = Model.SelectedCategoryId ?? Model.CurrentCategory.Id;
|
|
|
|
if (effectiveSelectedCatId == 0)
|
|
{
|
|
<option value="0" selected>تمام حصوں میں</option>
|
|
}
|
|
else
|
|
{
|
|
<option value="0">تمام حصوں میں</option>
|
|
}
|
|
|
|
foreach (var gran in Model.CurrentCategory.Ancestors)
|
|
{
|
|
if (effectiveSelectedCatId == gran.Id)
|
|
{
|
|
<option value="@gran.Id" selected>@Html.Raw(gran.Title)</option>
|
|
}
|
|
else
|
|
{
|
|
<option value="@gran.Id">@Html.Raw(gran.Title)</option>
|
|
}
|
|
}
|
|
|
|
if (effectiveSelectedCatId == Model.CurrentCategory.Id)
|
|
{
|
|
<option value="@Model.CurrentCategory.Id" selected>@Html.Raw(Model.CurrentCategory.Title)</option>
|
|
}
|
|
else
|
|
{
|
|
<option value="@Model.CurrentCategory.Id">@Html.Raw(Model.CurrentCategory.Title)</option>
|
|
}
|
|
|
|
foreach (var child in Model.CurrentCategory.Children)
|
|
{
|
|
if (effectiveSelectedCatId == child.Id)
|
|
{
|
|
<option value="@child.Id" selected>@Html.Raw(child.Title)</option>
|
|
}
|
|
else
|
|
{
|
|
<option value="@child.Id">@Html.Raw(child.Title)</option>
|
|
}
|
|
}
|
|
}
|
|
</select>
|
|
}
|
|
|
|
<input type="submit" value="تلاش کریں" />
|
|
</form>
|
|
</div><!-- .actionbox -->
|
|
</div><!-- #hdr2 -->
|