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

(-)a/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss (+6 lines)
Lines 1047-1052 ul { Link Here
1047
    }
1047
    }
1048
}
1048
}
1049
1049
1050
.custom_cover_image {
1051
    img {
1052
        max-width: 140px;
1053
    }
1054
}
1055
1050
.required {
1056
.required {
1051
    color: #C00;
1057
    color: #C00;
1052
}
1058
}
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/shelfbrowser.inc (-1 / +3 lines)
Lines 62-68 Link Here
62
                                    [% END %]
62
                                    [% END %]
63
                                [% END %]
63
                                [% END %]
64
                                [% IF Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') %]
64
                                [% IF Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') %]
65
                                    <img alt="Cover image" src="[% item.biblio_object.custom_cover_image_url | url %]" />
65
                                    <span class="custom_cover_image">
66
                                        <img alt="Cover image" src="[% item.biblio_object.custom_cover_image_url | url %]" />
67
                                    </span>
66
                                [% END %]
68
                                [% END %]
67
69
68
                            </a>
70
                            </a>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt (-3 / +3 lines)
Lines 99-107 Link Here
99
                    [% END %]
99
                    [% END %]
100
                    [% IF Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') %]
100
                    [% IF Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') %]
101
                         [% IF ( OPACURLOpenInNewWindow ) %]
101
                         [% IF ( OPACURLOpenInNewWindow ) %]
102
                            <a href="[% biblio.custom_cover_image_url | url %]" target="_blank" rel="noreferrer"><img alt="Cover image" src="[% biblio.custom_cover_image_url | url %]" /></a>
102
                            <a class="custom_cover_image" href="[% biblio.custom_cover_image_url | url %]" target="_blank" rel="noreferrer"><img alt="Cover image" src="[% biblio.custom_cover_image_url | url %]" /></a>
103
                        [% ELSE %]
103
                        [% ELSE %]
104
                            <a href="[% biblio.custom_cover_image_url | url %]"><img alt="Cover image" src="[% biblio.custom_cover_image_url | url %]" /></a>
104
                            <a class="custom_cover_image" href="[% biblio.custom_cover_image_url | url %]"><img alt="Cover image" src="[% biblio.custom_cover_image_url | url %]" /></a>
105
                        [% END %]
105
                        [% END %]
106
                    [% END %]
106
                    [% END %]
107
                    </div><!-- / #bookcover -->
107
                    </div><!-- / #bookcover -->
Lines 974-980 Link Here
974
                                        </a></div>
974
                                        </a></div>
975
                                    [% END %]
975
                                    [% END %]
976
                                [% ELSE %]
976
                                [% ELSE %]
977
                                    <div id="addcomment"><a href="/cgi-bin/koha/opac-user.pl">Log in to your account</a> to post a comment.</div>
977
                                    <div id="addcomment"><a class="login-link loginModal-trigger" role="button" data-toggle="modal" href="/cgi-bin/koha/opac-user.pl">Log in to your account</a> to post a comment.</div>
978
                                [% END # / IF loggedinusername %]
978
                                [% END # / IF loggedinusername %]
979
                            </div> <!-- / #comments -->
979
                            </div> <!-- / #comments -->
980
                        [% END # / IF reviewson %]
980
                        [% END # / IF reviewson %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt (-2 / +2 lines)
Lines 322-330 Link Here
322
322
323
                                                    [% IF Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') %]
323
                                                    [% IF Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') %]
324
                                                         [% IF ( OPACURLOpenInNewWindow ) %]
324
                                                         [% IF ( OPACURLOpenInNewWindow ) %]
325
                                                            <a href="[% SEARCH_RESULT.biblio_object.custom_cover_image_url | url %]" target="_blank" rel="noreferrer"><img alt="Cover image" src="[% SEARCH_RESULT.biblio_object.custom_cover_image_url | url %]" /></a>
325
                                                            <a class="custom_cover_image" href="[% SEARCH_RESULT.biblio_object.custom_cover_image_url | url %]" target="_blank" rel="noreferrer"><img alt="Cover image" src="[% SEARCH_RESULT.biblio_object.custom_cover_image_url | url %]" /></a>
326
                                                        [% ELSE %]
326
                                                        [% ELSE %]
327
                                                            <a href="[% SEARCH_RESULT.biblio_object.custom_cover_image_url | url %]"><img alt="Cover image" src="[% SEARCH_RESULT.biblio_object.custom_cover_image_url | url %]" /></a>
327
                                                            <a class="custom_cover_image" href="[% SEARCH_RESULT.biblio_object.custom_cover_image_url | url %]"><img alt="Cover image" src="[% SEARCH_RESULT.biblio_object.custom_cover_image_url | url %]" /></a>
328
                                                        [% END %]
328
                                                        [% END %]
329
                                                    [% END %]
329
                                                    [% END %]
330
330
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt (+9 lines)
Lines 360-365 Link Here
360
                                                        [% END %]
360
                                                        [% END %]
361
361
362
                                                        [% IF Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') %]
362
                                                        [% IF Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') %]
363
                                                            [% IF ( itemsloo.BiblioDefaultViewmarc ) %]
364
                                                                <a class="custom_cover_image" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% itemsloo.biblionumber |url %]">
365
                                                            [% ELSE %]
366
                                                                [% IF ( itemsloo.BiblioDefaultViewisbd ) %]
367
                                                                    <a class="custom_cover_image" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% itemsloo.biblionumber |url %]">
368
                                                                [% ELSE %]
369
                                                                    <a class="custom_cover_image" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% itemsloo.biblionumber |url %]">
370
                                                                [% END %]
371
                                                            [% END %]
363
                                                            <img alt="Cover image" src="[% itemsloo.biblio_object.custom_cover_image_url | url %]" /></a>
372
                                                            <img alt="Cover image" src="[% itemsloo.biblio_object.custom_cover_image_url | url %]" /></a>
364
                                                        [% END %]
373
                                                        [% END %]
365
374
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-showreviews.tt (-1 / +1 lines)
Lines 150-156 Link Here
150
                                        [% END %]
150
                                        [% END %]
151
151
152
                                        [% IF Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') %]
152
                                        [% IF Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') %]
153
                                            <a href="[% review.biblio_object.custom_cover_image_url | url %]"><img alt="Cover image" src="[% review.biblio_object.custom_cover_image_url | url %]" /></a>
153
                                            <a class="custom_cover_image" href="[% review.biblio_object.custom_cover_image_url | url %]"><img alt="Cover image" src="[% review.biblio_object.custom_cover_image_url | url %]" /></a>
154
                                        [% END %]
154
                                        [% END %]
155
155
156
                                    </td>
156
                                    </td>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt (-2 / +1 lines)
Lines 242-248 Link Here
242
                                                    [% END %]
242
                                                    [% END %]
243
243
244
                                                    [% IF Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') %]
244
                                                    [% IF Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') %]
245
                                                        <a href="[% ISSUE.biblio_object.custom_cover_image_url | url %]"><img alt="Cover image" src="[% ISSUE.biblio_object.custom_cover_image_url | url %]" /></a>
245
                                                        <a class="custom_cover_image" href="[% ISSUE.biblio_object.custom_cover_image_url | url %]"><img alt="Cover image" src="[% ISSUE.biblio_object.custom_cover_image_url | url %]" /></a>
246
                                                    [% END %]
246
                                                    [% END %]
247
247
248
                                                    [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
248
                                                    [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
249
- 

Return to bug 22445