Skip to content

Commit

Permalink
feat: display edition on where is it modal
Browse files Browse the repository at this point in the history
adds a record's edition to the modal that opens upon the 'Where is it?'
button being clicked on the search page.

For records that do not have edition information attached to them,
displays 'unknown' instead
  • Loading branch information
Chloe070196 committed Sep 2, 2024
1 parent 6807fa3 commit f82a050
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<thead>
<tr>
<th>{translate text="Available Copies" isPublicFacing=true}</th>
<th>{translate text="Edition" isPublicFacing=true}</th>
<th>{translate text="Location" isPublicFacing=true}</th>
<th>{translate text="Call #" isPublicFacing=true}</th>
</tr>
Expand All @@ -21,6 +22,13 @@
{else}
<td>{translate text="%1% of %2%" 1=$item.availableCopies 2=$item.totalCopies isPublicFacing=true}{if !empty($item.availableCopies)} <i class="fa fa-check"></i>{/if}</td>
{/if}
<td class="notranslate">
{if !empty($item.edition)}
{$item.edition}
{else}
{translate text='unknown' isPublicFacing=true}
{/if}
</td>
<td class="notranslate">{$item.shelfLocation}</td>
<td class="notranslate">
{if empty($item.isEContent)}
Expand Down

0 comments on commit f82a050

Please sign in to comment.