Are we getting sick of merging yet? Not me!
This commit is contained in:
parent
29b4d2d534
commit
d3af19dcb2
37
C4/Groups.pm
37
C4/Groups.pm
|
|
@ -18,48 +18,13 @@ use C4::Stats;
|
|||
#use C4::Search;
|
||||
#use C4::Print;
|
||||
|
||||
use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS);
|
||||
use vars qw($VERSION @ISA @EXPORT);
|
||||
|
||||
# set the version for version checking
|
||||
$VERSION = 0.01;
|
||||
|
||||
@ISA = qw(Exporter);
|
||||
@EXPORT = qw(&getgroups &groupmembers);
|
||||
%EXPORT_TAGS = ( ); # eg: TAG => [ qw!name1 name2! ],
|
||||
|
||||
# your exported package globals go here,
|
||||
# as well as any optionally exported functions
|
||||
|
||||
@EXPORT_OK = qw($Var1 %Hashit);
|
||||
|
||||
|
||||
# non-exported package globals go here
|
||||
#use vars qw(@more $stuff);
|
||||
|
||||
# initalize package globals, first exported ones
|
||||
|
||||
my $Var1 = '';
|
||||
my %Hashit = ();
|
||||
|
||||
# then the others (which are still accessible as $Some::Module::stuff)
|
||||
my $stuff = '';
|
||||
my @more = ();
|
||||
|
||||
# all file-scoped lexicals must be created before
|
||||
# the functions below that use them.
|
||||
|
||||
# file-private lexicals go here
|
||||
my $priv_var = '';
|
||||
my %secret_hash = ();
|
||||
|
||||
# here's a file-private function as a closure,
|
||||
# callable as &$priv_func; it cannot be prototyped.
|
||||
my $priv_func = sub {
|
||||
# stuff goes here.
|
||||
};
|
||||
|
||||
# make all your functions, whether exported or not;
|
||||
|
||||
|
||||
sub getgroups {
|
||||
my ($env) = @_;
|
||||
|
|
|
|||
37
C4/Scan.pm
37
C4/Scan.pm
|
|
@ -1,4 +1,4 @@
|
|||
package C4::Scan; #asummes C4/Scan.pm
|
||||
package C4::Scan; #assumes C4/Scan.pm
|
||||
|
||||
use strict;
|
||||
require Exporter;
|
||||
|
|
@ -10,41 +10,6 @@ $VERSION = 0.01;
|
|||
|
||||
@ISA = qw(Exporter);
|
||||
@EXPORT = qw(&getbarcode);
|
||||
%EXPORT_TAGS = ( ); # eg: TAG => [ qw!name1 name2! ],
|
||||
|
||||
# your exported package globals go here,
|
||||
# as well as any optionally exported functions
|
||||
|
||||
@EXPORT_OK = qw($Var1 %Hashit);
|
||||
|
||||
|
||||
# non-exported package globals go here
|
||||
use vars qw(@more $stuff);
|
||||
|
||||
# initalize package globals, first exported ones
|
||||
|
||||
my $Var1 = '';
|
||||
my %Hashit = ();
|
||||
|
||||
|
||||
# then the others (which are still accessible as $Some::Module::stuff)
|
||||
my $stuff = '';
|
||||
my @more = ();
|
||||
|
||||
# all file-scoped lexicals must be created before
|
||||
# the functions below that use them.
|
||||
|
||||
# file-private lexicals go here
|
||||
my $priv_var = '';
|
||||
my %secret_hash = ();
|
||||
|
||||
# here's a file-private function as a closure,
|
||||
# callable as &$priv_func; it cannot be prototyped.
|
||||
my $priv_func = sub {
|
||||
# stuff goes here.
|
||||
};
|
||||
|
||||
# make all your functions, whether exported or not;
|
||||
|
||||
sub Getbarcode {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ print <<printend
|
|||
<BLOCKQUOTE><FONT SIZE=6>
|
||||
<em><a href=/cgi-bin/koha/detail.pl?bib=$data->{'biblionumber'}&type=intra>$data->{'title'} ($data->{'author'})</a><br>
|
||||
Modify Group - $data->{'description'}</em></FONT><br>
|
||||
<form action="updatebibitem.pl" method=post>
|
||||
<form action=updatebibitem.pl method=post>
|
||||
<table border=0 cellspacing=0 cellpadding=5 align=left>
|
||||
|
||||
<TR VALIGN=TOP bgcolor="99cc33">
|
||||
|
|
|
|||
26
testKoha.pl
26
testKoha.pl
|
|
@ -1,7 +1,31 @@
|
|||
#!/usr/bin/perl -w
|
||||
|
||||
# $Id$
|
||||
|
||||
use strict;
|
||||
use Test::Harness;
|
||||
|
||||
# please add many tests here
|
||||
# Please make the test name the same as the module name where possible
|
||||
|
||||
runtests ('t/koha.t', 't/Catalogue.t');
|
||||
my @tests=(
|
||||
't/format.t',
|
||||
't/Input.t',
|
||||
't/koha.t',
|
||||
't/output.t',
|
||||
't/require.t',
|
||||
't/Catalogue.t',
|
||||
);
|
||||
|
||||
|
||||
runtests (@tests);
|
||||
|
||||
exit;
|
||||
|
||||
# $Log$
|
||||
# Revision 1.5 2002/06/20 18:04:46 tonnesen
|
||||
# Are we getting sick of merging yet? Not me!
|
||||
#
|
||||
# Revision 1.1.2.7 2002/06/20 15:19:33 amillar
|
||||
# Test valid ISBN numbers in Input.pm
|
||||
#
|
||||
|
|
|
|||
Loading…
Reference in New Issue