[Koha-patches] [PATCH] Followup to Bug 4305: multiple ISBNS in biblioitems.isbn breaks patron

Ian Walls ian.walls at bywatersolutions.com
Wed Oct 6 19:35:14 CEST 2010


The second ISBN is often cut off because of the character limit of the
biblioitems.isbn field.  If both ISBNs in the MARC record were straight
ISBNs with no dashes or additional junk at the end (like "(pbk.)", it may be
possible to fit two in the field (limit 30 characters), but I have my doubts
that this will happen often enough to justify processing multiple ISBNs per
call.  That's why I went with the simple scrub, until a more robust solution
can be developed to prevent (and cleanup) multiple ISBNs crammed into
biblioitems.isbn.


-Ian

On Wed, Oct 6, 2010 at 1:11 PM, Frederic Demians <frederic at demians.fr>wrote:

>
>  This patch adds a scrub for ' | ' when the ISBN comes from the
>> biblioitems table, in the event that Koha has attempted to store
>> multiple ISBNs in the field. The ISBN presented to Business::ISBN will
>> now be something it can handle.
>>
>
> Couldn't you do it in _isbn_cleanup function and rather than taking the
> first isbn you could try each one by one and retain the first which is
> correct for Business::ISBN.
>
> --
> Frédéric DEMIANS
> _______________________________________________
> Koha-patches mailing list
> Koha-patches at lists.koha-community.org
> http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches
>



-- 
Ian Walls
Lead Development Specialist
ByWater Solutions
Phone # (888) 900-8944
http://bywatersolutions.com
ian.walls at bywatersolutions.com
Twitter: @sekjal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/koha-patches/attachments/20101006/533c5aa0/attachment.htm>


More information about the Koha-patches mailing list