From: Chris Nighswonger Date: Thu, 26 Feb 2009 20:43:35 +0000 (-0500) Subject: Kohabug 2500 Fiction Call Number Splitting Enhancement/Bugfix X-Git-Tag: v3.00.02-stable~283 X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=43fdc783589ecc19ce9a12f6dc35f5e0a21644e5;p=koha.git Kohabug 2500 Fiction Call Number Splitting Enhancement/Bugfix The current regexp used to split fiction call numbers does not handle the '.' char well. This patch corrects the regexp so that it behaves as expected. This patch should be ported to the 3.0.x branch. [fbcbug 5] Signed-off-by: Galen Charlton Signed-off-by: Henri-Damien LAURENT --- diff --git a/C4/Labels.pm b/C4/Labels.pm index 65c62a732a..3a21bbd1a2 100644 --- a/C4/Labels.pm +++ b/C4/Labels.pm @@ -994,7 +994,7 @@ sub split_fcn { # Split fiction call numbers based on spaces SPLIT_FCN: while ($fcn) { - if ($fcn =~ m/([A-Za-z0-9]+)(\W?).*?/x) { + if ($fcn =~ m/([A-Za-z0-9]+\.?[0-9]?)(\W?).*?/x) { push (@fcn_split, $1); $fcn = $'; }