projects
/
koha_ffzg
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ddde3a3
)
GetNoZebraIndexes() regex now handles naughty whitespace (read: tabs)
author
Mason James
<mtj@ezeke.liblime.com>
Tue, 20 Nov 2007 03:12:57 +0000
(21:12 -0600)
committer
Joshua Ferraro
<jmf@liblime.com>
Tue, 20 Nov 2007 22:29:33 +0000
(16:29 -0600)
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
C4/Biblio.pm
[changed mode: 0644->0755]
patch
|
blob
|
history
diff --git
a/C4/Biblio.pm
b/C4/Biblio.pm
old mode 100644
(file)
new mode 100755
(executable)
index
73f44dc
..
9658db8
--- a/
C4/Biblio.pm
+++ b/
C4/Biblio.pm
@@
-3091,10
+3091,13
@@
sub GetNoZebraIndexes {
my %indexes;
foreach my $line (split /('|"),/,$index) {
$line =~ /(.*)=>(.*)/;
+warn $line;
my $index = substr($1,1); # get the index, don't forget to remove initial ' or "
my $fields = $2;
- $index =~ s/'|"| //g;
- $fields =~ s/'|"| //g;
+ $index =~ s/'|"|\s//g;
+
+
+ $fields =~ s/'|"|\s//g;
$indexes{$index}=$fields;
}
return %indexes;