<article class="bookpopup">
    <span class="cover">
        {{? it.book.hasCover == 1}}
        <a href="{{=it.book.coverurl}}" {{=it.c.config.kindleHack}}>
          <img src="{{=it.book.thumbnailurl}}" alt="{{=it.c.i18n.coverAlt}}" />
        </a>
        {{?}}
    </span>
    <h2 class="download">
        {{~it.book.datas:data:i}}
        <a title="Download // {{=data.format}}" href="{{=data.url}}" {{=it.c.config.kindleHack}}><i class="fas fa-download"></i> {{=data.format}}</a>
        <a title="Open // {{=data.format}}" href="{{=data.viewUrl}}" {{=it.c.config.kindleHack}}><i class="fas fa-folder-open fa-lg"></i></a>
        {{? data.mail == 1}}
        <a id="mailButton" title="Mail // {{=data.format}}" href="empty.php" onclick="sendToMailAddress (this, {{=data.id}}); return false;" {{=it.c.config.kindleHack}}><i class="fas fa-envelope fa-lg"></i></a>
        {{?}}
        {{? data.readerUrl != ""}}
        <a title="Reader" href="{{=data.readerUrl}}" target="blank" {{=it.c.config.kindleHack}}><i class="fas fa-eye fa-lg"></i></a>
        {{?}}
        <br />
        {{~}}
    </h2>
    <h1><a title="{{=it.c.i18n.permalinkAlt}}" rel="bookmark" href="{{=str_format (it.c.url.detailUrl, it.book.id, it.databaseId)}}" {{=it.c.config.kindleHack}}><i class="fas fa-link"></i></a>{{=htmlspecialchars (it.title)}}</h1>
    <p class="popupless">
        <h3>{{=it.c.i18n.authorsTitle}}: </h3>
        {{~it.book.authors:author:i}}
        {{? i > 0}}, {{?}}<a href="{{=author.url}}">{{=htmlspecialchars (author.name)}}</a>
        {{~}}
    </p>
    {{? it.book.tagsName != ""}}
    <p class="popupless">
        <h3>{{=it.c.i18n.tagsTitle}}: </h3>
        {{~it.book.tags:tag:i}}
        {{? i > 0}}, {{?}}<a href="{{=tag.url}}" {{=it.c.config.kindleHack}}>{{=htmlspecialchars (tag.name)}}</a>
        {{~}}
    </p>
    {{?}}
    {{? it.book.seriesName != ""}}
    <p class="popupless">
        <h3><a href="{{=it.book.seriesurl}}" {{=it.c.config.kindleHack}}>{{=it.c.i18n.seriesTitle}}</a> : </h3>{{=htmlspecialchars (it.book.seriesCompleteName)}}
    </p>
    {{?}}
    {{? it.book.publisherName != ""}}
    <p class="popupless">
        <h3>{{=it.c.i18n.publisherName}}: </h3><a href="{{=it.book.publisherurl}}" {{=it.c.config.kindleHack}}>{{=htmlspecialchars (it.book.publisherName)}}</a>
    </p>
    {{?}}
    {{? it.book.pubDate != ""}}
    <p class="popupless">
        <h3>{{=it.c.i18n.pubdateTitle}}: </h3>{{=it.book.pubDate}}
    </p>
    {{?}}
    {{? it.book.languagesName != ""}}
    <p class="popupless">
        <h3>{{=it.c.i18n.languagesTitle}}: </h3>{{=it.book.languagesName}}
    </p>
    {{?}}
    {{~it.book.customcolumns_preview :column:column_index}}
    <p class="popupless">
    <h3>{{=column.customColumnType.columnTitle}}: </h3>{{=column.htmlvalue}}
    </p>
    {{~}}
    {{? it.book.content != ""}}
    <br />
    <h4>{{=it.c.i18n.contentTitle}}</h4>
    <div>{{=it.book.content}}</div>
    {{?}}
</article>
