MT 1902, Follow-up

This commit is contained in:
Matthias Meusburger 2009-09-23 11:16:34 +02:00 committed by Henri-Damien LAURENT
parent 26f1b2c533
commit aaa8d0c80c
2 changed files with 3 additions and 2 deletions

View file

@ -95,6 +95,7 @@ function popup(subscriptionid) {
<!-- TMPL_IF NAME="opacdisplaycount" --><li><span class="label">Number of issues to display to the public</span>:&nbsp;<!-- TMPL_VAR NAME="opacdisplaycount" -->&nbsp;</li><!-- /TMPL_IF -->
<!-- TMPL_IF name="letter" --><li><span class="label">Patron alert with:</span> <!-- TMPL_VAR name="letter" -->&nbsp;</li><!-- /TMPL_IF -->
<!-- TMPL_IF name="notes" --><li><span class="label">Notes:</span> <!-- TMPL_VAR name="notes" --></li><!-- /TMPL_IF -->
<!-- TMPL_IF name="hasRouting" --><li><span class="label">Routing:</span> yes</li><!-- /TMPL_IF -->
<!-- TMPL_IF name="internalnotes" --><li><span class="label">Management Notes:</span> <!-- TMPL_VAR name="internalnotes" --></li><!-- /TMPL_IF -->
</ul>
</div>

View file

@ -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') &&