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 118-124 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
118
('CircControl','ItemHomeLibrary','PickupLibrary|PatronLibrary|ItemHomeLibrary','Specify the agency that controls the circulation and fines policy','Choice'),
118
('CircControl','ItemHomeLibrary','PickupLibrary|PatronLibrary|ItemHomeLibrary','Specify the agency that controls the circulation and fines policy','Choice'),
119
('CircSidebar','0',NULL,'Activate or deactivate the navigation sidebar on all Circulation pages','YesNo'),
119
('CircSidebar','0',NULL,'Activate or deactivate the navigation sidebar on all Circulation pages','YesNo'),
120
('ClaimsBccCopy','0','','Bcc the ClaimAcquisition and ClaimIssues alerts','YesNo'),
120
('ClaimsBccCopy','0','','Bcc the ClaimAcquisition and ClaimIssues alerts','YesNo'),
121
('Coce','0', NULL, 'If on, enables cover retrieval from the configured Coce server', 'YesNo'),
122
('CoceHost', '', NULL, 'Coce server URL', 'Free'),
121
('CoceHost', '', NULL, 'Coce server URL', 'Free'),
123
('CoceProviders', '', 'aws,gb,ol', 'Coce providers', 'multiple'),
122
('CoceProviders', '', 'aws,gb,ol', 'Coce providers', 'multiple'),
124
('COinSinOPACResults','1','','If ON, use COinS in OPAC search results page.  NOTE: this can slow down search response time significantly','YesNo'),
123
('COinSinOPACResults','1','','If ON, use COinS in OPAC search results page.  NOTE: this can slow down search response time significantly','YesNo'),
Lines 242-247 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
242
('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'),
241
('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'),
243
('intranetbookbag','1','','If ON, enables display of Cart feature in the intranet','YesNo'),
242
('intranetbookbag','1','','If ON, enables display of Cart feature in the intranet','YesNo'),
244
('IntranetCirculationHomeHTML', '', NULL, 'Show the following HTML in a div on the bottom of the reports home page', 'Free'),
243
('IntranetCirculationHomeHTML', '', NULL, 'Show the following HTML in a div on the bottom of the reports home page', 'Free'),
244
('IntranetCoce','0', NULL, 'If on, enables cover retrieval from the configured Coce server in the staff intranet', 'YesNo'),
245
('intranetcolorstylesheet','','50','Define the color stylesheet to use in the Staff Client','free'),
245
('intranetcolorstylesheet','','50','Define the color stylesheet to use in the Staff Client','free'),
246
('IntranetFavicon','','','Enter a complete URL to an image to replace the default Koha favicon on the Staff client','free'),
246
('IntranetFavicon','','','Enter a complete URL to an image to replace the default Koha favicon on the Staff client','free'),
247
('IntranetmainUserblock','','70|10','Add a block of HTML that will display on the intranet home page','Textarea'),
247
('IntranetmainUserblock','','70|10','Add a block of HTML that will display on the intranet home page','Textarea'),
Lines 355-360 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
355
('OpacBrowseResults','1',NULL,'Disable/enable browsing and paging search results from the OPAC detail page.','YesNo'),
355
('OpacBrowseResults','1',NULL,'Disable/enable browsing and paging search results from the OPAC detail page.','YesNo'),
356
('OpacCloud','0',NULL,'If ON, enables subject cloud on OPAC','YesNo'),
356
('OpacCloud','0',NULL,'If ON, enables subject cloud on OPAC','YesNo'),
357
('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'),
357
('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'),
358
('OpacCoce','0', NULL, 'If on, enables cover retrieval from the configured Coce server in the OPAC', 'YesNo'),
358
('OpacCustomSearch','','70|10','Replace the search box on the OPAC with the provided HTML','Textarea'),
359
('OpacCustomSearch','','70|10','Replace the search box on the OPAC with the provided HTML','Textarea'),
359
('opaccredits','','70|10','Define HTML Credits at the bottom of the OPAC page','Textarea'),
360
('opaccredits','','70|10','Define HTML Credits at the bottom of the OPAC page','Textarea'),
360
('OPACdefaultSortField','relevance','relevance|popularity|call_number|pubdate|acqdate|title|author','Specify the default field used for sorting','Choice'),
361
('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 752-757 Link Here
752
    [% INCLUDE 'catalog-strings.inc' %]
768
    [% INCLUDE 'catalog-strings.inc' %]
753
    [% Asset.js("js/catalog.js") | $raw %]
769
    [% Asset.js("js/catalog.js") | $raw %]
754
    [% INCLUDE 'greybox.inc' %]
770
    [% INCLUDE 'greybox.inc' %]
771
    <script type="text/javascript" src="[% interface %]/prog/js/coce_[% KOHA_VERSION %].js"></script>
755
    <script>
772
    <script>
756
        var interface = "[% interface | html %]";
773
        var interface = "[% interface | html %]";
757
        var theme = "[% theme | html %]";
774
        var theme = "[% theme | html %]";
Lines 914-919 Link Here
914
            [% IF LocalCoverImages %]
931
            [% IF LocalCoverImages %]
915
                KOHA.LocalCover.GetCoverFromBibnumber(true);
932
                KOHA.LocalCover.GetCoverFromBibnumber(true);
916
            [% END %]
933
            [% END %]
934
            [% IF ( IntranetCoce && CoceProviders ) %]
935
                KOHA.coce.getURL('[% CoceHost %]', '[% CoceProviders %]');
936
            [% END %]
937
917
            $("body").on("click",".previewMARC", function(e){
938
            $("body").on("click",".previewMARC", function(e){
918
                e.preventDefault();
939
                e.preventDefault();
919
                var page = $(this).attr("href");
940
                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 375-381 Link Here
375
                                    [% SET MaxSearchResultsItemsPerRecordStatusCheck = Koha.Preference('MaxSearchResultsItemsPerRecordStatusCheck') %]
381
                                    [% SET MaxSearchResultsItemsPerRecordStatusCheck = Koha.Preference('MaxSearchResultsItemsPerRecordStatusCheck') %]
376
                                    [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
382
                                    [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
377
                                        <tr>
383
                                        <tr>
378
                                            [% IF ( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled ) %]
384
                                            [% IF ( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled || IntranetCoce ) %]
379
                                                <td>
385
                                                <td>
380
                                                    [% IF ( LocalCoverImages) %]
386
                                                    [% IF ( LocalCoverImages) %]
381
                                                        <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage | html %]?biblionumber=[% SEARCH_RESULT.biblionumber |url %]">
387
                                                        <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage | html %]?biblionumber=[% SEARCH_RESULT.biblionumber |url %]">
Lines 395-402 Link Here
395
                                                        [% END %]
401
                                                        [% END %]
396
                                                        </a>
402
                                                        </a>
397
                                                    [% END # /IF AmazonCoverImages %]
403
                                                    [% END # /IF AmazonCoverImages %]
404
                                                    [% IF ( IntranetCoce && CoceProviders ) %]
405
                                                        [% coce_id = SEARCH_RESULT.normalized_ean || SEARCH_RESULT.normalized_isbn %]
406
                                                            <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage %]?biblionumber=[% SEARCH_RESULT.biblionumber |url %]">
407
                                                        [% IF ( coce_id ) %]
408
                                                            <span style="block" title="[% SEARCH_RESULT.biblionumber |url %]" class="[% coce_id %]" id="coce-thumbnail[% loop.count %]"></span>
409
                                                        [% ELSE %]
410
                                                            <span class="no-image">No cover image available</span>
411
                                                        [% END %]
412
                                                        </a>
413
                                                    [% END %]
398
                                                </td>
414
                                                </td>
399
                                            [% END # /IF( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled )%]
415
                                            [% END # /IF( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled || IntranetCoce )%]
400
416
401
                                            <td>
417
                                            <td>
402
                                                <input type="checkbox" class="selection" id="bib[% SEARCH_RESULT.biblionumber | html %]" name="biblionumber" value="[% SEARCH_RESULT.biblionumber | html %]" style="display:none" />
418
                                                <input type="checkbox" class="selection" id="bib[% SEARCH_RESULT.biblionumber | html %]" name="biblionumber" value="[% SEARCH_RESULT.biblionumber | html %]" style="display:none" />
Lines 641-646 Link Here
641
    [% Asset.js("js/browser.js") | $raw %]
657
    [% Asset.js("js/browser.js") | $raw %]
642
    [% Asset.js("lib/hc-sticky.js") | $raw %]
658
    [% Asset.js("lib/hc-sticky.js") | $raw %]
643
    [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
659
    [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
660
    [% Asset.js("prog/js/coce.js") %]
644
    <script>
661
    <script>
645
        var MSG_NO_ITEM_SELECTED = _("Nothing is selected.");
662
        var MSG_NO_ITEM_SELECTED = _("Nothing is selected.");
646
        var MSG_NON_RESERVES_SELECTED = _("One or more selected items cannot be placed on hold.");
663
        var MSG_NON_RESERVES_SELECTED = _("One or more selected items cannot be placed on hold.");
Lines 777-782 Link Here
777
                KOHA.LocalCover.LoadResultsCovers();
794
                KOHA.LocalCover.LoadResultsCovers();
778
            [% END %]
795
            [% END %]
779
796
797
            [% IF ( IntranetCoce && CoceProviders ) %]
798
                KOHA.coce.getURL('[% CoceHost %]', '[% CoceProviders %]');
799
            [% END %]
800
780
            $("#select_all").on("click",function(e){
801
            $("#select_all").on("click",function(e){
781
                e.preventDefault();
802
                e.preventDefault();
782
                selectAll();
803
                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 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 1530-1536 Link Here
1530
    [% IF ( GoogleJackets ) %]
1530
    [% IF ( GoogleJackets ) %]
1531
        KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]);
1531
        KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]);
1532
    [% END %]
1532
    [% END %]
1533
    [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1533
    [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
1534
        KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]',[% covernewwindow | html %]);
1534
        KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]',[% covernewwindow | html %]);
1535
    [% END %]
1535
    [% END %]
1536
1536
Lines 1577-1583 Link Here
1577
                    [% IF ( GoogleJackets ) %]
1577
                    [% IF ( GoogleJackets ) %]
1578
                      KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]);
1578
                      KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]);
1579
                    [% END %]
1579
                    [% END %]
1580
                    [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1580
                    [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
1581
                      KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]',[% covernewwindow | html %]);
1581
                      KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]',[% covernewwindow | html %]);
1582
                    [% END %]
1582
                    [% END %]
1583
                    [% IF OpenLibraryCovers %]
1583
                    [% IF OpenLibraryCovers %]
Lines 1603-1609 Link Here
1603
                    [% IF ( GoogleJackets ) %]
1603
                    [% IF ( GoogleJackets ) %]
1604
                      KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]);
1604
                      KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]);
1605
                    [% END %]
1605
                    [% END %]
1606
                    [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1606
                    [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
1607
                      KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]',[% covernewwindow | html %]);
1607
                      KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]',[% covernewwindow | html %]);
1608
                    [% END %]
1608
                    [% END %]
1609
                    [% IF OpenLibraryCovers %]
1609
                    [% 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 1037-1043 $(document).ready(function(){ Link Here
1037
[% IF OpenLibraryCovers %]KOHA.OpenLibrary.GetCoverFromIsbn();[% END %]
1037
[% IF OpenLibraryCovers %]KOHA.OpenLibrary.GetCoverFromIsbn();[% END %]
1038
[% IF OPACLocalCoverImages %]KOHA.LocalCover.GetCoverFromBibnumber(false);[% END %]
1038
[% IF OPACLocalCoverImages %]KOHA.LocalCover.GetCoverFromBibnumber(false);[% END %]
1039
[% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
1039
[% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
1040
[% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1040
[% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
1041
    KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]');
1041
    KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]');
1042
[% END %]
1042
[% END %]
1043
1043
1044
- 

Return to bug 18421