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

(-)a/C4/Auth.pm (-1 / +5 lines)
Lines 501-507 sub get_template_and_user { Link Here
501
            EnableBorrowerFiles                                                        => C4::Context->preference('EnableBorrowerFiles'),
501
            EnableBorrowerFiles                                                        => C4::Context->preference('EnableBorrowerFiles'),
502
            UseKohaPlugins                                                             => C4::Context->preference('UseKohaPlugins'),
502
            UseKohaPlugins                                                             => C4::Context->preference('UseKohaPlugins'),
503
            UseCourseReserves                                                          => C4::Context->preference("UseCourseReserves"),
503
            UseCourseReserves                                                          => C4::Context->preference("UseCourseReserves"),
504
            useDischarge                                                               => C4::Context->preference('useDischarge')
504
            useDischarge                                                               => C4::Context->preference('useDischarge'),
505
            KOHA_VERSION                                                               => C4::Context->preference('Version'),
506
            CoceIntranet                                                               => C4::Context->preference('CoceIntranet'),
507
            CoceProviders                                                              => C4::Context->preference('CoceProviders'),
508
            CoceHost                                                                   => C4::Context->preference('CoceHost'),
505
        );
509
        );
506
    }
510
    }
507
    else {
511
    else {
(-)a/installer/data/mysql/atomicupdate/bug_18421_add_coce_intranet.perl (+30 lines)
Line 0 Link Here
1
#! /usr/bin/perl
2
3
use strict;
4
use warnings;
5
use C4::Context;
6
use Data::Dumper;
7
my $dbh=C4::Context->dbh;
8
9
#################
10
# Coce intranet #
11
#################
12
13
# validate systempreferences.Coce and save the config for CoceOpac
14
my $select = "SELECT * FROM systempreferences WHERE variable = 'Coce'";
15
my $sth = $dbh->prepare($select);
16
$sth->execute;
17
my $rows = $sth->fetchall_hashref(['variable']);
18
my $current_coce_pref = 0;
19
if ($rows and $rows->{Coce} and $rows->{Coce}->{value}) {
20
    $current_coce_pref = $rows->{Coce}->{value};
21
}
22
23
# add two new systempreferences in order to have distinct behavior between intranet and OPAC
24
$dbh->do("INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES
25
        ('CoceIntranet','0', NULL, 'If on, enables cover retrieval from the configured Coce server in the staff intranet', 'YesNo'),
26
        ('CoceOPAC','$current_coce_pref', NULL, 'If on, enables cover retrieval from the configured Coce server in the OPAC', 'YesNo')
27
        ;") or die "Impossible d\'executer cam5446_ajouter_coce_intranet: erreur lors de l'ajout des nouvelles prefs: ". $dbh->errstr . "\n";
28
$dbh->do("DELETE FROM systempreferences WHERE variable = 'Coce';")
29
    or die "Impossible d\'executer cam5446_ajouter_coce_intranet: erreur lors de la suppression de la préférence 'Coce': ". $dbh->errstr . "\n";
30
print "cam5446: Add Coce image cache to the staff intranet.\n";
(-)a/installer/data/mysql/sysprefs.sql (-1 / +2 lines)
Lines 108-114 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
108
('CircControl','ItemHomeLibrary','PickupLibrary|PatronLibrary|ItemHomeLibrary','Specify the agency that controls the circulation and fines policy','Choice'),
108
('CircControl','ItemHomeLibrary','PickupLibrary|PatronLibrary|ItemHomeLibrary','Specify the agency that controls the circulation and fines policy','Choice'),
109
('CircSidebar','0',NULL,'Activate or deactivate the navigation sidebar on all Circulation pages','YesNo'),
109
('CircSidebar','0',NULL,'Activate or deactivate the navigation sidebar on all Circulation pages','YesNo'),
110
('ClaimsBccCopy','0','','Bcc the ClaimAcquisition and ClaimIssues alerts','YesNo'),
110
('ClaimsBccCopy','0','','Bcc the ClaimAcquisition and ClaimIssues alerts','YesNo'),
111
('Coce','0', NULL, 'If on, enables cover retrieval from the configured Coce server', 'YesNo'),
111
('CoceIntranet','0', NULL, 'If on, enables cover retrieval from the configured Coce server in the staff intranet', 'YesNo'),
112
('CoceOPAC','0', NULL, 'If on, enables cover retrieval from the configured Coce server in the OPAC', 'YesNo'),
112
('CoceHost', '', NULL, 'Coce server URL', 'Free'),
113
('CoceHost', '', NULL, 'Coce server URL', 'Free'),
113
('CoceProviders', '', 'aws,gb,ol', 'Coce providers', 'multiple'),
114
('CoceProviders', '', 'aws,gb,ol', 'Coce providers', 'multiple'),
114
('COinSinOPACResults','1','','If ON, use COinS in OPAC search results page.  NOTE: this can slow down search response time significantly','YesNo'),
115
('COinSinOPACResults','1','','If ON, use COinS in OPAC search results page.  NOTE: this can slow down search response time significantly','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/enhanced_content.pref (-2 / +8 lines)
Lines 374-384 Enhanced Content: Link Here
374
            - with OverDrive.
374
            - with OverDrive.
375
    Coce Cover images cache:
375
    Coce Cover images cache:
376
        -
376
        -
377
            - pref: Coce
377
            - pref: CoceOPAC
378
              choices:
378
              choices:
379
                  yes: Enable
379
                  yes: Enable
380
                  no: "Don't enable"
380
                  no: "Don't enable"
381
            - a Coce image cache service.
381
            - a Coce image cache service in the OPAC.
382
        -
383
            - pref: CoceIntranet
384
              choices:
385
                  yes: Enable
386
                  no: "Don't enable"
387
            - a Coce image cache service in the staff intranet.
382
        -
388
        -
383
            - Coce server URL
389
            - Coce server URL
384
            - pref: CoceHost
390
            - pref: CoceHost
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-3 / +28 lines)
Lines 64-70 Link Here
64
        <span class="Z3988" title="[% ocoins %]"></span>
64
        <span class="Z3988" title="[% ocoins %]"></span>
65
    [% END %]
65
    [% END %]
66
66
67
    [% IF ( AmazonCoverImages  || LocalCoverImages ) %]
67
    [% IF ( AmazonCoverImages  || LocalCoverImages || CoceIntranet ) %]
68
        [% IF ( XSLTDetailsDisplay ) %]
68
        [% IF ( XSLTDetailsDisplay ) %]
69
            <div class="yui-gc">
69
            <div class="yui-gc">
70
            <div id="catalogue_detail_biblio" class="yui-u first">
70
            <div id="catalogue_detail_biblio" class="yui-u first">
Lines 125-131 Link Here
125
            </span>
125
            </span>
126
        [% END %]
126
        [% END %]
127
127
128
        [% IF ( AmazonCoverImages  || LocalCoverImages ) %]
128
        [% IF ( AmazonCoverImages  || LocalCoverImages || CoceIntranet ) %]
129
        </div><div class="yui-u" id="bookcoverimg">
129
        </div><div class="yui-u" id="bookcoverimg">
130
        [% IF ( LocalCoverImages ) %]
130
        [% IF ( LocalCoverImages ) %]
131
            <div title="[% biblionumber |url %]" class="[% biblionumber %]" id="local-thumbnail-preview"></div>
131
            <div title="[% biblionumber |url %]" class="[% biblionumber %]" id="local-thumbnail-preview"></div>
Lines 136-141 Link Here
136
                <img src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="" />
136
                <img src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="" />
137
        </a></div>
137
        </a></div>
138
        [% END %]
138
        [% END %]
139
        [% IF ( CoceIntranet && CoceProviders ) %]
140
          [% coce_id = normalized_ean || normalized_isbn %]
141
            <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage %]?biblionumber=[% biblionumber |url %]">
142
          [% IF ( coce_id ) %]
143
            <span style="block" title="[% biblionumber |url %]" class="[% coce_id %]" id="coce-thumbnail-preview"></span>
144
          [% ELSE %]
145
            <span class="no-image">No cover image available</span>
146
          [% END %]
147
            </a>
148
        [% END %]
139
        [% END %]
149
        [% END %]
140
    [% ELSE %]
150
    [% ELSE %]
141
151
Lines 199-205 Link Here
199
        </ul>
209
        </ul>
200
        </div>
210
        </div>
201
       
211
       
202
    [% IF ( AmazonCoverImages  || LocalCoverImages ) %]
212
    [% IF ( AmazonCoverImages  || LocalCoverImages || CoceIntranet ) %]
203
        <div class="yui-u" id="bookcoverimg">
213
        <div class="yui-u" id="bookcoverimg">
204
        [% IF ( LocalCoverImages ) %]
214
        [% IF ( LocalCoverImages ) %]
205
            <div title="[% biblionumber |url %]" class="[% biblionumber %]" id="local-thumbnail-preview"></div>
215
            <div title="[% biblionumber |url %]" class="[% biblionumber %]" id="local-thumbnail-preview"></div>
Lines 211-216 Link Here
211
            </a>
221
            </a>
212
        </div>
222
        </div>
213
        [% END %]
223
        [% END %]
224
        [% IF ( CoceIntranet && CoceProviders ) %]
225
          [% coce_id = normalized_ean || normalized_isbn %]
226
            <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage %]?biblionumber=[% biblionumber |url %]">
227
          [% IF ( coce_id ) %]
228
            <span style="block" title="[% biblionumber |url %]" class="[% coce_id %]" id="coce-thumbnail-preview"></span>
229
          [% ELSE %]
230
            <span class="no-image">No cover image available</span>
231
          [% END %]
232
            </a>
233
        [% END %]
214
        </div>
234
        </div>
215
    [% END %]
235
    [% END %]
216
        
236
        
Lines 848-853 Link Here
848
    [% INCLUDE 'catalog-strings.inc' %]
868
    [% INCLUDE 'catalog-strings.inc' %]
849
    <script type="text/javascript" src="[% interface %]/[% theme %]/js/catalog_[% KOHA_VERSION %].js"></script>
869
    <script type="text/javascript" src="[% interface %]/[% theme %]/js/catalog_[% KOHA_VERSION %].js"></script>
850
    [% INCLUDE 'greybox.inc' %]
870
    [% INCLUDE 'greybox.inc' %]
871
    <script type="text/javascript" src="[% interface %]/prog/js/coce_[% KOHA_VERSION %].js"></script>
851
    <script type="text/javascript">
872
    <script type="text/javascript">
852
        // http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
873
        // http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
853
        function verify_images() {
874
        function verify_images() {
Lines 1003-1008 Link Here
1003
            [% IF LocalCoverImages %]
1024
            [% IF LocalCoverImages %]
1004
                KOHA.LocalCover.GetCoverFromBibnumber(true);
1025
                KOHA.LocalCover.GetCoverFromBibnumber(true);
1005
            [% END %]
1026
            [% END %]
1027
            [% IF ( CoceIntranet && CoceProviders ) %]
1028
                KOHA.coce.getURL('[% CoceHost %]', '[% CoceProviders %]');
1029
            [% END %]
1030
1006
            $("body").on("click",".previewMARC", function(e){
1031
            $("body").on("click",".previewMARC", function(e){
1007
                e.preventDefault();
1032
                e.preventDefault();
1008
                var page = $(this).attr("href");
1033
                var page = $(this).attr("href");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt (-2 / +18 lines)
Lines 351-357 Link Here
351
                    <!-- TABLE RESULTS START -->
351
                    <!-- TABLE RESULTS START -->
352
                <table>
352
                <table>
353
                    <tr>
353
                    <tr>
354
                        [% IF ( AmazonCoverImages || LocalCoverImages ) %]<th>&nbsp;</th>[% END %]
354
                        [% IF ( AmazonCoverImages || LocalCoverImages || CoceIntranet ) %]<th>&nbsp;</th>[% END %]
355
                        <th colspan="2">Results</th>
355
                        <th colspan="2">Results</th>
356
                        <th>Location</th>
356
                        <th>Location</th>
357
                    </tr>
357
                    </tr>
Lines 359-365 Link Here
359
                        [% SET MaxSearchResultsItemsPerRecordStatusCheck = Koha.Preference('MaxSearchResultsItemsPerRecordStatusCheck') %]
359
                        [% SET MaxSearchResultsItemsPerRecordStatusCheck = Koha.Preference('MaxSearchResultsItemsPerRecordStatusCheck') %]
360
                        [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
360
                        [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
361
                            <tr>
361
                            <tr>
362
                            [% IF ( AmazonCoverImages || LocalCoverImages ) %]
362
                            [% IF ( AmazonCoverImages || LocalCoverImages || CoceIntranet ) %]
363
                                <td>
363
                                <td>
364
                                    [% IF ( LocalCoverImages) %]
364
                                    [% IF ( LocalCoverImages) %]
365
                                        <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage %]?biblionumber=[% SEARCH_RESULT.biblionumber |url %]">
365
                                        <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage %]?biblionumber=[% SEARCH_RESULT.biblionumber |url %]">
Lines 376-381 Link Here
376
                                        [% END %]
376
                                        [% END %]
377
                                        </a>
377
                                        </a>
378
                                    [% END %]
378
                                    [% END %]
379
                                    [% IF ( CoceIntranet && CoceProviders ) %]
380
                                      [% coce_id = SEARCH_RESULT.normalized_ean || SEARCH_RESULT.normalized_isbn %]
381
                                        <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage %]?biblionumber=[% SEARCH_RESULT.biblionumber |url %]">
382
                                      [% IF ( coce_id ) %]
383
                                        <span style="block" title="[% SEARCH_RESULT.biblionumber |url %]" class="[% coce_id %]" id="coce-thumbnail[% loop.count %]"></span>
384
                                      [% ELSE %]
385
                                        <span class="no-image">No cover image available</span>
386
                                      [% END %]
387
                                        </a>
388
                                    [% END %]
389
379
                                </td>
390
                                </td>
380
                            [% END %]
391
                            [% END %]
381
                            <td>
392
                            <td>
Lines 625-630 Link Here
625
    <script type="text/javascript" src="[% interface %]/js/browser_[% KOHA_VERSION %].js"></script>
636
    <script type="text/javascript" src="[% interface %]/js/browser_[% KOHA_VERSION %].js"></script>
626
    <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.fixFloat_[% KOHA_VERSION %].js"></script>
637
    <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.fixFloat_[% KOHA_VERSION %].js"></script>
627
    <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min_[% KOHA_VERSION %].js"></script>
638
    <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min_[% KOHA_VERSION %].js"></script>
639
    <script type="text/javascript" src="[% interface %]/prog/js/coce_[% KOHA_VERSION %].js"></script>
628
    <script type="text/javascript">
640
    <script type="text/javascript">
629
        var MSG_NO_ITEM_SELECTED = _("Nothing is selected.");
641
        var MSG_NO_ITEM_SELECTED = _("Nothing is selected.");
630
        var MSG_NON_RESERVES_SELECTED = _("One or more selected items cannot be placed on hold.");
642
        var MSG_NON_RESERVES_SELECTED = _("One or more selected items cannot be placed on hold.");
Lines 750-755 Link Here
750
                KOHA.LocalCover.LoadResultsCovers();
762
                KOHA.LocalCover.LoadResultsCovers();
751
            [% END %]
763
            [% END %]
752
764
765
            [% IF ( CoceIntranet && CoceProviders ) %]
766
                KOHA.coce.getURL('[% CoceHost %]', '[% CoceProviders %]');
767
            [% END %]
768
753
            $("#select_all").on("click",function(e){
769
            $("#select_all").on("click",function(e){
754
                e.preventDefault();
770
                e.preventDefault();
755
                selectAll();
771
                selectAll();
(-)a/koha-tmpl/intranet-tmpl/prog/js/coce.js (+43 lines)
Line 0 Link Here
1
if (KOHA === undefined || !KOHA) { var KOHA = {}; }
2
3
4
/**
5
 * A namespace for Coce cover images cache
6
 */
7
KOHA.coce = {
8
9
  /**
10
   * Search all:
11
   *    <div title="biblionumber" id="isbn" class="coce-thumbnail"></div>
12
   * or
13
   *    <div title="biblionumber" id="isbn" class="coce-thumbnail-preview"></div>
14
   * and run a search with all collected isbns to coce cover service.
15
   * The result is asynchronously returned, and used to append <img>.
16
   */
17
  getURL: function(host,provider,newWindow) {
18
    var ids = [];
19
    $("[id^=coce-thumbnail]").each(function(i) {
20
        var id = $(this).attr("class"); // id=isbn
21
        if ( id !== '' ) { ids.push(id); }
22
    });
23
    if (ids.length == 0) return;
24
    ids = ids.join(',');
25
    var coceURL = host + '/cover?id=' + ids + '&provider=' + provider;
26
    $.ajax({
27
      url: coceURL,
28
      dataType: 'jsonp',
29
      success: function(urlPerID){
30
        for (var id in urlPerID) {
31
          var url = urlPerID[id];
32
          $("[id^=coce-thumbnail]."+id).each(function() {
33
            var img = document.createElement("img");
34
            img.src = url;
35
            img.title = url; //FIXME: to delete
36
            $(this).html(img);
37
         });
38
        }
39
      }
40
    });
41
  }
42
43
};
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc (-1 / +1 lines)
Lines 193-199 $.widget.bridge('uitooltip', $.ui.tooltip); Link Here
193
        //]]>
193
        //]]>
194
    </script>
194
    </script>
195
[% END %]
195
[% END %]
196
[% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
196
[% IF ( Koha.Preference('CoceOPAC') && Koha.Preference('CoceProviders') ) %]
197
    <script type="text/javascript" src="[% interface %]/[% theme %]/js/coce_[% KOHA_VERSION %].js"></script>
197
    <script type="text/javascript" src="[% interface %]/[% theme %]/js/coce_[% KOHA_VERSION %].js"></script>
198
    <script type="text/javascript">
198
    <script type="text/javascript">
199
        //<![CDATA[
199
        //<![CDATA[
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/shelfbrowser.inc (-1 / +1 lines)
Lines 53-59 Link Here
53
                                        <span class="no-image">No cover image available</span>
53
                                        <span class="no-image">No cover image available</span>
54
                                    [% END %]
54
                                    [% END %]
55
                                [% END %]
55
                                [% END %]
56
                                [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
56
                                [% IF ( Koha.Preference('CoceOPAC') && Koha.Preference('CoceProviders') ) %]
57
                                  [% coce_id = item.browser_normalized_ean || item.browser_normalized_isbn %]
57
                                  [% coce_id = item.browser_normalized_ean || item.browser_normalized_isbn %]
58
                                  <div title="[% item.biblionumber |url %]" class="[% coce_id %]" id="coce-thumbnail-preview-[% coce_id %]"></div>
58
                                  <div title="[% item.biblionumber |url %]" class="[% coce_id %]" id="coce-thumbnail-preview-[% coce_id %]"></div>
59
                                [% END %]
59
                                [% END %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt (-4 / +4 lines)
Lines 85-91 Link Here
85
                    [% IF ( GoogleJackets ) %]
85
                    [% IF ( GoogleJackets ) %]
86
                        <div title="[% biblio.biblionumber %]" class="[% normalized_isbn %]" id="gbs-thumbnail-preview"></div>
86
                        <div title="[% biblio.biblionumber %]" class="[% normalized_isbn %]" id="gbs-thumbnail-preview"></div>
87
                    [% END %]
87
                    [% END %]
88
                    [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
88
                    [% IF ( Koha.Preference('CoceOPAC') && Koha.Preference('CoceProviders') ) %]
89
                      [% coce_id = normalized_ean || normalized_isbn %]
89
                      [% coce_id = normalized_ean || normalized_isbn %]
90
                      <div style="block" title="[% biblio.biblionumber %]" class="[% coce_id %]" id="coce-thumbnail-preview"></div>
90
                      <div style="block" title="[% biblio.biblionumber %]" class="[% coce_id %]" id="coce-thumbnail-preview"></div>
91
                    [% END %]
91
                    [% END %]
Lines 1541-1547 Link Here
1541
    [% IF ( GoogleJackets ) %]
1541
    [% IF ( GoogleJackets ) %]
1542
        KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1542
        KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1543
    [% END %]
1543
    [% END %]
1544
    [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1544
    [% IF ( Koha.Preference('CoceOPAC') && Koha.Preference('CoceProviders') ) %]
1545
        KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]',[% covernewwindow %]);
1545
        KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]',[% covernewwindow %]);
1546
    [% END %]
1546
    [% END %]
1547
1547
Lines 1616-1622 Link Here
1616
                    [% IF ( GoogleJackets ) %]
1616
                    [% IF ( GoogleJackets ) %]
1617
                      KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1617
                      KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1618
                    [% END %]
1618
                    [% END %]
1619
                    [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1619
                    [% IF ( Koha.Preference('CoceOPAC') && Koha.Preference('CoceProviders') ) %]
1620
                      KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]',[% covernewwindow %]);
1620
                      KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]',[% covernewwindow %]);
1621
                    [% END %]
1621
                    [% END %]
1622
                    [% IF OpenLibraryCovers %]
1622
                    [% IF OpenLibraryCovers %]
Lines 1642-1648 Link Here
1642
                    [% IF ( GoogleJackets ) %]
1642
                    [% IF ( GoogleJackets ) %]
1643
                      KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1643
                      KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1644
                    [% END %]
1644
                    [% END %]
1645
                    [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1645
                    [% IF ( Koha.Preference('CoceOPAC') && Koha.Preference('CoceProviders') ) %]
1646
                      KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]',[% covernewwindow %]);
1646
                      KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]',[% covernewwindow %]);
1647
                    [% END %]
1647
                    [% END %]
1648
                    [% IF OpenLibraryCovers %]
1648
                    [% IF OpenLibraryCovers %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt (-3 / +2 lines)
Lines 255-261 Link Here
255
                                                            [% END %]
255
                                                            [% END %]
256
                                                        [% END %]
256
                                                        [% END %]
257
257
258
                                                        [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
258
                                                        [% IF ( Koha.Preference('CoceOPAC') && Koha.Preference('CoceProviders') ) %]
259
                                                          [% coce_id = SEARCH_RESULT.normalized_ean || SEARCH_RESULT.normalized_isbn %]
259
                                                          [% coce_id = SEARCH_RESULT.normalized_ean || SEARCH_RESULT.normalized_isbn %]
260
                                                          [% IF ( coce_id ) %]
260
                                                          [% IF ( coce_id ) %]
261
                                                            <span style="block" title="[% SEARCH_RESULT.biblionumber |url %]" class="[% coce_id %]" id="coce-thumbnail[% loop.count %]"></span>
261
                                                            <span style="block" title="[% SEARCH_RESULT.biblionumber |url %]" class="[% coce_id %]" id="coce-thumbnail[% loop.count %]"></span>
Lines 973-979 $(document).ready(function(){ Link Here
973
[% IF OpenLibraryCovers %]KOHA.OpenLibrary.GetCoverFromIsbn();[% END %]
973
[% IF OpenLibraryCovers %]KOHA.OpenLibrary.GetCoverFromIsbn();[% END %]
974
[% IF OPACLocalCoverImages %]KOHA.LocalCover.GetCoverFromBibnumber(false);[% END %]
974
[% IF OPACLocalCoverImages %]KOHA.LocalCover.GetCoverFromBibnumber(false);[% END %]
975
[% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
975
[% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
976
[% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
976
[% IF ( Koha.Preference('CoceOPAC') && Koha.Preference('CoceProviders') ) %]
977
    KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]');
977
    KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]');
978
[% END %]
978
[% END %]
979
979
980
- 

Return to bug 18421