=head2 CountBiblioInOrders
=over 4
=over
$count = &CountBiblioInOrders( $biblionumber);
=item $count = &CountBiblioInOrders( $biblionumber);
=back
=head2 GetSubscriptionsId
$subscriptions = &GetSubscriptionsId($biblionumber);
=item $subscriptions = &GetSubscriptionsId($biblionumber);
=head2 GetHolds
$holds = &GetHolds($biblionumber);
=item $holds = &GetHolds($biblionumber);
return $id;
}
return undef;
return;
=head2 DelUploadedFile
my $base = shift || $upload_path;
my $found = 0;
my @dirs;
my @files = <$base/*>;
my @files = glob("$base/*");
foreach (@files) {
if (-d $_ and -w $_) {
my $lastdirname = basename($_);
<head>
<title>Upload plugin</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="[% themelang %]/lib/jquery/jquery.js"></script>
<script type="text/javascript" src="/intranet-tmpl/lib/jquery/jquery.js"></script>
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/staff-global.css" />
</head>
my $file_path = $file->{filepath};
if( -f $file_path ) {
open FH, '<', $file_path or die "Can't open file: $!";
open my $fh, '<', $file_path or die "Can't open file: $!";
print $input->header(
-type => "application/octet-stream",
-attachment => $file->{filename}
);
while(<FH>) {
while(<$fh>) {
print $_;
} else {
-