Bugzilla – Attachment 65520 Details for
Bug 19044
Add BDS integration
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Add BDS code to OPAC
Add-BDS-code-to-OPAC.patch (text/plain), 4.21 KB, created by
David Roberts
on 2017-08-04 23:15:37 UTC
(
hide
)
Description:
Add BDS code to OPAC
Filename:
MIME Type:
Creator:
David Roberts
Created:
2017-08-04 23:15:37 UTC
Size:
4.21 KB
patch
obsolete
>From 0b3ac6da64dd10bd33e7775ece924c9e894aef63 Mon Sep 17 00:00:00 2001 >From: David Roberts <david.roberts@ptfs-europe.com> >Date: Sun, 30 Jul 2017 13:44:17 +0100 >Subject: [PATCH] Add BDS code to OPAC > >https://bugs.koha-community.org/show_bug.cgi?id=19044 >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt | 5 +++++ > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt | 4 ++++ > opac/opac-detail.pl | 7 +++++++ > opac/opac-search.pl | 6 ++++++ > 4 files changed, 22 insertions(+) > >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 d95dc8c..df1e6ce 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >@@ -55,6 +55,11 @@ > <div id="catalogue_detail_biblio" class="maincontent"> > > <div id="bookcover"> >+ [% IF ( BDSOpacEnable ) %] >+ <a href="http://www.bibdsl.co.uk/xmla/image-service.asp?ISBN=[% normalized_isbn %]&SIZE=l&DBM=[% DBMCode %]" /> >+ <img src="http://www.bibdsl.co.uk/xmla/image-service.asp?ISBN=[% normalized_isbn %]&SIZE=s&DBM=[% DBMCode %]" /> >+ </a> >+ [% END %] > [% IF ( OPACLocalCoverImages ) %] > <div title="[% biblionumber |url %]" class="[% biblionumber %]" id="local-thumbnail-preview"></div> > [% END %] >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 528ace5..353ba9b 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt >@@ -227,6 +227,10 @@ > [% IF ( OPACLocalCoverImages ) %] > <span title="[% SEARCH_RESULT.biblionumber |url %]" class="[% SEARCH_RESULT.biblionumber %]" id="local-thumbnail[% loop.count %]"></span> > [% END %] >+ [% IF ( BDSOpacEnable ) %] >+ <span title="[% SEARCH_RESULT.biblionumber |url %]" class="[% SEARCH_RESULT.biblionumber %]" id="bds-thumbnail[% loop.count %]"></span> >+ <img src="http://www.bibdsl.co.uk/xmla/image-service.asp?ISBN=[% SEARCH_RESULT.normalized_isbn %]&SIZE=s&DBM=[% (DBMCode) %]" /> >+ [% END %] > [% IF ( OPACAmazonCoverImages ) %] > [% IF ( SEARCH_RESULT.normalized_isbn ) %] > <span title="[% SEARCH_RESULT.biblionumber %]" id="amazon-thumbnail[% loop.count %]"><img src="https://images-na.ssl-images-amazon.com/images/P/[% SEARCH_RESULT.normalized_isbn %].01.TZZZZZZZ.jpg" alt="" class="item-thumbnail" /></span> >diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl >index ae89f82..6b502a8 100755 >--- a/opac/opac-detail.pl >+++ b/opac/opac-detail.pl >@@ -1021,6 +1021,13 @@ $template->param(NovelistSelectPassword => C4::Context->preference('NovelistSele > $template->param(NovelistSelectView => C4::Context->preference('NovelistSelectView') ); > } > >+# BDS Cover images >+if( C4::Context->preference('BDSOpacEnable') ) >+{ >+$template->param(DBMCode => >+C4::Context->preference('DBMCode') ); >+} >+ > > # Babelthèque > if ( C4::Context->preference("Babeltheque") ) { >diff --git a/opac/opac-search.pl b/opac/opac-search.pl >index 2272587..fa9dae6 100755 >--- a/opac/opac-search.pl >+++ b/opac/opac-search.pl >@@ -165,6 +165,12 @@ if (C4::Context->preference('BakerTaylorEnabled')) { > ); > } > >+if (C4::Context->preference('BDSOpacEnable')) { >+$template->param(DBMCode => >+C4::Context->preference('DBMCode'), ); >+} >+ >+ > if (C4::Context->preference('TagsEnabled')) { > $template->param(TagsEnabled => 1); > foreach (qw(TagsShowOnList TagsInputOnList)) { >-- >2.1.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 19044
:
65519
| 65520 |
65521