From f272a22d64d84d904a9ef0ada6915fb47595abec Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Tue, 15 Feb 2022 22:59:37 +0000 Subject: [PATCH] Bug 21225: (follow-up) Make SyndeticCovers work on catalog detail page Signed-off-by: Barbara Johnson Signed-off-by: Katrin Fischer Signed-off-by: Fridolin Somers --- 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 2a635e10ef..612aa03874 100755 --- a/catalogue/detail.pl +++ b/catalogue/detail.pl @@ -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 } }; 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 1f638e45ae..537185d866 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 ) %]