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 112-118 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
112
('CircControl','ItemHomeLibrary','PickupLibrary|PatronLibrary|ItemHomeLibrary','Specify the agency that controls the circulation and fines policy','Choice'),
112
('CircControl','ItemHomeLibrary','PickupLibrary|PatronLibrary|ItemHomeLibrary','Specify the agency that controls the circulation and fines policy','Choice'),
113
('CircSidebar','0',NULL,'Activate or deactivate the navigation sidebar on all Circulation pages','YesNo'),
113
('CircSidebar','0',NULL,'Activate or deactivate the navigation sidebar on all Circulation pages','YesNo'),
114
('ClaimsBccCopy','0','','Bcc the ClaimAcquisition and ClaimIssues alerts','YesNo'),
114
('ClaimsBccCopy','0','','Bcc the ClaimAcquisition and ClaimIssues alerts','YesNo'),
115
('Coce','0', NULL, 'If on, enables cover retrieval from the configured Coce server', 'YesNo'),
116
('CoceHost', '', NULL, 'Coce server URL', 'Free'),
115
('CoceHost', '', NULL, 'Coce server URL', 'Free'),
117
('CoceProviders', '', 'aws,gb,ol', 'Coce providers', 'multiple'),
116
('CoceProviders', '', 'aws,gb,ol', 'Coce providers', 'multiple'),
118
('COinSinOPACResults','1','','If ON, use COinS in OPAC search results page.  NOTE: this can slow down search response time significantly','YesNo'),
117
('COinSinOPACResults','1','','If ON, use COinS in OPAC search results page.  NOTE: this can slow down search response time significantly','YesNo'),
Lines 228-233 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
228
('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'),
227
('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'),
229
('intranetbookbag','1','','If ON, enables display of Cart feature in the intranet','YesNo'),
228
('intranetbookbag','1','','If ON, enables display of Cart feature in the intranet','YesNo'),
230
('IntranetCirculationHomeHTML', '', NULL, 'Show the following HTML in a div on the bottom of the reports home page', 'Free'),
229
('IntranetCirculationHomeHTML', '', NULL, 'Show the following HTML in a div on the bottom of the reports home page', 'Free'),
230
('IntranetCoce','0', NULL, 'If on, enables cover retrieval from the configured Coce server in the staff intranet', 'YesNo'),
231
('intranetcolorstylesheet','','50','Define the color stylesheet to use in the Staff Client','free'),
231
('intranetcolorstylesheet','','50','Define the color stylesheet to use in the Staff Client','free'),
232
('IntranetFavicon','','','Enter a complete URL to an image to replace the default Koha favicon on the Staff client','free'),
232
('IntranetFavicon','','','Enter a complete URL to an image to replace the default Koha favicon on the Staff client','free'),
233
('IntranetmainUserblock','','70|10','Add a block of HTML that will display on the intranet home page','Textarea'),
233
('IntranetmainUserblock','','70|10','Add a block of HTML that will display on the intranet home page','Textarea'),
Lines 331-336 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
331
('OpacBrowseResults','1',NULL,'Disable/enable browsing and paging search results from the OPAC detail page.','YesNo'),
331
('OpacBrowseResults','1',NULL,'Disable/enable browsing and paging search results from the OPAC detail page.','YesNo'),
332
('OpacCloud','0',NULL,'If ON, enables subject cloud on OPAC','YesNo'),
332
('OpacCloud','0',NULL,'If ON, enables subject cloud on OPAC','YesNo'),
333
('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'),
333
('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'),
334
('OpacCoce','0', NULL, 'If on, enables cover retrieval from the configured Coce server in the OPAC', 'YesNo'),
334
('OpacCustomSearch','','70|10','Replace the search box on the OPAC with the provided HTML','Textarea'),
335
('OpacCustomSearch','','70|10','Replace the search box on the OPAC with the provided HTML','Textarea'),
335
('opaccredits','','70|10','Define HTML Credits at the bottom of the OPAC page','Textarea'),
336
('opaccredits','','70|10','Define HTML Credits at the bottom of the OPAC page','Textarea'),
336
('OPACdefaultSortField','relevance','relevance|popularity|call_number|pubdate|acqdate|title|author','Specify the default field used for sorting','Choice'),
337
('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 377-387 Enhanced Content: Link Here
377
            - pref: RecordedBooksDomain
377
            - pref: RecordedBooksDomain
378
    Coce Cover images cache:
378
    Coce Cover images cache:
379
        -
379
        -
380
            - pref: Coce
380
            - pref: OpacCoce
381
              choices:
381
              choices:
382
                  yes: Enable
382
                  yes: Enable
383
                  no: "Don't enable"
383
                  no: "Don't enable"
384
            - a Coce image cache service.
384
            - a Coce image cache service in the OPAC.
385
        -
386
            - pref: IntranetCoce
387
              choices:
388
                  yes: Enable
389
                  no: "Don't enable"
390
            - a Coce image cache service in the staff intranet.
385
        -
391
        -
386
            - Coce server URL
392
            - Coce server URL
387
            - pref: CoceHost
393
            - pref: CoceHost
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-3 / +34 lines)
Lines 61-73 Link Here
61
    <div id="yui-main">
61
    <div id="yui-main">
62
    <div class="yui-b">
62
    <div class="yui-b">
63
63
64
[%
65
    IntranetCoce    = Koha.Preference('IntranetCoce')
66
    CoceProviders   = Koha.Preference('CoceProviders')
67
    CoceHost        = Koha.Preference('CoceHost')
68
%]
69
64
[% INCLUDE 'cat-toolbar.inc' %]
70
[% INCLUDE 'cat-toolbar.inc' %]
65
    [% IF ( ocoins ) %]
71
    [% IF ( ocoins ) %]
66
        <!-- COinS / OpenURL -->
72
        <!-- COinS / OpenURL -->
67
        <span class="Z3988" title="[% ocoins | html %]"></span>
73
        <span class="Z3988" title="[% ocoins | html %]"></span>
68
    [% END %]
74
    [% END %]
69
75
70
    [% IF ( AmazonCoverImages  || LocalCoverImages ) %]
76
    [% IF ( AmazonCoverImages  || LocalCoverImages || IntranetCoce ) %]
71
        [% IF ( XSLTDetailsDisplay ) %]
77
        [% IF ( XSLTDetailsDisplay ) %]
72
            <div class="yui-gc">
78
            <div class="yui-gc">
73
            <div id="catalogue_detail_biblio" class="yui-u first">
79
            <div id="catalogue_detail_biblio" class="yui-u first">
Lines 132-138 Link Here
132
            </span>
138
            </span>
133
        [% END %]
139
        [% END %]
134
140
135
        [% IF ( AmazonCoverImages  || LocalCoverImages ) %]
141
        [% IF ( AmazonCoverImages  || LocalCoverImages || IntranetCoce ) %]
136
        </div><div class="yui-u" id="bookcoverimg">
142
        </div><div class="yui-u" id="bookcoverimg">
137
        [% IF ( LocalCoverImages ) %]
143
        [% IF ( LocalCoverImages ) %]
138
            <div title="[% biblionumber |url %]" class="[% biblionumber | html %]" id="local-thumbnail-preview"></div>
144
            <div title="[% biblionumber |url %]" class="[% biblionumber | html %]" id="local-thumbnail-preview"></div>
Lines 143-148 Link Here
143
                <img src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn | html %].01.MZZZZZZZ.jpg" alt="" />
149
                <img src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn | html %].01.MZZZZZZZ.jpg" alt="" />
144
        </a></div>
150
        </a></div>
145
        [% END %]
151
        [% END %]
152
        [% IF ( IntranetCoce && CoceProviders ) %]
153
          [% coce_id = normalized_ean || normalized_isbn %]
154
            <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage %]?biblionumber=[% biblionumber |url %]">
155
          [% IF ( coce_id ) %]
156
            <span style="block" title="[% biblionumber |url %]" class="[% coce_id %]" id="coce-thumbnail-preview"></span>
157
          [% ELSE %]
158
            <span class="no-image">No cover image available</span>
159
          [% END %]
160
            </a>
161
        [% END %]
146
        [% END %]
162
        [% END %]
147
    [% ELSE %]
163
    [% ELSE %]
148
164
Lines 206-212 Link Here
206
        </ul>
222
        </ul>
207
        </div>
223
        </div>
208
       
224
       
209
    [% IF ( AmazonCoverImages  || LocalCoverImages ) %]
225
    [% IF ( AmazonCoverImages  || LocalCoverImages || IntranetCoce ) %]
210
        <div class="yui-u" id="bookcoverimg">
226
        <div class="yui-u" id="bookcoverimg">
211
        [% IF ( LocalCoverImages ) %]
227
        [% IF ( LocalCoverImages ) %]
212
            <div title="[% biblionumber |url %]" class="[% biblionumber | html %]" id="local-thumbnail-preview"></div>
228
            <div title="[% biblionumber |url %]" class="[% biblionumber | html %]" id="local-thumbnail-preview"></div>
Lines 218-223 Link Here
218
            </a>
234
            </a>
219
        </div>
235
        </div>
220
        [% END %]
236
        [% END %]
237
        [% IF ( IntranetCoce && CoceProviders ) %]
238
          [% coce_id = normalized_ean || normalized_isbn %]
239
            <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage %]?biblionumber=[% biblionumber |url %]">
240
          [% IF ( coce_id ) %]
241
            <span style="block" title="[% biblionumber |url %]" class="[% coce_id %]" id="coce-thumbnail-preview"></span>
242
          [% ELSE %]
243
            <span class="no-image">No cover image available</span>
244
          [% END %]
245
            </a>
246
        [% END %]
221
        </div>
247
        </div>
222
    [% END %]
248
    [% END %]
223
        
249
        
Lines 894-899 Link Here
894
    [% INCLUDE 'catalog-strings.inc' %]
920
    [% INCLUDE 'catalog-strings.inc' %]
895
    [% Asset.js("js/catalog.js") | $raw %]
921
    [% Asset.js("js/catalog.js") | $raw %]
896
    [% INCLUDE 'greybox.inc' %]
922
    [% INCLUDE 'greybox.inc' %]
923
    <script type="text/javascript" src="[% interface %]/prog/js/coce_[% KOHA_VERSION %].js"></script>
897
    <script type="text/javascript">
924
    <script type="text/javascript">
898
        // http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
925
        // http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
899
        function verify_images() {
926
        function verify_images() {
Lines 1049-1054 Link Here
1049
            [% IF LocalCoverImages %]
1076
            [% IF LocalCoverImages %]
1050
                KOHA.LocalCover.GetCoverFromBibnumber(true);
1077
                KOHA.LocalCover.GetCoverFromBibnumber(true);
1051
            [% END %]
1078
            [% END %]
1079
            [% IF ( IntranetCoce && CoceProviders ) %]
1080
                KOHA.coce.getURL('[% CoceHost %]', '[% CoceProviders %]');
1081
            [% END %]
1082
1052
            $("body").on("click",".previewMARC", function(e){
1083
            $("body").on("click",".previewMARC", function(e){
1053
                e.preventDefault();
1084
                e.preventDefault();
1054
                var page = $(this).attr("href");
1085
                var page = $(this).attr("href");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt (-2 / +24 lines)
Lines 23-28 Link Here
23
[% INCLUDE 'header.inc' %]
23
[% INCLUDE 'header.inc' %]
24
[% INCLUDE 'cat-search.inc' %]
24
[% INCLUDE 'cat-search.inc' %]
25
25
26
[%
27
    IntranetCoce    = Koha.Preference('IntranetCoce')
28
    CoceProviders   = Koha.Preference('CoceProviders')
29
    CoceHost        = Koha.Preference('CoceHost')
30
%]
31
26
<div id="breadcrumbs">
32
<div id="breadcrumbs">
27
         <a href="/cgi-bin/koha/mainpage.pl">Home</a>
33
         <a href="/cgi-bin/koha/mainpage.pl">Home</a>
28
&rsaquo; <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a>
34
&rsaquo; <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a>
Lines 353-359 Link Here
353
                    <!-- TABLE RESULTS START -->
359
                    <!-- TABLE RESULTS START -->
354
                <table>
360
                <table>
355
                    <tr>
361
                    <tr>
356
                        [% IF ( AmazonCoverImages || LocalCoverImages ) %]<th>&nbsp;</th>[% END %]
362
                        [% IF ( AmazonCoverImages || LocalCoverImages || IntranetCoce ) %]<th>&nbsp;</th>[% END %]
357
                        <th colspan="2">Results</th>
363
                        <th colspan="2">Results</th>
358
                        <th>Location</th>
364
                        <th>Location</th>
359
                    </tr>
365
                    </tr>
Lines 361-367 Link Here
361
                        [% SET MaxSearchResultsItemsPerRecordStatusCheck = Koha.Preference('MaxSearchResultsItemsPerRecordStatusCheck') %]
367
                        [% SET MaxSearchResultsItemsPerRecordStatusCheck = Koha.Preference('MaxSearchResultsItemsPerRecordStatusCheck') %]
362
                        [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
368
                        [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
363
                            <tr>
369
                            <tr>
364
                            [% IF ( AmazonCoverImages || LocalCoverImages ) %]
370
                            [% IF ( AmazonCoverImages || LocalCoverImages || IntranetCoce ) %]
365
                                <td>
371
                                <td>
366
                                    [% IF ( LocalCoverImages) %]
372
                                    [% IF ( LocalCoverImages) %]
367
                                        <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage | html %]?biblionumber=[% SEARCH_RESULT.biblionumber |url %]">
373
                                        <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage | html %]?biblionumber=[% SEARCH_RESULT.biblionumber |url %]">
Lines 378-383 Link Here
378
                                        [% END %]
384
                                        [% END %]
379
                                        </a>
385
                                        </a>
380
                                    [% END %]
386
                                    [% END %]
387
                                    [% IF ( IntranetCoce && CoceProviders ) %]
388
                                      [% coce_id = SEARCH_RESULT.normalized_ean || SEARCH_RESULT.normalized_isbn %]
389
                                        <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage %]?biblionumber=[% SEARCH_RESULT.biblionumber |url %]">
390
                                      [% IF ( coce_id ) %]
391
                                        <span style="block" title="[% SEARCH_RESULT.biblionumber |url %]" class="[% coce_id %]" id="coce-thumbnail[% loop.count %]"></span>
392
                                      [% ELSE %]
393
                                        <span class="no-image">No cover image available</span>
394
                                      [% END %]
395
                                        </a>
396
                                    [% END %]
397
381
                                </td>
398
                                </td>
382
                            [% END %]
399
                            [% END %]
383
                            <td>
400
                            <td>
Lines 628-633 Link Here
628
    [% Asset.js("js/browser.js") | $raw %]
645
    [% Asset.js("js/browser.js") | $raw %]
629
    [% Asset.js("lib/jquery/plugins/jquery.fixFloat.js") | $raw %]
646
    [% Asset.js("lib/jquery/plugins/jquery.fixFloat.js") | $raw %]
630
    [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
647
    [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
648
    [% Asset.js("prog/js/coce.js") | $raw %]
631
    <script type="text/javascript">
649
    <script type="text/javascript">
632
        var MSG_NO_ITEM_SELECTED = _("Nothing is selected.");
650
        var MSG_NO_ITEM_SELECTED = _("Nothing is selected.");
633
        var MSG_NON_RESERVES_SELECTED = _("One or more selected items cannot be placed on hold.");
651
        var MSG_NON_RESERVES_SELECTED = _("One or more selected items cannot be placed on hold.");
Lines 753-758 Link Here
753
                KOHA.LocalCover.LoadResultsCovers();
771
                KOHA.LocalCover.LoadResultsCovers();
754
            [% END %]
772
            [% END %]
755
773
774
            [% IF ( IntranetCoce && CoceProviders ) %]
775
                KOHA.coce.getURL('[% CoceHost %]', '[% CoceProviders %]');
776
            [% END %]
777
756
            $("#select_all").on("click",function(e){
778
            $("#select_all").on("click",function(e){
757
                e.preventDefault();
779
                e.preventDefault();
758
                selectAll();
780
                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 219-225 $.widget.bridge('uitooltip', $.ui.tooltip); Link Here
219
        //]]>
219
        //]]>
220
    </script>
220
    </script>
221
[% END %]
221
[% END %]
222
[% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
222
[% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
223
    [% Asset.js("js/coce.js") | $raw %]
223
    [% Asset.js("js/coce.js") | $raw %]
224
    <script>
224
    <script>
225
        //<![CDATA[
225
        //<![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 (-4 / +4 lines)
Lines 77-83 Link Here
77
                    [% IF ( GoogleJackets ) %]
77
                    [% IF ( GoogleJackets ) %]
78
                        <div title="[% biblio.biblionumber | html %]" class="[% normalized_isbn | html %]" id="gbs-thumbnail-preview"></div>
78
                        <div title="[% biblio.biblionumber | html %]" class="[% normalized_isbn | html %]" id="gbs-thumbnail-preview"></div>
79
                    [% END %]
79
                    [% END %]
80
                    [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
80
                    [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
81
                      [% coce_id = normalized_ean || normalized_isbn | html %]
81
                      [% coce_id = normalized_ean || normalized_isbn | html %]
82
                      <div title="[% biblio.biblionumber | html %]" class="[% coce_id | html %]" id="coce-thumbnail-preview"></div>
82
                      <div title="[% biblio.biblionumber | html %]" class="[% coce_id | html %]" id="coce-thumbnail-preview"></div>
83
                    [% END %]
83
                    [% END %]
Lines 1518-1524 Link Here
1518
    [% IF ( GoogleJackets ) %]
1518
    [% IF ( GoogleJackets ) %]
1519
        KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]);
1519
        KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]);
1520
    [% END %]
1520
    [% END %]
1521
    [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1521
    [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
1522
        KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]',[% covernewwindow | html %]);
1522
        KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]',[% covernewwindow | html %]);
1523
    [% END %]
1523
    [% END %]
1524
1524
Lines 1565-1571 Link Here
1565
                    [% IF ( GoogleJackets ) %]
1565
                    [% IF ( GoogleJackets ) %]
1566
                      KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]);
1566
                      KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]);
1567
                    [% END %]
1567
                    [% END %]
1568
                    [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1568
                    [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
1569
                      KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]',[% covernewwindow | html %]);
1569
                      KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]',[% covernewwindow | html %]);
1570
                    [% END %]
1570
                    [% END %]
1571
                    [% IF OpenLibraryCovers %]
1571
                    [% IF OpenLibraryCovers %]
Lines 1591-1597 Link Here
1591
                    [% IF ( GoogleJackets ) %]
1591
                    [% IF ( GoogleJackets ) %]
1592
                      KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]);
1592
                      KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]);
1593
                    [% END %]
1593
                    [% END %]
1594
                    [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1594
                    [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
1595
                      KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]',[% covernewwindow | html %]);
1595
                      KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]',[% covernewwindow | html %]);
1596
                    [% END %]
1596
                    [% END %]
1597
                    [% IF OpenLibraryCovers %]
1597
                    [% IF OpenLibraryCovers %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt (-3 / +2 lines)
Lines 253-259 Link Here
253
                                                            [% END %]
253
                                                            [% END %]
254
                                                        [% END %]
254
                                                        [% END %]
255
255
256
                                                        [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
256
                                                        [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
257
                                                          [% coce_id = SEARCH_RESULT.normalized_ean || SEARCH_RESULT.normalized_isbn | html %]
257
                                                          [% coce_id = SEARCH_RESULT.normalized_ean || SEARCH_RESULT.normalized_isbn | html %]
258
                                                          [% IF ( coce_id ) %]
258
                                                          [% IF ( coce_id ) %]
259
                                                            <span title="[% SEARCH_RESULT.biblionumber |url %]" class="[% coce_id | html %]" id="coce-thumbnail[% loop.count | html %]"></span>
259
                                                            <span title="[% SEARCH_RESULT.biblionumber |url %]" class="[% coce_id | html %]" id="coce-thumbnail[% loop.count | html %]"></span>
Lines 987-993 $(document).ready(function(){ Link Here
987
[% IF OpenLibraryCovers %]KOHA.OpenLibrary.GetCoverFromIsbn();[% END %]
987
[% IF OpenLibraryCovers %]KOHA.OpenLibrary.GetCoverFromIsbn();[% END %]
988
[% IF OPACLocalCoverImages %]KOHA.LocalCover.GetCoverFromBibnumber(false);[% END %]
988
[% IF OPACLocalCoverImages %]KOHA.LocalCover.GetCoverFromBibnumber(false);[% END %]
989
[% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
989
[% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
990
[% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
990
[% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
991
    KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]');
991
    KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]');
992
[% END %]
992
[% END %]
993
993
994
- 

Return to bug 18421