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 114-120 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
114
('CircControl','ItemHomeLibrary','PickupLibrary|PatronLibrary|ItemHomeLibrary','Specify the agency that controls the circulation and fines policy','Choice'),
114
('CircControl','ItemHomeLibrary','PickupLibrary|PatronLibrary|ItemHomeLibrary','Specify the agency that controls the circulation and fines policy','Choice'),
115
('CircSidebar','0',NULL,'Activate or deactivate the navigation sidebar on all Circulation pages','YesNo'),
115
('CircSidebar','0',NULL,'Activate or deactivate the navigation sidebar on all Circulation pages','YesNo'),
116
('ClaimsBccCopy','0','','Bcc the ClaimAcquisition and ClaimIssues alerts','YesNo'),
116
('ClaimsBccCopy','0','','Bcc the ClaimAcquisition and ClaimIssues alerts','YesNo'),
117
('Coce','0', NULL, 'If on, enables cover retrieval from the configured Coce server', 'YesNo'),
118
('CoceHost', '', NULL, 'Coce server URL', 'Free'),
117
('CoceHost', '', NULL, 'Coce server URL', 'Free'),
119
('CoceProviders', '', 'aws,gb,ol', 'Coce providers', 'multiple'),
118
('CoceProviders', '', 'aws,gb,ol', 'Coce providers', 'multiple'),
120
('COinSinOPACResults','1','','If ON, use COinS in OPAC search results page.  NOTE: this can slow down search response time significantly','YesNo'),
119
('COinSinOPACResults','1','','If ON, use COinS in OPAC search results page.  NOTE: this can slow down search response time significantly','YesNo'),
Lines 232-237 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
232
('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'),
231
('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'),
233
('intranetbookbag','1','','If ON, enables display of Cart feature in the intranet','YesNo'),
232
('intranetbookbag','1','','If ON, enables display of Cart feature in the intranet','YesNo'),
234
('IntranetCirculationHomeHTML', '', NULL, 'Show the following HTML in a div on the bottom of the reports home page', 'Free'),
233
('IntranetCirculationHomeHTML', '', NULL, 'Show the following HTML in a div on the bottom of the reports home page', 'Free'),
234
('IntranetCoce','0', NULL, 'If on, enables cover retrieval from the configured Coce server in the staff intranet', 'YesNo'),
235
('intranetcolorstylesheet','','50','Define the color stylesheet to use in the Staff Client','free'),
235
('intranetcolorstylesheet','','50','Define the color stylesheet to use in the Staff Client','free'),
236
('IntranetFavicon','','','Enter a complete URL to an image to replace the default Koha favicon on the Staff client','free'),
236
('IntranetFavicon','','','Enter a complete URL to an image to replace the default Koha favicon on the Staff client','free'),
237
('IntranetmainUserblock','','70|10','Add a block of HTML that will display on the intranet home page','Textarea'),
237
('IntranetmainUserblock','','70|10','Add a block of HTML that will display on the intranet home page','Textarea'),
Lines 340-345 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
340
('OpacBrowseResults','1',NULL,'Disable/enable browsing and paging search results from the OPAC detail page.','YesNo'),
340
('OpacBrowseResults','1',NULL,'Disable/enable browsing and paging search results from the OPAC detail page.','YesNo'),
341
('OpacCloud','0',NULL,'If ON, enables subject cloud on OPAC','YesNo'),
341
('OpacCloud','0',NULL,'If ON, enables subject cloud on OPAC','YesNo'),
342
('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'),
342
('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'),
343
('OpacCoce','0', NULL, 'If on, enables cover retrieval from the configured Coce server in the OPAC', 'YesNo'),
343
('OpacCustomSearch','','70|10','Replace the search box on the OPAC with the provided HTML','Textarea'),
344
('OpacCustomSearch','','70|10','Replace the search box on the OPAC with the provided HTML','Textarea'),
344
('opaccredits','','70|10','Define HTML Credits at the bottom of the OPAC page','Textarea'),
345
('opaccredits','','70|10','Define HTML Credits at the bottom of the OPAC page','Textarea'),
345
('OPACdefaultSortField','relevance','relevance|popularity|call_number|pubdate|acqdate|title|author','Specify the default field used for sorting','Choice'),
346
('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 406-416 Enhanced Content: Link Here
406
            - pref: RecordedBooksDomain
406
            - pref: RecordedBooksDomain
407
    Coce Cover images cache:
407
    Coce Cover images cache:
408
        -
408
        -
409
            - pref: Coce
409
            - pref: OpacCoce
410
              choices:
410
              choices:
411
                  yes: Enable
411
                  yes: Enable
412
                  no: "Don't enable"
412
                  no: "Don't enable"
413
            - a Coce image cache service.
413
            - a Coce image cache service in the OPAC.
414
        -
415
            - pref: IntranetCoce
416
              choices:
417
                  yes: Enable
418
                  no: "Don't enable"
419
            - a Coce image cache service in the staff intranet.
414
        -
420
        -
415
            - Coce server URL
421
            - Coce server URL
416
            - pref: CoceHost
422
            - pref: CoceHost
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-3 / +34 lines)
Lines 63-75 Link Here
63
    <div id="yui-main">
63
    <div id="yui-main">
64
    <div class="yui-b">
64
    <div class="yui-b">
65
65
66
[%
67
    IntranetCoce    = Koha.Preference('IntranetCoce')
68
    CoceProviders   = Koha.Preference('CoceProviders')
69
    CoceHost        = Koha.Preference('CoceHost')
70
%]
71
66
[% INCLUDE 'cat-toolbar.inc' %]
72
[% INCLUDE 'cat-toolbar.inc' %]
67
    [% IF ( ocoins ) %]
73
    [% IF ( ocoins ) %]
68
        <!-- COinS / OpenURL -->
74
        <!-- COinS / OpenURL -->
69
        <span class="Z3988" title="[% ocoins | html %]"></span>
75
        <span class="Z3988" title="[% ocoins | html %]"></span>
70
    [% END %]
76
    [% END %]
71
77
72
    [% IF ( AmazonCoverImages  || LocalCoverImages || AdlibrisEnabled ) %]
78
    [% IF ( AmazonCoverImages  || LocalCoverImages || AdlibrisEnabled || IntranetCoce ) %]
73
        [% IF ( XSLTDetailsDisplay ) %]
79
        [% IF ( XSLTDetailsDisplay ) %]
74
            <div class="yui-gc">
80
            <div class="yui-gc">
75
            <div id="catalogue_detail_biblio" class="yui-u first">
81
            <div id="catalogue_detail_biblio" class="yui-u first">
Lines 134-140 Link Here
134
            </span>
140
            </span>
135
        [% END %]
141
        [% END %]
136
142
137
        [% IF ( AmazonCoverImages  || LocalCoverImages || AdlibrisEnabled ) %]
143
        [% IF ( AmazonCoverImages  || LocalCoverImages || AdlibrisEnabled || IntranetCoce ) %]
138
        </div><div class="yui-u" id="bookcoverimg">
144
        </div><div class="yui-u" id="bookcoverimg">
139
        [% IF ( LocalCoverImages ) %]
145
        [% IF ( LocalCoverImages ) %]
140
            <div title="[% biblionumber |url %]" class="[% biblionumber | html %]" id="local-thumbnail-preview"></div>
146
            <div title="[% biblionumber |url %]" class="[% biblionumber | html %]" id="local-thumbnail-preview"></div>
Lines 148-153 Link Here
148
                <img src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn | html %].01.MZZZZZZZ.jpg" alt="" />
154
                <img src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn | html %].01.MZZZZZZZ.jpg" alt="" />
149
        </a></div>
155
        </a></div>
150
        [% END %]
156
        [% END %]
157
        [% IF ( IntranetCoce && CoceProviders ) %]
158
          [% coce_id = normalized_ean || normalized_isbn %]
159
            <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage %]?biblionumber=[% biblionumber |url %]">
160
          [% IF ( coce_id ) %]
161
            <span style="block" title="[% biblionumber |url %]" class="[% coce_id %]" id="coce-thumbnail-preview"></span>
162
          [% ELSE %]
163
            <span class="no-image">No cover image available</span>
164
          [% END %]
165
            </a>
166
        [% END %]
151
        [% END %]
167
        [% END %]
152
    [% ELSE %]
168
    [% ELSE %]
153
169
Lines 211-217 Link Here
211
        </ul>
227
        </ul>
212
        </div>
228
        </div>
213
       
229
       
214
    [% IF ( AmazonCoverImages  || LocalCoverImages ) %]
230
    [% IF ( AmazonCoverImages  || LocalCoverImages || IntranetCoce ) %]
215
        <div class="yui-u" id="bookcoverimg">
231
        <div class="yui-u" id="bookcoverimg">
216
        [% IF ( LocalCoverImages ) %]
232
        [% IF ( LocalCoverImages ) %]
217
            <div title="[% biblionumber |url %]" class="[% biblionumber | html %]" id="local-thumbnail-preview"></div>
233
            <div title="[% biblionumber |url %]" class="[% biblionumber | html %]" id="local-thumbnail-preview"></div>
Lines 223-228 Link Here
223
            </a>
239
            </a>
224
        </div>
240
        </div>
225
        [% END %]
241
        [% END %]
242
        [% IF ( IntranetCoce && CoceProviders ) %]
243
          [% coce_id = normalized_ean || normalized_isbn %]
244
            <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage %]?biblionumber=[% biblionumber |url %]">
245
          [% IF ( coce_id ) %]
246
            <span style="block" title="[% biblionumber |url %]" class="[% coce_id %]" id="coce-thumbnail-preview"></span>
247
          [% ELSE %]
248
            <span class="no-image">No cover image available</span>
249
          [% END %]
250
            </a>
251
        [% END %]
226
        </div>
252
        </div>
227
    [% END %]
253
    [% END %]
228
        
254
        
Lines 899-904 Link Here
899
    [% INCLUDE 'catalog-strings.inc' %]
925
    [% INCLUDE 'catalog-strings.inc' %]
900
    [% Asset.js("js/catalog.js") | $raw %]
926
    [% Asset.js("js/catalog.js") | $raw %]
901
    [% INCLUDE 'greybox.inc' %]
927
    [% INCLUDE 'greybox.inc' %]
928
    <script type="text/javascript" src="[% interface %]/prog/js/coce_[% KOHA_VERSION %].js"></script>
902
    <script type="text/javascript">
929
    <script type="text/javascript">
903
        // http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
930
        // http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
904
        function verify_images() {
931
        function verify_images() {
Lines 1054-1059 Link Here
1054
            [% IF LocalCoverImages %]
1081
            [% IF LocalCoverImages %]
1055
                KOHA.LocalCover.GetCoverFromBibnumber(true);
1082
                KOHA.LocalCover.GetCoverFromBibnumber(true);
1056
            [% END %]
1083
            [% END %]
1084
            [% IF ( IntranetCoce && CoceProviders ) %]
1085
                KOHA.coce.getURL('[% CoceHost %]', '[% CoceProviders %]');
1086
            [% END %]
1087
1057
            $("body").on("click",".previewMARC", function(e){
1088
            $("body").on("click",".previewMARC", function(e){
1058
                e.preventDefault();
1089
                e.preventDefault();
1059
                var page = $(this).attr("href");
1090
                var page = $(this).attr("href");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt (-2 / +24 lines)
Lines 26-31 Link Here
26
[% INCLUDE 'header.inc' %]
26
[% INCLUDE 'header.inc' %]
27
[% INCLUDE 'cat-search.inc' %]
27
[% INCLUDE 'cat-search.inc' %]
28
28
29
[%
30
    IntranetCoce    = Koha.Preference('IntranetCoce')
31
    CoceProviders   = Koha.Preference('CoceProviders')
32
    CoceHost        = Koha.Preference('CoceHost')
33
%]
34
29
<div id="breadcrumbs">
35
<div id="breadcrumbs">
30
         <a href="/cgi-bin/koha/mainpage.pl">Home</a>
36
         <a href="/cgi-bin/koha/mainpage.pl">Home</a>
31
&rsaquo; <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a>
37
&rsaquo; <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a>
Lines 356-362 Link Here
356
                    <!-- TABLE RESULTS START -->
362
                    <!-- TABLE RESULTS START -->
357
                <table>
363
                <table>
358
                    <tr>
364
                    <tr>
359
                        [% IF ( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled ) %]<th>&nbsp;</th>[% END %]
365
                        [% IF ( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled || IntranetCoce ) %]<th>&nbsp;</th>[% END %]
360
                        <th colspan="2">Results</th>
366
                        <th colspan="2">Results</th>
361
                        <th>Location</th>
367
                        <th>Location</th>
362
                    </tr>
368
                    </tr>
Lines 364-370 Link Here
364
                        [% SET MaxSearchResultsItemsPerRecordStatusCheck = Koha.Preference('MaxSearchResultsItemsPerRecordStatusCheck') %]
370
                        [% SET MaxSearchResultsItemsPerRecordStatusCheck = Koha.Preference('MaxSearchResultsItemsPerRecordStatusCheck') %]
365
                        [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
371
                        [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
366
                         <tr>
372
                         <tr>
367
                            [% IF ( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled ) %]
373
                            [% IF ( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled || IntranetCoce ) %]
368
                                <td>
374
                                <td>
369
                                    [% IF ( LocalCoverImages) %]
375
                                    [% IF ( LocalCoverImages) %]
370
                                        <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage | html %]?biblionumber=[% SEARCH_RESULT.biblionumber |url %]">
376
                                        <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage | html %]?biblionumber=[% SEARCH_RESULT.biblionumber |url %]">
Lines 384-389 Link Here
384
                                        [% END %]
390
                                        [% END %]
385
                                        </a>
391
                                        </a>
386
                                    [% END %]
392
                                    [% END %]
393
                                    [% IF ( IntranetCoce && CoceProviders ) %]
394
                                      [% coce_id = SEARCH_RESULT.normalized_ean || SEARCH_RESULT.normalized_isbn %]
395
                                        <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage %]?biblionumber=[% SEARCH_RESULT.biblionumber |url %]">
396
                                      [% IF ( coce_id ) %]
397
                                        <span style="block" title="[% SEARCH_RESULT.biblionumber |url %]" class="[% coce_id %]" id="coce-thumbnail[% loop.count %]"></span>
398
                                      [% ELSE %]
399
                                        <span class="no-image">No cover image available</span>
400
                                      [% END %]
401
                                        </a>
402
                                    [% END %]
403
387
                                </td>
404
                                </td>
388
                            [% END %]
405
                            [% END %]
389
                            <td>
406
                            <td>
Lines 634-639 Link Here
634
    [% Asset.js("js/browser.js") | $raw %]
651
    [% Asset.js("js/browser.js") | $raw %]
635
    [% Asset.js("lib/jquery/plugins/jquery.fixFloat.js") | $raw %]
652
    [% Asset.js("lib/jquery/plugins/jquery.fixFloat.js") | $raw %]
636
    [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
653
    [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
654
    [% Asset.js("prog/js/coce.js") | $raw %]
637
    <script type="text/javascript">
655
    <script type="text/javascript">
638
        var MSG_NO_ITEM_SELECTED = _("Nothing is selected.");
656
        var MSG_NO_ITEM_SELECTED = _("Nothing is selected.");
639
        var MSG_NON_RESERVES_SELECTED = _("One or more selected items cannot be placed on hold.");
657
        var MSG_NON_RESERVES_SELECTED = _("One or more selected items cannot be placed on hold.");
Lines 759-764 Link Here
759
                KOHA.LocalCover.LoadResultsCovers();
777
                KOHA.LocalCover.LoadResultsCovers();
760
            [% END %]
778
            [% END %]
761
779
780
            [% IF ( IntranetCoce && CoceProviders ) %]
781
                KOHA.coce.getURL('[% CoceHost %]', '[% CoceProviders %]');
782
            [% END %]
783
762
            $("#select_all").on("click",function(e){
784
            $("#select_all").on("click",function(e){
763
                e.preventDefault();
785
                e.preventDefault();
764
                selectAll();
786
                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 222-228 $.widget.bridge('uitooltip', $.ui.tooltip); Link Here
222
        //]]>
222
        //]]>
223
    </script>
223
    </script>
224
[% END %]
224
[% END %]
225
[% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
225
[% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
226
    [% Asset.js("js/coce.js") | $raw %]
226
    [% Asset.js("js/coce.js") | $raw %]
227
    <script>
227
    <script>
228
        //<![CDATA[
228
        //<![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 | html %]
53
                                  [% coce_id = item.browser_normalized_ean || item.browser_normalized_isbn | html %]
54
                                  <div title="[% item.biblionumber |url %]" class="[% coce_id | html %]" id="coce-thumbnail-preview-[% coce_id | html %]"></div>
54
                                  <div title="[% item.biblionumber |url %]" class="[% coce_id | html %]" id="coce-thumbnail-preview-[% coce_id | html %]"></div>
55
                                [% END %]
55
                                [% END %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt (-5 / +5 lines)
Lines 84-91 Link Here
84
                    [% IF ( GoogleJackets ) %]
84
                    [% IF ( GoogleJackets ) %]
85
                        <div title="[% biblio.biblionumber | html %]" class="[% normalized_isbn | html %]" id="gbs-thumbnail-preview"></div>
85
                        <div title="[% biblio.biblionumber | html %]" class="[% normalized_isbn | html %]" id="gbs-thumbnail-preview"></div>
86
                    [% END %]
86
                    [% END %]
87
                    [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
87
                    [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
88
                      [% coce_id = normalized_ean || normalized_isbn %]
88
                      [% coce_id = normalized_ean || normalized_isbn | html %]
89
                      <div title="[% biblio.biblionumber | html %]" class="[% coce_id | html %]" id="coce-thumbnail-preview"></div>
89
                      <div title="[% biblio.biblionumber | html %]" class="[% coce_id | html %]" id="coce-thumbnail-preview"></div>
90
                    [% END %]
90
                    [% END %]
91
                    [% IF OpenLibraryCovers %]
91
                    [% IF OpenLibraryCovers %]
Lines 1525-1531 Link Here
1525
    [% IF ( GoogleJackets ) %]
1525
    [% IF ( GoogleJackets ) %]
1526
        KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]);
1526
        KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]);
1527
    [% END %]
1527
    [% END %]
1528
    [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1528
    [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
1529
        KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]',[% covernewwindow | html %]);
1529
        KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]',[% covernewwindow | html %]);
1530
    [% END %]
1530
    [% END %]
1531
1531
Lines 1572-1578 Link Here
1572
                    [% IF ( GoogleJackets ) %]
1572
                    [% IF ( GoogleJackets ) %]
1573
                      KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]);
1573
                      KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]);
1574
                    [% END %]
1574
                    [% END %]
1575
                    [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1575
                    [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
1576
                      KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]',[% covernewwindow | html %]);
1576
                      KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]',[% covernewwindow | html %]);
1577
                    [% END %]
1577
                    [% END %]
1578
                    [% IF OpenLibraryCovers %]
1578
                    [% IF OpenLibraryCovers %]
Lines 1598-1604 Link Here
1598
                    [% IF ( GoogleJackets ) %]
1598
                    [% IF ( GoogleJackets ) %]
1599
                      KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]);
1599
                      KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]);
1600
                    [% END %]
1600
                    [% END %]
1601
                    [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1601
                    [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
1602
                      KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]',[% covernewwindow | html %]);
1602
                      KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]',[% covernewwindow | html %]);
1603
                    [% END %]
1603
                    [% END %]
1604
                    [% IF OpenLibraryCovers %]
1604
                    [% IF OpenLibraryCovers %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt (-4 / +3 lines)
Lines 262-269 Link Here
262
                                                            [% END %]
262
                                                            [% END %]
263
                                                        [% END %]
263
                                                        [% END %]
264
264
265
                                                        [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
265
                                                        [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
266
                                                          [% coce_id = SEARCH_RESULT.normalized_ean || SEARCH_RESULT.normalized_isbn %]
266
                                                          [% coce_id = SEARCH_RESULT.normalized_ean || SEARCH_RESULT.normalized_isbn | html %]
267
                                                          [% IF ( coce_id ) %]
267
                                                          [% IF ( coce_id ) %]
268
                                                            <span title="[% SEARCH_RESULT.biblionumber |url %]" class="[% coce_id | html %]" id="coce-thumbnail[% loop.count | html %]"></span>
268
                                                            <span title="[% SEARCH_RESULT.biblionumber |url %]" class="[% coce_id | html %]" id="coce-thumbnail[% loop.count | html %]"></span>
269
                                                          [% ELSE %]
269
                                                          [% ELSE %]
Lines 996-1002 $(document).ready(function(){ Link Here
996
[% IF OpenLibraryCovers %]KOHA.OpenLibrary.GetCoverFromIsbn();[% END %]
996
[% IF OpenLibraryCovers %]KOHA.OpenLibrary.GetCoverFromIsbn();[% END %]
997
[% IF OPACLocalCoverImages %]KOHA.LocalCover.GetCoverFromBibnumber(false);[% END %]
997
[% IF OPACLocalCoverImages %]KOHA.LocalCover.GetCoverFromBibnumber(false);[% END %]
998
[% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
998
[% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
999
[% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
999
[% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
1000
    KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]');
1000
    KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]');
1001
[% END %]
1001
[% END %]
1002
1002
1003
- 

Return to bug 18421