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 110-116 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
110
('CircControl','ItemHomeLibrary','PickupLibrary|PatronLibrary|ItemHomeLibrary','Specify the agency that controls the circulation and fines policy','Choice'),
110
('CircControl','ItemHomeLibrary','PickupLibrary|PatronLibrary|ItemHomeLibrary','Specify the agency that controls the circulation and fines policy','Choice'),
111
('CircSidebar','0',NULL,'Activate or deactivate the navigation sidebar on all Circulation pages','YesNo'),
111
('CircSidebar','0',NULL,'Activate or deactivate the navigation sidebar on all Circulation pages','YesNo'),
112
('ClaimsBccCopy','0','','Bcc the ClaimAcquisition and ClaimIssues alerts','YesNo'),
112
('ClaimsBccCopy','0','','Bcc the ClaimAcquisition and ClaimIssues alerts','YesNo'),
113
('Coce','0', NULL, 'If on, enables cover retrieval from the configured Coce server', 'YesNo'),
114
('CoceHost', '', NULL, 'Coce server URL', 'Free'),
113
('CoceHost', '', NULL, 'Coce server URL', 'Free'),
115
('CoceProviders', '', 'aws,gb,ol', 'Coce providers', 'multiple'),
114
('CoceProviders', '', 'aws,gb,ol', 'Coce providers', 'multiple'),
116
('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'),
Lines 219-224 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
219
('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'),
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'),
220
('intranetbookbag','1','','If ON, enables display of Cart feature in the intranet','YesNo'),
219
('intranetbookbag','1','','If ON, enables display of Cart feature in the intranet','YesNo'),
221
('IntranetCirculationHomeHTML', '', NULL, 'Show the following HTML in a div on the bottom of the reports home page', 'Free'),
220
('IntranetCirculationHomeHTML', '', NULL, 'Show the following HTML in a div on the bottom of the reports home page', 'Free'),
221
('IntranetCoce','0', NULL, 'If on, enables cover retrieval from the configured Coce server in the staff intranet', 'YesNo'),
222
('intranetcolorstylesheet','','50','Define the color stylesheet to use in the Staff Client','free'),
222
('intranetcolorstylesheet','','50','Define the color stylesheet to use in the Staff Client','free'),
223
('IntranetFavicon','','','Enter a complete URL to an image to replace the default Koha favicon on the Staff client','free'),
223
('IntranetFavicon','','','Enter a complete URL to an image to replace the default Koha favicon on the Staff client','free'),
224
('IntranetmainUserblock','','70|10','Add a block of HTML that will display on the intranet home page','Textarea'),
224
('IntranetmainUserblock','','70|10','Add a block of HTML that will display on the intranet home page','Textarea'),
Lines 326-331 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
326
('OpacBrowseResults','1',NULL,'Disable/enable browsing and paging search results from the OPAC detail page.','YesNo'),
326
('OpacBrowseResults','1',NULL,'Disable/enable browsing and paging search results from the OPAC detail page.','YesNo'),
327
('OpacCloud','0',NULL,'If ON, enables subject cloud on OPAC','YesNo'),
327
('OpacCloud','0',NULL,'If ON, enables subject cloud on OPAC','YesNo'),
328
('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
('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'),
329
('OpacCoce','0', NULL, 'If on, enables cover retrieval from the configured Coce server in the OPAC', 'YesNo'),
329
('OpacCustomSearch','','70|10','Replace the search box on the OPAC with the provided HTML','Textarea'),
330
('OpacCustomSearch','','70|10','Replace the search box on the OPAC with the provided HTML','Textarea'),
330
('opaccredits','','70|10','Define HTML Credits at the bottom of the OPAC page','Textarea'),
331
('opaccredits','','70|10','Define HTML Credits at the bottom of the OPAC page','Textarea'),
331
('OPACdefaultSortField','relevance','relevance|popularity|call_number|pubdate|acqdate|title|author','Specify the default field used for sorting','Choice'),
332
('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 130-136 Link Here
130
            </span>
136
            </span>
131
        [% END %]
137
        [% END %]
132
138
133
        [% IF ( AmazonCoverImages  || LocalCoverImages ) %]
139
        [% IF ( AmazonCoverImages  || LocalCoverImages || IntranetCoce ) %]
134
        </div><div class="yui-u" id="bookcoverimg">
140
        </div><div class="yui-u" id="bookcoverimg">
135
        [% IF ( LocalCoverImages ) %]
141
        [% IF ( LocalCoverImages ) %]
136
            <div title="[% biblionumber |url %]" class="[% biblionumber %]" id="local-thumbnail-preview"></div>
142
            <div title="[% biblionumber |url %]" class="[% biblionumber %]" id="local-thumbnail-preview"></div>
Lines 141-146 Link Here
141
                <img src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="" />
147
                <img src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="" />
142
        </a></div>
148
        </a></div>
143
        [% END %]
149
        [% END %]
150
        [% IF ( IntranetCoce && CoceProviders ) %]
151
          [% coce_id = normalized_ean || normalized_isbn %]
152
            <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage %]?biblionumber=[% biblionumber |url %]">
153
          [% IF ( coce_id ) %]
154
            <span style="block" title="[% biblionumber |url %]" class="[% coce_id %]" id="coce-thumbnail-preview"></span>
155
          [% ELSE %]
156
            <span class="no-image">No cover image available</span>
157
          [% END %]
158
            </a>
159
        [% END %]
144
        [% END %]
160
        [% END %]
145
    [% ELSE %]
161
    [% ELSE %]
146
162
Lines 204-210 Link Here
204
        </ul>
220
        </ul>
205
        </div>
221
        </div>
206
       
222
       
207
    [% IF ( AmazonCoverImages  || LocalCoverImages ) %]
223
    [% IF ( AmazonCoverImages  || LocalCoverImages || IntranetCoce ) %]
208
        <div class="yui-u" id="bookcoverimg">
224
        <div class="yui-u" id="bookcoverimg">
209
        [% IF ( LocalCoverImages ) %]
225
        [% IF ( LocalCoverImages ) %]
210
            <div title="[% biblionumber |url %]" class="[% biblionumber %]" id="local-thumbnail-preview"></div>
226
            <div title="[% biblionumber |url %]" class="[% biblionumber %]" id="local-thumbnail-preview"></div>
Lines 216-221 Link Here
216
            </a>
232
            </a>
217
        </div>
233
        </div>
218
        [% END %]
234
        [% END %]
235
        [% IF ( IntranetCoce && CoceProviders ) %]
236
          [% coce_id = normalized_ean || normalized_isbn %]
237
            <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage %]?biblionumber=[% biblionumber |url %]">
238
          [% IF ( coce_id ) %]
239
            <span style="block" title="[% biblionumber |url %]" class="[% coce_id %]" id="coce-thumbnail-preview"></span>
240
          [% ELSE %]
241
            <span class="no-image">No cover image available</span>
242
          [% END %]
243
            </a>
244
        [% END %]
219
        </div>
245
        </div>
220
    [% END %]
246
    [% END %]
221
        
247
        
Lines 877-882 Link Here
877
    [% INCLUDE 'catalog-strings.inc' %]
903
    [% INCLUDE 'catalog-strings.inc' %]
878
    [% Asset.js("js/catalog.js") %]
904
    [% Asset.js("js/catalog.js") %]
879
    [% INCLUDE 'greybox.inc' %]
905
    [% INCLUDE 'greybox.inc' %]
906
    <script type="text/javascript" src="[% interface %]/prog/js/coce_[% KOHA_VERSION %].js"></script>
880
    <script type="text/javascript">
907
    <script type="text/javascript">
881
        // http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
908
        // http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
882
        function verify_images() {
909
        function verify_images() {
Lines 1032-1037 Link Here
1032
            [% IF LocalCoverImages %]
1059
            [% IF LocalCoverImages %]
1033
                KOHA.LocalCover.GetCoverFromBibnumber(true);
1060
                KOHA.LocalCover.GetCoverFromBibnumber(true);
1034
            [% END %]
1061
            [% END %]
1062
            [% IF ( IntranetCoce && CoceProviders ) %]
1063
                KOHA.coce.getURL('[% CoceHost %]', '[% CoceProviders %]');
1064
            [% END %]
1065
1035
            $("body").on("click",".previewMARC", function(e){
1066
            $("body").on("click",".previewMARC", function(e){
1036
                e.preventDefault();
1067
                e.preventDefault();
1037
                var page = $(this).attr("href");
1068
                var page = $(this).attr("href");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt (-2 / +24 lines)
Lines 22-27 Link Here
22
[% INCLUDE 'header.inc' %]
22
[% INCLUDE 'header.inc' %]
23
[% INCLUDE 'cat-search.inc' %]
23
[% INCLUDE 'cat-search.inc' %]
24
24
25
[%
26
    IntranetCoce    = Koha.Preference('IntranetCoce')
27
    CoceProviders   = Koha.Preference('CoceProviders')
28
    CoceHost        = Koha.Preference('CoceHost')
29
%]
30
25
<div id="breadcrumbs">
31
<div id="breadcrumbs">
26
         <a href="/cgi-bin/koha/mainpage.pl">Home</a>
32
         <a href="/cgi-bin/koha/mainpage.pl">Home</a>
27
&rsaquo; <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a>
33
&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 627-632 Link Here
627
    [% Asset.js("js/browser.js") %]
644
    [% Asset.js("js/browser.js") %]
628
    [% Asset.js("lib/jquery/plugins/jquery.fixFloat.js") %]
645
    [% Asset.js("lib/jquery/plugins/jquery.fixFloat.js") %]
629
    [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") %]
646
    [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") %]
647
    [% Asset.js("prog/js/coce.js") %]
630
    <script type="text/javascript">
648
    <script type="text/javascript">
631
        var MSG_NO_ITEM_SELECTED = _("Nothing is selected.");
649
        var MSG_NO_ITEM_SELECTED = _("Nothing is selected.");
632
        var MSG_NON_RESERVES_SELECTED = _("One or more selected items cannot be placed on hold.");
650
        var MSG_NON_RESERVES_SELECTED = _("One or more selected items cannot be placed on hold.");
Lines 752-757 Link Here
752
                KOHA.LocalCover.LoadResultsCovers();
770
                KOHA.LocalCover.LoadResultsCovers();
753
            [% END %]
771
            [% END %]
754
772
773
            [% IF ( IntranetCoce && CoceProviders ) %]
774
                KOHA.coce.getURL('[% CoceHost %]', '[% CoceProviders %]');
775
            [% END %]
776
755
            $("#select_all").on("click",function(e){
777
            $("#select_all").on("click",function(e){
756
                e.preventDefault();
778
                e.preventDefault();
757
                selectAll();
779
                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>
200
    <script>
201
        //<![CDATA[
201
        //<![CDATA[
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/shelfbrowser.inc (-1 / +1 lines)
Lines 49-55 Link Here
49
                                        <span class="no-image">No cover image available</span>
49
                                        <span class="no-image">No cover image available</span>
50
                                    [% END %]
50
                                    [% END %]
51
                                [% END %]
51
                                [% END %]
52
                                [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
52
                                [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
53
                                  [% coce_id = item.browser_normalized_ean || item.browser_normalized_isbn %]
53
                                  [% coce_id = item.browser_normalized_ean || item.browser_normalized_isbn %]
54
                                  <div title="[% item.biblionumber |url %]" class="[% coce_id %]" id="coce-thumbnail-preview-[% coce_id %]"></div>
54
                                  <div title="[% item.biblionumber |url %]" class="[% coce_id %]" id="coce-thumbnail-preview-[% coce_id %]"></div>
55
                                [% END %]
55
                                [% END %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt (-4 / +4 lines)
Lines 76-82 Link Here
76
                    [% IF ( GoogleJackets ) %]
76
                    [% IF ( GoogleJackets ) %]
77
                        <div title="[% biblio.biblionumber %]" class="[% normalized_isbn %]" id="gbs-thumbnail-preview"></div>
77
                        <div title="[% biblio.biblionumber %]" class="[% normalized_isbn %]" id="gbs-thumbnail-preview"></div>
78
                    [% END %]
78
                    [% END %]
79
                    [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
79
                    [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
80
                      [% coce_id = normalized_ean || normalized_isbn %]
80
                      [% coce_id = normalized_ean || normalized_isbn %]
81
                      <div title="[% biblio.biblionumber %]" class="[% coce_id %]" id="coce-thumbnail-preview"></div>
81
                      <div title="[% biblio.biblionumber %]" class="[% coce_id %]" id="coce-thumbnail-preview"></div>
82
                    [% END %]
82
                    [% END %]
Lines 1501-1507 Link Here
1501
    [% IF ( GoogleJackets ) %]
1501
    [% IF ( GoogleJackets ) %]
1502
        KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1502
        KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1503
    [% END %]
1503
    [% END %]
1504
    [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1504
    [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
1505
        KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]',[% covernewwindow %]);
1505
        KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]',[% covernewwindow %]);
1506
    [% END %]
1506
    [% END %]
1507
1507
Lines 1576-1582 Link Here
1576
                    [% IF ( GoogleJackets ) %]
1576
                    [% IF ( GoogleJackets ) %]
1577
                      KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1577
                      KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1578
                    [% END %]
1578
                    [% END %]
1579
                    [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1579
                    [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
1580
                      KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]',[% covernewwindow %]);
1580
                      KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]',[% covernewwindow %]);
1581
                    [% END %]
1581
                    [% END %]
1582
                    [% IF OpenLibraryCovers %]
1582
                    [% IF OpenLibraryCovers %]
Lines 1602-1608 Link Here
1602
                    [% IF ( GoogleJackets ) %]
1602
                    [% IF ( GoogleJackets ) %]
1603
                      KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1603
                      KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1604
                    [% END %]
1604
                    [% END %]
1605
                    [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1605
                    [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
1606
                      KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]',[% covernewwindow %]);
1606
                      KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]',[% covernewwindow %]);
1607
                    [% END %]
1607
                    [% END %]
1608
                    [% IF OpenLibraryCovers %]
1608
                    [% IF OpenLibraryCovers %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt (-3 / +2 lines)
Lines 252-258 Link Here
252
                                                            [% END %]
252
                                                            [% END %]
253
                                                        [% END %]
253
                                                        [% END %]
254
254
255
                                                        [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
255
                                                        [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
256
                                                          [% coce_id = SEARCH_RESULT.normalized_ean || SEARCH_RESULT.normalized_isbn %]
256
                                                          [% coce_id = SEARCH_RESULT.normalized_ean || SEARCH_RESULT.normalized_isbn %]
257
                                                          [% IF ( coce_id ) %]
257
                                                          [% IF ( coce_id ) %]
258
                                                            <span title="[% SEARCH_RESULT.biblionumber |url %]" class="[% coce_id %]" id="coce-thumbnail[% loop.count %]"></span>
258
                                                            <span title="[% SEARCH_RESULT.biblionumber |url %]" class="[% coce_id %]" id="coce-thumbnail[% loop.count %]"></span>
Lines 967-973 $(document).ready(function(){ Link Here
967
[% IF OpenLibraryCovers %]KOHA.OpenLibrary.GetCoverFromIsbn();[% END %]
967
[% IF OpenLibraryCovers %]KOHA.OpenLibrary.GetCoverFromIsbn();[% END %]
968
[% IF OPACLocalCoverImages %]KOHA.LocalCover.GetCoverFromBibnumber(false);[% END %]
968
[% IF OPACLocalCoverImages %]KOHA.LocalCover.GetCoverFromBibnumber(false);[% END %]
969
[% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
969
[% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
970
[% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
970
[% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
971
    KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]');
971
    KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]');
972
[% END %]
972
[% END %]
973
973
974
- 

Return to bug 18421