Bug 1953 [6/6]: adding pod documentation for C4::Koha::displayServers
This method was not documented. I added some POD to it. Signed-off-by: Galen Charlton <galen.charlton@liblime.com> Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
parent
e674bbed0e
commit
a7118d4f48
1 changed files with 31 additions and 0 deletions
31
C4/Koha.pm
31
C4/Koha.pm
|
@ -887,6 +887,37 @@ SELECT lib,
|
|||
return \%notforloan_label_of;
|
||||
}
|
||||
|
||||
=head2 displayServers
|
||||
|
||||
=over 4
|
||||
|
||||
my $servers = displayServers();
|
||||
|
||||
my $servers = displayServers( $position );
|
||||
|
||||
my $servers = displayServers( $position, $type );
|
||||
|
||||
=back
|
||||
|
||||
displayServers returns a listref of hashrefs, each containing
|
||||
information about available z3950 servers. Each hashref has a format
|
||||
like:
|
||||
|
||||
{
|
||||
'checked' => 'checked',
|
||||
'encoding' => 'MARC-8'
|
||||
'icon' => undef,
|
||||
'id' => 'LIBRARY OF CONGRESS',
|
||||
'label' => '',
|
||||
'name' => 'server',
|
||||
'opensearch' => '',
|
||||
'value' => 'z3950.loc.gov:7090/',
|
||||
'zed' => 1,
|
||||
},
|
||||
|
||||
|
||||
=cut
|
||||
|
||||
sub displayServers {
|
||||
my ( $position, $type ) = @_;
|
||||
my $dbh = C4::Context->dbh;
|
||||
|
|
Loading…
Reference in a new issue