Bugzilla – Attachment 8065 Details for
Bug 7669
Search Results Multiple Cover Image HTML & CSS
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch of my changes to opac_results.tt and opac.css
0002-HTML-CSS-changes-for-opac-results-thumbnails.patch (text/plain), 6.49 KB, created by
Shane Sammons
on 2012-03-07 22:23:20 UTC
(
hide
)
Description:
Patch of my changes to opac_results.tt and opac.css
Filename:
MIME Type:
Creator:
Shane Sammons
Created:
2012-03-07 22:23:20 UTC
Size:
6.49 KB
patch
obsolete
>From 0d84a0ab7d09c75d09388a5aa8906216b1645e27 Mon Sep 17 00:00:00 2001 >From: Shane <shane.sammons@gmail.com> >Date: Wed, 7 Mar 2012 17:21:06 -0500 >Subject: [PATCH 2/2] HTML/CSS changes for opac results thumbnails >Content-Type: text/plain; charset="utf-8" > >--- > koha-tmpl/opac-tmpl/prog/en/css/opac.css | 19 ++++++++- > .../opac-tmpl/prog/en/modules/opac-results.tt | 41 ++++++++++++++------ > 2 files changed, 46 insertions(+), 14 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/prog/en/css/opac.css b/koha-tmpl/opac-tmpl/prog/en/css/opac.css >index f2b1467..0fa5cb2 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/css/opac.css >+++ b/koha-tmpl/opac-tmpl/prog/en/css/opac.css >@@ -2012,7 +2012,7 @@ table#items th { > .results_summary img { > margin : 0 5px; > } >-span.no-image { >+span.no-image{ > background-color : #FFF; > border: 1px solid #979797; > color : #AAA; >@@ -2309,4 +2309,19 @@ a.localimage img { > border : 1px solid #8EB3E7; > margin : 0 .5em; > padding : .3em; >-} >\ No newline at end of file >+} >+ >+.no-image{/*make it like the thumbnail class*/ >+ float : left; >+ margin : 0pt 5px 5px 0pt; >+ background-color : #FFF; >+ border: 1px solid #979797; >+ color : #AAA; >+ display:block; >+ font-size : 86%; >+ font-weight : bold; >+ text-align : center; >+ width : 75px; >+} >+ >+ >diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt >index 22c9272..17d4f11 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt >+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt >@@ -531,18 +531,35 @@ $(document).ready(function(){ > </span> > </td><td> > <a class="p1" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]"> >- [% IF ( OPACLocalCoverImages ) %]<span title="[% SEARCH_RESULT.biblionumber |url %]" class="[% SEARCH_RESULT.biblionumber %]" id="local-thumbnail[% loop.count %]"></span>[% END %] >- [% IF ( OPACAmazonEnabled ) %][% IF ( OPACAmazonCoverImages ) %][% IF ( SEARCH_RESULT.normalized_isbn ) %]<img src="http://images.amazon.com/images/P/[% SEARCH_RESULT.normalized_isbn %].01.TZZZZZZZ.jpg" alt="" class="thumbnail" />[% ELSE %]<span class="no-image">No cover image available</span>[% END %][% END %][% END %] >- >- [% IF ( SyndeticsEnabled ) %][% IF ( SyndeticsCoverImages ) %][% IF ( using_https ) %] >- <img src="https://secure.syndetics.com/index.aspx?isbn=[% SEARCH_RESULT.normalized_isbn %]/SC.GIF&client=[% SyndeticsClientCode %]&type=xw10&upc=[% SEARCH_RESULT.normalized_upc %]&oclc=[% SEARCH_RESULT.normalized_oclc %]" alt="" class="thumbnail" /> >- [% ELSE %] >- <img src="http://www.syndetics.com/index.aspx?isbn=[% SEARCH_RESULT.normalized_isbn %]/SC.GIF&client=[% SyndeticsClientCode %]&type=xw10&upc=[% SEARCH_RESULT.normalized_upc %]&oclc=[% SEARCH_RESULT.normalized_oclc %]" alt="" class="thumbnail" />[% END %][% END %][% END %] >- >- [% IF ( GoogleJackets ) %][% IF ( SEARCH_RESULT.normalized_isbn ) %]<div style="block" title="[% SEARCH_RESULT.biblionumber |url %]" class="[% SEARCH_RESULT.normalized_isbn %]" id="gbs-thumbnail[% loop.count %]"></div>[% ELSE %]<span class="no-image">No cover image available</span>[% END %][% END %] >- [% IF OpenLibraryCovers %][% IF SEARCH_RESULT.normalized_isbn %]<div style="block" title="[% SEARCH_RESULT.biblionumber %]" class="[% SEARCH_RESULT.normalized_isbn %]" id="openlibrary-thumbnail[% loop.count %]"></div>[% ELSE %]<span class="no-image">No cover image available</span>[% END %][% END %] >- </a> >- [% IF ( BakerTaylorEnabled ) %][% IF ( SEARCH_RESULT.normalized_isbn ) %]<a href="https://[% BakerTaylorBookstoreURL |html %][% SEARCH_RESULT.normalized_isbn %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% SEARCH_RESULT.normalized_isbn %]" /></a>[% ELSE %]<span class="no-image">No cover image available</span>[% END %][% END %] >+ [% IF ( OPACLocalCoverImages ) %] >+ <div title="[% SEARCH_RESULT.biblionumber |url %]" class="thumbnail opac_thumb [% SEARCH_RESULT.biblionumber %]" id="local-thumbnail[% loop.count %]"></div> >+ [% END %] >+ [% IF ( OPACAmazonEnabled ) %][% IF ( OPACAmazonCoverImages ) %][% IF ( SEARCH_RESULT.normalized_isbn ) %] >+ <div class="thumbnail amazon_thumb"><img src="http://images.amazon.com/images/P/[% SEARCH_RESULT.normalized_isbn %].01.TZZZZZZZ.jpg" alt="" class="thumbnail_image" /></div> >+ [% ELSE %] >+ <div class="no-image amazon_no">No cover image available</div> >+ [% END %][% END %][% END %] >+ [% IF ( SyndeticsEnabled ) %][% IF ( SyndeticsCoverImages ) %][% IF ( using_https ) %] >+ <div class="thumbnail syndetics_thumb"><img src="https://secure.syndetics.com/index.aspx?isbn=[% SEARCH_RESULT.normalized_isbn %]/SC.GIF&client=[% SyndeticsClientCode %]&type=xw10&upc=[% SEARCH_RESULT.normalized_upc %]&oclc=[% SEARCH_RESULT.normalized_oclc %]" alt="" class="thumbnail_image" /> >+ [% ELSE %] >+ <div class="thumbnail syndetics_thumb"><img src="http://www.syndetics.com/index.aspx?isbn=[% SEARCH_RESULT.normalized_isbn %]/SC.GIF&client=[% SyndeticsClientCode %]&type=xw10&upc=[% SEARCH_RESULT.normalized_upc %]&oclc=[% SEARCH_RESULT.normalized_oclc %]" alt="" class="thumbnail_image" /> >+ [% END %][% END %][% END %] >+ [% IF ( GoogleJackets ) %][% IF ( SEARCH_RESULT.normalized_isbn ) %] >+ <div title="[% SEARCH_RESULT.biblionumber |url %]" class="thumbnail google_thumb [% SEARCH_RESULT.normalized_isbn %]" id="gbs-thumbnail[% loop.count %]"></div> >+ [% ELSE %] >+ <div class="no-image google_no">No cover image available</div> >+ [% END %][% END %] >+ [% IF OpenLibraryCovers %][% IF SEARCH_RESULT.normalized_isbn %] >+ <div title="[% SEARCH_RESULT.biblionumber %]" class="thumbnail openlibrary_thumb [% SEARCH_RESULT.normalized_isbn %]" id="openlibrary-thumbnail[% loop.count %]"></div> >+ [% ELSE %] >+ <div class="no-image openlibrary_no">No cover image available</div> >+ [% END %][% END %] >+ </a> >+ [% IF ( BakerTaylorEnabled ) %][% IF ( SEARCH_RESULT.normalized_isbn ) %] >+ <div class="thumbnail bakertaylor_thumb"><a href="https://[% BakerTaylorBookstoreURL |html %][% SEARCH_RESULT.normalized_isbn %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% SEARCH_RESULT.normalized_isbn %]" /></a></div> >+ [% ELSE %] >+ <div class="no-image bakertaylor_no">No cover image available</div> >+ [% END %][% END %] > </td> > </tr> > [% END %] >-- >1.7.0.4 >
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 7669
:
8065
|
8152
|
14353