[Koha-cvs] koha/z3950 search.pl [rel_2_2]

Henri-Damien LAURENT laurenthdl at alinto.com
Fri Feb 16 11:16:36 CET 2007


CVSROOT:	/sources/koha
Module name:	koha
Branch:		rel_2_2
Changes by:	Henri-Damien LAURENT <hdl>	07/02/16 10:16:36

Modified files:
	z3950          : search.pl 

Log message:
	Bug fixing : accents removing (for z3950 search with iso-8859-1 characters)

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/z3950/search.pl?cvsroot=koha&only_with_tag=rel_2_2&r1=1.3.2.13&r2=1.3.2.14

Patches:
Index: search.pl
===================================================================
RCS file: /sources/koha/koha/z3950/search.pl,v
retrieving revision 1.3.2.13
retrieving revision 1.3.2.14
diff -u -b -r1.3.2.13 -r1.3.2.14
--- search.pl	15 Feb 2007 18:25:36 -0000	1.3.2.13
+++ search.pl	16 Feb 2007 10:16:36 -0000	1.3.2.14
@@ -108,9 +108,11 @@
 		$term=$issn if ($issn);
 	} elsif ($title) {
 		$attr='1=4 ';
+        $title=~tr/àâäéèêëîïôöùû/aaaeeeeiioouu/;
 		$term=$title;
 	} elsif ($author) {
 		$attr='1=1003';
+        $author=~tr/àâäéèêëîïôöùû/aaaeeeeiioouu/;
 		$term=$author;
 	}
     





More information about the Koha-cvs mailing list