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

(-)a/installer/data/mysql/atomicupdate/bug_18421_add_coce_intranet.perl (+24 lines)
Line 0 Link Here
1
#! /usr/bin/perl
2
3
use Modern::Perl;
4
use C4::Context;
5
6
my $dbh=C4::Context->dbh;
7
8
################
9
# IntranetCoce #
10
################
11
12
# validate systempreferences.Coce and save the config for OpacCoce
13
my $current_coce_pref = C4::Context->preference('Coce') || 0;
14
15
# add two new systempreferences in order to have distinct behavior between intranet and OPAC
16
$dbh->do("INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES
17
        ('IntranetCoce','0', NULL, 'If on, enables cover retrieval from the configured Coce server in the staff intranet', 'YesNo'),
18
        ('OpacCoce','$current_coce_pref', NULL, 'If on, enables cover retrieval from the configured Coce server in the OPAC', 'YesNo')
19
        ;") or die "Error applying Bug 18421: error inserting new values into database: ". $dbh->errstr . "\n";
20
21
$dbh->do("DELETE IGNORE FROM systempreferences WHERE variable = 'Coce';")
22
    or die "Error applying Bug 18421: error deleting the old syspref 'Coce': ". $dbh->errstr . "\n";
23
24
print "Upgrade to XX.XX done (Bug 18421: Add Coce image cache to the Intranet)\n";
(-)a/installer/data/mysql/sysprefs.sql (-1 / +2 lines)
Lines 109-115 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
109
('CircControl','ItemHomeLibrary','PickupLibrary|PatronLibrary|ItemHomeLibrary','Specify the agency that controls the circulation and fines policy','Choice'),
109
('CircControl','ItemHomeLibrary','PickupLibrary|PatronLibrary|ItemHomeLibrary','Specify the agency that controls the circulation and fines policy','Choice'),
110
('CircSidebar','0',NULL,'Activate or deactivate the navigation sidebar on all Circulation pages','YesNo'),
110
('CircSidebar','0',NULL,'Activate or deactivate the navigation sidebar on all Circulation pages','YesNo'),
111
('ClaimsBccCopy','0','','Bcc the ClaimAcquisition and ClaimIssues alerts','YesNo'),
111
('ClaimsBccCopy','0','','Bcc the ClaimAcquisition and ClaimIssues alerts','YesNo'),
112
('Coce','0', NULL, 'If on, enables cover retrieval from the configured Coce server', 'YesNo'),
113
('CoceHost', '', NULL, 'Coce server URL', 'Free'),
112
('CoceHost', '', NULL, 'Coce server URL', 'Free'),
114
('CoceProviders', '', 'aws,gb,ol', 'Coce providers', 'multiple'),
113
('CoceProviders', '', 'aws,gb,ol', 'Coce providers', 'multiple'),
115
('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'),
Lines 218-223 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
218
('IntranetBiblioDefaultView','normal','normal|marc|isbd|labeled_marc','Choose the default detail view in the staff interface; choose between normal, labeled_marc, marc or isbd','Choice'),
217
('IntranetBiblioDefaultView','normal','normal|marc|isbd|labeled_marc','Choose the default detail view in the staff interface; choose between normal, labeled_marc, marc or isbd','Choice'),
219
('intranetbookbag','1','','If ON, enables display of Cart feature in the intranet','YesNo'),
218
('intranetbookbag','1','','If ON, enables display of Cart feature in the intranet','YesNo'),
220
('IntranetCirculationHomeHTML', '', NULL, 'Show the following HTML in a div on the bottom of the reports home page', 'Free'),
219
('IntranetCirculationHomeHTML', '', NULL, 'Show the following HTML in a div on the bottom of the reports home page', 'Free'),
220
('IntranetCoce','0', NULL, 'If on, enables cover retrieval from the configured Coce server in the staff intranet', 'YesNo'),
221
('intranetcolorstylesheet','','50','Define the color stylesheet to use in the Staff Client','free'),
221
('intranetcolorstylesheet','','50','Define the color stylesheet to use in the Staff Client','free'),
222
('IntranetFavicon','','','Enter a complete URL to an image to replace the default Koha favicon on the Staff client','free'),
222
('IntranetFavicon','','','Enter a complete URL to an image to replace the default Koha favicon on the Staff client','free'),
223
('IntranetmainUserblock','','70|10','Add a block of HTML that will display on the intranet home page','Textarea'),
223
('IntranetmainUserblock','','70|10','Add a block of HTML that will display on the intranet home page','Textarea'),
Lines 325-330 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
325
('OpacBrowseResults','1',NULL,'Disable/enable browsing and paging search results from the OPAC detail page.','YesNo'),
325
('OpacBrowseResults','1',NULL,'Disable/enable browsing and paging search results from the OPAC detail page.','YesNo'),
326
('OpacCloud','0',NULL,'If ON, enables subject cloud on OPAC','YesNo'),
326
('OpacCloud','0',NULL,'If ON, enables subject cloud on OPAC','YesNo'),
327
('OpacAdditionalStylesheet','','','Define an auxiliary stylesheet for OPAC use, to override specified settings from the primary opac.css stylesheet. Enter the filename (if the file is in the server\'s css directory) or a complete URL beginning with http (if the file lives on a remote server).','free'),
327
('OpacAdditionalStylesheet','','','Define an auxiliary stylesheet for OPAC use, to override specified settings from the primary opac.css stylesheet. Enter the filename (if the file is in the server\'s css directory) or a complete URL beginning with http (if the file lives on a remote server).','free'),
328
('OpacCoce','0', NULL, 'If on, enables cover retrieval from the configured Coce server in the OPAC', 'YesNo'),
328
('OpacCustomSearch','','70|10','Replace the search box on the OPAC with the provided HTML','Textarea'),
329
('OpacCustomSearch','','70|10','Replace the search box on the OPAC with the provided HTML','Textarea'),
329
('opaccredits','','70|10','Define HTML Credits at the bottom of the OPAC page','Textarea'),
330
('opaccredits','','70|10','Define HTML Credits at the bottom of the OPAC page','Textarea'),
330
('OPACdefaultSortField','relevance','relevance|popularity|call_number|pubdate|acqdate|title|author','Specify the default field used for sorting','Choice'),
331
('OPACdefaultSortField','relevance','relevance|popularity|call_number|pubdate|acqdate|title|author','Specify the default field used for sorting','Choice'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/enhanced_content.pref (-2 / +8 lines)
Lines 380-390 Enhanced Content: Link Here
380
            - with OverDrive.
380
            - with OverDrive.
381
    Coce Cover images cache:
381
    Coce Cover images cache:
382
        -
382
        -
383
            - pref: Coce
383
            - pref: OpacCoce
384
              choices:
384
              choices:
385
                  yes: Enable
385
                  yes: Enable
386
                  no: "Don't enable"
386
                  no: "Don't enable"
387
            - a Coce image cache service.
387
            - a Coce image cache service in the OPAC.
388
        -
389
            - pref: IntranetCoce
390
              choices:
391
                  yes: Enable
392
                  no: "Don't enable"
393
            - a Coce image cache service in the staff intranet.
388
        -
394
        -
389
            - Coce server URL
395
            - Coce server URL
390
            - pref: CoceHost
396
            - pref: CoceHost
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-3 / +34 lines)
Lines 59-71 Link Here
59
    <div id="yui-main">
59
    <div id="yui-main">
60
    <div class="yui-b">
60
    <div class="yui-b">
61
61
62
[%
63
    IntranetCoce    = Koha.Preference('IntranetCoce')
64
    CoceProviders   = Koha.Preference('CoceProviders')
65
    CoceHost        = Koha.Preference('CoceHost')
66
%]
67
62
[% INCLUDE 'cat-toolbar.inc' %]
68
[% INCLUDE 'cat-toolbar.inc' %]
63
    [% IF ( ocoins ) %]
69
    [% IF ( ocoins ) %]
64
        <!-- COinS / OpenURL -->
70
        <!-- COinS / OpenURL -->
65
        <span class="Z3988" title="[% ocoins %]"></span>
71
        <span class="Z3988" title="[% ocoins %]"></span>
66
    [% END %]
72
    [% END %]
67
73
68
    [% IF ( AmazonCoverImages  || LocalCoverImages ) %]
74
    [% IF ( AmazonCoverImages  || LocalCoverImages || IntranetCoce ) %]
69
        [% IF ( XSLTDetailsDisplay ) %]
75
        [% IF ( XSLTDetailsDisplay ) %]
70
            <div class="yui-gc">
76
            <div class="yui-gc">
71
            <div id="catalogue_detail_biblio" class="yui-u first">
77
            <div id="catalogue_detail_biblio" class="yui-u first">
Lines 126-132 Link Here
126
            </span>
132
            </span>
127
        [% END %]
133
        [% END %]
128
134
129
        [% IF ( AmazonCoverImages  || LocalCoverImages ) %]
135
        [% IF ( AmazonCoverImages  || LocalCoverImages || IntranetCoce ) %]
130
        </div><div class="yui-u" id="bookcoverimg">
136
        </div><div class="yui-u" id="bookcoverimg">
131
        [% IF ( LocalCoverImages ) %]
137
        [% IF ( LocalCoverImages ) %]
132
            <div title="[% biblionumber |url %]" class="[% biblionumber %]" id="local-thumbnail-preview"></div>
138
            <div title="[% biblionumber |url %]" class="[% biblionumber %]" id="local-thumbnail-preview"></div>
Lines 137-142 Link Here
137
                <img src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="" />
143
                <img src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="" />
138
        </a></div>
144
        </a></div>
139
        [% END %]
145
        [% END %]
146
        [% IF ( IntranetCoce && CoceProviders ) %]
147
          [% coce_id = normalized_ean || normalized_isbn %]
148
            <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage %]?biblionumber=[% biblionumber |url %]">
149
          [% IF ( coce_id ) %]
150
            <span style="block" title="[% biblionumber |url %]" class="[% coce_id %]" id="coce-thumbnail-preview"></span>
151
          [% ELSE %]
152
            <span class="no-image">No cover image available</span>
153
          [% END %]
154
            </a>
155
        [% END %]
140
        [% END %]
156
        [% END %]
141
    [% ELSE %]
157
    [% ELSE %]
142
158
Lines 200-206 Link Here
200
        </ul>
216
        </ul>
201
        </div>
217
        </div>
202
       
218
       
203
    [% IF ( AmazonCoverImages  || LocalCoverImages ) %]
219
    [% IF ( AmazonCoverImages  || LocalCoverImages || IntranetCoce ) %]
204
        <div class="yui-u" id="bookcoverimg">
220
        <div class="yui-u" id="bookcoverimg">
205
        [% IF ( LocalCoverImages ) %]
221
        [% IF ( LocalCoverImages ) %]
206
            <div title="[% biblionumber |url %]" class="[% biblionumber %]" id="local-thumbnail-preview"></div>
222
            <div title="[% biblionumber |url %]" class="[% biblionumber %]" id="local-thumbnail-preview"></div>
Lines 212-217 Link Here
212
            </a>
228
            </a>
213
        </div>
229
        </div>
214
        [% END %]
230
        [% END %]
231
        [% IF ( IntranetCoce && CoceProviders ) %]
232
          [% coce_id = normalized_ean || normalized_isbn %]
233
            <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage %]?biblionumber=[% biblionumber |url %]">
234
          [% IF ( coce_id ) %]
235
            <span style="block" title="[% biblionumber |url %]" class="[% coce_id %]" id="coce-thumbnail-preview"></span>
236
          [% ELSE %]
237
            <span class="no-image">No cover image available</span>
238
          [% END %]
239
            </a>
240
        [% END %]
215
        </div>
241
        </div>
216
    [% END %]
242
    [% END %]
217
        
243
        
Lines 861-866 Link Here
861
    [% INCLUDE 'catalog-strings.inc' %]
887
    [% INCLUDE 'catalog-strings.inc' %]
862
    [% Asset.js("js/catalog.js") %]
888
    [% Asset.js("js/catalog.js") %]
863
    [% INCLUDE 'greybox.inc' %]
889
    [% INCLUDE 'greybox.inc' %]
890
    <script type="text/javascript" src="[% interface %]/prog/js/coce_[% KOHA_VERSION %].js"></script>
864
    <script type="text/javascript">
891
    <script type="text/javascript">
865
        // http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
892
        // http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
866
        function verify_images() {
893
        function verify_images() {
Lines 1016-1021 Link Here
1016
            [% IF LocalCoverImages %]
1043
            [% IF LocalCoverImages %]
1017
                KOHA.LocalCover.GetCoverFromBibnumber(true);
1044
                KOHA.LocalCover.GetCoverFromBibnumber(true);
1018
            [% END %]
1045
            [% END %]
1046
            [% IF ( IntranetCoce && CoceProviders ) %]
1047
                KOHA.coce.getURL('[% CoceHost %]', '[% CoceProviders %]');
1048
            [% END %]
1049
1019
            $("body").on("click",".previewMARC", function(e){
1050
            $("body").on("click",".previewMARC", function(e){
1020
                e.preventDefault();
1051
                e.preventDefault();
1021
                var page = $(this).attr("href");
1052
                var page = $(this).attr("href");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt (-2 / +24 lines)
Lines 21-26 Link Here
21
[% INCLUDE 'header.inc' %]
21
[% INCLUDE 'header.inc' %]
22
[% INCLUDE 'cat-search.inc' %]
22
[% INCLUDE 'cat-search.inc' %]
23
23
24
[%
25
    IntranetCoce    = Koha.Preference('IntranetCoce')
26
    CoceProviders   = Koha.Preference('CoceProviders')
27
    CoceHost        = Koha.Preference('CoceHost')
28
%]
29
24
<div id="breadcrumbs">
30
<div id="breadcrumbs">
25
         <a href="/cgi-bin/koha/mainpage.pl">Home</a>
31
         <a href="/cgi-bin/koha/mainpage.pl">Home</a>
26
&rsaquo; <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a>
32
&rsaquo; <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a>
Lines 352-358 Link Here
352
                    <!-- TABLE RESULTS START -->
358
                    <!-- TABLE RESULTS START -->
353
                <table>
359
                <table>
354
                    <tr>
360
                    <tr>
355
                        [% IF ( AmazonCoverImages || LocalCoverImages ) %]<th>&nbsp;</th>[% END %]
361
                        [% IF ( AmazonCoverImages || LocalCoverImages || IntranetCoce ) %]<th>&nbsp;</th>[% END %]
356
                        <th colspan="2">Results</th>
362
                        <th colspan="2">Results</th>
357
                        <th>Location</th>
363
                        <th>Location</th>
358
                    </tr>
364
                    </tr>
Lines 360-366 Link Here
360
                        [% SET MaxSearchResultsItemsPerRecordStatusCheck = Koha.Preference('MaxSearchResultsItemsPerRecordStatusCheck') %]
366
                        [% SET MaxSearchResultsItemsPerRecordStatusCheck = Koha.Preference('MaxSearchResultsItemsPerRecordStatusCheck') %]
361
                        [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
367
                        [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
362
                            <tr>
368
                            <tr>
363
                            [% IF ( AmazonCoverImages || LocalCoverImages ) %]
369
                            [% IF ( AmazonCoverImages || LocalCoverImages || IntranetCoce ) %]
364
                                <td>
370
                                <td>
365
                                    [% IF ( LocalCoverImages) %]
371
                                    [% IF ( LocalCoverImages) %]
366
                                        <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage %]?biblionumber=[% SEARCH_RESULT.biblionumber |url %]">
372
                                        <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage %]?biblionumber=[% SEARCH_RESULT.biblionumber |url %]">
Lines 377-382 Link Here
377
                                        [% END %]
383
                                        [% END %]
378
                                        </a>
384
                                        </a>
379
                                    [% END %]
385
                                    [% END %]
386
                                    [% IF ( IntranetCoce && CoceProviders ) %]
387
                                      [% coce_id = SEARCH_RESULT.normalized_ean || SEARCH_RESULT.normalized_isbn %]
388
                                        <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage %]?biblionumber=[% SEARCH_RESULT.biblionumber |url %]">
389
                                      [% IF ( coce_id ) %]
390
                                        <span style="block" title="[% SEARCH_RESULT.biblionumber |url %]" class="[% coce_id %]" id="coce-thumbnail[% loop.count %]"></span>
391
                                      [% ELSE %]
392
                                        <span class="no-image">No cover image available</span>
393
                                      [% END %]
394
                                        </a>
395
                                    [% END %]
396
380
                                </td>
397
                                </td>
381
                            [% END %]
398
                            [% END %]
382
                            <td>
399
                            <td>
Lines 626-631 Link Here
626
    [% Asset.js("js/browser.js") %]
643
    [% Asset.js("js/browser.js") %]
627
    [% Asset.js("lib/jquery/plugins/jquery.fixFloat.js") %]
644
    [% Asset.js("lib/jquery/plugins/jquery.fixFloat.js") %]
628
    [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") %]
645
    [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") %]
646
    [% Asset.js("prog/js/coce.js") %]
629
    <script type="text/javascript">
647
    <script type="text/javascript">
630
        var MSG_NO_ITEM_SELECTED = _("Nothing is selected.");
648
        var MSG_NO_ITEM_SELECTED = _("Nothing is selected.");
631
        var MSG_NON_RESERVES_SELECTED = _("One or more selected items cannot be placed on hold.");
649
        var MSG_NON_RESERVES_SELECTED = _("One or more selected items cannot be placed on hold.");
Lines 751-756 Link Here
751
                KOHA.LocalCover.LoadResultsCovers();
769
                KOHA.LocalCover.LoadResultsCovers();
752
            [% END %]
770
            [% END %]
753
771
772
            [% IF ( IntranetCoce && CoceProviders ) %]
773
                KOHA.coce.getURL('[% CoceHost %]', '[% CoceProviders %]');
774
            [% END %]
775
754
            $("#select_all").on("click",function(e){
776
            $("#select_all").on("click",function(e){
755
                e.preventDefault();
777
                e.preventDefault();
756
                selectAll();
778
                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 195-201 $.widget.bridge('uitooltip', $.ui.tooltip); Link Here
195
        //]]>
195
        //]]>
196
    </script>
196
    </script>
197
[% END %]
197
[% END %]
198
[% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
198
[% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
199
    [% Asset.js("js/coce.js") %]
199
    [% Asset.js("js/coce.js") %]
200
    <script type="text/javascript">
200
    <script type="text/javascript">
201
        //<![CDATA[
201
        //<![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('OpacCoce') && 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 86-92 Link Here
86
                    [% IF ( GoogleJackets ) %]
86
                    [% IF ( GoogleJackets ) %]
87
                        <div title="[% biblio.biblionumber %]" class="[% normalized_isbn %]" id="gbs-thumbnail-preview"></div>
87
                        <div title="[% biblio.biblionumber %]" class="[% normalized_isbn %]" id="gbs-thumbnail-preview"></div>
88
                    [% END %]
88
                    [% END %]
89
                    [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
89
                    [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
90
                      [% coce_id = normalized_ean || normalized_isbn %]
90
                      [% coce_id = normalized_ean || normalized_isbn %]
91
                      <div style="block" title="[% biblio.biblionumber %]" class="[% coce_id %]" id="coce-thumbnail-preview"></div>
91
                      <div style="block" title="[% biblio.biblionumber %]" class="[% coce_id %]" id="coce-thumbnail-preview"></div>
92
                    [% END %]
92
                    [% END %]
Lines 1530-1536 Link Here
1530
    [% IF ( GoogleJackets ) %]
1530
    [% IF ( GoogleJackets ) %]
1531
        KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1531
        KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1532
    [% END %]
1532
    [% END %]
1533
    [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1533
    [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
1534
        KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]',[% covernewwindow %]);
1534
        KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]',[% covernewwindow %]);
1535
    [% END %]
1535
    [% END %]
1536
1536
Lines 1605-1611 Link Here
1605
                    [% IF ( GoogleJackets ) %]
1605
                    [% IF ( GoogleJackets ) %]
1606
                      KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1606
                      KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1607
                    [% END %]
1607
                    [% END %]
1608
                    [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1608
                    [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
1609
                      KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]',[% covernewwindow %]);
1609
                      KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]',[% covernewwindow %]);
1610
                    [% END %]
1610
                    [% END %]
1611
                    [% IF OpenLibraryCovers %]
1611
                    [% IF OpenLibraryCovers %]
Lines 1631-1637 Link Here
1631
                    [% IF ( GoogleJackets ) %]
1631
                    [% IF ( GoogleJackets ) %]
1632
                      KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1632
                      KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1633
                    [% END %]
1633
                    [% END %]
1634
                    [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1634
                    [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
1635
                      KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]',[% covernewwindow %]);
1635
                      KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]',[% covernewwindow %]);
1636
                    [% END %]
1636
                    [% END %]
1637
                    [% IF OpenLibraryCovers %]
1637
                    [% IF OpenLibraryCovers %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt (-3 / +2 lines)
Lines 256-262 Link Here
256
                                                            [% END %]
256
                                                            [% END %]
257
                                                        [% END %]
257
                                                        [% END %]
258
258
259
                                                        [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
259
                                                        [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
260
                                                          [% coce_id = SEARCH_RESULT.normalized_ean || SEARCH_RESULT.normalized_isbn %]
260
                                                          [% coce_id = SEARCH_RESULT.normalized_ean || SEARCH_RESULT.normalized_isbn %]
261
                                                          [% IF ( coce_id ) %]
261
                                                          [% IF ( coce_id ) %]
262
                                                            <span style="block" title="[% SEARCH_RESULT.biblionumber |url %]" class="[% coce_id %]" id="coce-thumbnail[% loop.count %]"></span>
262
                                                            <span style="block" title="[% SEARCH_RESULT.biblionumber |url %]" class="[% coce_id %]" id="coce-thumbnail[% loop.count %]"></span>
Lines 970-976 $(document).ready(function(){ Link Here
970
[% IF OpenLibraryCovers %]KOHA.OpenLibrary.GetCoverFromIsbn();[% END %]
970
[% IF OpenLibraryCovers %]KOHA.OpenLibrary.GetCoverFromIsbn();[% END %]
971
[% IF OPACLocalCoverImages %]KOHA.LocalCover.GetCoverFromBibnumber(false);[% END %]
971
[% IF OPACLocalCoverImages %]KOHA.LocalCover.GetCoverFromBibnumber(false);[% END %]
972
[% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
972
[% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
973
[% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
973
[% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
974
    KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]');
974
    KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]');
975
[% END %]
975
[% END %]
976
976
977
- 

Return to bug 18421