View | Details | Raw Unified | Return to bug 29200
Collapse All | Expand All

(-)a/installer/data/mysql/atomicupdate/bug-29200.pl (+14 lines)
Line 0 Link Here
1
use Modern::Perl;
2
3
return {
4
    bug_number => "29200",
5
    description => "Remove Adlibris cover service integration",
6
    up => sub {
7
        my ($args) = @_;
8
        my ($dbh, $out) = @$args{qw(dbh out)};
9
        # Do you stuffs here
10
        $dbh->do(q{DELETE FROM systempreferences WHERE variable LIKE 'AdlibrisCovers%'});
11
        # Print useful stuff here
12
        say $out "AdlibrisCoversEnabled and AdlibrisCoversURL preferences removed.";
13
    },
14
}
(-)a/installer/data/mysql/mandatory/sysprefs.sql (-2 lines)
Lines 13-20 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
13
('AdditionalFieldsInZ3950ResultSearch', '', NULL, 'Determines which MARC field/subfields are displayed in -Additional field- column in the result of a search Z3950', 'Free'),
13
('AdditionalFieldsInZ3950ResultSearch', '', NULL, 'Determines which MARC field/subfields are displayed in -Additional field- column in the result of a search Z3950', 'Free'),
14
('AddressForFailedOverdueNotices', '', NULL, 'Destination email for failed overdue notices. If left empty then it will fallback to the first defined address in the following list: Library ReplyTo, Library Email, ReplytoDefault and KohaAdminEmailAddress', 'free'),
14
('AddressForFailedOverdueNotices', '', NULL, 'Destination email for failed overdue notices. If left empty then it will fallback to the first defined address in the following list: Library ReplyTo, Library Email, ReplytoDefault and KohaAdminEmailAddress', 'free'),
15
('AddressFormat','us','us|de|fr','Choose format to display postal addresses', 'Choice'),
15
('AddressFormat','us','us|de|fr','Choose format to display postal addresses', 'Choice'),
16
('AdlibrisCoversEnabled','0',NULL,'Display cover images in OPAC results and detail listing from Swedish retailer Adlibris.','YesNo'),
17
('AdlibrisCoversURL','http://www.adlibris.com/se/organisationer/showimagesafe.aspx',NULL,'Base URL for Adlibris cover image web service.','Free'),
18
('advancedMARCeditor','0','','If ON, the MARC editor won\'t display field/subfield descriptions','YesNo'),
16
('advancedMARCeditor','0','','If ON, the MARC editor won\'t display field/subfield descriptions','YesNo'),
19
('AdvancedSearchLanguages','','','ISO 639-2 codes of languages you wish to see appear as an Advanced search option.  Example: eng|fre|ita','Textarea'),
17
('AdvancedSearchLanguages','','','ISO 639-2 codes of languages you wish to see appear as an Advanced search option.  Example: eng|fre|ita','Textarea'),
20
('AdvancedSearchTypes','itemtypes','itemtypes|ccode','Select which set of fields comprise the Type limit in the advanced search','Choice'),
18
('AdvancedSearchTypes','itemtypes','itemtypes|ccode','Select which set of fields comprise the Type limit in the advanced search','Choice'),
(-)a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss (-8 lines)
Lines 4326-4339 input.renew { Link Here
4326
    }
4326
    }
4327
}
4327
}
4328
4328
4329
.adlibris-cover {
4330
    max-height: 120px;
4331
}
4332
4333
.adlibris-cover-big {
4334
    max-height: 200px;
4335
}
4336
4337
#tools_holidays {
4329
#tools_holidays {
4338
    .radio,
4330
    .radio,
4339
    .checkbox {
4331
    .checkbox {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/enhanced_content.pref (-16 lines)
Lines 1-20 Link Here
1
Enhanced content:
1
Enhanced content:
2
    Adlibris:
3
        -
4
            - <strong>NOTE:</strong> Using resources such as external images might leak sensitive data to third parties.
5
        -
6
            - pref: AdlibrisCoversEnabled
7
              default: 0
8
              choices:
9
                  0: "Don't show"
10
                  1: "Show"
11
            - cover images in OPAC results and detail listing from Swedish retailer <a href="https://www.adlibris.com/se">Adlibris</a>.
12
        -
13
            - "Use base URL: "
14
            - pref: AdlibrisCoversURL
15
              class: url
16
              default: "http://www.adlibris.com/se/organisationer/showimagesafe.aspx"
17
            - for the <a href="https://www.adlibris.com/se">Adlibris</a> cover service.
18
    All:
2
    All:
19
        -
3
        -
20
            - <strong>NOTE:</strong> you can only choose one source of cover images from below, otherwise Koha will show the images from all sources selected.
4
            - <strong>NOTE:</strong> you can only choose one source of cover images from below, otherwise Koha will show the images from all sources selected.
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-15 / +2 lines)
Lines 9-16 Link Here
9
[% USE Price %]
9
[% USE Price %]
10
[% USE TablesSettings %]
10
[% USE TablesSettings %]
11
[% PROCESS 'i18n.inc' %]
11
[% PROCESS 'i18n.inc' %]
12
[% SET AdlibrisEnabled = Koha.Preference('AdlibrisCoversEnabled') %]
13
[% SET AdlibrisURL = Koha.Preference('AdlibrisCoversURL') %]
14
12
15
[% IF Koha.Preference('AmazonAssocTag') %]
13
[% IF Koha.Preference('AmazonAssocTag') %]
16
    [% AmazonAssocTag = '?tag=' _ Koha.Preference('AmazonAssocTag') %]
14
    [% AmazonAssocTag = '?tag=' _ Koha.Preference('AmazonAssocTag') %]
Lines 106-112 Link Here
106
        <span class="Z3988" title="[% ocoins | html %]"></span>
104
        <span class="Z3988" title="[% ocoins | html %]"></span>
107
    [% END %]
105
    [% END %]
108
106
109
    [% IF ( AmazonCoverImages  || LocalCoverImages || AdlibrisEnabled || IntranetCoce || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
107
    [% IF ( AmazonCoverImages  || LocalCoverImages || IntranetCoce || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
110
        <div id="catalogue_detail_biblio" class="col-xs-9">
108
        <div id="catalogue_detail_biblio" class="col-xs-9">
111
    [% ELSE %]
109
    [% ELSE %]
112
        <div id="catalogue_detail_biblio" class="col-xs-12">
110
        <div id="catalogue_detail_biblio" class="col-xs-12">
Lines 194-200 Link Here
194
            </span>
192
            </span>
195
        [% END %]
193
        [% END %]
196
194
197
        [% IF ( AmazonCoverImages  || LocalCoverImages || AdlibrisEnabled || IntranetCoce || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
195
        [% IF ( AmazonCoverImages  || LocalCoverImages || IntranetCoce || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
198
            </div>
196
            </div>
199
            <div class="col-xs-3 bookcoverimg">
197
            <div class="col-xs-3 bookcoverimg">
200
                <div id="biblio-cover-slider" class="cover-slider">
198
                <div id="biblio-cover-slider" class="cover-slider">
Lines 211-225 Link Here
211
                        [% END %]
209
                        [% END %]
212
                    [% END %]
210
                    [% END %]
213
211
214
                    [% IF ( AdlibrisEnabled && normalized_isbn ) %]
215
                        <div class="cover-image" id="adlibris-coverimg">
216
                            <a href="[% AdlibrisURL | url %]?isbn=[% normalized_isbn | uri %]" title="Addlibris cover image">
217
                                <img src="[% AdlibrisURL | url %]?isbn=[% normalized_isbn | uri %]" class="adlibris-cover-big" alt="Adlibris cover image" data-link="[% AdlibrisURL | url %]?isbn=[% normalized_isbn | uri %]" />
218
                            </a>
219
                            <div class="hint">Image from Adlibris</div>
220
                        </div>
221
                    [% END %]
222
223
                    [% IF ( AmazonCoverImages && normalized_isbn) %]
212
                    [% IF ( AmazonCoverImages && normalized_isbn) %]
224
                        <div class="cover-image" id="amazon-bookcoverimg">
213
                        <div class="cover-image" id="amazon-bookcoverimg">
225
                            <a href="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn | uri %].01.LZZZZZZZ.jpg" title="Amazon cover image">
214
                            <a href="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn | uri %].01.LZZZZZZZ.jpg" title="Amazon cover image">
Lines 1078-1085 Note that permanent location is a code, and location may be an authval. Link Here
1078
                                }
1067
                                }
1079
                                div.find(".hint").html(coce_description);
1068
                                div.find(".hint").html(coce_description);
1080
                                lightbox_descriptions.push(coce_description);
1069
                                lightbox_descriptions.push(coce_description);
1081
                            } else if ( div.attr("id") == "adlibris-coverimg" ){
1082
                                lightbox_descriptions.push(_("Image from Adlibris (<a href='%s'>see the original image</a>)").format($(img).data('link')));
1083
                            } else if ( div.attr("class") == "cover-image local-coverimg" ) {
1070
                            } else if ( div.attr("class") == "cover-image local-coverimg" ) {
1084
                                lightbox_descriptions.push(_("Local cover image (<a href='%s'>edit</a>)").format($(img).data('link')));
1071
                                lightbox_descriptions.push(_("Local cover image (<a href='%s'>edit</a>)").format($(img).data('link')));
1085
                            } else {
1072
                            } else {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt (-12 / +3 lines)
Lines 7-14 Link Here
7
[% PROCESS 'i18n.inc' %]
7
[% PROCESS 'i18n.inc' %]
8
[% SET footerjs = 1 %]
8
[% SET footerjs = 1 %]
9
[% USE AuthorisedValues %]
9
[% USE AuthorisedValues %]
10
[% SET AdlibrisEnabled = Koha.Preference('AdlibrisCoversEnabled') %]
11
[% SET AdlibrisURL = Koha.Preference('AdlibrisCoversURL') %]
12
[% IF BiblioDefaultViewmarc %]
10
[% IF BiblioDefaultViewmarc %]
13
    [% SET DetailPage="MARCdetail.pl" %]
11
    [% SET DetailPage="MARCdetail.pl" %]
14
[% ELSIF BiblioDefaultViewlabeled_marc %]
12
[% ELSIF BiblioDefaultViewlabeled_marc %]
Lines 425-431 Link Here
425
                                <!-- TABLE RESULTS START -->
423
                                <!-- TABLE RESULTS START -->
426
                                <table>
424
                                <table>
427
                                    <tr>
425
                                    <tr>
428
                                        [% IF ( AmazonCoverImages  || LocalCoverImages || AdlibrisEnabled || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
426
                                        [% IF ( AmazonCoverImages  || LocalCoverImages || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
429
                                            <th>&nbsp;</th>
427
                                            <th>&nbsp;</th>
430
                                        [% END %]
428
                                        [% END %]
431
                                        <th colspan="2">Results</th>
429
                                        <th colspan="2">Results</th>
Lines 435-441 Link Here
435
                                    [% SET MaxSearchResultsItemsPerRecordStatusCheck = Koha.Preference('MaxSearchResultsItemsPerRecordStatusCheck') %]
433
                                    [% SET MaxSearchResultsItemsPerRecordStatusCheck = Koha.Preference('MaxSearchResultsItemsPerRecordStatusCheck') %]
436
                                    [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
434
                                    [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
437
                                        <tr id="row[% SEARCH_RESULT.biblionumber | html %]">
435
                                        <tr id="row[% SEARCH_RESULT.biblionumber | html %]">
438
                                            [% IF ( AmazonCoverImages  || LocalCoverImages || AdlibrisEnabled || IntranetCoce || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
436
                                            [% IF ( AmazonCoverImages  || LocalCoverImages || IntranetCoce || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
439
    <td class="bookcoverimg">
437
    <td class="bookcoverimg">
440
        <div id="cover-slides-[% SEARCH_RESULT.biblionumber | html %]" class="cover-slides" data-biblionumber="[% SEARCH_RESULT.biblionumber | html %]">
438
        <div id="cover-slides-[% SEARCH_RESULT.biblionumber | html %]" class="cover-slides" data-biblionumber="[% SEARCH_RESULT.biblionumber | html %]">
441
            [% IF ( LocalCoverImages ) %][% SEARCH_RESULT.localimage | html %]
439
            [% IF ( LocalCoverImages ) %][% SEARCH_RESULT.localimage | html %]
Lines 447-459 Link Here
447
                </div>
445
                </div>
448
            [% END %]
446
            [% END %]
449
447
450
            [% IF ( AdlibrisEnabled && SEARCH_RESULT.normalized_isbn ) %]
451
                <div id="adlibris-coverimg-[% SEARCH_RESULT.biblionumber | html %]" class="cover-image adlibris-coverimg">
452
                    <a href="[% AdlibrisURL | url %]?isbn=[% SEARCH_RESULT.normalized_isbn | uri %]"><img src="[% AdlibrisURL | url %]?isbn=[% SEARCH_RESULT.normalized_isbn | uri %]" class="adlibris-cover" alt="Adlibris cover image" /></a>
453
                    <div class="hint">Adlibris cover image</div>
454
                </div>
455
            [% END %]
456
457
            [% IF ( AmazonCoverImages && SEARCH_RESULT.normalized_isbn ) %]
448
            [% IF ( AmazonCoverImages && SEARCH_RESULT.normalized_isbn ) %]
458
                <div id="amazon-bookcoverimg-[% SEARCH_RESULT.biblionumber | html %]" class="cover-image amazon-bookcoverimg">
449
                <div id="amazon-bookcoverimg-[% SEARCH_RESULT.biblionumber | html %]" class="cover-image amazon-bookcoverimg">
459
                    <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage | html %]?biblionumber=[% SEARCH_RESULT.biblionumber |url %]">
450
                    <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage | html %]?biblionumber=[% SEARCH_RESULT.biblionumber |url %]">
Lines 488-494 Link Here
488
            [% END %]
479
            [% END %]
489
        </div>
480
        </div>
490
    </td>
481
    </td>
491
[% END # /IF( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled || IntranetCoce )%]
482
[% END # /IF( AmazonCoverImages || LocalCoverImages || IntranetCoce )%]
492
483
493
                                            <td>
484
                                            <td>
494
                                                <input type="checkbox" class="selection" id="bib[% SEARCH_RESULT.biblionumber | html %]" name="biblionumber" value="[% SEARCH_RESULT.biblionumber | html %]" style="display:none" />
485
                                                <input type="checkbox" class="selection" id="bib[% SEARCH_RESULT.biblionumber | html %]" name="biblionumber" value="[% SEARCH_RESULT.biblionumber | html %]" style="display:none" />
(-)a/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss (-8 lines)
Lines 2449-2462 nav { Link Here
2449
    }
2449
    }
2450
}
2450
}
2451
2451
2452
.adlibris-cover {
2453
    max-height: 120px;
2454
}
2455
2456
.adlibris-cover-big {
2457
    max-height: 200px;
2458
}
2459
2460
/* jQuery Bar Rating plugin for star ratings */
2452
/* jQuery Bar Rating plugin for star ratings */
2461
2453
2462
$star-default: #D2D2D2;
2454
$star-default: #D2D2D2;
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt (-6 lines)
Lines 13-20 Link Here
13
[% ELSE %]
13
[% ELSE %]
14
    [% AmazonAssocTag = '' %]
14
    [% AmazonAssocTag = '' %]
15
[% END %]
15
[% END %]
16
[% SET AdlibrisEnabled = Koha.Preference('AdlibrisCoversEnabled') %]
17
[% SET AdlibrisURL = Koha.Preference('AdlibrisCoversURL') %]
18
16
19
[% ShowCourseReservesHeader = 0 %]
17
[% ShowCourseReservesHeader = 0 %]
20
[% IF Koha.Preference( 'UseCourseReserves' ) == 1 %]
18
[% IF Koha.Preference( 'UseCourseReserves' ) == 1 %]
Lines 69-78 Link Here
69
                            <div title="[% img_title | html %]" class="[% biblio.biblionumber | html %]" id="local-thumbnail-preview"></div>
67
                            <div title="[% img_title | html %]" class="[% biblio.biblionumber | html %]" id="local-thumbnail-preview"></div>
70
                        [% END %]
68
                        [% END %]
71
69
72
                        [% IF ( AdlibrisEnabled && normalized_isbn ) %]
73
                            <a href="[% AdlibrisURL | url %]?isbn=[% normalized_isbn | uri %]"><img src="[% AdlibrisURL | url %]?isbn=[% normalized_isbn | uri %]" alt="Cover image" class="adlibris-cover-big" /></a>
74
                        [% END %]
75
76
                        [% IF ( OPACAmazonCoverImages ) %]
70
                        [% IF ( OPACAmazonCoverImages ) %]
77
                            [% IF ( OPACURLOpenInNewWindow ) %]
71
                            [% IF ( OPACURLOpenInNewWindow ) %]
78
                                <a href="http://www.amazon[% AmazonTld | uri %]/gp/reader/[% normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link" target="_blank" rel="noreferrer">
72
                                <a href="http://www.amazon[% AmazonTld | uri %]/gp/reader/[% normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link" target="_blank" rel="noreferrer">
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-opensearch.tt (-5 lines)
Lines 1-8 Link Here
1
<?xml version='1.0' encoding='utf-8' ?>
1
<?xml version='1.0' encoding='utf-8' ?>
2
[%- USE raw -%]
2
[%- USE raw -%]
3
[%- USE Koha -%]
3
[%- USE Koha -%]
4
[%- SET AdlibrisEnabled = Koha.Preference('AdlibrisCoversEnabled') -%]
5
[%- SET AdlibrisURL = Koha.Preference('AdlibrisCoversURL') -%]
6
4
7
[% IF ( opensearchdescription ) %]
5
[% IF ( opensearchdescription ) %]
8
    <OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
6
    <OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
Lines 52-60 Link Here
52
        <link>[% OPACBaseURL | url %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | uri %]</link>
50
        <link>[% OPACBaseURL | url %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | uri %]</link>
53
        [% END %]
51
        [% END %]
54
       <description><![CDATA[
52
       <description><![CDATA[
55
[% IF ( AdlibrisEnabled && SEARCH_RESULT.normalized_isbn ) %]
56
    <img src="[% AdlibrisURL | url %]?isbn=[% SEARCH_RESULT.normalized_isbn | uri %]" alt="Adlibris cover image" />
57
[% END %]
58
[% IF ( OPACAmazonCoverImages ) %][% IF ( SEARCH_RESULT.normalized_isbn ) %]<img src="https://images-na.ssl-images-amazon.com/images/P/[% SEARCH_RESULT.normalized_isbn | uri %].01.TZZZZZZZ.jpg" alt="" />[% END %][% END %]
53
[% IF ( OPACAmazonCoverImages ) %][% IF ( SEARCH_RESULT.normalized_isbn ) %]<img src="https://images-na.ssl-images-amazon.com/images/P/[% SEARCH_RESULT.normalized_isbn | uri %].01.TZZZZZZZ.jpg" alt="" />[% END %][% END %]
59
[% IF ( SyndeticsEnabled ) %][% IF ( SyndeticsCoverImages ) %][% IF ( SEARCH_RESULT.content_identifier_exists ) %]<img src="http://www.syndetics.com/index.aspx?isbn=[% SEARCH_RESULT.normalized_isbn | uri %]/SC.GIF&amp;client=[% SEARCH_RESULT.SyndeticsClientCode | uri %]&amp;type=xw10[% IF ( SEARCH_RESULT.normalized_upc ) %]&amp;upc=[% SEARCH_RESULT.normalized_upc | uri %][% END %][% IF ( SEARCH_RESULT.normalized_oclc ) %]&amp;oclc=[% SEARCH_RESULT.normalized_oclc | uri %][% END %]" alt="" />
54
[% IF ( SyndeticsEnabled ) %][% IF ( SyndeticsCoverImages ) %][% IF ( SEARCH_RESULT.content_identifier_exists ) %]<img src="http://www.syndetics.com/index.aspx?isbn=[% SEARCH_RESULT.normalized_isbn | uri %]/SC.GIF&amp;client=[% SEARCH_RESULT.SyndeticsClientCode | uri %]&amp;type=xw10[% IF ( SEARCH_RESULT.normalized_upc ) %]&amp;upc=[% SEARCH_RESULT.normalized_upc | uri %][% END %][% IF ( SEARCH_RESULT.normalized_oclc ) %]&amp;oclc=[% SEARCH_RESULT.normalized_oclc | uri %][% END %]" alt="" />
60
55
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt (-12 lines)
Lines 11-18 Link Here
11
</head>
11
</head>
12
[% INCLUDE 'bodytag.inc' bodyid='opac-readingrecord' %]
12
[% INCLUDE 'bodytag.inc' bodyid='opac-readingrecord' %]
13
[% INCLUDE 'masthead.inc' %]
13
[% INCLUDE 'masthead.inc' %]
14
[% SET AdlibrisEnabled = Koha.Preference('AdlibrisCoversEnabled') %]
15
[% SET AdlibrisURL = Koha.Preference('AdlibrisCoversURL') %]
16
14
17
[% IF Koha.Preference('AmazonAssocTag') %]
15
[% IF Koha.Preference('AmazonAssocTag') %]
18
    [% AmazonAssocTag = '?tag=' _ Koha.Preference('AmazonAssocTag') %]
16
    [% AmazonAssocTag = '?tag=' _ Koha.Preference('AmazonAssocTag') %]
Lines 108-123 Link Here
108
                                                      [% issuetype | html %]
106
                                                      [% issuetype | html %]
109
                                                    </td>
107
                                                    </td>
110
                                                <td>
108
                                                <td>
111
                                                    [% IF ( AdlibrisEnabled && issue.normalized_isbn ) %]
112
                                                        [% IF issue.BiblioDefaultViewmarc %]
113
                                                            <a href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% issue.biblionumber |url %]">
114
                                                        [% ELSIF issue.BiblioDefaultViewisbd %]
115
                                                            <a href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% issue.biblionumber |url %]">
116
                                                        [% ELSE %]
117
                                                            <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% issue.biblionumber |url %]">
118
                                                        [% END %]
119
                                                        <img src="[% AdlibrisURL | html %]?isbn=[% issue.normalized_isbn | html %]" class="adlibris-cover" alt="Adlibris cover image" /></a>
120
                                                    [% END %]
121
                                                    [% IF  OPACAmazonCoverImages %]
109
                                                    [% IF  OPACAmazonCoverImages %]
122
                                                        [% IF  issue.normalized_isbn %]
110
                                                        [% IF  issue.normalized_isbn %]
123
                                                            <a href="http://www.amazon.com/gp/reader/[% issue.normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link"><img src="https://images-na.ssl-images-amazon.com/images/P/[% issue.normalized_isbn | html %].01.THUMBZZZ.jpg" alt="" class="item-thumbnail" /></a>
111
                                                            <a href="http://www.amazon.com/gp/reader/[% issue.normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link"><img src="https://images-na.ssl-images-amazon.com/images/P/[% issue.normalized_isbn | html %].01.THUMBZZZ.jpg" alt="" class="item-thumbnail" /></a>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt (-8 lines)
Lines 3-10 Link Here
3
[% USE Koha %]
3
[% USE Koha %]
4
[% SET TagsShowEnabled = ( ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsShowOnList ) %]
4
[% SET TagsShowEnabled = ( ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsShowOnList ) %]
5
[% SET TagsInputEnabled = ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsInputOnList ) %]
5
[% SET TagsInputEnabled = ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsInputOnList ) %]
6
[% SET AdlibrisEnabled = Koha.Preference('AdlibrisCoversEnabled') %]
7
[% SET AdlibrisURL = Koha.Preference('AdlibrisCoversURL') %]
8
6
9
[% IF firstPage %]
7
[% IF firstPage %]
10
     [% SET OverDriveEnabled = Koha.Preference('OverDriveLibraryID') && Koha.Preference('OverDriveClientKey') && Koha.Preference('OverDriveClientSecret') %]
8
     [% SET OverDriveEnabled = Koha.Preference('OverDriveLibraryID') && Koha.Preference('OverDriveClientKey') && Koha.Preference('OverDriveClientSecret') %]
Lines 362-373 Link Here
362
                                                            <span title="[% img_title | html %]" class="[% SEARCH_RESULT.biblionumber | html %]" id="local-thumbnail[% loop.count | html %]"></span>
360
                                                            <span title="[% img_title | html %]" class="[% SEARCH_RESULT.biblionumber | html %]" id="local-thumbnail[% loop.count | html %]"></span>
363
                                                        [% END %]
361
                                                        [% END %]
364
362
365
                                                        [% IF ( AdlibrisEnabled && SEARCH_RESULT.normalized_isbn ) %]
366
                                                            <span title="[% img_title | html %]" id="adlibris-thumbnail[% loop.count | html %]">
367
                                                                <img src="[% AdlibrisURL | html %]?isbn=[% SEARCH_RESULT.normalized_isbn | html %]"
368
                                                                     alt="Adlibris thumbnail for ISBN: [% SEARCH_RESULT.normalized_isbn | html %]" class="adlibris-cover" />
369
                                                            </span>
370
                                                        [% END %]
371
                                                        [% IF ( OPACAmazonCoverImages ) %]
363
                                                        [% IF ( OPACAmazonCoverImages ) %]
372
                                                            [% IF ( SEARCH_RESULT.normalized_isbn ) %]
364
                                                            [% IF ( SEARCH_RESULT.normalized_isbn ) %]
373
                                                                    <span title="[% img_title | html %]" id="amazon-thumbnail[% loop.count | html %]"><img src="https://images-na.ssl-images-amazon.com/images/P/[% SEARCH_RESULT.normalized_isbn | html %].01.TZZZZZZZ.jpg" alt="" class="item-thumbnail" /></span>
365
                                                                    <span title="[% img_title | html %]" id="amazon-thumbnail[% loop.count | html %]"><img src="https://images-na.ssl-images-amazon.com/images/P/[% SEARCH_RESULT.normalized_isbn | html %].01.TZZZZZZZ.jpg" alt="" class="item-thumbnail" /></span>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt (-5 / +1 lines)
Lines 5-12 Link Here
5
[% SET PUBLIC = 2 %]
5
[% SET PUBLIC = 2 %]
6
[% SET TagsShowEnabled = ( ( Koha.Preference( 'TagsEnabled' ) == 1 ) && Koha.Preference('TagsShowOnList') ) %]
6
[% SET TagsShowEnabled = ( ( Koha.Preference( 'TagsEnabled' ) == 1 ) && Koha.Preference('TagsShowOnList') ) %]
7
[% SET TagsInputEnabled = ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'TagsEnabled' ) == 1 ) && Koha.Preference('TagsInputOnList') ) %]
7
[% SET TagsInputEnabled = ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'TagsEnabled' ) == 1 ) && Koha.Preference('TagsInputOnList') ) %]
8
[% SET AdlibrisEnabled = Koha.Preference('AdlibrisCoversEnabled') %]
9
[% SET AdlibrisURL = Koha.Preference('AdlibrisCoversURL') %]
10
8
11
[% BLOCK delete_shelf %]
9
[% BLOCK delete_shelf %]
12
    <form action="/cgi-bin/koha/opac-shelves.pl" method="post" id="deleteshelf[% shelf.shelfnumber | html %]" class="d-inline">
10
    <form action="/cgi-bin/koha/opac-shelves.pl" method="post" id="deleteshelf[% shelf.shelfnumber | html %]" class="d-inline">
Lines 401-409 Link Here
401
                                                                [% IF ( OPACLocalCoverImages ) %]
399
                                                                [% IF ( OPACLocalCoverImages ) %]
402
                                                                    <span title="[% img_title | html %]" class="[% itemsloo.biblionumber | html %]" id="local-thumbnail[% loop.count | html %]"></span>
400
                                                                    <span title="[% img_title | html %]" class="[% itemsloo.biblionumber | html %]" id="local-thumbnail[% loop.count | html %]"></span>
403
                                                                [% END %]
401
                                                                [% END %]
404
                                                                [% IF ( AdlibrisEnabled && itemsloo.normalized_isbn ) %]
402
405
                                                                    <img src="[% AdlibrisURL | html %]?isbn=[% itemsloo.normalized_isbn | html %]" class="adlibris-cover" alt="Adlibris cover image" />
406
                                                                [% END %]
407
                                                                [% IF ( OPACAmazonCoverImages ) %]
403
                                                                [% IF ( OPACAmazonCoverImages ) %]
408
                                                                    [% IF ( itemsloo.normalized_isbn ) %]
404
                                                                    [% IF ( itemsloo.normalized_isbn ) %]
409
                                                                        <span title="[% img_title | html %]" id="amazon-thumbnail[% loop.count | html %]"><img src="https://images-na.ssl-images-amazon.com/images/P/[% itemsloo.normalized_isbn | html %].01.TZZZZZZZ.jpg" alt="" /></span>
405
                                                                        <span title="[% img_title | html %]" id="amazon-thumbnail[% loop.count | html %]"><img src="https://images-na.ssl-images-amazon.com/images/P/[% itemsloo.normalized_isbn | html %].01.TZZZZZZZ.jpg" alt="" /></span>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-showreviews-rss.tt (-5 lines)
Lines 6-21 Link Here
6
     <description><![CDATA[ The most recent comments from [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] Catalog. Comments can be made by logged in users and are moderated by library staff.]]></description>
6
     <description><![CDATA[ The most recent comments from [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] Catalog. Comments can be made by logged in users and are moderated by library staff.]]></description>
7
     <atom:link href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-showreviews.pl&amp;format=rss2" rel="self" type="application/rss+xml" />
7
     <atom:link href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-showreviews.pl&amp;format=rss2" rel="self" type="application/rss+xml" />
8
     <lastBuildDate>[% timestamp | html %]</lastBuildDate>
8
     <lastBuildDate>[% timestamp | html %]</lastBuildDate>
9
     [% SET AdlibrisEnabled = Koha.Preference('AdlibrisCoversEnabled') %]
10
     [% SET AdlibrisURL = Koha.Preference('AdlibrisCoversURL') %]
11
	 [% FOREACH review IN reviews %]
9
	 [% FOREACH review IN reviews %]
12
     <item>
10
     <item>
13
       <title>New comment on [% INCLUDE 'biblio-title-head.inc' biblio=review %]</title>
11
       <title>New comment on [% INCLUDE 'biblio-title-head.inc' biblio=review %]</title>
14
       <link>[% OPACBaseURL | html %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% review.biblionumber | html %]#comments</link>
12
       <link>[% OPACBaseURL | html %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% review.biblionumber | html %]#comments</link>
15
       <description><![CDATA[
13
       <description><![CDATA[
16
[% IF ( AdlibrisEnabled && review.normalized_isbn ) %]
17
    <img src="[% AdlibrisURL | html %]?isbn=[% review.normalized_isbn | html %]" alt="Adlibris cover image" />
18
[% END %]
19
[% IF ( OPACAmazonCoverImages ) %][% IF ( review.normalized_isbn ) %]<img src="https://images-na.ssl-images-amazon.com/images/P/[% review.normalized_isbn | html %].01.TZZZZZZZ.jpg" alt="" />[% END %][% END %]
14
[% IF ( OPACAmazonCoverImages ) %][% IF ( review.normalized_isbn ) %]<img src="https://images-na.ssl-images-amazon.com/images/P/[% review.normalized_isbn | html %].01.TZZZZZZZ.jpg" alt="" />[% END %][% END %]
20
15
21
[% IF ( SyndeticsEnabled ) %][% IF ( SyndeticsCoverImages ) %][% IF ( review.content_identifier_exists ) %]<img src="https://secure.syndetics.com/index.aspx?isbn=[% review.normalized_isbn | html %]/SC.GIF&amp;client=[% SyndeticsClientCode | html %]&amp;type=xw10&amp;upc=[% review.normalized_upc | html %]&amp;oclc=[% review.normalized_oclc | html %]" alt="" />
16
[% IF ( SyndeticsEnabled ) %][% IF ( SyndeticsCoverImages ) %][% IF ( review.content_identifier_exists ) %]<img src="https://secure.syndetics.com/index.aspx?isbn=[% review.normalized_isbn | html %]/SC.GIF&amp;client=[% SyndeticsClientCode | html %]&amp;type=xw10&amp;upc=[% review.normalized_upc | html %]&amp;oclc=[% review.normalized_oclc | html %]" alt="" />
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-showreviews.tt (-5 lines)
Lines 38-45 Link Here
38
                        <h1>Recent comments <a href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-showreviews.pl?format=rss" class="rsssearchlink" aria-label="Subscribe to recent comments"><i class="fa fa-rss rsssearchicon" aria-hidden="true" title="Subscribe to recent comments"></i></a></h1>
38
                        <h1>Recent comments <a href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-showreviews.pl?format=rss" class="rsssearchlink" aria-label="Subscribe to recent comments"><i class="fa fa-rss rsssearchicon" aria-hidden="true" title="Subscribe to recent comments"></i></a></h1>
39
                        <table class="table table-striped">
39
                        <table class="table table-striped">
40
                            <caption class="sr-only">Comments</caption>
40
                            <caption class="sr-only">Comments</caption>
41
                            [% SET AdlibrisEnabled = Koha.Preference('AdlibrisCoversEnabled') %]
42
                            [% SET AdlibrisURL = Koha.Preference('AdlibrisCoversURL') %]
43
                            [% FOREACH review IN reviews %]
41
                            [% FOREACH review IN reviews %]
44
                                <tr>
42
                                <tr>
45
                                    <td>
43
                                    <td>
Lines 127-135 Link Here
127
                                                <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% review.biblionumber |url %]#comments" title="View details for this title">
125
                                                <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% review.biblionumber |url %]#comments" title="View details for this title">
128
                                            [% END %]
126
                                            [% END %]
129
                                        [% END %]
127
                                        [% END %]
130
                                        [% IF ( AdlibrisEnabled && review.normalized_isbn ) %]
131
                                            <img src="[% AdlibrisURL | html %]?isbn=[% review.normalized_isbn | html %]" class="adlibris-cover" alt="Adlibris cover image" />
132
                                        [% END %]
133
                                        [% IF ( OPACAmazonCoverImages ) %]
128
                                        [% IF ( OPACAmazonCoverImages ) %]
134
                                            [% IF ( review.normalized_isbn ) %]
129
                                            [% IF ( review.normalized_isbn ) %]
135
                                                <img src="https://images-na.ssl-images-amazon.com/images/P/[% review.normalized_isbn | html %].01.TZZZZZZZ.jpg" alt="" class="thumbnail" />
130
                                                <img src="https://images-na.ssl-images-amazon.com/images/P/[% review.normalized_isbn | html %].01.TZZZZZZZ.jpg" alt="" class="thumbnail" />
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt (-13 / +4 lines)
Lines 6-13 Link Here
6
[% USE ItemTypes %]
6
[% USE ItemTypes %]
7
[% USE Price %]
7
[% USE Price %]
8
[% USE AuthorisedValues %]
8
[% USE AuthorisedValues %]
9
[% SET AdlibrisEnabled = Koha.Preference('AdlibrisCoversEnabled') %]
10
[% SET AdlibrisURL = Koha.Preference('AdlibrisCoversURL') %]
11
9
12
[% SET borrower_club_enrollments =  logged_in_user.get_club_enrollments(1) %]
10
[% SET borrower_club_enrollments =  logged_in_user.get_club_enrollments(1) %]
13
[% SET borrower_enrollable_clubs = logged_in_user.get_enrollable_clubs(1,1) %]
11
[% SET borrower_enrollable_clubs = logged_in_user.get_enrollable_clubs(1,1) %]
Lines 253-259 Link Here
253
                                        <caption>[% issues_count | html %] Item(s) checked out</caption>
251
                                        <caption>[% issues_count | html %] Item(s) checked out</caption>
254
                                        <thead>
252
                                        <thead>
255
                                            <tr>
253
                                            <tr>
256
                                                [% IF ( JacketImages || AdlibrisEnabled ) %]<th class="nosort">&nbsp;</th>[% END %]
254
                                                [% IF ( JacketImages ) %]<th class="nosort">&nbsp;</th>[% END %]
257
                                                <th class="anti-the">Title</th>
255
                                                <th class="anti-the">Title</th>
258
                                                <th>Author</th>
256
                                                <th>Author</th>
259
                                                <th class="psort">Due</th>
257
                                                <th class="psort">Due</th>
Lines 282-291 Link Here
282
                                        <tbody>
280
                                        <tbody>
283
                                            [% FOREACH ISSUE IN ISSUES %]
281
                                            [% FOREACH ISSUE IN ISSUES %]
284
                                                [% IF ( ISSUE.overdue ) %]<tr class="overdue">[% ELSE %]<tr>[% END %]
282
                                                [% IF ( ISSUE.overdue ) %]<tr class="overdue">[% ELSE %]<tr>[% END %]
285
                                                [% IF ( JacketImages || AdlibrisEnabled ) %]<td class="jacketcell">
283
                                                [% IF ( JacketImages ) %]<td class="jacketcell">
286
                                                    [% IF ( AdlibrisEnabled && ISSUE.normalized_isbn ) %]
287
                                                        <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ISSUE.biblionumber | uri %]"><img src="[% AdlibrisURL | url %]?isbn=[% ISSUE.normalized_isbn | uri %]" class="adlibris-cover" alt="Adlibris cover image" /></a>
288
                                                    [% END %]
289
                                                    [% IF ( OPACAmazonCoverImages ) %]
284
                                                    [% IF ( OPACAmazonCoverImages ) %]
290
                                                        [% IF ( ISSUE.normalized_isbn ) %]
285
                                                        [% IF ( ISSUE.normalized_isbn ) %]
291
                                                            <a href="http://www.amazon.com/gp/reader/[% ISSUE.normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link" title="View on Amazon.com"><img src="https://images-na.ssl-images-amazon.com/images/P/[% ISSUE.normalized_isbn | html %].01.THUMBZZZ.jpg" alt="View on Amazon.com" class="item-thumbnail"/></a>
286
                                                            <a href="http://www.amazon.com/gp/reader/[% ISSUE.normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link" title="View on Amazon.com"><img src="https://images-na.ssl-images-amazon.com/images/P/[% ISSUE.normalized_isbn | html %].01.THUMBZZZ.jpg" alt="View on Amazon.com" class="item-thumbnail"/></a>
Lines 642-648 Link Here
642
                                    <!-- OVERDUES TABLE ROWS -->
637
                                    <!-- OVERDUES TABLE ROWS -->
643
                                    <thead>
638
                                    <thead>
644
                                        <tr>
639
                                        <tr>
645
                                            [% IF ( JacketImages || AdlibrisEnabled ) %]<th class="nosort">&nbsp;</th>[% END %]
640
                                            [% IF ( JacketImages ) %]<th class="nosort">&nbsp;</th>[% END %]
646
                                            <th class="anti-the">Title</th>
641
                                            <th class="anti-the">Title</th>
647
                                            [% UNLESS ( item_level_itypes ) %]<th>Item type</th> [% END %]
642
                                            [% UNLESS ( item_level_itypes ) %]<th>Item type</th> [% END %]
648
                                            [% IF ( show_barcode ) %]<th>Barcode</th>[% END %]
643
                                            [% IF ( show_barcode ) %]<th>Barcode</th>[% END %]
Lines 659-669 Link Here
659
                                    <tbody>
654
                                    <tbody>
660
                                        [% FOREACH OVERDUE IN OVERDUES %]
655
                                        [% FOREACH OVERDUE IN OVERDUES %]
661
                                            <tr>
656
                                            <tr>
662
                                                [% IF ( JacketImages || AdlibrisEnabled ) %]
657
                                                [% IF ( JacketImages ) %]
663
                                                    <td class="jacketcell">
658
                                                    <td class="jacketcell">
664
                                                    [% IF ( AdlibrisEnabled && OVERDUE.normalized_isbn ) %]
665
                                                        <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% OVERDUE.biblionumber | uri %]"><img src="[% AdlibrisURL | url %]?isbn=[% OVERDUE.normalized_isbn | uri %]" class="adlibris-cover" alt="Adlibris cover image" /></a>
666
                                                    [% END %]
667
                                                    [% IF ( OPACAmazonCoverImages ) %]
659
                                                    [% IF ( OPACAmazonCoverImages ) %]
668
                                                        [% IF ( OVERDUE.normalized_isbn ) %]
660
                                                        [% IF ( OVERDUE.normalized_isbn ) %]
669
                                                            <a href="http://www.amazon.com/gp/reader/[% OVERDUE.normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link" title="View on Amazon.com"><img src="https://images-na.ssl-images-amazon.com/images/P/[% OVERDUE.normalized_isbn | html %].01.THUMBZZZ.jpg" alt="View on Amazon.com" class="item-thumbnail" /></a>
661
                                                            <a href="http://www.amazon.com/gp/reader/[% OVERDUE.normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link" title="View on Amazon.com"><img src="https://images-na.ssl-images-amazon.com/images/P/[% OVERDUE.normalized_isbn | html %].01.THUMBZZZ.jpg" alt="View on Amazon.com" class="item-thumbnail" /></a>
670
- 

Return to bug 29200