Bugzilla – Attachment 47952 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]
Bug 15798: Remove C4::Koha::displayServers
Bug-15798-Remove-C4KohadisplayServers.patch (text/plain), 2.96 KB, created by
Marcel de Rooy
on 2016-02-12 07:35:49 UTC
(
hide
)
Description:
Bug 15798: Remove C4::Koha::displayServers
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2016-02-12 07:35:49 UTC
Size:
2.96 KB
patch
obsolete
>From ae28ee5d7b48fb4d7232f25e9545ad1963e92a1e 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] Bug 15798: Remove C4::Koha::displayServers >Content-Type: text/plain; charset=utf-8 > >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> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > 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 ); >-- >1.7.10.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