Grid, misc column: incl locale and acct
This commit is contained in:
parent
2a294f4f85
commit
9a1fa89f6f
@ -13,7 +13,7 @@
|
|||||||
<!-- <PublishSingleFile>true</PublishSingleFile> -->
|
<!-- <PublishSingleFile>true</PublishSingleFile> -->
|
||||||
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
|
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
|
||||||
|
|
||||||
<Version>3.1.12.302</Version>
|
<Version>3.1.12.303</Version>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@ -174,15 +174,26 @@ namespace LibationWinForms
|
|||||||
get
|
get
|
||||||
{
|
{
|
||||||
var details = new List<string>();
|
var details = new List<string>();
|
||||||
|
|
||||||
|
var locale
|
||||||
|
= string.IsNullOrWhiteSpace(book.Locale)
|
||||||
|
? "[unknown]"
|
||||||
|
: book.Locale;
|
||||||
|
var acct
|
||||||
|
= string.IsNullOrWhiteSpace(libraryBook.Account)
|
||||||
|
? "[unknown]"
|
||||||
|
: libraryBook.Account;
|
||||||
|
details.Add($"Account: {locale} - {acct}");
|
||||||
|
|
||||||
if (book.HasPdf)
|
if (book.HasPdf)
|
||||||
details.Add("Has PDF");
|
details.Add("Has PDF");
|
||||||
if (book.IsAbridged)
|
if (book.IsAbridged)
|
||||||
details.Add("Abridged");
|
details.Add("Abridged");
|
||||||
if (book.DatePublished.HasValue)
|
if (book.DatePublished.HasValue)
|
||||||
details.Add($"Date pub'd: {book.DatePublished.Value.ToString("MM/dd/yyyy")}");
|
details.Add($"Date pub'd: {book.DatePublished.Value:MM/dd/yyyy}");
|
||||||
// this goes last since it's most likely to have a line-break
|
// this goes last since it's most likely to have a line-break
|
||||||
if (!string.IsNullOrWhiteSpace(book.Publisher))
|
if (!string.IsNullOrWhiteSpace(book.Publisher))
|
||||||
details.Add($"Pub: {book.Publisher}");
|
details.Add($"Pub: {book.Publisher.Trim()}");
|
||||||
|
|
||||||
if (!details.Any())
|
if (!details.Any())
|
||||||
return "[details not imported]";
|
return "[details not imported]";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user