Skip to content

Commit

Permalink
feat: book cover thumbnails
Browse files Browse the repository at this point in the history
In the 'Where is it?' modal, also display the cover for each record
found. Only do so if Show Covers for Editions is enabled in Grouped Work
Display Setting.
  • Loading branch information
Chloe070196 committed Sep 2, 2024
1 parent f82a050 commit 3c26901
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
<table class="table table-striped table-condensed itemSummaryTable">
<thead>
<tr>
{if !empty($showEditionCovers) && $showEditionCovers == 1}
<th></th>
{/if}
<th>{translate text="Available Copies" isPublicFacing=true}</th>
<th>{translate text="Edition" isPublicFacing=true}</th>
<th>{translate text="Location" isPublicFacing=true}</th>
Expand All @@ -13,6 +16,11 @@
{assign var=numRowsShown value=0}
{foreach from=$summary item="item"}
<tr {if !empty($item.availableCopies)}class="available" {/if}>
{if !empty($showEditionCovers) && $showEditionCovers == 1}
<td class="col-tn-2 col-md-2 col-lg-2">
<img src="{$recordDriver->getBookcoverUrl('small')}" class="img-thumbnail {$coverStyle}">
</td>
{/if}
{if $item.onOrderCopies > 0}
{if !empty($showOnOrderCounts)}
<td>{translate text="%1% on order" 1=$item.onOrderCopies isPublicFacing=true}</td>
Expand Down

0 comments on commit 3c26901

Please sign in to comment.