From bd5272f074a82643f3c195b763c45b251f5436e7 Mon Sep 17 00:00:00 2001 From: Joshua Ferraro Date: Thu, 5 Mar 2009 16:29:01 -0600 Subject: [PATCH] Fix for LL Bug 405: Syndetics Enhanced Content: some cover imags are being generated as IMGs but show as broken images Adds new template variable to test for enhanced content identifiers Signed-off-by: Galen Charlton --- C4/Search.pm | 1 + koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl | 8 +++----- koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl | 3 +-- opac/opac-ISBDdetail.pl | 3 ++- opac/opac-detail.pl | 3 ++- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/C4/Search.pm b/C4/Search.pm index 5a3a3a69ed..56575ee940 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -1279,6 +1279,7 @@ sub searchResults { $oldbiblio->{normalized_ean} = GetNormalizedEAN($marcrecord,$marcflavour); $oldbiblio->{normalized_oclc} = GetNormalizedOCLCNumber($marcrecord,$marcflavour); $oldbiblio->{normalized_isbn} = GetNormalizedISBN(undef,$marcrecord,$marcflavour); + $oldbiblio->{content_identifier_exists} = 1 if ($oldbiblio->{normalized_isbn} or $oldbiblio->{normalized_oclc} or $oldbiblio->{normalized_ean}); $oldbiblio->{description} = $itemtypes{ $oldbiblio->{itemtype} }->{description}; # Build summary if there is one (the summary is defined in the itemtypes table) # FIXME: is this used anywhere, I think it can be commented out? -- JF diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl index cb5e09a429..429ef5ed4a 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl @@ -337,10 +337,8 @@ &shelfbrowse_itemnumber=#shelfbrowser">Previous &shelfbrowse_itemnumber=#shelfbrowser"> - - - .01._AA75_PU_PU-5_.jpg" alt="" />No cover image available - /SC.GIF&client=&upc=&oclc=&type=xw10" alt="" /> + .01._AA75_PU_PU-5_.jpg" alt="" />No cover image available + /SC.GIF&client=&upc=&oclc=&type=xw10" alt="" />No cover image available
" class="" id="gbs-thumbnail">
No cover image available See Baker & Taylor" />No cover image available @@ -353,7 +351,7 @@ .01._AA75_PU_PU-5_.jpg" alt="" />No cover image available - /SC.GIF&client=&upc=&oclc=&type=xw10" alt="" /> + /SC.GIF&client=&upc=&oclc=&type=xw10" alt="" />No cover image available
" class="" id="gbs-thumbnail">
No cover image available See Baker & Taylor" />No cover image available diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl index 14356fdaaf..9aaf3dbc69 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl @@ -331,8 +331,7 @@ $(document).ready(function(){
"> .01.TZZZZZZZ.jpg" alt="" class="thumbnail" />No cover image available - /SC.GIF&client=&type=xw10&upc=&oclc=" alt="" class="thumbnail" />No cover image available - + /SC.GIF&client=&type=xw10&upc=&oclc=" alt="" class="thumbnail" />No cover image available
" class="" id="gbs-thumbnail">
No cover image available
">See Baker & Taylor" />No cover image available diff --git a/opac/opac-ISBDdetail.pl b/opac/opac-ISBDdetail.pl index 3c5c27f662..7b19a9960e 100755 --- a/opac/opac-ISBDdetail.pl +++ b/opac/opac-ISBDdetail.pl @@ -73,12 +73,13 @@ 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 = 1 if ($isbn or $ean or $oclc); $template->param( normalized_upc => $upc, normalized_ean => $ean, normalized_oclc => $oclc, normalized_isbn => $isbn, + content_identifier_exists => $content_identifier_exists, ); #coping with subscriptions diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl index b2e21293b2..a56c1df7f4 100755 --- a/opac/opac-detail.pl +++ b/opac/opac-detail.pl @@ -195,12 +195,13 @@ 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 = 1 if ($isbn or $ean or $oclc); $template->param( normalized_upc => $upc, normalized_ean => $ean, normalized_oclc => $oclc, normalized_isbn => $isbn, + content_identifier_exists => $content_identifier_exists, ); # COinS format FIXME: for books Only -- 2.39.5