@@ -, +, @@ covers - Enable the OPACShelfBrowser system preference. - Enable at least one cover image service (Amazon, Google, Coce, etc). - Locate a title in the OPAC which has items attached. - On the bibliographic detail page, click the "Browse shelf" link in the table of holdings to display the shelf browser. - Use the tab key to move the focus to cover images in the shelf browser. - Confirm that the focus outline moves through each cover link whether or not there is a cover image available. - Diable all cover image services. - Test the shelf browser again and confirm that it's not necessary to tap through an empty row. --- koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss | 6 ++ .../bootstrap/en/includes/shelfbrowser.inc | 80 +++++++++++----------- 2 files changed, 47 insertions(+), 39 deletions(-) --- a/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss +++ a/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss @@ -2731,6 +2731,12 @@ button { font-size: 110%; font-weight: bold; text-decoration: none; + + &.shelfbrowser_cover { + min-height: 80px; + min-width: 80px; + display: inline-block; + } } #browser_previous { --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/shelfbrowser.inc +++ a/koha-tmpl/opac-tmpl/bootstrap/en/includes/shelfbrowser.inc @@ -28,54 +28,56 @@ [% img_title = item.biblionumber %] [% END %] - - [% IF ( OPACLocalCoverImages ) %] -
- [% END %] - [% IF ( OPACAmazonCoverImages ) %] - [% IF ( item.browser_normalized_isbn ) %] - - [% ELSE %] - No cover image available + [% IF ( OPACLocalCoverImages || OPACAmazonCoverImages || ( SyndeticsEnabled && SyndeticsCoverImages ) || GoogleJackets || BakerTaylorEnabled || ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) || ( Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') ) ) %] +
+ [% IF ( OPACLocalCoverImages ) %] +
[% END %] - [% END %] - - [% IF ( SyndeticsEnabled ) %] - [% IF ( SyndeticsCoverImages ) %] - [% IF ( content_identifier_exists ) %] - + [% IF ( OPACAmazonCoverImages ) %] + [% IF ( item.browser_normalized_isbn ) %] + [% ELSE %] No cover image available [% END %] [% END %] - [% END %] - [% IF ( GoogleJackets ) %] - [% IF ( item.browser_normalized_isbn ) %] -
- [% ELSE %] - No cover image available + [% IF ( SyndeticsEnabled ) %] + [% IF ( SyndeticsCoverImages ) %] + [% IF ( content_identifier_exists ) %] + + [% ELSE %] + No cover image available + [% END %] + [% END %] + [% END %] + + [% IF ( GoogleJackets ) %] + [% IF ( item.browser_normalized_isbn ) %] +
+ [% ELSE %] + No cover image available + [% END %] [% END %] - [% END %] - [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %] - [% coce_id = item.browser_normalized_ean || item.browser_normalized_isbn | html %] -
- [% END %] - [% IF ( BakerTaylorEnabled ) %] - [% bt_id = ( item.browser_normalized_upc || item.browser_normalized_isbn ) | html %] - [% IF ( bt_id ) %] - See Baker & Taylor - [% ELSE %] - No cover image available + [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %] + [% coce_id = item.browser_normalized_ean || item.browser_normalized_isbn | html %] +
+ [% END %] + [% IF ( BakerTaylorEnabled ) %] + [% bt_id = ( item.browser_normalized_upc || item.browser_normalized_isbn ) | html %] + [% IF ( bt_id ) %] + See Baker & Taylor + [% ELSE %] + No cover image available + [% END %] + [% END %] + [% IF Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') %] + + Cover image + [% END %] - [% END %] - [% IF Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') %] - - Cover image - - [% END %] -
+ + [% END %] [% END %] --