Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config/vufind/config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -1172,7 +1172,7 @@ coverproxyAllowedTypes[] = "image/png"
; Otherwise, you can use noCoverAvailableImage to specify a
; path relative to the base of your theme directory for a static image to display.
; If set to "false", no image will be displayed for unavailable covers.
noCoverAvailableImage = images/noCover2.gif
noCoverAvailableImage = images/no-cover-image.webp

; You can select from Syndetics and/or the Guardian
; Note: If the API key is omitted, e.g. "Guardian:", only the review title, byline,
Expand Down
1 change: 1 addition & 0 deletions module/VuFind/src/VuFind/ImageLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ class ImageLoader implements \Psr\Log\LoggerAwareInterface
'jpeg' => 'image/jpeg', 'jpg' => 'image/jpeg',
'png' => 'image/png',
'tiff' => 'image/tiff', 'tif' => 'image/tiff',
'webp' => 'image/webp',
];

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<?php if (isset($work['cover_id']) && !empty($work['cover_id'])): ?>
<img src="http://covers.openlibrary.org/b/<?=$this->escapeHtmlAttr($work['cover_id_type'])?>/<?=$this->escapeHtmlAttr($work['cover_id'])?>-S.jpg" class="olSubjectImage" alt="<?=$this->escapeHtmlAttr($work['title'])?>">
<?php else: ?>
<img src="<?=$this->imageLink('noCover2.gif')?>" class="olSubjectImage" alt="<?=$this->escapeHtmlAttr($work['title'])?>">
<img src="<?=$this->imageLink('no-cover-image.webp')?>" class="olSubjectImage" alt="<?=$this->escapeHtmlAttr($work['title'])?>">
<?php endif; ?>
</span>
<span><?=$this->escapeHtmlAttr($this->truncate($work['title'], 50))?></span>
Expand Down
Binary file added themes/root/images/no-cover-image.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading