[Koha-patches] [3.0.x] Fixing split_ddcn now handles things like MP3-CD

Chris Cormack chris at bigballofwax.co.nz
Tue Dec 15 08:52:43 CET 2009


---
 C4/Labels.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/C4/Labels.pm b/C4/Labels.pm
index e4fbd5d..82c59cc 100644
--- 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*
-- 
1.6.3.3




More information about the Koha-patches mailing list