@inherits AComponent
@{try{if (Items!=null){
<!--=============================================================================================-->
<table id="booklist_BookTABLE">
   <thead>
      <tr>
         <th class="booklist_BookItemNoTH">#</th><th />
         <th class="booklist_BookTableTH">Book-name</th><th />
         <th class="booklist_BookTableTH">ISBN</th><th />
         <th class="booklist_BookTableTH">Year</th><th />
         <th class="booklist_BookTableTH">Author</th><th />
         <th class="booklist_BookTableTH">Category</th><th />
         <th class="booklist_BookTableTH">Genre</th><th />
         <th class="booklist_BookTableTH">Publisher</th><th />
         <th class="booklist_BookTableLastColumnTH">Series</th>
      </tr>
   </thead>
   @for (int i=0; i<Items.Count; i++)
   {
      var book = Items[i];
      <tbody>
         <tr @key=@book class=@BookItemTRClass(book)>
            <td class="booklist_ItemNoTD">&nbsp;@(i+1)</td>
            <td />
            <td class=@BookNameTDClass(book)>
               <AHRef HRef="#description" Title="Open info (description)"
                      Enabled=@(!book.deleted) Focusable=@false
                      ON_Click=@(() => BookItem_OnClick(book))>@BookInfo.GetDisplayName(book.Name)</AHRef>
            </td>
            <td />
            <td class="booklist_BookTableBoldTD">@book.ISBN</td>
            <td />
            <td class="booklist_BookTableBoldTD">@book.ReleaseYear</td>
            <td />
            <td class="booklist_AuthorTD">@book.AuthorName</td>
            <td />
            <td class="booklist_BookTableTD">@book.CategoryName</td>
            <td />
            <td class="booklist_BookTableTD">@book.GenreName</td>
            <td />
            <td class="booklist_BookTableTD">@book.PublisherName</td>
            <td />
            <td class="booklist_BookTableTD">@book.SeriesName</td>
         </tr>
      </tbody>
   }
</table><!--booklist_BookTABLE-->
<!--=============================================================================================-->
}}catch(Exception e){ProcessRenderingError(GetType(),e);}}
