Bugzilla – Attachment 117621 Details for
Bug 25846
Improve handling of multiple covers on catalog search results in the staff client
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25846: (follow-up) Show "No cover image available" message
Bug-25846-follow-up-Show-No-cover-image-available-.patch (text/plain), 2.98 KB, created by
Owen Leonard
on 2021-03-03 17:35:34 UTC
(
hide
)
Description:
Bug 25846: (follow-up) Show "No cover image available" message
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2021-03-03 17:35:34 UTC
Size:
2.98 KB
patch
obsolete
>From 467fc1a3b75565f071208ff9a826e0b7b87edbdf Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Wed, 3 Mar 2021 17:26:39 +0000 >Subject: [PATCH] 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. >--- > koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss | 3 +++ > koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt | 2 +- > koha-tmpl/intranet-tmpl/prog/js/pages/results.js | 2 +- > 3 files changed, 5 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss >index b1db2c9db8..af5497a319 100644 >--- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss >+++ b/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; > } >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt >index 01ed7f72e9..d135b88c5d 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt >+++ b/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 ) %] >diff --git a/koha-tmpl/intranet-tmpl/prog/js/pages/results.js b/koha-tmpl/intranet-tmpl/prog/js/pages/results.js >index 07bf9abd53..785817c097 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/pages/results.js >+++ b/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>'); > } > }); > } >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 25846
:
106642
|
111294
|
113015
|
113027
|
116065
|
116967
| 117621