Browse Source

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>
21.05.x
Owen Leonard 2 years ago
committed by Jonathan Druart
parent
commit
db5aadaeb9
  1. 3
      koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss
  2. 2
      koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt
  3. 2
      koha-tmpl/intranet-tmpl/prog/js/pages/results.js

3
koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss

@ -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;
}

2
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt

@ -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 ) %]

2
koha-tmpl/intranet-tmpl/prog/js/pages/results.js

@ -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…
Cancel
Save