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

(-)a/catalogue/detail.pl (+5 lines)
Lines 137-148 my $upc = GetNormalizedUPC($record,$marcflavour); Link Here
137
my $ean = GetNormalizedEAN($record,$marcflavour);
137
my $ean = GetNormalizedEAN($record,$marcflavour);
138
my $oclc = GetNormalizedOCLCNumber($record,$marcflavour);
138
my $oclc = GetNormalizedOCLCNumber($record,$marcflavour);
139
my $isbn = GetNormalizedISBN(undef,$record,$marcflavour);
139
my $isbn = GetNormalizedISBN(undef,$record,$marcflavour);
140
my $content_identifier_exists;
141
if ( $isbn or $ean or $oclc or $upc ) {
142
    $content_identifier_exists = 1;
143
}
140
144
141
$template->param(
145
$template->param(
142
    normalized_upc => $upc,
146
    normalized_upc => $upc,
143
    normalized_ean => $ean,
147
    normalized_ean => $ean,
144
    normalized_oclc => $oclc,
148
    normalized_oclc => $oclc,
145
    normalized_isbn => $isbn,
149
    normalized_isbn => $isbn,
150
    content_identifier_exists =>  $content_identifier_exists,
146
);
151
);
147
152
148
my $itemtypes = { map { $_->{itemtype} => $_ } @{ Koha::ItemTypes->search->unblessed } };
153
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