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

(-)a/catalogue/detail.pl (+5 lines)
Lines 138-149 my $upc = GetNormalizedUPC($record,$marcflavour); Link Here
138
my $ean = GetNormalizedEAN($record,$marcflavour);
138
my $ean = GetNormalizedEAN($record,$marcflavour);
139
my $oclc = GetNormalizedOCLCNumber($record,$marcflavour);
139
my $oclc = GetNormalizedOCLCNumber($record,$marcflavour);
140
my $isbn = GetNormalizedISBN(undef,$record,$marcflavour);
140
my $isbn = GetNormalizedISBN(undef,$record,$marcflavour);
141
my $content_identifier_exists;
142
if ( $isbn or $ean or $oclc or $upc ) {
143
    $content_identifier_exists = 1;
144
}
141
145
142
$template->param(
146
$template->param(
143
    normalized_upc => $upc,
147
    normalized_upc => $upc,
144
    normalized_ean => $ean,
148
    normalized_ean => $ean,
145
    normalized_oclc => $oclc,
149
    normalized_oclc => $oclc,
146
    normalized_isbn => $isbn,
150
    normalized_isbn => $isbn,
151
    content_identifier_exists =>  $content_identifier_exists,
147
);
152
);
148
153
149
my $itemtypes = { map { $_->{itemtype} => $_ } @{ Koha::ItemTypes->search->unblessed } };
154
my $itemtypes = { map { $_->{itemtype} => $_ } @{ Koha::ItemTypes->search->unblessed } };
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-2 / +1 lines)
Lines 238-244 Link Here
238
                    [% END %]
238
                    [% END %]
239
239
240
                    [% IF ( SyndeticsCovers ) %]
240
                    [% IF ( SyndeticsCovers ) %]
241
                        [% IF ( nomarlized_isbn || normalized_upc || normalized_oclc ) %]
241
                        [% IF ( content_identifier_exists ) %]
242
                        <div class="cover-image" id="syndetics-bookcoverimg">
242
                        <div class="cover-image" id="syndetics-bookcoverimg">
243
                            <a title="Syndetics cover image">
243
                            <a title="Syndetics cover image">
244
                                <img src="https://secure.syndetics.com/index.aspx?isbn=[% normalized_isbn | html %]/[% Koha.Preference('SyndeticsCoverImageSize') | html %].GIF&amp;client=[% Koha.Preference('SyndeticsClientCode') | html %]&amp;type=xw10&amp;upc=[% normalized_upc | html %]&amp;oclc=[% normalized_oclc | html %]" alt="" class="thumbnail" />
244
                                <img src="https://secure.syndetics.com/index.aspx?isbn=[% normalized_isbn | html %]/[% Koha.Preference('SyndeticsCoverImageSize') | html %].GIF&amp;client=[% Koha.Preference('SyndeticsClientCode') | html %]&amp;type=xw10&amp;upc=[% normalized_upc | html %]&amp;oclc=[% normalized_oclc | html %]" alt="" class="thumbnail" />
245
- 

Return to bug 21225