Skip to content

Commit

Permalink
Merge pull request Aspen-Discovery#1979 from Howell-Carnegie/24.09.00
Browse files Browse the repository at this point in the history
Added title to cover images
  • Loading branch information
mdnoble73 authored Aug 14, 2024
2 parents 7ed07c0 + 80416cd commit 2e8b278
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
{if $accessibleBrowseCategories == '1' && $action != 'Results' && !$isForSearchResults}
<div class="swiper-slide browse-thumbnail {$coverStyle}">
<a onclick="return AspenDiscovery.GroupedWork.showGroupedWorkInfo('{$summId}', {if !empty($browseCategoryId)}'{$browseCategoryId}'{/if});" href="{$summUrl}">
<img src="{$bookCoverUrlMedium}" alt="{$summTitle|escape}" class="{$coverStyle}" loading="lazy">
<img src="{$bookCoverUrlMedium}" alt="{$summTitle|escape}" title="{$summTitle|escape}" class="{$coverStyle}" loading="lazy">
<div class="swiper-lazy-preloader"></div>
</a>
</div>
{else}
{if $browseMode == '1'}
<div class="browse-list grid-item {$coverStyle} {if $browseStyle == 'grid'}browse-grid-style col-tn-6 col-xs-6 col-sm-6 col-md-4 col-lg-3{/if}">
<a onclick="return AspenDiscovery.GroupedWork.showGroupedWorkInfo('{$summId}', '{$browseCategoryId}');" href="{$summUrl}">
<img class="img-responsive" src="{$bookCoverUrl}" alt="{$summTitle|escape} {$vSummAuthor|escape}">
<img class="img-responsive" src="{$bookCoverUrl}" alt="{$summTitle|escape} {$vSummAuthor|escape}" title="{$summTitle|escape} {$vSummAuthor|escape}">
<div class="info">{if !empty($isNew)}<span class="new-result-badge">{translate text="New!" isPublicFacing=true}</span><br/>{/if}<strong>{$summTitle|truncate:40}</strong><span>{$vSummAuthor|truncate:40}</span></div>
</a>
</div>
Expand All @@ -25,7 +25,7 @@
<a onclick="return AspenDiscovery.GroupedWork.showGroupedWorkInfo('{$summId}', {if !empty($browseCategoryId)}'{$browseCategoryId}'{/if});" href="{$summUrl}">
{if !empty($isNew)}<span class="browse-cover-badge">{translate text="New!" isPublicFacing=true}</span> {/if}
<div>
<img src="{$bookCoverUrlMedium}" alt="{$summTitle|escape} {$vSummAuthor|escape}" class="{$coverStyle} browse-{$browseStyle} {if $browseCategoryRatingsMode != 0}ratings-on{/if}">
<img src="{$bookCoverUrlMedium}" alt="{$summTitle|escape} {$vSummAuthor|escape}" title="{$summTitle|escape} {$vSummAuthor|escape}" class="{$coverStyle} browse-{$browseStyle} {if $browseCategoryRatingsMode != 0}ratings-on{/if}">
</div>
</a>
{if !empty($showRatings) && $browseCategoryRatingsMode != 0}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<div class="listResultImage img-thumbnail {$coverStyle}">
<a href="{$summUrl}" tabindex="-1">
{if !empty($isNew)}<span class="list-cover-badge">{translate text="New!" isPublicFacing=true}</span> {/if}
<img src="{$bookCoverUrlMedium}" alt="{$summTitle|removeTrailingPunctuation|escapeCSS}">
<img src="{$bookCoverUrlMedium}" alt="{$summTitle|removeTrailingPunctuation|escapeCSS}" title="{$summTitle|removeTrailingPunctuation|escapeCSS}">
</a>
</div>
{/if}
Expand Down
3 changes: 2 additions & 1 deletion code/web/release_notes/24.09.00.MD
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@

// Jeremy Eden
### Other
- Explicitly disable on screen error display when debugging is disabled by IP.
- Explicitly disable on screen error display when debugging is disabled by IP.
- Set cover title text to same as alt text for both browse category and search results views (Ticket 131697)

// Kyle M Hall
### Koha Driver Updates
Expand Down

0 comments on commit 2e8b278

Please sign in to comment.