[Koha-patches] [biblibre-integration] (bug #3575) fix opac-detail.pl
Henri-Damien LAURENT
henridamien.laurent at biblibre.com
Fri Sep 11 16:34:00 CEST 2009
From: Nahuel ANGELINETTI <nahuel.angelinetti at biblibre.com>
This delete an useless "use C4::Serials"(there are 2).
And fix the opac-detail template, to fix a variable conflict for serials.
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent at biblibre.com>
---
.../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 e85e3dc..b70b7e7 100644
--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl
+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl
@@ -326,7 +326,7 @@ YAHOO.util.Event.onContentReady("furtherm", function () {
<!-- TMPL_IF NAME="itemdata_enumchron" --><th>Vol Info</th><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="itemdata_uri" --><th>URL</th><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="itemdata_copynumber" --><th>Copy</th><!-- /TMPL_IF -->
- <!-- TMPL_IF NAME="serial" -->
+ <!-- TMPL_IF NAME="serials" -->
<th>Serial Data</th>
<th>Published</th><!-- /TMPL_IF -->
<th>Status</th>
@@ -341,7 +341,7 @@ YAHOO.util.Event.onContentReady("furtherm", function () {
<!-- TMPL_IF NAME="itemdata_enumchron" --><td><!-- TMPL_VAR NAME="enumchron" --></td><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="itemdata_uri" --><td><a href="<!-- TMPL_VAR NAME="uri" -->"><!-- TMPL_VAR NAME="uri" --></a></td><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="itemdata_copynumber" --><td><!-- TMPL_VAR NAME="copynumber" --></td><!-- /TMPL_IF -->
- <!-- TMPL_IF NAME="serial" --><td><!-- TMPL_VAR NAME="serialseq" --> </td>
+ <!-- TMPL_IF NAME="serials" --><td><!-- TMPL_VAR NAME="serialseq" --> </td>
<td><!-- TMPL_VAR NAME="publisheddate" --> </td><!-- /TMPL_IF -->
<td><!-- TMPL_IF name="bi_notforloan" -->
Not for loan <!-- TMPL_IF NAME="notforloanvalue" -->(<!-- TMPL_VAR NAME="notforloanvalue" -->)<!-- /TMPL_IF -->
diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl
index 8027b1e..6e26acf 100755
--- a/opac/opac-detail.pl
+++ b/opac/opac-detail.pl
@@ -36,7 +36,6 @@ use C4::XISBN qw(get_xisbns get_biblionumber_from_isbn);
use C4::External::Amazon;
use C4::External::Syndetics qw(get_syndetics_index get_syndetics_summary get_syndetics_toc get_syndetics_excerpt get_syndetics_reviews get_syndetics_anotes );
use C4::Review;
-use C4::Serials;
use C4::Members;
use C4::XSLT;
@@ -104,7 +103,7 @@ 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 $serials_to_display;
my %cell;
--
1.6.0.4
More information about the Koha-patches
mailing list