projects
/
koha.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
e92e6cf
)
Fixing split_ddcn now handles things like MP3-CD
author
Chris Cormack
<chris@bigballofwax.co.nz>
Tue, 15 Dec 2009 07:48:13 +0000
(20:48 +1300)
committer
Chris Cormack
<chris@bigballofwax.co.nz>
Wed, 16 Dec 2009 08:55:34 +0000
(21:55 +1300)
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
C4/Labels.pm
patch
|
blob
|
history
diff --git
a/C4/Labels.pm
b/C4/Labels.pm
index
e4fbd5d
..
82c59cc
100644
(file)
--- a/
C4/Labels.pm
+++ b/
C4/Labels.pm
@@
-980,7
+980,7
@@
sub split_ddcn {
# ddcn examples: 'R220.3 H2793Z H32 c.2', 'BIO JP2 R5c.1'
my (@parts) = m/
- ^([a-zA-Z-]+(?:$possible_decimal)?) # R220.3 # BIO # first example will require extra splitting
+ ^([a-zA-Z-]+
[0-9]?-?[a-zA-Z]*
(?:$possible_decimal)?) # R220.3 # BIO # first example will require extra splitting
\s*
(.+) # H2793Z H32 c.2 # R5c.1 # everything else (except bracketing spaces)
\s*