Skip to content

Commit

Permalink
Z3950.pm - BEGIN block VERSION and vars related to export.
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
  • Loading branch information
Joe Atzberger authored and Joshua Ferraro committed Jan 8, 2008
1 parent e9d7aac commit 39b9859
Showing 1 changed file with 16 additions and 18 deletions.
34 changes: 16 additions & 18 deletions C4/Z3950.pm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ package C4::Z3950;

# Licensed under the GPL


# Copyright 2000-2002 Katipo Communications
#
# This file is part of Koha.
Expand All @@ -34,14 +33,20 @@ use DBI;
use C4::Input;
use C4::Biblio;

#------------------

require Exporter;

use vars qw($VERSION @ISA @EXPORT);

# set the version for version checking
$VERSION = 3.00;
BEGIN {
# set the version for version checking
$VERSION = 3.01;
require Exporter;
@ISA = qw(Exporter);
@EXPORT = qw(
&getz3950servers
&z3950servername
&addz3950queue
&checkz3950searchdone
);
}

=head1 NAME
Expand All @@ -60,17 +65,6 @@ entering Z39.50 lookup requests.
=over 2
=cut

@ISA = qw(Exporter);
@EXPORT = qw(
&getz3950servers
&z3950servername
&addz3950queue
&checkz3950searchdone
);

#------------------------------------------------
=item getz3950servers
@servers= &getz3950servers(checked);
Expand All @@ -81,6 +75,7 @@ C<$checked> should always be true (1) => returns only active servers.
If 0 => returns all servers
=cut

sub getz3950servers {
my ($checked) = @_;
my $dbh = C4::Context->dbh;
Expand Down Expand Up @@ -109,6 +104,7 @@ C<$server_id> is the Z39.50 server ID to look up.
C<$dbh> is ignored.
=cut

#'

sub z3950servername {
Expand Down Expand Up @@ -164,6 +160,7 @@ C<&addz3950queue> returns an error message. If it was successful, the
error message is the empty string.
=cut

#'
sub addz3950queue {
use strict;
Expand Down Expand Up @@ -274,6 +271,7 @@ Returns the number of pending z3950 requests
C<$random> is the random z3950 query number.
=cut

sub checkz3950searchdone {
my ($z3950random) = @_;
my $dbh = C4::Context->dbh;
Expand Down

0 comments on commit 39b9859

Please sign in to comment.