Bug 21225: (follow-up) Make SyndeticCovers work on catalog detail page
Signed-off-by: Barbara Johnson <barbara.johnson@bedfordtx.gov> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
cd71fad77b
commit
f272a22d64
2 changed files with 6 additions and 1 deletions
|
@ -138,12 +138,17 @@ my $upc = GetNormalizedUPC($record,$marcflavour);
|
|||
my $ean = GetNormalizedEAN($record,$marcflavour);
|
||||
my $oclc = GetNormalizedOCLCNumber($record,$marcflavour);
|
||||
my $isbn = GetNormalizedISBN(undef,$record,$marcflavour);
|
||||
my $content_identifier_exists;
|
||||
if ( $isbn or $ean or $oclc or $upc ) {
|
||||
$content_identifier_exists = 1;
|
||||
}
|
||||
|
||||
$template->param(
|
||||
normalized_upc => $upc,
|
||||
normalized_ean => $ean,
|
||||
normalized_oclc => $oclc,
|
||||
normalized_isbn => $isbn,
|
||||
content_identifier_exists => $content_identifier_exists,
|
||||
);
|
||||
|
||||
my $itemtypes = { map { $_->{itemtype} => $_ } @{ Koha::ItemTypes->search->unblessed } };
|
||||
|
|
|
@ -238,7 +238,7 @@
|
|||
[% END %]
|
||||
|
||||
[% IF ( SyndeticsCovers ) %]
|
||||
[% IF ( nomarlized_isbn || normalized_upc || normalized_oclc ) %]
|
||||
[% IF ( content_identifier_exists ) %]
|
||||
<div class="cover-image" id="syndetics-bookcoverimg">
|
||||
<a title="Syndetics cover image">
|
||||
<img src="https://secure.syndetics.com/index.aspx?isbn=[% normalized_isbn | html %]/[% Koha.Preference('SyndeticsCoverImageSize') | html %].GIF&client=[% Koha.Preference('SyndeticsClientCode') | html %]&type=xw10&upc=[% normalized_upc | html %]&oclc=[% normalized_oclc | html %]" alt="" class="thumbnail" />
|
||||
|
|
Loading…
Reference in a new issue