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 <melia@bywatersolutions.com> Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz> Signed-off-by: Galen Charlton <gmc@esilibrary.com>
This commit is contained in:
parent
73535cb112
commit
bebff403f2
2 changed files with 10 additions and 0 deletions
|
@ -2960,3 +2960,7 @@ padding: 0.1em 0;
|
|||
.notesrow textarea {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.thumbnail-shelfbrowser span {
|
||||
margin: 0px auto;
|
||||
}
|
||||
|
|
|
@ -1578,6 +1578,9 @@ YAHOO.util.Event.onContentReady("furtherm", function () {
|
|||
[% FOREACH PREVIOUS_SHELF_BROWS IN PREVIOUS_SHELF_BROWSE %]
|
||||
<td>
|
||||
<a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% PREVIOUS_SHELF_BROWS.biblionumber %]&shelfbrowse_itemnumber=[% PREVIOUS_SHELF_BROWS.itemnumber %]#shelfbrowser">
|
||||
[% IF ( OPACLocalCoverImages ) %]
|
||||
<div title="[% PREVIOUS_SHELF_BROWS.biblionumber |url %]" class="[% PREVIOUS_SHELF_BROWS.biblionumber %] thumbnail-shelfbrowser" id="local-thumbnail-shelf-[% PREVIOUS_SHELF_BROWS.biblionumber %]"></div>
|
||||
[% END %]
|
||||
[% IF ( OPACAmazonCoverImages ) %]
|
||||
[% IF ( PREVIOUS_SHELF_BROWS.browser_normalized_isbn ) %]
|
||||
<img border="0" src="http://images.amazon.com/images/P/[% PREVIOUS_SHELF_BROWS.browser_normalized_isbn %].01._AA75_PU_PU-5_.jpg" alt="" />
|
||||
|
@ -1619,6 +1622,9 @@ YAHOO.util.Event.onContentReady("furtherm", function () {
|
|||
[% FOREACH NEXT_SHELF_BROWS IN NEXT_SHELF_BROWSE %]
|
||||
<td>
|
||||
<a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% NEXT_SHELF_BROWS.biblionumber %]&shelfbrowse_itemnumber=[% NEXT_SHELF_BROWS.itemnumber %]#shelfbrowser">
|
||||
[% IF ( OPACLocalCoverImages ) %]
|
||||
<div title="[% NEXT_SHELF_BROWS.biblionumber |url %]" class="[% NEXT_SHELF_BROWS.biblionumber %] thumbnail-shelfbrowser" id="local-thumbnail-shelf-[% NEXT_SHELF_BROWS.biblionumber %]"></div>
|
||||
[% END %]
|
||||
[% IF ( OPACAmazonCoverImages ) %]
|
||||
[% IF ( NEXT_SHELF_BROWS.browser_normalized_isbn ) %]
|
||||
<img border="0" src="http://images.amazon.com/images/P/[% NEXT_SHELF_BROWS.browser_normalized_isbn %].01._AA75_PU_PU-5_.jpg" alt="" />
|
||||
|
|
Loading…
Reference in a new issue