Bugzilla – Attachment 47900 Details for
Bug 15798
C4::Koha::displayServers is no longer in use
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Bug 15798: Remove C4::Koha::displayServers
SIGNED-OFF-Bug-15798-Remove-C4KohadisplayServers.patch (text/plain), 2.88 KB, created by
Mark Tompsett
on 2016-02-11 14:30:59 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 15798: Remove C4::Koha::displayServers
Filename:
MIME Type:
Creator:
Mark Tompsett
Created:
2016-02-11 14:30:59 UTC
Size:
2.88 KB
patch
obsolete
>From 48f7cac7fcc16eddd647817e27d7eb5409d5440c Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 10 Feb 2016 17:37:11 +0000 >Subject: [PATCH] [SIGNED-OFF] Bug 15798: Remove C4::Koha::displayServers > >This subroutine is no longer is use and can be removed. > >Test plan: > git grep displayServers >should not return any results. > >Signed-off-by: Mark Tompsett <mtompset@hotmail.com> >--- > C4/Koha.pm | 69 -------------------------------------------------------------- > 1 file changed, 69 deletions(-) > >diff --git a/C4/Koha.pm b/C4/Koha.pm >index 7171f16..3f2077c 100644 >--- a/C4/Koha.pm >+++ b/C4/Koha.pm >@@ -50,7 +50,6 @@ BEGIN { > &GetFrameworksLoop > &getallthemes > &getFacets >- &displayServers > &getnbpages > &get_infos_of > &get_notforloan_label_of >@@ -1010,74 +1009,6 @@ SELECT lib, > return \%notforloan_label_of; > } > >-=head2 displayServers >- >- my $servers = displayServers(); >- my $servers = displayServers( $position ); >- my $servers = displayServers( $position, $type ); >- >-displayServers returns a listref of hashrefs, each containing >-information about available z3950 servers. Each hashref has a format >-like: >- >- { >- 'checked' => 'checked', >- 'encoding' => 'utf8', >- 'icon' => undef, >- 'id' => 'LIBRARY OF CONGRESS', >- 'label' => '', >- 'name' => 'server', >- 'opensearch' => '', >- 'value' => 'lx2.loc.gov:210/', >- 'zed' => 1, >- }, >- >-=cut >- >-sub displayServers { >- my ( $position, $type ) = @_; >- my $dbh = C4::Context->dbh; >- >- my $strsth = 'SELECT * FROM z3950servers'; >- my @where_clauses; >- my @bind_params; >- >- if ($position) { >- push @bind_params, $position; >- push @where_clauses, ' position = ? '; >- } >- >- if ($type) { >- push @bind_params, $type; >- push @where_clauses, ' type = ? '; >- } >- >- # reassemble where clause from where clause pieces >- if (@where_clauses) { >- $strsth .= ' WHERE ' . join( ' AND ', @where_clauses ); >- } >- >- my $rq = $dbh->prepare($strsth); >- $rq->execute(@bind_params); >- my @primaryserverloop; >- >- while ( my $data = $rq->fetchrow_hashref ) { >- push @primaryserverloop, >- { label => $data->{description}, >- id => $data->{name}, >- name => "server", >- value => $data->{host} . ":" . $data->{port} . "/" . $data->{database}, >- encoding => ( $data->{encoding} ? $data->{encoding} : "iso-5426" ), >- checked => "checked", >- icon => $data->{icon}, >- zed => $data->{type} eq 'zed', >- opensearch => $data->{type} eq 'opensearch' >- }; >- } >- return \@primaryserverloop; >-} >- >- > =head2 GetKohaImageurlFromAuthorisedValues > > $authhorised_value = GetKohaImageurlFromAuthorisedValues( $category, $authvalcode ); >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 15798
:
47896
|
47900
|
47952