View | Details | Raw Unified | Return to bug 19044
Collapse All | Expand All

(-)a/catalogue/detail.pl (+8 lines)
Lines 447-452 if ( C4::Context->preference("LocalCoverImages") == 1 ) { Link Here
447
    $template->{VARS}->{localimages} = \@images;
447
    $template->{VARS}->{localimages} = \@images;
448
}
448
}
449
449
450
# BDS Cover images
451
if( C4::Context->preference('BDSStaffEnable') == 1)
452
{
453
$template->param(DBMCode =>
454
C4::Context->preference('DBMCode') );
455
}
456
457
450
# HTML5 Media
458
# HTML5 Media
451
if ( (C4::Context->preference("HTML5MediaEnabled") eq 'both') or (C4::Context->preference("HTML5MediaEnabled") eq 'staff') ) {
459
if ( (C4::Context->preference("HTML5MediaEnabled") eq 'both') or (C4::Context->preference("HTML5MediaEnabled") eq 'staff') ) {
452
    $template->param( C4::HTML5Media->gethtml5media($record));
460
    $template->param( C4::HTML5Media->gethtml5media($record));
(-)a/catalogue/search.pl (+8 lines)
Lines 512-517 for my $this_cgi ( split('&',$limit_cgi) ) { Link Here
512
$template->param ( LIMIT_INPUTS => \@limit_inputs );
512
$template->param ( LIMIT_INPUTS => \@limit_inputs );
513
513
514
## II. DO THE SEARCH AND GET THE RESULTS
514
## II. DO THE SEARCH AND GET THE RESULTS
515
516
# BDS Cover images
517
if( C4::Context->preference('BDSStaffEnable') == 1)
518
{
519
$template->param(DBMCode =>
520
C4::Context->preference('DBMCode') );
521
}
522
515
my $total; # the total results for the whole set
523
my $total; # the total results for the whole set
516
my $facets; # this object stores the faceted results that display on the left-hand of the results page
524
my $facets; # this object stores the faceted results that display on the left-hand of the results page
517
my $results_hashref;
525
my $results_hashref;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-4 / +14 lines)
Lines 229-235 function verify_images() { Link Here
229
229
230
    });
230
    });
231
231
232
     [% IF ( AmazonCoverImages || LocalCoverImages ) %]$(window).load(function() {
232
     [% IF ( AmazonCoverImages || LocalCoverImages || BDSStaffEnable ) %]$(window).load(function() {
233
        verify_images();
233
        verify_images();
234
     });[% END %]
234
     });[% END %]
235
//]]>
235
//]]>
Lines 372-378 function verify_images() { Link Here
372
        <span class="Z3988" title="[% ocoins %]"></span>
372
        <span class="Z3988" title="[% ocoins %]"></span>
373
    [% END %]
373
    [% END %]
374
374
375
    [% IF ( AmazonCoverImages  || LocalCoverImages ) %]
375
    [% IF ( AmazonCoverImages  || LocalCoverImages || BDSStaffEnable) %]
376
        [% IF ( XSLTDetailsDisplay ) %]
376
        [% IF ( XSLTDetailsDisplay ) %]
377
            <div class="yui-gc">
377
            <div class="yui-gc">
378
            <div id="catalogue_detail_biblio" class="yui-u first">
378
            <div id="catalogue_detail_biblio" class="yui-u first">
Lines 433-443 function verify_images() { Link Here
433
            </span>
433
            </span>
434
        [% END %]
434
        [% END %]
435
435
436
        [% IF ( AmazonCoverImages  || LocalCoverImages ) %]
436
        [% IF ( AmazonCoverImages  || LocalCoverImages || BDSStaffEnable) %]
437
        </div><div class="yui-u" id="bookcoverimg">
437
        </div><div class="yui-u" id="bookcoverimg">
438
        [% IF ( LocalCoverImages ) %]
438
        [% IF ( LocalCoverImages ) %]
439
            <div title="[% biblionumber |url %]" class="[% biblionumber %]" id="local-thumbnail-preview"></div>
439
            <div title="[% biblionumber |url %]" class="[% biblionumber %]" id="local-thumbnail-preview"></div>
440
        [% END %]
440
        [% END %]
441
        [% IF ( BDSStaffEnable ) %]
442
        <span class="bds_resultscovers"><a href="http://www.bibdsl.co.uk/xmla/image-service.asp?ISBN=[% normalized_isbn %]&SIZE=l&DBM=[% DBMCode %]" />
443
        <img src="http://www.bibdsl.co.uk/xmla/image-service.asp?ISBN=[% normalized_isbn %]&SIZE=s&DBM=[% DBMCode %]" />
444
        </a></span>
445
        [% END %]
441
        [% IF ( AmazonCoverImages ) %]
446
        [% IF ( AmazonCoverImages ) %]
442
            <div id="amazon-bookcoverimg">
447
            <div id="amazon-bookcoverimg">
443
            <a href="http://www.amazon[% AmazonTld %]/gp/reader/[% normalized_isbn %][% AmazonAssocTag %]#reader-link">
448
            <a href="http://www.amazon[% AmazonTld %]/gp/reader/[% normalized_isbn %][% AmazonAssocTag %]#reader-link">
Lines 507-517 function verify_images() { Link Here
507
        </ul>
512
        </ul>
508
        </div>
513
        </div>
509
       
514
       
510
    [% IF ( AmazonCoverImages  || LocalCoverImages ) %]
515
    [% IF ( AmazonCoverImages  || LocalCoverImages || BDSStaffEnable ) %]
511
        <div class="yui-u" id="bookcoverimg">
516
        <div class="yui-u" id="bookcoverimg">
512
        [% IF ( LocalCoverImages ) %]
517
        [% IF ( LocalCoverImages ) %]
513
            <div title="[% biblionumber |url %]" class="[% biblionumber %]" id="local-thumbnail-preview"></div>
518
            <div title="[% biblionumber |url %]" class="[% biblionumber %]" id="local-thumbnail-preview"></div>
514
        [% END %]
519
        [% END %]
520
         [% IF ( BDSStaffEnable ) %]
521
        <span class="bds_coverimage"><a href="http://www.bibdsl.co.uk/xmla/image-service.asp?ISBN=[% normalized_isbn %]&SIZE=l&DBM=[% DBMCode %]" />
522
        <img src="http://www.bibdsl.co.uk/xmla/image-service.asp?ISBN=[% normalized_isbn %]&SIZE=s&DBM=[% DBMCode %]" />
523
        </a></span>
524
        [% END %]
515
        [% IF ( AmazonCoverImages ) %]
525
        [% IF ( AmazonCoverImages ) %]
516
            <div id="amazon-bookcoverimg">
526
            <div id="amazon-bookcoverimg">
517
            <a href="http://www.amazon[% AmazonTld %]/gp/reader/[% normalized_isbn %][% AmazonAssocTag %]#reader-link">
527
            <a href="http://www.amazon[% AmazonTld %]/gp/reader/[% normalized_isbn %][% AmazonAssocTag %]#reader-link">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt (-3 / +7 lines)
Lines 498-504 var holdForPatron = function () { Link Here
498
                    <!-- TABLE RESULTS START -->
498
                    <!-- TABLE RESULTS START -->
499
                <table>
499
                <table>
500
                    <tr>
500
                    <tr>
501
                        [% IF ( AmazonCoverImages || LocalCoverImages ) %]<th>&nbsp;</th>[% END %]
501
                        [% IF ( AmazonCoverImages || LocalCoverImages || BDSStaffEnable ) %]<th>&nbsp;</th>[% END %]
502
                        <th colspan="2">Results</th>
502
                        <th colspan="2">Results</th>
503
                        <th>Location</th>
503
                        <th>Location</th>
504
                    </tr>
504
                    </tr>
Lines 506-518 var holdForPatron = function () { Link Here
506
                        [% SET MaxSearchResultsItemsPerRecordStatusCheck = Koha.Preference('MaxSearchResultsItemsPerRecordStatusCheck') %]
506
                        [% SET MaxSearchResultsItemsPerRecordStatusCheck = Koha.Preference('MaxSearchResultsItemsPerRecordStatusCheck') %]
507
                        [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
507
                        [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
508
                            <tr>
508
                            <tr>
509
                            [% IF ( AmazonCoverImages || LocalCoverImages ) %]
509
                            [% IF ( AmazonCoverImages || LocalCoverImages || BDSStaffEnable ) %]
510
                                <td>
510
                                <td>
511
                                    [% IF ( LocalCoverImages) %]
511
                                    [% IF ( LocalCoverImages) %]
512
                                        <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage %]?biblionumber=[% SEARCH_RESULT.biblionumber |url %]">
512
                                        <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage %]?biblionumber=[% SEARCH_RESULT.biblionumber |url %]">
513
                                        <span title="[% SEARCH_RESULT.biblionumber |url %]" class="[% SEARCH_RESULT.biblionumber %]" id="local-thumbnail[% loop.count %]"></span>
513
                                        <span title="[% SEARCH_RESULT.biblionumber |url %]" class="[% SEARCH_RESULT.biblionumber %]" id="local-thumbnail[% loop.count %]"></span>
514
                                        </a>
514
                                        </a>
515
                                    [% END %]
515
                                    [% END %]
516
                                    [% IF ( BDSStaffEnable ) %]
517
         <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage %]?biblionumber=[% SEARCH_RESULT.biblionumber |url %]">
518
        <img src="http://www.bibdsl.co.uk/xmla/image-service.asp?ISBN=[% SEARCH_RESULT.normalized_isbn %]&SIZE=s&DBM=[% DBMCode %]" />
519
        </a></span>
520
        [% END %]
516
                                    [% IF ( AmazonCoverImages ) %]
521
                                    [% IF ( AmazonCoverImages ) %]
517
                                        [% IF ( SEARCH_RESULT.normalized_isbn ) %]
522
                                        [% IF ( SEARCH_RESULT.normalized_isbn ) %]
518
                                            <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage %]?biblionumber=[% SEARCH_RESULT.biblionumber |url %]">
523
                                            <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage %]?biblionumber=[% SEARCH_RESULT.biblionumber |url %]">
519
- 

Return to bug 19044