]> 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)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Wed, 16 Sep 2009 21:19:05 +0000 (23:19 +0200)
commit6215956dffa4ee8490ae0dfa49a58aafa057a7c2
tree4244639071a52ce296f0cdfb3f3444f7b420bff2
parent80187c77557002ea0544a66cb934817b060b9683
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]