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 1160-1165 ul { Link Here
1160
    }
1160
    }
1161
}
1161
}
1162
1162
1163
.custom_cover_image {
1164
    img {
1165
        max-width: 140px;
1166
    }
1167
}
1168
1163
.required {
1169
.required {
1164
    color: #C00;
1170
    color: #C00;
1165
}
1171
}
(-)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 324-332 Link Here
324
324
325
                                                    [% IF Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') %]
325
                                                    [% IF Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') %]
326
                                                         [% IF ( OPACURLOpenInNewWindow ) %]
326
                                                         [% IF ( OPACURLOpenInNewWindow ) %]
327
                                                            <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>
327
                                                            <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>
328
                                                        [% ELSE %]
328
                                                        [% ELSE %]
329
                                                            <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>
329
                                                            <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>
330
                                                        [% END %]
330
                                                        [% END %]
331
                                                    [% END %]
331
                                                    [% END %]
332
332
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt (+9 lines)
Lines 362-367 Link Here
362
                                                        [% END %]
362
                                                        [% END %]
363
363
364
                                                        [% IF Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') %]
364
                                                        [% IF Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') %]
365
                                                            [% IF ( itemsloo.BiblioDefaultViewmarc ) %]
366
                                                                <a class="custom_cover_image" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% itemsloo.biblionumber |url %]">
367
                                                            [% ELSE %]
368
                                                                [% IF ( itemsloo.BiblioDefaultViewisbd ) %]
369
                                                                    <a class="custom_cover_image" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% itemsloo.biblionumber |url %]">
370
                                                                [% ELSE %]
371
                                                                    <a class="custom_cover_image" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% itemsloo.biblionumber |url %]">
372
                                                                [% END %]
373
                                                            [% END %]
365
                                                            <img alt="Cover image" src="[% itemsloo.biblio_object.custom_cover_image_url | url %]" /></a>
374
                                                            <img alt="Cover image" src="[% itemsloo.biblio_object.custom_cover_image_url | url %]" /></a>
366
                                                        [% END %]
375
                                                        [% END %]
367
376
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-showreviews.tt (-1 / +1 lines)
Lines 152-158 Link Here
152
                                        [% END %]
152
                                        [% END %]
153
153
154
                                        [% IF Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') %]
154
                                        [% IF Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') %]
155
                                            <a href="[% review.biblio_object.custom_cover_image_url | url %]"><img alt="Cover image" src="[% review.biblio_object.custom_cover_image_url | url %]" /></a>
155
                                            <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>
156
                                        [% END %]
156
                                        [% END %]
157
157
158
                                    </td>
158
                                    </td>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt (-2 / +1 lines)
Lines 243-249 Link Here
243
                                                    [% END %]
243
                                                    [% END %]
244
244
245
                                                    [% IF Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') %]
245
                                                    [% IF Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') %]
246
                                                        <a href="[% ISSUE.biblio_object.custom_cover_image_url | url %]"><img alt="Cover image" src="[% ISSUE.biblio_object.custom_cover_image_url | url %]" /></a>
246
                                                        <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>
247
                                                    [% END %]
247
                                                    [% END %]
248
248
249
                                                    [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
249
                                                    [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
250
- 

Return to bug 22445