Bug 25846: (follow-up) Show "No cover image available" message
This patch restores the use of a "No cover image available" message in staff interface search results when no cover image was found by any image service. The patch also corrects markup in the search results template which was preventing the "Adlibris cover image" text from being correctly hidden. Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
965f65340a
commit
db5aadaeb9
3 changed files with 5 additions and 2 deletions
|
@ -2201,6 +2201,7 @@ td {
|
|||
min-width: 120px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.cover-slides {
|
||||
background: transparent none;
|
||||
border: 0;
|
||||
|
@ -2602,6 +2603,8 @@ td {
|
|||
display: block;
|
||||
font-size: 86%;
|
||||
font-weight: bold;
|
||||
margin: 1em auto;
|
||||
padding: 1em;
|
||||
text-align: center;
|
||||
width: 75px;
|
||||
}
|
||||
|
|
|
@ -436,8 +436,8 @@
|
|||
[% IF ( AdlibrisEnabled && SEARCH_RESULT.normalized_isbn ) %]
|
||||
<div id="adlibris-coverimg-[% SEARCH_RESULT.biblionumber | html %]" class="cover-image adlibris-coverimg">
|
||||
<a href="[% AdlibrisURL | url %]?isbn=[% SEARCH_RESULT.normalized_isbn | uri %]"><img src="[% AdlibrisURL | url %]?isbn=[% SEARCH_RESULT.normalized_isbn | uri %]" class="adlibris-cover" alt="Adlibris cover image" /></a>
|
||||
<div class="hint">Adlibris cover image</div>
|
||||
</div>
|
||||
<div class="hint">Adlibris cover image</div>
|
||||
[% END %]
|
||||
|
||||
[% IF ( AmazonCoverImages && SEARCH_RESULT.normalized_isbn ) %]
|
||||
|
|
|
@ -95,7 +95,7 @@ function verify_images() {
|
|||
|
||||
/* If no slides contain any cover images, remove the container */
|
||||
if( $(".cover-image:visible", slide).length < 1 ){
|
||||
slide.remove();
|
||||
slide.html('<div class="no-image">' + __("No cover image available") + '</div>');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue