@inherits AComponent
@{try{if (DisplayContent){
<!--=============================================================================================-->
<div id="bookinfo_HeaderDIV">
   <span class="slim_title">@BookInfo.GetDisplayName(CurrentBook.Name)</span>
   <table class="ml-2">
      <tbody>
         <tr>
            <td>
               <AButton @ref=@CloseButton Classes_0="btn btn-secondary"
                        Title="Return to selection list" AccessKey="c" TabIndex=1
                        ON_Click=@CloseButton_OnClick><u>C</u>LOSE</AButton>
            </td>
            <td></td>
            <td>
               <span class="faint_text">(</span><span class="symbolic_bold_text">&#x00D7;</span><span class="faint_text">)</span>
            </td>
         </tr>
      </tbody>
   </table>
   @if (IsForCorrection)
   {
   <AButton Classes_0="btn btn-labeled btn-danger glyphicon glyphicon-remove"
            Title="Remove book-record form database" TabIndex=-1
            Style="margin-left: auto; align-self: flex-end; line-height: 1; white-space: pre-line"
            Focusable=@false
            ON_Click_A=@RemoveButton_OnClick_A><img src="lib/open-iconic/png/x-2x.png"
            />&nbsp;&nbsp;<span style="vertical-align: middle">REMOVE THIS BOOK</span>
   </AButton>
   }
</div>
<p align="justify">
   @CurrentBook.Description
</p>
<div style="display: flex">
   @if (IsForCorrection)
   {
   <div style="display: inline; justify-content: top">
      <AButton Classes_0="btn btn-primary" Title="Correct book data (subpage)" AccessKey="i" TabIndex=2
               ON_Click=@EditButton_OnClick>ED<u>I</u>T BOOK</AButton>
   </div>
   }
   <div style="margin-left: auto; text-align: right; line-height: 1.3">
      <span class="faint_text">ISBN<b>:</b></span> <b><i>@CurrentBook.ISBN</i></b><br>
      <span class="faint_text">Release year<b>:</b></span> <b><i>@CurrentBook.ReleaseYear</i></b><br>
      <span class="faint_text">Author<b>:</b></span> <b><i>@CurrentBook.AuthorName</i></b><br>
      <span class="faint_text">Category<b>:</b></span> <b><i>@CurrentBook.CategoryName</i></b><br>
      <span class="faint_text">Genre<b>:</b></span> <b><i>@CurrentBook.GenreName</i></b><br>
      <span class="faint_text">Publisher<b>:</b></span> <b><i>@CurrentBook.PublisherName</i></b><br>
      <span class="faint_text">Series<b>:</b></span> <b><i>@CurrentBook.SeriesName</i></b>
   </div>
</div>
<!--=============================================================================================-->
}}catch(Exception e){ProcessRenderingError(GetType(),e);}}
