From 09793f26380940be2f1ad1f49814fdaaf6c23faa Mon Sep 17 00:00:00 2001 From: Nahuel ANGELINETTI Date: Thu, 3 Sep 2009 10:17:19 +0200 Subject: [PATCH] (bug #3575) fix opac-detail.pl This delete an useless "use C4::Serials"(there are 2). And fix the opac-detail template, to fix a variable conflict for serials. --- koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl | 4 ++-- opac/opac-detail.pl | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) 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 c7bcb53c72..592602735c 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl @@ -266,7 +266,7 @@ YAHOO.util.Event.onContentReady("furtherm", function () { Vol Info URL Copy - + Serial Data Published Status @@ -281,7 +281,7 @@ YAHOO.util.Event.onContentReady("furtherm", function () { "> - + Not for loan () diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl index 7ce4cf7f83..a95329f0cb 100755 --- a/opac/opac-detail.pl +++ b/opac/opac-detail.pl @@ -35,7 +35,6 @@ use C4::Dates qw/format_date/; use C4::XISBN qw(get_xisbns get_biblionumber_from_isbn get_biblio_from_xisbn); use C4::External::Amazon; use C4::Review; -use C4::Serials; use C4::Members; use C4::XSLT; @@ -101,7 +100,7 @@ my $collections = GetKohaAuthorisedValues('items.ccode',$dat->{'frameworkcode'} my $subscriptionsnumber = CountSubscriptionFromBiblionumber($biblionumber); my @subscriptions = GetSubscriptions( $dat->{title}, $dat->{issn}, $biblionumber ); my @subs; -$dat->{'serial'}=1 if $subscriptionsnumber; +$dat->{'serials'}=1 if $subscriptionsnumber; foreach my $subscription (@subscriptions) { my %cell; $cell{subscriptionid} = $subscription->{subscriptionid}; -- 2.39.5