From 1ca96457b33861d9e96f8f395a3f1722a26e097b Mon Sep 17 00:00:00 2001 From: Paul Poulain Date: Mon, 9 Nov 2009 19:35:02 +0100 Subject: [PATCH] Displaying serial call-number on receive. when the subscription has item creation, the callnumber is inside the item creation. But when it doesn't have, the callnumber is not displayed, but is useful to be put on physical item. This patch display the callnumber after the title --- .../prog/en/modules/serials/serials-edit.tmpl | 4 ++-- serials/serials-edit.pl | 14 +++++++++----- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tmpl index a65284ae80..90bc9fa659 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tmpl @@ -154,7 +154,7 @@ function CloneSubfield(index){ - +
@@ -162,7 +162,7 @@ function CloneSubfield(index){
-

Serial Edition

+

Serial Edition ()

diff --git a/serials/serials-edit.pl b/serials/serials-edit.pl index 08eae33f88..d6b129a453 100755 --- a/serials/serials-edit.pl +++ b/serials/serials-edit.pl @@ -140,12 +140,13 @@ my @subscriptionloop; my %processedsubscriptionid; foreach my $subscriptionid (@subscriptionids){ #Donot process subscriptionid twice if it was already processed. + my $subscriptiondetail = GetSubscription($subscriptionid); next unless (defined($subscriptionid) && !$processedsubscriptionid{$subscriptionid}); my $cell; if ($serialdatalist[0]->{'serialsadditems'}){ #Create New empty item $cell = - PrepareItemrecordDisplay( $serialdatalist[0]->{'biblionumber'},'', GetSubscription($subscriptionid)); + PrepareItemrecordDisplay( $serialdatalist[0]->{'biblionumber'},'', $subscriptiondetail); $cell->{serialsadditems} = 1; } $cell->{'subscriptionid'}=$subscriptionid; @@ -158,6 +159,10 @@ foreach my $subscriptionid (@subscriptionids){ 'subscriptionexpired'=>HasSubscriptionExpired($subscriptionid), }; $processedsubscriptionid{$subscriptionid}=1; + $template->param(bibliotitle => $subscriptiondetail->{'bibliotitle'}, + callnumber => $subscriptiondetail->{'callnumber'}, + ); + } $template->param(newserialloop=>\@newserialloop); $template->param(subscriptions=>\@subscriptionloop); @@ -293,9 +298,8 @@ if ($op and $op eq 'serialchangestatus') { } $template->param( - serialsadditems => $serialdatalist[0]->{'serialsadditems'}, - bibliotitle => $bibdata->{'title'}, - biblionumber => $serialdatalist[0]->{'biblionumber'}, - serialslist => \@serialdatalist, + serialsadditems => $serialdatalist[0]->{'serialsadditems'}, + biblionumber => $serialdatalist[0]->{'biblionumber'}, + serialslist => \@serialdatalist, ); output_html_with_http_headers $query, $cookie, $template->output; -- 2.39.5