[Koha-devel] RFC on ISBN sanitisations, was: [Koha-patches] [PATCH] Bugfix ShelfBrowser using unsanitized ISBNs. Owen reported the

Jesse pianohacker at gmail.com
Wed May 14 20:59:40 CEST 2008


Woops, forgot to CC the list.

Yes, I think this should be moved to C4.  I've been noodling around
> with the notion of creating a C4::Normalize or the like to centralize
> these kinds of normalizations (as ISSNs, LC card numbers, OCLC
> numbers, etc. could benefit from this as well), but haven't done
> anything yet.
>
> Regards,
>
> Galen


Do you think we could also put standard formatting of these types of numbers
in there, and make a naming scheme?

Example:

ISBNInternalForm('0-7434-3602-4') eq '0743436024'
ISBNDisplayForm('0743436024') eq '0-7434-3602-4'

Also LCCNInternalForm and LCCNDisplayForm, etc.

The naming scheme is a slightly awkward one, so feel free to modify. It
would be nice to have this functionality for other things too, such as
C4::Amazon.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/koha-devel/attachments/20080514/c03f40de/attachment-0002.htm>


More information about the Koha-devel mailing list