[Koha] Split Call Numbers--Variation
cnighswonger at foundations.edu
Tue Mar 15 10:44:17 NZDT 2011
On Mon, Mar 14, 2011 at 5:08 PM, Chris Nighswonger
<cnighswonger at foundations.edu> wrote:
> 2011/3/14 Marty <ontariowolf64 at yahoo.com>
>> That's kind of surprising, I have been playing around a bit on my test box and for me Library of Congress numbers never seem to get split. They usually come in this format: 917.1/0022/2 which always shows up on my labels as 917.100222 and that is obviously too long.
>> But you gave me an idea, and when I replace the '/' with a space in the itemcallnumber the numbers obediently split. For me that works with text as well as numbers.
>> I think it would be useful to be able to choose a separator character, something similar as you get when you import csv files in Base or Excel.
>> (On Koha 3.02.04.000)
> You may see some examples of what the LCCN splitting algorithm is
> looking for by looking around line 32 here:
> Also around line 113 here:
> What has been done is to split based on known examples. If you have an
> example of a call number which does not split as you would expect,
> please add a comment to bug 2500
> (http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=2500) which
> includes the number as it appears in-line and then as you expect it to
> There appear to be a rather infinite variety of ways folks express
> call numbers in-line, so until someone pays for development of a
> method of allowing end-users to cook up their own splitting
> algorithms, this is the way to get your method into the code. :-)
Ok, I've whipped up a mod for the LCCN splitting routine which splits
around '/' "segmentation" marks. If you have a way to test the patch,
you may grab it here:
Otherwise, you'll have to wait for 3.4 which will be released 22 April, 2011.
More information about the Koha