Bugzilla – Attachment 130640 Details for
Bug 21225
Add Syndetics cover images to staff client
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21225: (follow-up) Make SyndeticCovers work on catalog detail page
Bug-21225-follow-up-Make-SyndeticCovers-work-on-ca.patch (text/plain), 2.25 KB, created by
Lucas Gass (lukeg)
on 2022-02-15 23:01:16 UTC
(
hide
)
Description:
Bug 21225: (follow-up) Make SyndeticCovers work on catalog detail page
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2022-02-15 23:01:16 UTC
Size:
2.25 KB
patch
obsolete
>From 2a56171a6cd8173d13a42f128e96983d85b62175 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Tue, 15 Feb 2022 22:59:37 +0000 >Subject: [PATCH] Bug 21225: (follow-up) Make SyndeticCovers work on catalog > detail page > >--- > catalogue/detail.pl | 5 +++++ > koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 2 +- > 2 files changed, 6 insertions(+), 1 deletion(-) > >diff --git a/catalogue/detail.pl b/catalogue/detail.pl >index 75aeed0e96..23ceee5b75 100755 >--- a/catalogue/detail.pl >+++ b/catalogue/detail.pl >@@ -137,12 +137,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 } }; >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >index 16f2d395eb..14fc174d50 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >@@ -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" /> >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 21225
:
116911
|
123581
|
130638
|
130640
|
130689
|
130690
|
130696
|
130697
|
130698
|
132357
|
132366
|
132367
|
132368
|
132369
|
132370