]> git.koha-community.org Git - koha.git/commit
DDCN callnumber splitting with test.
authorJoe Atzberger <joe.atzberger@liblime.com>
Fri, 13 Mar 2009 14:57:14 +0000 (09:57 -0500)
committerGalen Charlton <galen.charlton@liblime.com>
Fri, 3 Apr 2009 23:47:48 +0000 (18:47 -0500)
commit657371808a3c4340d6cec755277e587f2b35442e
treebd5c20e085f225f3d1da99aaf3b20d6a073450d4
parent2b1472744997e5c9567479d38357baf8adc0a2d0
DDCN callnumber splitting with test.

Similar to previous patch for LCCN splitting, this patch incorporates
changes to split_ddcn and supplies a test file for verifying proper
operation.  Note that the only previously documented example for intended
operation is included as one of the tests.

This regexps are created to be rather forgiving.  For example, the function
will not choke if two spaces were included where the "spec" (such as it is)
expects one.  Obviously this is because for CN splitting purposes, it doesn't
matter, we're not going to ever split in the middle of whitespace.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
C4/Labels.pm
t/Labels_split_ddcn.t [new file with mode: 0755]