From afde76f1c1f8c55273d99d4ad9683ee7a8bac2a9 Mon Sep 17 00:00:00 2001 From: Daniel Sweeney Date: Tue, 10 Mar 2009 10:56:30 -0500 Subject: [PATCH] Added upc to content_identifier_exists criteria. Signed-off-by: Galen Charlton --- C4/Search.pm | 2 +- opac/opac-ISBDdetail.pl | 2 +- opac/opac-detail.pl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/C4/Search.pm b/C4/Search.pm index 56575ee940..10f8219c8a 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -1279,7 +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->{content_identifier_exists} = 1 if ($oldbiblio->{normalized_isbn} or $oldbiblio->{normalized_oclc} or $oldbiblio->{normalized_ean} or $oldbiblio->{normalized_upc}); $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/opac/opac-ISBDdetail.pl b/opac/opac-ISBDdetail.pl index 7b19a9960e..647941339f 100755 --- a/opac/opac-ISBDdetail.pl +++ b/opac/opac-ISBDdetail.pl @@ -73,7 +73,7 @@ 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); +my $content_identifier_exists = 1 if ($isbn or $ean or $oclc or $upc); $template->param( normalized_upc => $upc, normalized_ean => $ean, diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl index a56c1df7f4..fba01d9d85 100755 --- a/opac/opac-detail.pl +++ b/opac/opac-detail.pl @@ -195,7 +195,7 @@ 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); +my $content_identifier_exists = 1 if ($isbn or $ean or $oclc or $upc); $template->param( normalized_upc => $upc, normalized_ean => $ean, -- 2.39.5