From bebff403f235c0694ce0faf180e30e5e99d00032 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9rick?= Date: Wed, 20 Mar 2013 16:01:42 -0400 Subject: [PATCH] Bug 9549: Show local cover images in the OPAC shelf browser Add the ability to view local cover images in the shelf browser. To test: 1. Add a local cover image to a record. Set OPACLocalCoverImages sys pref to "display." 2. Search for the record, go to the Details page, and click on Browse Shelf. 3. Verify that the local cover image appears in the shelf browser. Sponsored-by: CCSR Signed-off-by: Melia Meggs Signed-off-by: Chris Cormack Signed-off-by: Galen Charlton --- koha-tmpl/opac-tmpl/prog/en/css/opac.css | 4 ++++ koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/koha-tmpl/opac-tmpl/prog/en/css/opac.css b/koha-tmpl/opac-tmpl/prog/en/css/opac.css index 5e5d2f4391..84b8489611 100644 --- a/koha-tmpl/opac-tmpl/prog/en/css/opac.css +++ b/koha-tmpl/opac-tmpl/prog/en/css/opac.css @@ -2960,3 +2960,7 @@ padding: 0.1em 0; .notesrow textarea { width: 100%; } + +.thumbnail-shelfbrowser span { + margin: 0px auto; +} diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt index 37f5f5b81f..85c7aeea95 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt @@ -1578,6 +1578,9 @@ YAHOO.util.Event.onContentReady("furtherm", function () { [% FOREACH PREVIOUS_SHELF_BROWS IN PREVIOUS_SHELF_BROWSE %] + [% IF ( OPACLocalCoverImages ) %] +
+ [% END %] [% IF ( OPACAmazonCoverImages ) %] [% IF ( PREVIOUS_SHELF_BROWS.browser_normalized_isbn ) %] @@ -1619,6 +1622,9 @@ YAHOO.util.Event.onContentReady("furtherm", function () { [% FOREACH NEXT_SHELF_BROWS IN NEXT_SHELF_BROWSE %]
+ [% IF ( OPACLocalCoverImages ) %] +
+ [% END %] [% IF ( OPACAmazonCoverImages ) %] [% IF ( NEXT_SHELF_BROWS.browser_normalized_isbn ) %] -- 2.39.5