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

(-)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 107-113 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
107
('CircControl','ItemHomeLibrary','PickupLibrary|PatronLibrary|ItemHomeLibrary','Specify the agency that controls the circulation and fines policy','Choice'),
107
('CircControl','ItemHomeLibrary','PickupLibrary|PatronLibrary|ItemHomeLibrary','Specify the agency that controls the circulation and fines policy','Choice'),
108
('CircSidebar','0',NULL,'Activate or deactivate the navigation sidebar on all Circulation pages','YesNo'),
108
('CircSidebar','0',NULL,'Activate or deactivate the navigation sidebar on all Circulation pages','YesNo'),
109
('ClaimsBccCopy','0','','Bcc the ClaimAcquisition and ClaimIssues alerts','YesNo'),
109
('ClaimsBccCopy','0','','Bcc the ClaimAcquisition and ClaimIssues alerts','YesNo'),
110
('Coce','0', NULL, 'If on, enables cover retrieval from the configured Coce server', 'YesNo'),
110
('CoceIntranet','0', NULL, 'If on, enables cover retrieval from the configured Coce server in the staff intranet', 'YesNo'),
111
('CoceOPAC','0', NULL, 'If on, enables cover retrieval from the configured Coce server in the OPAC', 'YesNo'),
111
('CoceHost', '', NULL, 'Coce server URL', 'Free'),
112
('CoceHost', '', NULL, 'Coce server URL', 'Free'),
112
('CoceProviders', '', 'aws,gb,ol', 'Coce providers', 'multiple'),
113
('CoceProviders', '', 'aws,gb,ol', 'Coce providers', 'multiple'),
113
('COinSinOPACResults','1','','If ON, use COinS in OPAC search results page.  NOTE: this can slow down search response time significantly','YesNo'),
114
('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 / +33 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 850-855 Link Here
850
    [% INCLUDE 'catalog-strings.inc' %]
870
    [% INCLUDE 'catalog-strings.inc' %]
851
    <script type="text/javascript" src="[% interface %]/[% theme %]/js/catalog.js"></script>
871
    <script type="text/javascript" src="[% interface %]/[% theme %]/js/catalog.js"></script>
852
    [% INCLUDE 'greybox.inc' %]
872
    [% INCLUDE 'greybox.inc' %]
873
    <script type="text/javascript" src="[% interface %]/prog/js/coce.js"></script>
853
    <script type="text/javascript">
874
    <script type="text/javascript">
854
        // http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
875
        // http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
855
        function verify_images() {
876
        function verify_images() {
Lines 1005-1010 Link Here
1005
            [% IF LocalCoverImages %]
1026
            [% IF LocalCoverImages %]
1006
                KOHA.LocalCover.GetCoverFromBibnumber(true);
1027
                KOHA.LocalCover.GetCoverFromBibnumber(true);
1007
            [% END %]
1028
            [% END %]
1029
            [%
1030
                CoceIntranet    = Koha.Preference('CoceIntranet')
1031
                CoceProviders   = Koha.Preference('CoceProviders')
1032
                CoceHost        = Koha.Preference('CoceHost')
1033
            %]
1034
            [% IF ( CoceIntranet && CoceProviders ) %]
1035
                KOHA.coce.getURL('[% CoceHost %]', '[% CoceProviders %]');
1036
            [% END %]
1037
1008
            $("body").on("click",".previewMARC", function(e){
1038
            $("body").on("click",".previewMARC", function(e){
1009
                e.preventDefault();
1039
                e.preventDefault();
1010
                var page = $(this).attr("href");
1040
                var page = $(this).attr("href");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt (-2 / +23 lines)
Lines 348-354 Link Here
348
                    <!-- TABLE RESULTS START -->
348
                    <!-- TABLE RESULTS START -->
349
                <table>
349
                <table>
350
                    <tr>
350
                    <tr>
351
                        [% IF ( AmazonCoverImages || LocalCoverImages ) %]<th>&nbsp;</th>[% END %]
351
                        [% IF ( AmazonCoverImages || LocalCoverImages || CoceIntranet ) %]<th>&nbsp;</th>[% END %]
352
                        <th colspan="2">Results</th>
352
                        <th colspan="2">Results</th>
353
                        <th>Location</th>
353
                        <th>Location</th>
354
                    </tr>
354
                    </tr>
Lines 356-362 Link Here
356
                        [% SET MaxSearchResultsItemsPerRecordStatusCheck = Koha.Preference('MaxSearchResultsItemsPerRecordStatusCheck') %]
356
                        [% SET MaxSearchResultsItemsPerRecordStatusCheck = Koha.Preference('MaxSearchResultsItemsPerRecordStatusCheck') %]
357
                        [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
357
                        [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
358
                            <tr>
358
                            <tr>
359
                            [% IF ( AmazonCoverImages || LocalCoverImages ) %]
359
                            [% IF ( AmazonCoverImages || LocalCoverImages || CoceIntranet ) %]
360
                                <td>
360
                                <td>
361
                                    [% IF ( LocalCoverImages) %]
361
                                    [% IF ( LocalCoverImages) %]
362
                                        <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage %]?biblionumber=[% SEARCH_RESULT.biblionumber |url %]">
362
                                        <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage %]?biblionumber=[% SEARCH_RESULT.biblionumber |url %]">
Lines 373-378 Link Here
373
                                        [% END %]
373
                                        [% END %]
374
                                        </a>
374
                                        </a>
375
                                    [% END %]
375
                                    [% END %]
376
                                    [% IF ( CoceIntranet && CoceProviders ) %]
377
                                      [% coce_id = SEARCH_RESULT.normalized_ean || SEARCH_RESULT.normalized_isbn %]
378
                                        <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage %]?biblionumber=[% SEARCH_RESULT.biblionumber |url %]">
379
                                      [% IF ( coce_id ) %]
380
                                        <span style="block" title="[% SEARCH_RESULT.biblionumber |url %]" class="[% coce_id %]" id="coce-thumbnail[% loop.count %]"></span>
381
                                      [% ELSE %]
382
                                        <span class="no-image">No cover image available</span>
383
                                      [% END %]
384
                                        </a>
385
                                    [% END %]
386
376
                                </td>
387
                                </td>
377
                            [% END %]
388
                            [% END %]
378
                            <td>
389
                            <td>
Lines 621-626 Link Here
621
    [% INCLUDE 'browser-strings.inc' %]
632
    [% INCLUDE 'browser-strings.inc' %]
622
    <script type="text/javascript" src="[% interface %]/js/browser.js"></script>
633
    <script type="text/javascript" src="[% interface %]/js/browser.js"></script>
623
    <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.fixFloat.js"></script>
634
    <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.fixFloat.js"></script>
635
    <script type="text/javascript" src="[% interface %]/prog/js/coce.js"></script>
624
    <script type="text/javascript">
636
    <script type="text/javascript">
625
        var MSG_NO_ITEM_SELECTED = _("Nothing is selected.");
637
        var MSG_NO_ITEM_SELECTED = _("Nothing is selected.");
626
        var MSG_NON_RESERVES_SELECTED = _("One or more selected items cannot be placed on hold.");
638
        var MSG_NON_RESERVES_SELECTED = _("One or more selected items cannot be placed on hold.");
Lines 743-748 Link Here
743
                KOHA.LocalCover.LoadResultsCovers();
755
                KOHA.LocalCover.LoadResultsCovers();
744
            [% END %]
756
            [% END %]
745
757
758
            [%
759
                CoceIntranet    = Koha.Preference('CoceIntranet')
760
                CoceProviders   = Koha.Preference('CoceProviders')
761
                CoceHost        = Koha.Preference('CoceHost')
762
            %]
763
            [% IF ( CoceIntranet && CoceProviders ) %]
764
                KOHA.coce.getURL('[% CoceHost %]', '[% CoceProviders %]');
765
            [% END %]
766
746
            $("#select_all").on("click",function(e){
767
            $("#select_all").on("click",function(e){
747
                e.preventDefault();
768
                e.preventDefault();
748
                selectAll();
769
                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 188-194 $.widget.bridge('uitooltip', $.ui.tooltip); Link Here
188
        //]]>
188
        //]]>
189
    </script>
189
    </script>
190
[% END %]
190
[% END %]
191
[% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
191
[% IF ( Koha.Preference('CoceOPAC') && Koha.Preference('CoceProviders') ) %]
192
    <script type="text/javascript" src="[% interface %]/[% theme %]/js/coce.js"></script>
192
    <script type="text/javascript" src="[% interface %]/[% theme %]/js/coce.js"></script>
193
    <script type="text/javascript">
193
    <script type="text/javascript">
194
        //<![CDATA[
194
        //<![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 84-90 Link Here
84
                    [% IF ( GoogleJackets ) %]
84
                    [% IF ( GoogleJackets ) %]
85
                        <div title="[% biblio.biblionumber %]" class="[% normalized_isbn %]" id="gbs-thumbnail-preview"></div>
85
                        <div title="[% biblio.biblionumber %]" class="[% normalized_isbn %]" id="gbs-thumbnail-preview"></div>
86
                    [% END %]
86
                    [% END %]
87
                    [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
87
                    [% IF ( Koha.Preference('CoceOPAC') && Koha.Preference('CoceProviders') ) %]
88
                      [% coce_id = normalized_ean || normalized_isbn %]
88
                      [% coce_id = normalized_ean || normalized_isbn %]
89
                      <div style="block" title="[% biblio.biblionumber %]" class="[% coce_id %]" id="coce-thumbnail-preview"></div>
89
                      <div style="block" title="[% biblio.biblionumber %]" class="[% coce_id %]" id="coce-thumbnail-preview"></div>
90
                    [% END %]
90
                    [% END %]
Lines 1531-1537 Link Here
1531
    [% IF ( GoogleJackets ) %]
1531
    [% IF ( GoogleJackets ) %]
1532
        KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1532
        KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1533
    [% END %]
1533
    [% END %]
1534
    [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1534
    [% IF ( Koha.Preference('CoceOPAC') && Koha.Preference('CoceProviders') ) %]
1535
        KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]',[% covernewwindow %]);
1535
        KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]',[% covernewwindow %]);
1536
    [% END %]
1536
    [% END %]
1537
1537
Lines 1604-1610 Link Here
1604
                    [% IF ( GoogleJackets ) %]
1604
                    [% IF ( GoogleJackets ) %]
1605
                      KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1605
                      KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1606
                    [% END %]
1606
                    [% END %]
1607
                    [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1607
                    [% IF ( Koha.Preference('CoceOPAC') && Koha.Preference('CoceProviders') ) %]
1608
                      KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]',[% covernewwindow %]);
1608
                      KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]',[% covernewwindow %]);
1609
                    [% END %]
1609
                    [% END %]
1610
                    [% IF OpenLibraryCovers %]
1610
                    [% IF OpenLibraryCovers %]
Lines 1630-1636 Link Here
1630
                    [% IF ( GoogleJackets ) %]
1630
                    [% IF ( GoogleJackets ) %]
1631
                      KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1631
                      KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1632
                    [% END %]
1632
                    [% END %]
1633
                    [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1633
                    [% IF ( Koha.Preference('CoceOPAC') && Koha.Preference('CoceProviders') ) %]
1634
                      KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]',[% covernewwindow %]);
1634
                      KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]',[% covernewwindow %]);
1635
                    [% END %]
1635
                    [% END %]
1636
                    [% IF OpenLibraryCovers %]
1636
                    [% 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