X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=cataloguing%2Fysearch.pl;h=77144e17315d14007e45d2fbe5fdc171b66f7128;hb=068e5be6395088793aeab66d67c36c2b9da2c5d9;hp=a697ddba4eb50785ad0fbead8827d05c70b6ad99;hpb=d57da73c2f51d837cb7557d7e8ca368cd74fe5c4;p=srvgit diff --git a/cataloguing/ysearch.pl b/cataloguing/ysearch.pl index a697ddba4e..77144e1731 100755 --- a/cataloguing/ysearch.pl +++ b/cataloguing/ysearch.pl @@ -24,11 +24,10 @@ =cut -use strict; - -#use warnings; FIXME - Bug 2505 +use Modern::Perl; use CGI; use C4::Context; +use C4::Charset; use C4::Auth qw/check_cookie_auth/; my $input = new CGI; @@ -59,20 +58,4 @@ while ( my $rec = $sth->fetchrow_hashref ) { print nsb_clean($rec->{$field}) . "\n"; } -sub nsb_clean { - my $NSB = '\x88' ; # NSB : begin Non Sorting Block - my $NSE = '\x89' ; # NSE : Non Sorting Block end - my $NSB2 = '\x98' ; # NSB : begin Non Sorting Block - my $NSE2 = '\x9C' ; # NSE : Non Sorting Block end - # handles non sorting blocks - my ($string) = @_ ; - $_ = $string ; - s/$NSB//g ; - s/$NSE//g ; - s/$NSB2//g ; - s/$NSE2//g ; - $string = $_ ; - - return($string) ; -}