Bugzilla – Attachment 37529 Details for
Bug 12210
Baker & Taylor book jackets not disabled when BakerTaylorBookstoreURL is not populated
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 12210 - Baker & Taylor book jackets not disabled when BakerTaylorBookstoreURL is not populated
Bug-12210---Baker--Taylor-book-jackets-not-disable.patch (text/plain), 5.77 KB, created by
Kyle M Hall (khall)
on 2015-04-06 17:14:51 UTC
(
hide
)
Description:
Bug 12210 - Baker & Taylor book jackets not disabled when BakerTaylorBookstoreURL is not populated
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2015-04-06 17:14:51 UTC
Size:
5.77 KB
patch
obsolete
>From 29c4abb3c3d0e76935dca606323b507d403bff72 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Fri, 3 Apr 2015 08:14:47 -0400 >Subject: [PATCH] Bug 12210 - Baker & Taylor book jackets not disabled when BakerTaylorBookstoreURL is not populated > >The description of the BakerTaylorBookstoreURL syspref says >"Baker and Taylor "My Library Bookstore" links should be accessed at >https:// isbn (this should be filled in with something like >ocls.mylibrarybookstore.com/MLB/actions/searchHandler.do?nextPage=bookDetails&parentNum=10923&key=). >Leave it blank to disable these links." > >Leaving this syspref blank does not disable the links. Instead, they are >populated without the bookstore URL: the cover image for ISBN 1575725738 >will cause koha to make a request to http://1575725738, which will, of >course, time out. > >Leaving BakerTaylorBookstoreURL blank should disable any URL that >depends on this syspref, as stated in the syspref description. > >Test Plan: >1) Apply this patch >2) Enable Baker & Taylor cover images, but *not* BakerTaylorBookstoreURL >3) Perform an OPAC search where you have B&T cover images in the results >4) Note the image links now direct you to the record details >--- > .../opac-tmpl/bootstrap/en/modules/opac-detail.tt | 10 +++++++--- > .../opac-tmpl/bootstrap/en/modules/opac-results.tt | 14 ++++++++++++-- > 2 files changed, 19 insertions(+), 5 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >index ce188f5..7cc929e 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >@@ -87,10 +87,14 @@ > <div title="[% biblionumber |url %]" class="[% normalized_isbn %]" id="openlibrary-thumbnail-preview"></div> > [% END %] > [% IF ( BakerTaylorEnabled && normalized_isbn ) %] >- [% IF ( OPACurlOpenInNewWindow ) %] >- <a href="https://[% BakerTaylorBookstoreURL |html %][% normalized_isbn %]" target="_blank"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% normalized_isbn %]" /></a> >+ [% IF BakerTaylorBookstoreURL %] >+ [% IF ( OPACurlOpenInNewWindow ) %] >+ <a href="https://[% BakerTaylorBookstoreURL |html %][% normalized_isbn %]" target="_blank"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% normalized_isbn %]" /></a> >+ [% ELSE %] >+ <a href="https://[% BakerTaylorBookstoreURL |html %][% normalized_isbn %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% normalized_isbn %]" /></a> >+ [% END %] > [% ELSE %] >- <a href="https://[% BakerTaylorBookstoreURL |html %][% normalized_isbn %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% normalized_isbn %]" /></a> >+ <img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% normalized_isbn %]" /> > [% END %] > [% END %] > </div><!-- / #bookcover --> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt >index 948c069..44a1d5c 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt >@@ -273,11 +273,21 @@ > <span class="no-image">No cover image available</span> > [% END %] > [% END %] >+ >+ [% IF ( BakerTaylorEnabled && !BakerTaylorBookstoreURL ) %] >+ [% IF ( SEARCH_RESULT.normalized_isbn ) %] >+ <img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% SEARCH_RESULT.normalized_isbn %]" /> >+ [% ELSE %] >+ <span class="no-image">No cover image available</span> >+ [% END %] >+ [% END %] > </a> > >- [% IF ( BakerTaylorEnabled ) %] >+ [% IF ( BakerTaylorEnabled && BakerTaylorBookstoreURL ) %] > [% 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> >+ <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 %] >-- >1.7.2.5
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 12210
:
37451
|
37529
|
37530
|
37551