kohabug 2475 [1/2] Porting LCCN splitting code to Labels.pm
authorChris Nighswonger <chris.nighswonger@liblime.com>
Sat, 9 Aug 2008 12:36:25 +0000 (07:36 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Sat, 9 Aug 2008 13:04:56 +0000 (08:04 -0500)
commit154e5c96e1b19237c0a402f4d150dec3a9fe83a9
tree06f0daf51ddc0a6136c98347f7acd51912b63ea0
parent5d01574d431a6b04214009b93a29c9b16122b617
kohabug 2475 [1/2] Porting LCCN splitting code to Labels.pm

This patch ports LCCN splitting code from Koha 2.2.9 to Koha 3.0
This algorithm has been ported just as it appears on some production
systems. LCCNs that do not split correctly should have a bug opened
and include an exact example so that the regexp's can be adjusted.

This patch also adds code to split DDCNs using the *loosest* possible
interpretation of DDCN rules. On the simple end, the DDCN split
algorithm will handle being passed just a Dewey call number.
However, there may be some unusually complex DDCNs that will not
split properly. These will need to have a bug submitted for them
including a specific example so that the regexp's can be adjusted.

The correct choice of splitting alogrithm is determimed by the
item level classification source (items.cn_source).

Documentation should be updated to reflect these changes. Please include
the bit about complex call numbers and the need of a bug report.

[LL Bug 26]

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
C4/Labels.pm
labels/label-print-pdf.pl