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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/shelfbrowser.inc (-3 / +9 lines)
Lines 22-30 Link Here
22
22
23
                    [% FOREACH item IN shelfbrowser_items %]
23
                    [% FOREACH item IN shelfbrowser_items %]
24
                        <td>
24
                        <td>
25
                            [% IF ( item.title ) %]
26
                                [% img_title = item.title %]
27
                            [% ELSE %]
28
                                [% img_title = item.biblionumber %]
29
                            [% END %]
30
25
                            <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% item.biblionumber | uri %]&amp;shelfbrowse_itemnumber=[% item.itemnumber | uri %]#shelfbrowser">
31
                            <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% item.biblionumber | uri %]&amp;shelfbrowse_itemnumber=[% item.itemnumber | uri %]#shelfbrowser">
26
                                [% IF ( OPACLocalCoverImages ) %]
32
                                [% IF ( OPACLocalCoverImages ) %]
27
                                    <div title="[% item.biblionumber |url %]" class="[% item.biblionumber | html %] thumbnail-shelfbrowser" id="local-thumbnail-shelf-[% item.biblionumber | html %]"></div>
33
                                    <div title="[% img_title | html %]" class="[% item.biblionumber | html %] thumbnail-shelfbrowser" id="local-thumbnail-shelf-[% item.biblionumber | html %]"></div>
28
                                [% END %]
34
                                [% END %]
29
                                [% IF ( OPACAmazonCoverImages ) %]
35
                                [% IF ( OPACAmazonCoverImages ) %]
30
                                    [% IF ( item.browser_normalized_isbn ) %]
36
                                    [% IF ( item.browser_normalized_isbn ) %]
Lines 46-59 Link Here
46
52
47
                                [% IF ( GoogleJackets ) %]
53
                                [% IF ( GoogleJackets ) %]
48
                                    [% IF ( item.browser_normalized_isbn ) %]
54
                                    [% IF ( item.browser_normalized_isbn ) %]
49
                                        <div title="[% item.biblionumber |url %]" class="[% item.browser_normalized_isbn | html %]" id="gbs-thumbnail-preview[% loop.count | html %]"></div>
55
                                        <div title="[% img_title | html %]" class="[% item.browser_normalized_isbn | html %]" id="gbs-thumbnail-preview[% loop.count | html %]"></div>
50
                                    [% ELSE %]
56
                                    [% ELSE %]
51
                                        <span class="no-image">No cover image available</span>
57
                                        <span class="no-image">No cover image available</span>
52
                                    [% END %]
58
                                    [% END %]
53
                                [% END %]
59
                                [% END %]
54
                                [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
60
                                [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
55
                                  [% coce_id = item.browser_normalized_ean || item.browser_normalized_isbn | html %]
61
                                  [% coce_id = item.browser_normalized_ean || item.browser_normalized_isbn | html %]
56
                                  <div title="[% item.biblionumber |url %]" class="[% coce_id | html %]" id="coce-thumbnail-preview-[% coce_id | html %]"></div>
62
                                  <div title="[% img_title | html %]" class="[% coce_id | html %]" id="coce-thumbnail-preview-[% coce_id | html %]"></div>
57
                                [% END %]
63
                                [% END %]
58
                                [% IF ( BakerTaylorEnabled ) %]
64
                                [% IF ( BakerTaylorEnabled ) %]
59
                                    [% bt_id = ( item.browser_normalized_upc || item.browser_normalized_isbn ) | html %]
65
                                    [% bt_id = ( item.browser_normalized_upc || item.browser_normalized_isbn ) | html %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt (-4 / +10 lines)
Lines 53-60 Link Here
53
                <div id="catalogue_detail_biblio" class="maincontent">
53
                <div id="catalogue_detail_biblio" class="maincontent">
54
54
55
                    <div id="bookcover">
55
                    <div id="bookcover">
56
                    [% IF ( biblio.title ) %]
57
                        [% img_title = biblio.title %]
58
                    [% ELSE %]
59
                        [% img_title = biblio.biblionumber %]
60
                    [% END %]
61
56
                    [% IF ( OPACLocalCoverImages ) %]
62
                    [% IF ( OPACLocalCoverImages ) %]
57
                        <div title="[% biblio.biblionumber | html %]" class="[% biblio.biblionumber | html %]" id="local-thumbnail-preview"></div>
63
                        <div title="[% img_title | html %]" class="[% biblio.biblionumber | html %]" id="local-thumbnail-preview"></div>
58
                    [% END %]
64
                    [% END %]
59
65
60
                    [% IF ( AdlibrisEnabled && normalized_isbn ) %]
66
                    [% IF ( AdlibrisEnabled && normalized_isbn ) %]
Lines 79-92 Link Here
79
                    [% END %]
85
                    [% END %]
80
86
81
                    [% IF ( GoogleJackets ) %]
87
                    [% IF ( GoogleJackets ) %]
82
                        <div title="[% biblio.biblionumber | html %]" class="[% normalized_isbn | html %]" id="gbs-thumbnail-preview"></div>
88
                        <div title="[% img_title | html %]" class="[% normalized_isbn | html %]" id="gbs-thumbnail-preview"></div>
83
                    [% END %]
89
                    [% END %]
84
                    [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
90
                    [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
85
                      [% coce_id = normalized_ean || normalized_isbn | html %]
91
                      [% coce_id = normalized_ean || normalized_isbn | html %]
86
                      <div title="[% biblio.biblionumber | html %]" class="[% coce_id | html %]" id="coce-thumbnail-preview"></div>
92
                      <div title="[% img_title | html %]" class="[% coce_id | html %]" id="coce-thumbnail-preview"></div>
87
                    [% END %]
93
                    [% END %]
88
                    [% IF OpenLibraryCovers %]
94
                    [% IF OpenLibraryCovers %]
89
                        <div title="[% biblio.biblionumber | html %]" class="[% normalized_isbn | html %]" id="openlibrary-thumbnail-preview"></div>
95
                        <div title="[% img_title | html %]" class="[% normalized_isbn | html %]" id="openlibrary-thumbnail-preview"></div>
90
                    [% END %]
96
                    [% END %]
91
                    [% bt_id = ( normalized_upc || normalized_isbn ) %]
97
                    [% bt_id = ( normalized_upc || normalized_isbn ) %]
92
                    [% IF ( BakerTaylorEnabled && bt_id ) %]
98
                    [% IF ( BakerTaylorEnabled && bt_id ) %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt (-7 / +12 lines)
Lines 269-287 Link Here
269
                                            <td class="bibliocol">
269
                                            <td class="bibliocol">
270
                                                <div class="coverimages itemtype_[% SEARCH_RESULT.itemtype | html %]">
270
                                                <div class="coverimages itemtype_[% SEARCH_RESULT.itemtype | html %]">
271
                                                    <a class="p1" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | uri %]">
271
                                                    <a class="p1" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | uri %]">
272
                                                        [% IF ( SEARCH_RESULT.title ) %]
273
                                                            [% img_title = SEARCH_RESULT.title %]
274
                                                        [% ELSE %]
275
                                                            [% img_title = SEARCH_RESULT.biblionumber %]
276
                                                        [% END %]
272
                                                        [% IF ( OPACLocalCoverImages ) %]
277
                                                        [% IF ( OPACLocalCoverImages ) %]
273
                                                            <span title="[% SEARCH_RESULT.biblionumber |url %]" class="[% SEARCH_RESULT.biblionumber | html %]" id="local-thumbnail[% loop.count | html %]"></span>
278
                                                            <span title="[% img_title | html %]" class="[% SEARCH_RESULT.biblionumber | html %]" id="local-thumbnail[% loop.count | html %]"></span>
274
                                                        [% END %]
279
                                                        [% END %]
275
280
276
                                                        [% IF ( AdlibrisEnabled && SEARCH_RESULT.normalized_isbn ) %]
281
                                                        [% IF ( AdlibrisEnabled && SEARCH_RESULT.normalized_isbn ) %]
277
                                                            <span title="[% SEARCH_RESULT.biblionumber | html %]" id="adlibris-thumbnail[% loop.count | html %]">
282
                                                            <span title="[% img_title | html %]" id="adlibris-thumbnail[% loop.count | html %]">
278
                                                                <img src="[% AdlibrisURL | html %]?isbn=[% SEARCH_RESULT.normalized_isbn | html %]"
283
                                                                <img src="[% AdlibrisURL | html %]?isbn=[% SEARCH_RESULT.normalized_isbn | html %]"
279
                                                                     alt="Adlibris thumbnail for ISBN: [% SEARCH_RESULT.normalized_isbn | html %]" class="adlibris-cover" />
284
                                                                     alt="Adlibris thumbnail for ISBN: [% SEARCH_RESULT.normalized_isbn | html %]" class="adlibris-cover" />
280
                                                            </span>
285
                                                            </span>
281
                                                        [% END %]
286
                                                        [% END %]
282
                                                        [% IF ( OPACAmazonCoverImages ) %]
287
                                                        [% IF ( OPACAmazonCoverImages ) %]
283
                                                            [% IF ( SEARCH_RESULT.normalized_isbn ) %]
288
                                                            [% IF ( SEARCH_RESULT.normalized_isbn ) %]
284
                                                                    <span title="[% SEARCH_RESULT.biblionumber | 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>
289
                                                                    <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>
285
                                                            [% ELSE %]
290
                                                            [% ELSE %]
286
                                                                <span class="no-image">No cover image available</span>
291
                                                                <span class="no-image">No cover image available</span>
287
                                                            [% END %]
292
                                                            [% END %]
Lines 289-295 Link Here
289
294
290
                                                        [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
295
                                                        [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
291
                                                            [% IF ( SEARCH_RESULT.normalized_isbn || SEARCH_RESULT.normalized_upc || SEARCH_RESULT.normalized_oclc ) %]
296
                                                            [% IF ( SEARCH_RESULT.normalized_isbn || SEARCH_RESULT.normalized_upc || SEARCH_RESULT.normalized_oclc ) %]
292
                                                                    <span title="[% SEARCH_RESULT.biblionumber | html %]" id="syndetics-thumbnail[% loop.count | html %]"><img src="https://secure.syndetics.com/index.aspx?isbn=[% SEARCH_RESULT.normalized_isbn | html %]/SC.GIF&amp;client=[% SyndeticsClientCode | html %]&amp;type=xw10&amp;upc=[% SEARCH_RESULT.normalized_upc | html %]&amp;oclc=[% SEARCH_RESULT.normalized_oclc | html %]" alt="" class="item-thumbnail" /></span>
297
                                                                    <span title="[% img_title | html %]" id="syndetics-thumbnail[% loop.count | html %]"><img src="https://secure.syndetics.com/index.aspx?isbn=[% SEARCH_RESULT.normalized_isbn | html %]/SC.GIF&amp;client=[% SyndeticsClientCode | html %]&amp;type=xw10&amp;upc=[% SEARCH_RESULT.normalized_upc | html %]&amp;oclc=[% SEARCH_RESULT.normalized_oclc | html %]" alt="" class="item-thumbnail" /></span>
293
                                                            [% ELSE %]
298
                                                            [% ELSE %]
294
                                                                <span class="no-image">No cover image available</span>
299
                                                                <span class="no-image">No cover image available</span>
295
                                                            [% END %]
300
                                                            [% END %]
Lines 297-303 Link Here
297
302
298
                                                        [% IF ( GoogleJackets ) %]
303
                                                        [% IF ( GoogleJackets ) %]
299
                                                            [% IF ( SEARCH_RESULT.normalized_isbn ) %]
304
                                                            [% IF ( SEARCH_RESULT.normalized_isbn ) %]
300
                                                                <span title="[% SEARCH_RESULT.biblionumber |url %]" class="[% SEARCH_RESULT.normalized_isbn | html %]" id="gbs-thumbnail[% loop.count | html %]"></span>
305
                                                                <span title="[% img_title | html %]" class="[% SEARCH_RESULT.normalized_isbn | html %]" id="gbs-thumbnail[% loop.count | html %]"></span>
301
                                                            [% ELSE %]
306
                                                            [% ELSE %]
302
                                                                <span class="no-image">No cover image available</span>
307
                                                                <span class="no-image">No cover image available</span>
303
                                                            [% END %]
308
                                                            [% END %]
Lines 306-312 Link Here
306
                                                        [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
311
                                                        [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
307
                                                          [% coce_id = SEARCH_RESULT.normalized_ean || SEARCH_RESULT.normalized_isbn | html %]
312
                                                          [% coce_id = SEARCH_RESULT.normalized_ean || SEARCH_RESULT.normalized_isbn | html %]
308
                                                          [% IF ( coce_id ) %]
313
                                                          [% IF ( coce_id ) %]
309
                                                            <span title="[% SEARCH_RESULT.biblionumber |url %]" class="[% coce_id | html %]" id="coce-thumbnail[% loop.count | html %]"></span>
314
                                                            <span title="[% img_title | html %]" class="[% coce_id | html %]" id="coce-thumbnail[% loop.count | html %]"></span>
310
                                                          [% ELSE %]
315
                                                          [% ELSE %]
311
                                                            <span class="no-image">No cover image available</span>
316
                                                            <span class="no-image">No cover image available</span>
312
                                                          [% END %]
317
                                                          [% END %]
Lines 314-320 Link Here
314
319
315
                                                        [% IF OpenLibraryCovers %]
320
                                                        [% IF OpenLibraryCovers %]
316
                                                            [% IF SEARCH_RESULT.normalized_isbn %]
321
                                                            [% IF SEARCH_RESULT.normalized_isbn %]
317
                                                                <span title="[% SEARCH_RESULT.biblionumber | html %]" class="[% SEARCH_RESULT.normalized_isbn | html %]" id="openlibrary-thumbnail[% loop.count | html %]"></span>
322
                                                                <span title="[% img_title | html %]" class="[% SEARCH_RESULT.normalized_isbn | html %]" id="openlibrary-thumbnail[% loop.count | html %]"></span>
318
                                                            [% ELSE %]
323
                                                            [% ELSE %]
319
                                                                <span class="no-image">No cover image available</span>
324
                                                                <span class="no-image">No cover image available</span>
320
                                                            [% END %]
325
                                                            [% END %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt (-7 / +12 lines)
Lines 337-363 Link Here
337
                                                <td>
337
                                                <td>
338
                                                    <div class="coverimages">
338
                                                    <div class="coverimages">
339
                                                        <a class="p1" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% itemsloo.biblionumber | html %]">
339
                                                        <a class="p1" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% itemsloo.biblionumber | html %]">
340
                                                            [% IF ( itemsloo.title ) %]
341
                                                                [% img_title = itemsloo.title %]
342
                                                            [% ELSE %]
343
                                                                [% img_title = itemsloo.biblionumber %]
344
                                                            [% END %]
345
340
                                                            [% IF ( OPACLocalCoverImages ) %]
346
                                                            [% IF ( OPACLocalCoverImages ) %]
341
                                                                <span title="[% itemsloo.biblionumber |url %]" class="[% itemsloo.biblionumber | html %]" id="local-thumbnail[% loop.count | html %]"></span>
347
                                                                <span title="[% img_title | html %]" class="[% itemsloo.biblionumber | html %]" id="local-thumbnail[% loop.count | html %]"></span>
342
                                                            [% END %]
348
                                                            [% END %]
343
                                                            [% IF ( AdlibrisEnabled && itemsloo.normalized_isbn ) %]
349
                                                            [% IF ( AdlibrisEnabled && itemsloo.normalized_isbn ) %]
344
                                                                <img src="[% AdlibrisURL | html %]?isbn=[% itemsloo.normalized_isbn | html %]" class="adlibris-cover" alt="Adlibris cover image" />
350
                                                                <img src="[% AdlibrisURL | html %]?isbn=[% itemsloo.normalized_isbn | html %]" class="adlibris-cover" alt="Adlibris cover image" />
345
                                                            [% END %]
351
                                                            [% END %]
346
                                                            [% IF ( OPACAmazonCoverImages ) %]
352
                                                            [% IF ( OPACAmazonCoverImages ) %]
347
                                                                [% IF ( itemsloo.normalized_isbn ) %]
353
                                                                [% IF ( itemsloo.normalized_isbn ) %]
348
                                                                    <span title="[% itemsloo.biblionumber | 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>
354
                                                                    <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>
349
                                                                [% ELSE %]
355
                                                                [% ELSE %]
350
                                                                    <span class="no-image">No cover image available</span>
356
                                                                    <span class="no-image">No cover image available</span>
351
                                                                [% END %]
357
                                                                [% END %]
352
                                                            [% END %]
358
                                                            [% END %]
353
359
354
                                                            [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
360
                                                            [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
355
                                                                <span title="[% itemsloo.biblionumber | html %]" id="syndetics-thumbnail[% loop.count | html %]"><img src="https://secure.syndetics.com/index.aspx?isbn=[% itemsloo.normalized_isbn | html %]/SC.GIF&amp;client=[% SyndeticsClientCode | html %]&amp;type=xw10&amp;upc=[% itemsloo.normalized_upc | html %]&amp;oclc=[% itemsloo.normalized_oclc | html %]" alt="" /></span>
361
                                                                <span title="[% img_title | html %]" id="syndetics-thumbnail[% loop.count | html %]"><img src="https://secure.syndetics.com/index.aspx?isbn=[% itemsloo.normalized_isbn | html %]/SC.GIF&amp;client=[% SyndeticsClientCode | html %]&amp;type=xw10&amp;upc=[% itemsloo.normalized_upc | html %]&amp;oclc=[% itemsloo.normalized_oclc | html %]" alt="" /></span>
356
                                                            [% END %]
362
                                                            [% END %]
357
363
358
                                                            [% IF ( GoogleJackets ) %]
364
                                                            [% IF ( GoogleJackets ) %]
359
                                                                [% IF ( itemsloo.normalized_isbn ) %]
365
                                                                [% IF ( itemsloo.normalized_isbn ) %]
360
                                                                    <div title="[% itemsloo.biblionumber |url %]" class="[% itemsloo.normalized_isbn | html %]" id="gbs-thumbnail[% loop.count | html %]"></div>
366
                                                                    <div title="[% img_title | html %]" class="[% itemsloo.normalized_isbn | html %]" id="gbs-thumbnail[% loop.count | html %]"></div>
361
                                                                [% ELSE %]
367
                                                                [% ELSE %]
362
                                                                    <span class="no-image">No cover image available</span>
368
                                                                    <span class="no-image">No cover image available</span>
363
                                                                [% END %]
369
                                                                [% END %]
Lines 366-372 Link Here
366
                                                            [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
372
                                                            [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
367
                                                                [% coce_id = itemsloo.normalized_ean || itemsloo.normalized_isbn %]
373
                                                                [% coce_id = itemsloo.normalized_ean || itemsloo.normalized_isbn %]
368
                                                                [% IF ( coce_id ) %]
374
                                                                [% IF ( coce_id ) %]
369
                                                                    <span title="[% itemsloo.biblionumber |url %]" class="[% coce_id | html %]" id="coce-thumbnail[% loop.count | html %]"></span>
375
                                                                    <span title="[% img_title | html %]" class="[% coce_id | html %]" id="coce-thumbnail[% loop.count | html %]"></span>
370
                                                                [% ELSE %]
376
                                                                [% ELSE %]
371
                                                                    <span class="no-image">No cover image available</span>
377
                                                                    <span class="no-image">No cover image available</span>
372
                                                                [% END %]
378
                                                                [% END %]
Lines 375-381 Link Here
375
381
376
                                                            [% IF OpenLibraryCovers %]
382
                                                            [% IF OpenLibraryCovers %]
377
                                                                [% IF itemsloo.normalized_isbn %]
383
                                                                [% IF itemsloo.normalized_isbn %]
378
                                                                    <span title="[% itemsloo.biblionumber | html %]" class="[% itemsloo.normalized_isbn | html %]" id="openlibrary-thumbnail[% loop.count | html %]"></span>
384
                                                                    <span title="[% img_title | html %]" class="[% itemsloo.normalized_isbn | html %]" id="openlibrary-thumbnail[% loop.count | html %]"></span>
379
                                                                [% ELSE %]
385
                                                                [% ELSE %]
380
                                                                    <span class="no-image">No cover image available</span>
386
                                                                    <span class="no-image">No cover image available</span>
381
                                                                [% END %]
387
                                                                [% END %]
382
- 

Return to bug 24740