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

(-)a/catalogue/detail.pl (+14 lines)
Lines 165-176 my $upc = GetNormalizedUPC($record,$marcflavour); Link Here
165
my $ean = GetNormalizedEAN($record,$marcflavour);
165
my $ean = GetNormalizedEAN($record,$marcflavour);
166
my $oclc = GetNormalizedOCLCNumber($record,$marcflavour);
166
my $oclc = GetNormalizedOCLCNumber($record,$marcflavour);
167
my $isbn = GetNormalizedISBN(undef,$record,$marcflavour);
167
my $isbn = GetNormalizedISBN(undef,$record,$marcflavour);
168
my $content_identifier_exists;
169
if ( $isbn or $ean or $oclc or $upc ) {
170
    $content_identifier_exists = 1;
171
}
168
172
169
$template->param(
173
$template->param(
170
    normalized_upc => $upc,
174
    normalized_upc => $upc,
171
    normalized_ean => $ean,
175
    normalized_ean => $ean,
172
    normalized_oclc => $oclc,
176
    normalized_oclc => $oclc,
173
    normalized_isbn => $isbn,
177
    normalized_isbn => $isbn,
178
    content_identifier_exists => $content_identifier_exists
174
);
179
);
175
180
176
my $marcnotesarray   = GetMarcNotes( $record, $marcflavour );
181
my $marcnotesarray   = GetMarcNotes( $record, $marcflavour );
Lines 472-477 $template->param( Link Here
472
    searchid            => scalar $query->param('searchid'),
477
    searchid            => scalar $query->param('searchid'),
473
);
478
);
474
479
480
if ( C4::Context->preference("SyndeticsEnabled") ) {
481
    $template->param(SyndeticsEnabled => 1,
482
                     SyndeticsClientCode                   => C4::Context->preference("SyndeticsClientCode"),
483
                     SyndeticsCoverImages                  => C4::Context->preference("SyndeticsCoverImages"),
484
                     SyndeticsCoverImageSize               => C4::Context->preference("SyndeticsCoverImageSize")
485
486
        );
487
}
488
475
# $debug and $template->param(debug_display => 1);
489
# $debug and $template->param(debug_display => 1);
476
490
477
# Lists
491
# Lists
(-)a/catalogue/search.pl (+9 lines)
Lines 186-191 my ($template, $borrowernumber, $cookie) = get_template_and_user({ Link Here
186
    }
186
    }
187
);
187
);
188
188
189
if ( C4::Context->preference("SyndeticsEnabled") ) {
190
    $template->param(SyndeticsEnabled => 1,
191
                     SyndeticsClientCode                   => C4::Context->preference("SyndeticsClientCode"),
192
                     SyndeticsCoverImages                  => C4::Context->preference("SyndeticsCoverImages"),
193
                     SyndeticsCoverImageSize               => C4::Context->preference("SyndeticsCoverImageSize")
194
195
        );
196
}
197
189
my $lang = C4::Languages::getlanguage($cgi);
198
my $lang = C4::Languages::getlanguage($cgi);
190
199
191
if (C4::Context->preference("marcflavour") eq "UNIMARC" ) {
200
if (C4::Context->preference("marcflavour") eq "UNIMARC" ) {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-2 / +9 lines)
Lines 81-87 Link Here
81
        <span class="Z3988" title="[% ocoins | html %]"></span>
81
        <span class="Z3988" title="[% ocoins | html %]"></span>
82
    [% END %]
82
    [% END %]
83
83
84
    [% IF ( AmazonCoverImages  || LocalCoverImages || AdlibrisEnabled || IntranetCoce || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
84
    [% IF ( AmazonCoverImages  || LocalCoverImages || AdlibrisEnabled || IntranetCoce || ( SyndeticsEnabled && SyndeticsCoverImages ) || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
85
        [% IF ( XSLTDetailsDisplay ) %]
85
        [% IF ( XSLTDetailsDisplay ) %]
86
            <div id="catalogue_detail_biblio" class="col-xs-9">
86
            <div id="catalogue_detail_biblio" class="col-xs-9">
87
        [% ELSE %]
87
        [% ELSE %]
Lines 137-143 Link Here
137
            </span>
137
            </span>
138
        [% END %]
138
        [% END %]
139
139
140
        [% IF ( AmazonCoverImages  || LocalCoverImages || AdlibrisEnabled || IntranetCoce || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
140
        [% IF ( AmazonCoverImages  || LocalCoverImages || AdlibrisEnabled || IntranetCoce || ( SyndeticsEnabled && SyndeticsCoverImages ) || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
141
        </div><div class="col-xs-3" id="bookcoverimg">
141
        </div><div class="col-xs-3" id="bookcoverimg">
142
        [% IF ( LocalCoverImages ) %]
142
        [% IF ( LocalCoverImages ) %]
143
            <div title="[% biblionumber |url %]" class="[% biblionumber | html %]" id="local-thumbnail-preview"></div>
143
            <div title="[% biblionumber |url %]" class="[% biblionumber | html %]" id="local-thumbnail-preview"></div>
Lines 151-156 Link Here
151
                <img src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn | html %].01.MZZZZZZZ.jpg" alt="" />
151
                <img src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn | html %].01.MZZZZZZZ.jpg" alt="" />
152
        </a></div>
152
        </a></div>
153
        [% END %]
153
        [% END %]
154
        [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
155
           [% IF ( content_identifier_exists ) %]
156
              <img src="https://secure.syndetics.com/index.aspx?isbn=[% normalized_isbn | html %]/[% SyndeticsCoverImageSize | html %].GIF&amp;client=[% SyndeticsClientCode | html %]&amp;type=xw10&amp;upc=[% normalized_upc | html %]&amp;oclc=[% normalized_oclc | html %]" alt="" class="thumbnail" />
157
              [% ELSE %]
158
                  <span class="no-image">No cover image available</span>
159
              [% END %]
160
        [% END %]
154
        [% IF ( IntranetCoce && CoceProviders ) %]
161
        [% IF ( IntranetCoce && CoceProviders ) %]
155
          [% coce_id = normalized_ean || normalized_isbn %]
162
          [% coce_id = normalized_ean || normalized_isbn %]
156
            <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage | html %]?biblionumber=[% biblionumber | url %]">
163
            <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage | html %]?biblionumber=[% biblionumber | url %]">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt (-3 / +9 lines)
Lines 411-417 Link Here
411
                                <!-- TABLE RESULTS START -->
411
                                <!-- TABLE RESULTS START -->
412
                                <table>
412
                                <table>
413
                                    <tr>
413
                                    <tr>
414
                                        [% IF ( AmazonCoverImages  || LocalCoverImages || AdlibrisEnabled || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
414
                                        [% IF ( AmazonCoverImages  || LocalCoverImages || AdlibrisEnabled || ( SyndeticsEnabled && SyndeticsCoverImages ) || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
415
                                            <th>&nbsp;</th>
415
                                            <th>&nbsp;</th>
416
                                        [% END %]
416
                                        [% END %]
417
                                        <th colspan="2">Results</th>
417
                                        <th colspan="2">Results</th>
Lines 421-427 Link Here
421
                                    [% SET MaxSearchResultsItemsPerRecordStatusCheck = Koha.Preference('MaxSearchResultsItemsPerRecordStatusCheck') %]
421
                                    [% SET MaxSearchResultsItemsPerRecordStatusCheck = Koha.Preference('MaxSearchResultsItemsPerRecordStatusCheck') %]
422
                                    [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
422
                                    [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
423
                                        <tr>
423
                                        <tr>
424
                                            [% IF ( AmazonCoverImages  || LocalCoverImages || AdlibrisEnabled || IntranetCoce || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
424
                                            [% IF ( AmazonCoverImages  || LocalCoverImages || AdlibrisEnabled || IntranetCoce || ( SyndeticsEnabled && SyndeticsCoverImages ) || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
425
                                                <td>
425
                                                <td>
426
                                                    [% IF ( LocalCoverImages) %]
426
                                                    [% IF ( LocalCoverImages) %]
427
                                                        <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage | html %]?biblionumber=[% SEARCH_RESULT.biblionumber |url %]">
427
                                                        <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage | html %]?biblionumber=[% SEARCH_RESULT.biblionumber |url %]">
Lines 441-446 Link Here
441
                                                        [% END %]
441
                                                        [% END %]
442
                                                        </a>
442
                                                        </a>
443
                                                    [% END # /IF AmazonCoverImages %]
443
                                                    [% END # /IF AmazonCoverImages %]
444
                                                    [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
445
                                                            [% IF ( SEARCH_RESULT.normalized_isbn || SEARCH_RESULT.normalized_upc || SEARCH_RESULT.normalized_oclc ) %]
446
                                                                    <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>
447
                                                            [% ELSE %]
448
                                                                <span class="no-image">No cover image available</span>
449
                                                            [% END %]
450
                                                    [% END %]
444
                                                    [% IF ( IntranetCoce && CoceProviders ) %]
451
                                                    [% IF ( IntranetCoce && CoceProviders ) %]
445
                                                        [% coce_id = SEARCH_RESULT.normalized_ean || SEARCH_RESULT.normalized_isbn %]
452
                                                        [% coce_id = SEARCH_RESULT.normalized_ean || SEARCH_RESULT.normalized_isbn %]
446
                                                            <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage | html %]?biblionumber=[% SEARCH_RESULT.biblionumber | url %]">
453
                                                            <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage | html %]?biblionumber=[% SEARCH_RESULT.biblionumber | url %]">
447
- 

Return to bug 21225