From aaa8d0c80c893dbd92ced6c933263002cf6b048b Mon Sep 17 00:00:00 2001 From: Matthias Meusburger Date: Wed, 23 Sep 2009 11:16:34 +0200 Subject: [PATCH] MT 1902, Follow-up --- .../prog/en/modules/serials/subscription-detail.tmpl | 1 + serials/subscription-detail.pl | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-detail.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-detail.tmpl index 0ca920f330..0e74f1761b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-detail.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-detail.tmpl @@ -95,6 +95,7 @@ function popup(subscriptionid) {
  • Number of issues to display to the public 
  • Patron alert with:  
  • Notes:
  • +
  • Routing: yes
  • Management Notes:
  • diff --git a/serials/subscription-detail.pl b/serials/subscription-detail.pl index 82f883919d..4522677d86 100755 --- a/serials/subscription-detail.pl +++ b/serials/subscription-detail.pl @@ -70,7 +70,7 @@ if ($op eq 'del') { exit; } } -my ($routing, @routinglist) = getroutinglist($subscriptionid); +my $hasRouting = check_routing($subscriptionid); my ($totalissues,@serialslist) = GetSerials($subscriptionid); $totalissues-- if $totalissues; # the -1 is to have 0 if this is a new subscription (only 1 issue) # the subscription must be deletable if there is NO issues for a reason or another (should not happend, but...) @@ -101,8 +101,8 @@ if (! $subs->{periodicity}) { } $template->param( subscriptionid => $subscriptionid, - routing => $routing, serialslist => \@serialslist, + hasRouting => $hasRouting, totalissues => $totalissues, hemisphere => $hemisphere, cannotedit =>(C4::Context->preference('IndependantBranches') && -- 2.39.5