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 121-127 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
121
('CircControl','ItemHomeLibrary','PickupLibrary|PatronLibrary|ItemHomeLibrary','Specify the agency that controls the circulation and fines policy','Choice'),
121
('CircControl','ItemHomeLibrary','PickupLibrary|PatronLibrary|ItemHomeLibrary','Specify the agency that controls the circulation and fines policy','Choice'),
122
('CircSidebar','0',NULL,'Activate or deactivate the navigation sidebar on all Circulation pages','YesNo'),
122
('CircSidebar','0',NULL,'Activate or deactivate the navigation sidebar on all Circulation pages','YesNo'),
123
('ClaimsBccCopy','0','','Bcc the ClaimAcquisition and ClaimIssues alerts','YesNo'),
123
('ClaimsBccCopy','0','','Bcc the ClaimAcquisition and ClaimIssues alerts','YesNo'),
124
('Coce','0', NULL, 'If on, enables cover retrieval from the configured Coce server', 'YesNo'),
125
('CoceHost', '', NULL, 'Coce server URL', 'Free'),
124
('CoceHost', '', NULL, 'Coce server URL', 'Free'),
126
('CoceProviders', '', 'aws,gb,ol', 'Coce providers', 'multiple'),
125
('CoceProviders', '', 'aws,gb,ol', 'Coce providers', 'multiple'),
127
('COinSinOPACResults','1','','If ON, use COinS in OPAC search results page.  NOTE: this can slow down search response time significantly','YesNo'),
126
('COinSinOPACResults','1','','If ON, use COinS in OPAC search results page.  NOTE: this can slow down search response time significantly','YesNo'),
Lines 248-253 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
248
('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'),
247
('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'),
249
('intranetbookbag','1','','If ON, enables display of Cart feature in the intranet','YesNo'),
248
('intranetbookbag','1','','If ON, enables display of Cart feature in the intranet','YesNo'),
250
('IntranetCirculationHomeHTML', '', NULL, 'Show the following HTML in a div on the bottom of the reports home page', 'Free'),
249
('IntranetCirculationHomeHTML', '', NULL, 'Show the following HTML in a div on the bottom of the reports home page', 'Free'),
250
('IntranetCoce','0', NULL, 'If on, enables cover retrieval from the configured Coce server in the staff intranet', 'YesNo'),
251
('intranetcolorstylesheet','','50','Define the color stylesheet to use in the Staff Client','free'),
251
('intranetcolorstylesheet','','50','Define the color stylesheet to use in the Staff Client','free'),
252
('IntranetFavicon','','','Enter a complete URL to an image to replace the default Koha favicon on the Staff client','free'),
252
('IntranetFavicon','','','Enter a complete URL to an image to replace the default Koha favicon on the Staff client','free'),
253
('IntranetmainUserblock','','70|10','Add a block of HTML that will display on the intranet home page','Textarea'),
253
('IntranetmainUserblock','','70|10','Add a block of HTML that will display on the intranet home page','Textarea'),
Lines 361-366 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
361
('OpacBrowseResults','1',NULL,'Disable/enable browsing and paging search results from the OPAC detail page.','YesNo'),
361
('OpacBrowseResults','1',NULL,'Disable/enable browsing and paging search results from the OPAC detail page.','YesNo'),
362
('OpacCloud','0',NULL,'If ON, enables subject cloud on OPAC','YesNo'),
362
('OpacCloud','0',NULL,'If ON, enables subject cloud on OPAC','YesNo'),
363
('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'),
363
('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'),
364
('OpacCoce','0', NULL, 'If on, enables cover retrieval from the configured Coce server in the OPAC', 'YesNo'),
364
('OpacCustomSearch','','70|10','Replace the search box on the OPAC with the provided HTML','Textarea'),
365
('OpacCustomSearch','','70|10','Replace the search box on the OPAC with the provided HTML','Textarea'),
365
('opaccredits','','70|10','Define HTML Credits at the bottom of the OPAC page','Textarea'),
366
('opaccredits','','70|10','Define HTML Credits at the bottom of the OPAC page','Textarea'),
366
('OPACdefaultSortField','relevance','relevance|popularity|call_number|pubdate|acqdate|title|author','Specify the default field used for sorting','Choice'),
367
('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 412-422 Enhanced Content: Link Here
412
            - pref: RecordedBooksDomain
412
            - pref: RecordedBooksDomain
413
    Coce Cover images cache:
413
    Coce Cover images cache:
414
        -
414
        -
415
            - pref: Coce
415
            - pref: OpacCoce
416
              choices:
416
              choices:
417
                  yes: Enable
417
                  yes: Enable
418
                  no: "Don't enable"
418
                  no: "Don't enable"
419
            - a Coce image cache service.
419
            - a Coce image cache service in the OPAC.
420
        -
421
            - pref: IntranetCoce
422
              choices:
423
                  yes: Enable
424
                  no: "Don't enable"
425
            - a Coce image cache service in the staff intranet.
420
        -
426
        -
421
            - Coce server URL
427
            - Coce server URL
422
            - pref: CoceHost
428
            - pref: CoceHost
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-2 / +23 lines)
Lines 63-75 Link Here
63
  <div class="dialog message">The record you requested does not exist ([% biblionumber | html %]).</div>
63
  <div class="dialog message">The record you requested does not exist ([% biblionumber | html %]).</div>
64
[% ELSE %]
64
[% ELSE %]
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
        <div id="catalogue_detail_biblio" class="col-xs-9">
79
        <div id="catalogue_detail_biblio" class="col-xs-9">
74
    [% ELSE %]
80
    [% ELSE %]
75
        <div id="catalogue_detail_biblio" class="col-xs-12">
81
        <div id="catalogue_detail_biblio" class="col-xs-12">
Lines 121-127 Link Here
121
            </span>
127
            </span>
122
        [% END %]
128
        [% END %]
123
129
124
        [% IF ( AmazonCoverImages  || LocalCoverImages || AdlibrisEnabled ) %]
130
        [% IF ( AmazonCoverImages  || LocalCoverImages || AdlibrisEnabled || IntranetCoce ) %]
125
        </div><div class="col-xs-3" id="bookcoverimg">
131
        </div><div class="col-xs-3" id="bookcoverimg">
126
        [% IF ( LocalCoverImages ) %]
132
        [% IF ( LocalCoverImages ) %]
127
            <div title="[% biblionumber |url %]" class="[% biblionumber | html %]" id="local-thumbnail-preview"></div>
133
            <div title="[% biblionumber |url %]" class="[% biblionumber | html %]" id="local-thumbnail-preview"></div>
Lines 135-140 Link Here
135
                <img src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn | html %].01.MZZZZZZZ.jpg" alt="" />
141
                <img src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn | html %].01.MZZZZZZZ.jpg" alt="" />
136
        </a></div>
142
        </a></div>
137
        [% END %]
143
        [% END %]
144
        [% IF ( IntranetCoce && CoceProviders ) %]
145
          [% coce_id = normalized_ean || normalized_isbn %]
146
            <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage %]?biblionumber=[% biblionumber |url %]">
147
          [% IF ( coce_id ) %]
148
            <span style="block" title="[% biblionumber |url %]" class="[% coce_id %]" id="coce-thumbnail-preview"></span>
149
          [% ELSE %]
150
            <span class="no-image">No cover image available</span>
151
          [% END %]
152
            </a>
153
        [% END %]
138
        [% END %]
154
        [% END %]
139
155
140
</div>
156
</div>
Lines 754-759 Link Here
754
    [% INCLUDE 'catalog-strings.inc' %]
770
    [% INCLUDE 'catalog-strings.inc' %]
755
    [% Asset.js("js/catalog.js") | $raw %]
771
    [% Asset.js("js/catalog.js") | $raw %]
756
    [% INCLUDE 'greybox.inc' %]
772
    [% INCLUDE 'greybox.inc' %]
773
    <script type="text/javascript" src="[% interface %]/prog/js/coce_[% KOHA_VERSION %].js"></script>
757
    <script>
774
    <script>
758
        var interface = "[% interface | html %]";
775
        var interface = "[% interface | html %]";
759
        var theme = "[% theme | html %]";
776
        var theme = "[% theme | html %]";
Lines 916-921 Link Here
916
            [% IF LocalCoverImages %]
933
            [% IF LocalCoverImages %]
917
                KOHA.LocalCover.GetCoverFromBibnumber(true);
934
                KOHA.LocalCover.GetCoverFromBibnumber(true);
918
            [% END %]
935
            [% END %]
936
            [% IF ( IntranetCoce && CoceProviders ) %]
937
                KOHA.coce.getURL('[% CoceHost %]', '[% CoceProviders %]');
938
            [% END %]
939
919
            $("body").on("click",".previewMARC", function(e){
940
            $("body").on("click",".previewMARC", function(e){
920
                e.preventDefault();
941
                e.preventDefault();
921
                var page = $(this).attr("href");
942
                var page = $(this).attr("href");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt (-2 / +23 lines)
Lines 27-32 Link Here
27
[% INCLUDE 'header.inc' %]
27
[% INCLUDE 'header.inc' %]
28
[% INCLUDE 'cat-search.inc' %]
28
[% INCLUDE 'cat-search.inc' %]
29
29
30
[%
31
    IntranetCoce    = Koha.Preference('IntranetCoce')
32
    CoceProviders   = Koha.Preference('CoceProviders')
33
    CoceHost        = Koha.Preference('CoceHost')
34
%]
35
30
<div id="breadcrumbs">
36
<div id="breadcrumbs">
31
    <a href="/cgi-bin/koha/mainpage.pl">Home</a>
37
    <a href="/cgi-bin/koha/mainpage.pl">Home</a>
32
    &rsaquo; <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a>
38
    &rsaquo; <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a>
Lines 382-388 Link Here
382
                                    [% SET MaxSearchResultsItemsPerRecordStatusCheck = Koha.Preference('MaxSearchResultsItemsPerRecordStatusCheck') %]
388
                                    [% SET MaxSearchResultsItemsPerRecordStatusCheck = Koha.Preference('MaxSearchResultsItemsPerRecordStatusCheck') %]
383
                                    [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
389
                                    [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
384
                                        <tr>
390
                                        <tr>
385
                                            [% IF ( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled ) %]
391
                                            [% IF ( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled || IntranetCoce ) %]
386
                                                <td>
392
                                                <td>
387
                                                    [% IF ( LocalCoverImages) %]
393
                                                    [% IF ( LocalCoverImages) %]
388
                                                        <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage | html %]?biblionumber=[% SEARCH_RESULT.biblionumber |url %]">
394
                                                        <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage | html %]?biblionumber=[% SEARCH_RESULT.biblionumber |url %]">
Lines 402-409 Link Here
402
                                                        [% END %]
408
                                                        [% END %]
403
                                                        </a>
409
                                                        </a>
404
                                                    [% END # /IF AmazonCoverImages %]
410
                                                    [% END # /IF AmazonCoverImages %]
411
                                                    [% IF ( IntranetCoce && CoceProviders ) %]
412
                                                        [% coce_id = SEARCH_RESULT.normalized_ean || SEARCH_RESULT.normalized_isbn %]
413
                                                            <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage %]?biblionumber=[% SEARCH_RESULT.biblionumber |url %]">
414
                                                        [% IF ( coce_id ) %]
415
                                                            <span style="block" title="[% SEARCH_RESULT.biblionumber |url %]" class="[% coce_id %]" id="coce-thumbnail[% loop.count %]"></span>
416
                                                        [% ELSE %]
417
                                                            <span class="no-image">No cover image available</span>
418
                                                        [% END %]
419
                                                        </a>
420
                                                    [% END %]
405
                                                </td>
421
                                                </td>
406
                                            [% END # /IF( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled )%]
422
                                            [% END # /IF( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled || IntranetCoce )%]
407
423
408
                                            <td>
424
                                            <td>
409
                                                <input type="checkbox" class="selection" id="bib[% SEARCH_RESULT.biblionumber | html %]" name="biblionumber" value="[% SEARCH_RESULT.biblionumber | html %]" style="display:none" />
425
                                                <input type="checkbox" class="selection" id="bib[% SEARCH_RESULT.biblionumber | html %]" name="biblionumber" value="[% SEARCH_RESULT.biblionumber | html %]" style="display:none" />
Lines 650-655 Link Here
650
    [% Asset.js("js/browser.js") | $raw %]
666
    [% Asset.js("js/browser.js") | $raw %]
651
    [% Asset.js("lib/hc-sticky.js") | $raw %]
667
    [% Asset.js("lib/hc-sticky.js") | $raw %]
652
    [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
668
    [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
669
    [% Asset.js("prog/js/coce.js") %]
653
    <script>
670
    <script>
654
        var MSG_NO_ITEM_SELECTED = _("Nothing is selected.");
671
        var MSG_NO_ITEM_SELECTED = _("Nothing is selected.");
655
        var MSG_NON_RESERVES_SELECTED = _("One or more selected items cannot be placed on hold.");
672
        var MSG_NON_RESERVES_SELECTED = _("One or more selected items cannot be placed on hold.");
Lines 793-798 Link Here
793
                KOHA.LocalCover.LoadResultsCovers();
810
                KOHA.LocalCover.LoadResultsCovers();
794
            [% END %]
811
            [% END %]
795
812
813
            [% IF ( IntranetCoce && CoceProviders ) %]
814
                KOHA.coce.getURL('[% CoceHost %]', '[% CoceProviders %]');
815
            [% END %]
816
796
            $("#select_all").on("click",function(e){
817
            $("#select_all").on("click",function(e){
797
                e.preventDefault();
818
                e.preventDefault();
798
                selectAll();
819
                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 231-237 $.widget.bridge('uitooltip', $.ui.tooltip); Link Here
231
        //]]>
231
        //]]>
232
    </script>
232
    </script>
233
[% END %]
233
[% END %]
234
[% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
234
[% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
235
    [% Asset.js("js/coce.js") | $raw %]
235
    [% Asset.js("js/coce.js") | $raw %]
236
    <script>
236
    <script>
237
        //<![CDATA[
237
        //<![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 78-85 Link Here
78
                    [% IF ( GoogleJackets ) %]
78
                    [% IF ( GoogleJackets ) %]
79
                        <div title="[% biblio.biblionumber | html %]" class="[% normalized_isbn | html %]" id="gbs-thumbnail-preview"></div>
79
                        <div title="[% biblio.biblionumber | html %]" class="[% normalized_isbn | html %]" id="gbs-thumbnail-preview"></div>
80
                    [% END %]
80
                    [% END %]
81
                    [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
81
                    [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
82
                      [% coce_id = normalized_ean || normalized_isbn %]
82
                      [% coce_id = normalized_ean || normalized_isbn | html %]
83
                      <div title="[% biblio.biblionumber | html %]" class="[% coce_id | html %]" id="coce-thumbnail-preview"></div>
83
                      <div title="[% biblio.biblionumber | html %]" class="[% coce_id | html %]" id="coce-thumbnail-preview"></div>
84
                    [% END %]
84
                    [% END %]
85
                    [% IF OpenLibraryCovers %]
85
                    [% IF OpenLibraryCovers %]
Lines 1557-1563 Link Here
1557
    [% IF ( GoogleJackets ) %]
1557
    [% IF ( GoogleJackets ) %]
1558
        KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]);
1558
        KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]);
1559
    [% END %]
1559
    [% END %]
1560
    [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1560
    [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
1561
        KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]',[% covernewwindow | html %]);
1561
        KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]',[% covernewwindow | html %]);
1562
    [% END %]
1562
    [% END %]
1563
1563
Lines 1604-1610 Link Here
1604
                    [% IF ( GoogleJackets ) %]
1604
                    [% IF ( GoogleJackets ) %]
1605
                      KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]);
1605
                      KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]);
1606
                    [% END %]
1606
                    [% END %]
1607
                    [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1607
                    [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
1608
                      KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]',[% covernewwindow | html %]);
1608
                      KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]',[% covernewwindow | html %]);
1609
                    [% END %]
1609
                    [% END %]
1610
                    [% IF OpenLibraryCovers %]
1610
                    [% IF OpenLibraryCovers %]
Lines 1630-1636 Link Here
1630
                    [% IF ( GoogleJackets ) %]
1630
                    [% IF ( GoogleJackets ) %]
1631
                      KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]);
1631
                      KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]);
1632
                    [% END %]
1632
                    [% END %]
1633
                    [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1633
                    [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
1634
                      KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]',[% covernewwindow | html %]);
1634
                      KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]',[% covernewwindow | html %]);
1635
                    [% END %]
1635
                    [% END %]
1636
                    [% IF OpenLibraryCovers %]
1636
                    [% IF OpenLibraryCovers %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt (-4 / +3 lines)
Lines 284-291 Link Here
284
                                                            [% END %]
284
                                                            [% END %]
285
                                                        [% END %]
285
                                                        [% END %]
286
286
287
                                                        [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
287
                                                        [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
288
                                                          [% coce_id = SEARCH_RESULT.normalized_ean || SEARCH_RESULT.normalized_isbn %]
288
                                                          [% coce_id = SEARCH_RESULT.normalized_ean || SEARCH_RESULT.normalized_isbn | html %]
289
                                                          [% IF ( coce_id ) %]
289
                                                          [% IF ( coce_id ) %]
290
                                                            <span title="[% SEARCH_RESULT.biblionumber |url %]" class="[% coce_id | html %]" id="coce-thumbnail[% loop.count | html %]"></span>
290
                                                            <span title="[% SEARCH_RESULT.biblionumber |url %]" class="[% coce_id | html %]" id="coce-thumbnail[% loop.count | html %]"></span>
291
                                                          [% ELSE %]
291
                                                          [% ELSE %]
Lines 1028-1034 $(document).ready(function(){ Link Here
1028
[% IF OpenLibraryCovers %]KOHA.OpenLibrary.GetCoverFromIsbn();[% END %]
1028
[% IF OpenLibraryCovers %]KOHA.OpenLibrary.GetCoverFromIsbn();[% END %]
1029
[% IF OPACLocalCoverImages %]KOHA.LocalCover.GetCoverFromBibnumber(false);[% END %]
1029
[% IF OPACLocalCoverImages %]KOHA.LocalCover.GetCoverFromBibnumber(false);[% END %]
1030
[% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
1030
[% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
1031
[% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1031
[% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
1032
    KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]');
1032
    KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]');
1033
[% END %]
1033
[% END %]
1034
1034
1035
- 

Return to bug 18421