Sub renamed and/or GPL Licence added according to the coding guideline.
This commit is contained in:
parent
1696f62652
commit
2a7f9b3cdb
|
|
@ -1,11 +1,8 @@
|
|||
#!/usr/bin/perl
|
||||
|
||||
# $Id$
|
||||
|
||||
#script to show suppliers and orders
|
||||
#written by chris@katipo.co.nz 23/2/2000
|
||||
|
||||
|
||||
# Copyright 2000-2002 Katipo Communications
|
||||
#
|
||||
# This file is part of Koha.
|
||||
|
|
@ -23,6 +20,8 @@
|
|||
# Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
|
||||
# Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
# $Id$
|
||||
|
||||
use strict;
|
||||
use C4::Auth;
|
||||
use C4::Biblio;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,24 @@
|
|||
#!/usr/bin/perl
|
||||
|
||||
# Copyright 2000-2002 Katipo Communications
|
||||
#
|
||||
# This file is part of Koha.
|
||||
#
|
||||
# Koha is free software; you can redistribute it and/or modify it under the
|
||||
# terms of the GNU General Public License as published by the Free Software
|
||||
# Foundation; either version 2 of the License, or (at your option) any later
|
||||
# version.
|
||||
#
|
||||
# Koha is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
||||
# A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License along with
|
||||
# Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
|
||||
# Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
# $Id$
|
||||
|
||||
use strict;
|
||||
use CGI;
|
||||
use C4::Auth;
|
||||
|
|
@ -18,7 +37,7 @@ my ($template, $loggedinuser, $cookie)
|
|||
debug => 1,
|
||||
});
|
||||
|
||||
#FIXME : Is this page still used ????
|
||||
# FIXME : Is this page still used ????
|
||||
# looks like no.
|
||||
|
||||
# budget
|
||||
|
|
|
|||
|
|
@ -1,9 +1,28 @@
|
|||
#!/usr/bin/perl
|
||||
|
||||
# Copyright 2000-2002 Katipo Communications
|
||||
#
|
||||
# This file is part of Koha.
|
||||
#
|
||||
# Koha is free software; you can redistribute it and/or modify it under the
|
||||
# terms of the GNU General Public License as published by the Free Software
|
||||
# Foundation; either version 2 of the License, or (at your option) any later
|
||||
# version.
|
||||
#
|
||||
# Koha is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
||||
# A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License along with
|
||||
# Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
|
||||
# Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
# $Id$
|
||||
|
||||
use strict;
|
||||
use CGI;
|
||||
use C4::Auth;
|
||||
use C4::Bull;
|
||||
use C4::Serials;
|
||||
use C4::Acquisition;
|
||||
use C4::Output;
|
||||
use C4::Interface::CGI::Output;
|
||||
|
|
@ -13,10 +32,10 @@ use HTML::Template;
|
|||
my $query = new CGI;
|
||||
# my $title = $query->param('title');
|
||||
# my $ISSN = $query->param('ISSN');
|
||||
# my @subscriptions = getsubscriptions($title,$ISSN);
|
||||
# my @subscriptions = GetSubscriptions($title,$ISSN);
|
||||
|
||||
my $supplierid = $query->param('supplierid');
|
||||
my %supplierlist = getSupplierListWithLateIssues;
|
||||
my %supplierlist = GetSupplierListWithLateIssues;
|
||||
my @select_supplier;
|
||||
push @select_supplier,"";
|
||||
foreach my $supplierid (keys %supplierlist){
|
||||
|
|
|
|||
|
|
@ -1,11 +1,30 @@
|
|||
#!/usr/bin/perl
|
||||
|
||||
# Copyright 2000-2002 Katipo Communications
|
||||
#
|
||||
# This file is part of Koha.
|
||||
#
|
||||
# Koha is free software; you can redistribute it and/or modify it under the
|
||||
# terms of the GNU General Public License as published by the Free Software
|
||||
# Foundation; either version 2 of the License, or (at your option) any later
|
||||
# version.
|
||||
#
|
||||
# Koha is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
||||
# A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License along with
|
||||
# Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
|
||||
# Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
# $Id$
|
||||
|
||||
use strict;
|
||||
use CGI;
|
||||
use C4::Auth;
|
||||
use C4::Koha;
|
||||
use C4::Date;
|
||||
use C4::Bull;
|
||||
use C4::Serials;
|
||||
use C4::Output;
|
||||
use C4::Interface::CGI::Output;
|
||||
use C4::Context;
|
||||
|
|
@ -22,52 +41,52 @@ my $sth;
|
|||
my ($template, $loggedinuser, $cookie);
|
||||
my $biblionumber = $query->param('biblionumber');
|
||||
if ($selectview eq "full"){
|
||||
my $subscriptions = get_full_subscription_list_from_biblionumber($biblionumber);
|
||||
|
||||
my $title = $subscriptions->[0]{bibliotitle};
|
||||
my $yearmin=$subscriptions->[0]{year};
|
||||
my $yearmax=$subscriptions->[scalar(@$subscriptions)-1]{year};
|
||||
my $subscriptions = GetFullSubscriptionListFromBiblionumber($biblionumber);
|
||||
|
||||
my $title = $subscriptions->[0]{bibliotitle};
|
||||
my $yearmin=$subscriptions->[0]{year};
|
||||
my $yearmax=$subscriptions->[scalar(@$subscriptions)-1]{year};
|
||||
|
||||
($template, $loggedinuser, $cookie)
|
||||
= get_template_and_user({template_name => "serials/serial-issues-full.tmpl",
|
||||
query => $query,
|
||||
type => "intranet",
|
||||
authnotrequired => 1,
|
||||
debug => 1,
|
||||
});
|
||||
|
||||
# replace CR by <br> in librarian note
|
||||
# $subscription->{opacnote} =~ s/\n/\<br\/\>/g;
|
||||
|
||||
$template->param(
|
||||
biblionumber => $query->param('biblionumber'),
|
||||
years => $subscriptions,
|
||||
yearmin => $yearmin,
|
||||
yearmax =>$yearmax,
|
||||
bibliotitle => $title,
|
||||
suggestion => C4::Context->preference("suggestion"),
|
||||
virtualshelves => C4::Context->preference("virtualshelves"),
|
||||
);
|
||||
($template, $loggedinuser, $cookie)
|
||||
= get_template_and_user({template_name => "serials/serial-issues-full.tmpl",
|
||||
query => $query,
|
||||
type => "intranet",
|
||||
authnotrequired => 1,
|
||||
debug => 1,
|
||||
});
|
||||
|
||||
# replace CR by <br> in librarian note
|
||||
# $subscription->{opacnote} =~ s/\n/\<br\/\>/g;
|
||||
|
||||
$template->param(
|
||||
biblionumber => $query->param('biblionumber'),
|
||||
years => $subscriptions,
|
||||
yearmin => $yearmin,
|
||||
yearmax =>$yearmax,
|
||||
bibliotitle => $title,
|
||||
suggestion => C4::Context->preference("suggestion"),
|
||||
virtualshelves => C4::Context->preference("virtualshelves"),
|
||||
);
|
||||
|
||||
} else {
|
||||
my $subscriptions = get_subscription_list_from_biblionumber($biblionumber);
|
||||
|
||||
($template, $loggedinuser, $cookie)
|
||||
= get_template_and_user({template_name => "serials/serial-issues.tmpl",
|
||||
query => $query,
|
||||
type => "intranet",
|
||||
authnotrequired => 1,
|
||||
debug => 1,
|
||||
});
|
||||
|
||||
# replace CR by <br> in librarian note
|
||||
# $subscription->{opacnote} =~ s/\n/\<br\/\>/g;
|
||||
|
||||
$template->param(
|
||||
biblionumber => $query->param('biblionumber'),
|
||||
subscription_LOOP => $subscriptions,
|
||||
suggestion => C4::Context->preference("suggestion"),
|
||||
virtualshelves => C4::Context->preference("virtualshelves"),
|
||||
);
|
||||
my $subscriptions = GetSubscriptionListFromBiblionumber($biblionumber);
|
||||
|
||||
($template, $loggedinuser, $cookie)
|
||||
= get_template_and_user({template_name => "serials/serial-issues.tmpl",
|
||||
query => $query,
|
||||
type => "intranet",
|
||||
authnotrequired => 1,
|
||||
debug => 1,
|
||||
});
|
||||
|
||||
# replace CR by <br> in librarian note
|
||||
# $subscription->{opacnote} =~ s/\n/\<br\/\>/g;
|
||||
|
||||
$template->param(
|
||||
biblionumber => $query->param('biblionumber'),
|
||||
subscription_LOOP => $subscriptions,
|
||||
suggestion => C4::Context->preference("suggestion"),
|
||||
virtualshelves => C4::Context->preference("virtualshelves"),
|
||||
);
|
||||
}
|
||||
output_html_with_http_headers $query, $cookie, $template->output;
|
||||
|
|
|
|||
|
|
@ -1,9 +1,28 @@
|
|||
#!/usr/bin/perl
|
||||
|
||||
# Copyright 2000-2002 Katipo Communications
|
||||
#
|
||||
# This file is part of Koha.
|
||||
#
|
||||
# Koha is free software; you can redistribute it and/or modify it under the
|
||||
# terms of the GNU General Public License as published by the Free Software
|
||||
# Foundation; either version 2 of the License, or (at your option) any later
|
||||
# version.
|
||||
#
|
||||
# Koha is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
||||
# A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License along with
|
||||
# Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
|
||||
# Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
# $Id$
|
||||
|
||||
use strict;
|
||||
use CGI;
|
||||
use C4::Auth;
|
||||
use C4::Bull;
|
||||
use C4::Serials;
|
||||
use C4::Output;
|
||||
use C4::Interface::CGI::Output;
|
||||
use C4::Context;
|
||||
|
|
@ -13,7 +32,7 @@ my $query = new CGI;
|
|||
my $title = $query->param('title');
|
||||
my $ISSN = $query->param('ISSN');
|
||||
my $biblionumber = $query->param('biblionumber');
|
||||
my @subscriptions = getsubscriptions($title,$ISSN,$biblionumber);
|
||||
my @subscriptions = GetSubscriptions($title,$ISSN,$biblionumber);
|
||||
my ($template, $loggedinuser, $cookie)
|
||||
= get_template_and_user({template_name => "serials/serials-home.tmpl",
|
||||
query => $query,
|
||||
|
|
|
|||
|
|
@ -7,12 +7,11 @@ use C4::Koha;
|
|||
use C4::Auth;
|
||||
use C4::Date;
|
||||
use C4::Output;
|
||||
use C4::Bull;
|
||||
use C4::Serials;
|
||||
use C4::Acquisition;
|
||||
use C4::Interface::CGI::Output;
|
||||
use C4::Context;
|
||||
use HTML::Template;
|
||||
use C4::Bull;
|
||||
use C4::Letters;
|
||||
|
||||
my $query = new CGI;
|
||||
|
|
@ -46,7 +45,7 @@ my ($flags, $homebranch)=$sthtemp->fetchrow;
|
|||
|
||||
if ($op eq 'mod') {
|
||||
my $subscriptionid = $query->param('subscriptionid');
|
||||
my $subs = &getsubscription($subscriptionid);
|
||||
my $subs = &GetSubscription($subscriptionid);
|
||||
$auser = $subs->{'user'};
|
||||
$librarian = $subs->{'librarian'};
|
||||
$cost = $subs->{'cost'};
|
||||
|
|
@ -180,7 +179,7 @@ if ($op eq 'addsubscription') {
|
|||
my $biblionumber = $query->param('biblionumber');
|
||||
my $notes = $query->param('notes');
|
||||
my $letter = $query->param('letter');
|
||||
my $subscriptionid = newsubscription($auser,$aqbooksellerid,$cost,$aqbudgetid,$biblionumber,
|
||||
my $subscriptionid = NewSubscription($auser,$aqbooksellerid,$cost,$aqbudgetid,$biblionumber,
|
||||
$startdate,$periodicity,$dow,$numberlength,$weeklength,$monthlength,
|
||||
$add1,$every1,$whenmorethan1,$setto1,$lastvalue1,
|
||||
$add2,$every2,$whenmorethan2,$setto2,$lastvalue2,
|
||||
|
|
|
|||
|
|
@ -1,11 +1,30 @@
|
|||
#!/usr/bin/perl
|
||||
|
||||
# Copyright 2000-2002 Katipo Communications
|
||||
#
|
||||
# This file is part of Koha.
|
||||
#
|
||||
# Koha is free software; you can redistribute it and/or modify it under the
|
||||
# terms of the GNU General Public License as published by the Free Software
|
||||
# Foundation; either version 2 of the License, or (at your option) any later
|
||||
# version.
|
||||
#
|
||||
# Koha is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
||||
# A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License along with
|
||||
# Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
|
||||
# Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
# $Id$
|
||||
|
||||
use strict;
|
||||
use CGI;
|
||||
use C4::Auth;
|
||||
use C4::Koha;
|
||||
use C4::Date;
|
||||
use C4::Bull;
|
||||
use C4::Serials;
|
||||
use C4::Output;
|
||||
use C4::Interface::CGI::Output;
|
||||
use C4::Context;
|
||||
|
|
@ -62,7 +81,7 @@ if ($op eq 'modsubscription') {
|
|||
$notes = $query->param('notes');
|
||||
$letter = $query->param('letter');
|
||||
|
||||
&modsubscription($auser,$aqbooksellerid,$cost,$aqbudgetid,$startdate,
|
||||
&ModSubscription($auser,$aqbooksellerid,$cost,$aqbudgetid,$startdate,
|
||||
$periodicity,$dow,$numberlength,$weeklength,$monthlength,
|
||||
$add1,$every1,$whenmorethan1,$setto1,$lastvalue1,$innerloop1,
|
||||
$add2,$every2,$whenmorethan2,$setto2,$lastvalue2,$innerloop2,
|
||||
|
|
@ -71,15 +90,15 @@ if ($op eq 'modsubscription') {
|
|||
}
|
||||
|
||||
if ($op eq 'del') {
|
||||
&delsubscription($subscriptionid);
|
||||
&DelSubscription($subscriptionid);
|
||||
print "Content-Type: text/html\n\n<META HTTP-EQUIV=Refresh CONTENT=\"0; URL=../bull-home.pl\"></html>";
|
||||
exit;
|
||||
|
||||
}
|
||||
$subs = &getsubscription($subscriptionid);
|
||||
$subs = &GetSubscription($subscriptionid);
|
||||
# html'ize distributedto
|
||||
$subs->{distributedto}=~ s/\n/<br \/>/g;
|
||||
my ($totalissues,@serialslist) = getserials($subscriptionid);
|
||||
my ($totalissues,@serialslist) = GetSerials($subscriptionid);
|
||||
$totalissues-- if $totalissues; # the -1 is to have 0 if this is a new subscription (only 1 issue)
|
||||
|
||||
($template, $loggedinuser, $cookie)
|
||||
|
|
|
|||
Loading…
Reference in New Issue